]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Applied patch #1431193: work around for recent fileuri change in mediactrl + fix
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
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_VERSION 0x010327
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 *
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
34 *
35 ************************************************************************/
36
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # else
42 # define SWIGTEMPLATEDISAMBIGUATOR
43 # endif
44 #endif
45
46 /* inline attribute */
47 #ifndef SWIGINLINE
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
50 # else
51 # define SWIGINLINE
52 # endif
53 #endif
54
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 #ifndef SWIGUNUSED
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
59 # else
60 # define SWIGUNUSED
61 # endif
62 #endif
63
64 /* internal SWIG method */
65 #ifndef SWIGINTERN
66 # define SWIGINTERN static SWIGUNUSED
67 #endif
68
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72 #endif
73
74 /* exporting methods for Windows DLLs */
75 #ifndef SWIGEXPORT
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
78 # define SWIGEXPORT
79 # else
80 # define SWIGEXPORT __declspec(dllexport)
81 # endif
82 # else
83 # define SWIGEXPORT
84 # endif
85 #endif
86
87 /* calling conventions for Windows */
88 #ifndef SWIGSTDCALL
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
91 # else
92 # define SWIGSTDCALL
93 # endif
94 #endif
95
96
97
98 #include <Python.h>
99
100 /***********************************************************************
101 * swigrun.swg
102 *
103 * This file contains generic CAPI SWIG runtime support for pointer
104 * type checking.
105 *
106 ************************************************************************/
107
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
111
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 #else
118 # define SWIG_TYPE_TABLE_NAME
119 #endif
120
121 /*
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
125
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
128 */
129
130 #ifndef SWIGRUNTIME
131 # define SWIGRUNTIME SWIGINTERN
132 #endif
133
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
136 #endif
137
138 #include <string.h>
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 typedef void *(*swig_converter_func)(void *);
145 typedef struct swig_type_info *(*swig_dycast_func)(void **);
146
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info {
149 const char *name; /* mangled name of this type */
150 const char *str; /* human readable name of this type */
151 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
153 void *clientdata; /* language specific type data */
154 } swig_type_info;
155
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info {
158 swig_type_info *type; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter; /* function to cast the void pointers */
160 struct swig_cast_info *next; /* pointer to next cast in linked list */
161 struct swig_cast_info *prev; /* pointer to the previous cast */
162 } swig_cast_info;
163
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info {
168 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size; /* Number of types in this module */
170 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
171 swig_type_info **type_initial; /* Array of initially generated type structures */
172 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
173 void *clientdata; /* Language specific module data */
174 } swig_module_info;
175
176
177 /*
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
183 */
184 SWIGRUNTIME int
185 SWIG_TypeNameComp(const char *f1, const char *l1,
186 const char *f2, const char *l2) {
187 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
188 while ((*f1 == ' ') && (f1 != l1)) ++f1;
189 while ((*f2 == ' ') && (f2 != l2)) ++f2;
190 if (*f1 != *f2) return (int)(*f1 - *f2);
191 }
192 return (l1 - f1) - (l2 - f2);
193 }
194
195 /*
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
198 */
199 SWIGRUNTIME int
200 SWIG_TypeEquiv(const char *nb, const char *tb) {
201 int equiv = 0;
202 const char* te = tb + strlen(tb);
203 const char* ne = nb;
204 while (!equiv && *ne) {
205 for (nb = ne; *ne; ++ne) {
206 if (*ne == '|') break;
207 }
208 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
209 if (*ne) ++ne;
210 }
211 return equiv;
212 }
213
214 /*
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
217 */
218 SWIGRUNTIME int
219 SWIG_TypeCompare(const char *nb, const char *tb) {
220 int equiv = 0;
221 const char* te = tb + strlen(tb);
222 const char* ne = nb;
223 while (!equiv && *ne) {
224 for (nb = ne; *ne; ++ne) {
225 if (*ne == '|') break;
226 }
227 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
228 if (*ne) ++ne;
229 }
230 return equiv;
231 }
232
233
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
236 if (ty) { \
237 swig_cast_info *iter = ty->cast; \
238 while (iter) { \
239 if (comparison) { \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
243 if (iter->next) \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
246 iter->prev = 0; \
247 if (ty->cast) ty->cast->prev = iter; \
248 ty->cast = iter; \
249 return iter; \
250 } \
251 iter = iter->next; \
252 } \
253 } \
254 return 0
255
256 /*
257 Check the typename
258 */
259 SWIGRUNTIME swig_cast_info *
260 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
261 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
262 }
263
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info *
266 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
267 SWIG_TypeCheck_Template(iter->type == from, into);
268 }
269
270 /*
271 Cast a pointer up an inheritance hierarchy
272 */
273 SWIGRUNTIMEINLINE void *
274 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
275 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
276 }
277
278 /*
279 Dynamic pointer casting. Down an inheritance hierarchy
280 */
281 SWIGRUNTIME swig_type_info *
282 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
283 swig_type_info *lastty = ty;
284 if (!ty || !ty->dcast) return ty;
285 while (ty && (ty->dcast)) {
286 ty = (*ty->dcast)(ptr);
287 if (ty) lastty = ty;
288 }
289 return lastty;
290 }
291
292 /*
293 Return the name associated with this type
294 */
295 SWIGRUNTIMEINLINE const char *
296 SWIG_TypeName(const swig_type_info *ty) {
297 return ty->name;
298 }
299
300 /*
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
303 */
304 SWIGRUNTIME const char *
305 SWIG_TypePrettyName(const swig_type_info *type) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
309 specific. */
310 if (type->str != NULL) {
311 const char *last_name = type->str;
312 const char *s;
313 for (s = type->str; *s; s++)
314 if (*s == '|') last_name = s+1;
315 return last_name;
316 }
317 else
318 return type->name;
319 }
320
321 /*
322 Set the clientdata field for a type
323 */
324 SWIGRUNTIME void
325 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
326 swig_cast_info *cast = ti->cast;
327 /* if (ti->clientdata == clientdata) return; */
328 ti->clientdata = clientdata;
329
330 while (cast) {
331 if (!cast->converter) {
332 swig_type_info *tc = cast->type;
333 if (!tc->clientdata) {
334 SWIG_TypeClientData(tc, clientdata);
335 }
336 }
337 cast = cast->next;
338 }
339 }
340
341 /*
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
344
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
347 the circular list.
348 */
349 SWIGRUNTIME swig_type_info *
350 SWIG_MangledTypeQueryModule(swig_module_info *start,
351 swig_module_info *end,
352 const char *name) {
353 swig_module_info *iter = start;
354 do {
355 if (iter->size) {
356 register size_t l = 0;
357 register size_t r = iter->size - 1;
358 do {
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i = (l + r) >> 1;
361 const char *iname = iter->types[i]->name;
362 if (iname) {
363 register int compare = strcmp(name, iname);
364 if (compare == 0) {
365 return iter->types[i];
366 } else if (compare < 0) {
367 if (i) {
368 r = i - 1;
369 } else {
370 break;
371 }
372 } else if (compare > 0) {
373 l = i + 1;
374 }
375 } else {
376 break; /* should never happen */
377 }
378 } while (l <= r);
379 }
380 iter = iter->next;
381 } while (iter != end);
382 return 0;
383 }
384
385 /*
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
389
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
392 the circular list.
393 */
394 SWIGRUNTIME swig_type_info *
395 SWIG_TypeQueryModule(swig_module_info *start,
396 swig_module_info *end,
397 const char *name) {
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
400 if (ret) {
401 return ret;
402 } else {
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info *iter = start;
406 do {
407 register size_t i = 0;
408 for (; i < iter->size; ++i) {
409 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
410 return iter->types[i];
411 }
412 iter = iter->next;
413 } while (iter != end);
414 }
415
416 /* neither found a match */
417 return 0;
418 }
419
420
421 /*
422 Pack binary data into a string
423 */
424 SWIGRUNTIME char *
425 SWIG_PackData(char *c, void *ptr, size_t sz) {
426 static const char hex[17] = "0123456789abcdef";
427 register const unsigned char *u = (unsigned char *) ptr;
428 register const unsigned char *eu = u + sz;
429 for (; u != eu; ++u) {
430 register unsigned char uu = *u;
431 *(c++) = hex[(uu & 0xf0) >> 4];
432 *(c++) = hex[uu & 0xf];
433 }
434 return c;
435 }
436
437 /*
438 Unpack binary data from a string
439 */
440 SWIGRUNTIME const char *
441 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
442 register unsigned char *u = (unsigned char *) ptr;
443 register const unsigned char *eu = u + sz;
444 for (; u != eu; ++u) {
445 register char d = *(c++);
446 register unsigned char uu = 0;
447 if ((d >= '0') && (d <= '9'))
448 uu = ((d - '0') << 4);
449 else if ((d >= 'a') && (d <= 'f'))
450 uu = ((d - ('a'-10)) << 4);
451 else
452 return (char *) 0;
453 d = *(c++);
454 if ((d >= '0') && (d <= '9'))
455 uu |= (d - '0');
456 else if ((d >= 'a') && (d <= 'f'))
457 uu |= (d - ('a'-10));
458 else
459 return (char *) 0;
460 *u = uu;
461 }
462 return c;
463 }
464
465 /*
466 Pack 'void *' into a string buffer.
467 */
468 SWIGRUNTIME char *
469 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
470 char *r = buff;
471 if ((2*sizeof(void *) + 2) > bsz) return 0;
472 *(r++) = '_';
473 r = SWIG_PackData(r,&ptr,sizeof(void *));
474 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
475 strcpy(r,name);
476 return buff;
477 }
478
479 SWIGRUNTIME const char *
480 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
481 if (*c != '_') {
482 if (strcmp(c,"NULL") == 0) {
483 *ptr = (void *) 0;
484 return name;
485 } else {
486 return 0;
487 }
488 }
489 return SWIG_UnpackData(++c,ptr,sizeof(void *));
490 }
491
492 SWIGRUNTIME char *
493 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
494 char *r = buff;
495 size_t lname = (name ? strlen(name) : 0);
496 if ((2*sz + 2 + lname) > bsz) return 0;
497 *(r++) = '_';
498 r = SWIG_PackData(r,ptr,sz);
499 if (lname) {
500 strncpy(r,name,lname+1);
501 } else {
502 *r = 0;
503 }
504 return buff;
505 }
506
507 SWIGRUNTIME const char *
508 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
509 if (*c != '_') {
510 if (strcmp(c,"NULL") == 0) {
511 memset(ptr,0,sz);
512 return name;
513 } else {
514 return 0;
515 }
516 }
517 return SWIG_UnpackData(++c,ptr,sz);
518 }
519
520 #ifdef __cplusplus
521 }
522 #endif
523
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
527
528 #ifdef __cplusplus
529 extern "C" {
530 #endif
531
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
535
536 #ifndef SWIGINTERN
537 # define SWIGINTERN static SWIGUNUSED
538 #endif
539
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
542 #endif
543
544 /*
545 Exception handling in wrappers
546 */
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
553
554 /*
555 Contract support
556 */
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
563
564 /* Constant Types */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
570
571 /* Constant information structure */
572 typedef struct swig_const_info {
573 int type;
574 char *name;
575 long lvalue;
576 double dvalue;
577 void *pvalue;
578 swig_type_info **ptype;
579 } swig_const_info;
580
581
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
588
589 #ifdef __cplusplus
590 }
591 #endif
592
593
594 /***********************************************************************
595 * pyrun.swg
596 *
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
599 * type checking.
600 *
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
603
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
608
609
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
613
614 /* Runtime API */
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
621 /*
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
624 not always safe.
625 */
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
628 #endif
629
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
633
634
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
638 #endif
639
640 #ifdef __cplusplus
641 extern "C" {
642 #endif
643
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
649 #endif
650
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
653 static PyObject *
654 PyString_FromFormat(const char *fmt, ...) {
655 va_list ap;
656 char buf[SWIG_BUFFER_SIZE * 2];
657 int res;
658 va_start(ap, fmt);
659 res = vsnprintf(buf, sizeof(buf), fmt, ap);
660 va_end(ap);
661 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
662 }
663 #endif
664
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
667 #endif
668
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
674
675 typedef struct {
676 PyObject_HEAD
677 void *ptr;
678 const char *desc;
679 } PySwigObject;
680
681 /* Declarations for objects of type PySwigObject */
682
683 SWIGRUNTIME int
684 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
685 {
686 char result[SWIG_BUFFER_SIZE];
687 flags = flags;
688 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
689 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
690 return 0;
691 } else {
692 return 1;
693 }
694 }
695
696 SWIGRUNTIME PyObject *
697 PySwigObject_repr(PySwigObject *v)
698 {
699 char result[SWIG_BUFFER_SIZE];
700 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
701 PyString_FromFormat("<Swig Object at %s>", result) : 0;
702 }
703
704 SWIGRUNTIME PyObject *
705 PySwigObject_str(PySwigObject *v)
706 {
707 char result[SWIG_BUFFER_SIZE];
708 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
709 PyString_FromString(result) : 0;
710 }
711
712 SWIGRUNTIME PyObject *
713 PySwigObject_long(PySwigObject *v)
714 {
715 return PyLong_FromVoidPtr(v->ptr);
716 }
717
718 SWIGRUNTIME PyObject *
719 PySwigObject_format(const char* fmt, PySwigObject *v)
720 {
721 PyObject *res = NULL;
722 PyObject *args = PyTuple_New(1);
723 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
724 PyObject *ofmt = PyString_FromString(fmt);
725 if (ofmt) {
726 res = PyString_Format(ofmt,args);
727 Py_DECREF(ofmt);
728 }
729 Py_DECREF(args);
730 }
731 return res;
732 }
733
734 SWIGRUNTIME PyObject *
735 PySwigObject_oct(PySwigObject *v)
736 {
737 return PySwigObject_format("%o",v);
738 }
739
740 SWIGRUNTIME PyObject *
741 PySwigObject_hex(PySwigObject *v)
742 {
743 return PySwigObject_format("%x",v);
744 }
745
746 SWIGRUNTIME int
747 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
748 {
749 int c = strcmp(v->desc, w->desc);
750 if (c) {
751 return (c > 0) ? 1 : -1;
752 } else {
753 void *i = v->ptr;
754 void *j = w->ptr;
755 return (i < j) ? -1 : ((i > j) ? 1 : 0);
756 }
757 }
758
759 SWIGRUNTIME void
760 PySwigObject_dealloc(PySwigObject *self)
761 {
762 PyObject_Del(self);
763 }
764
765 SWIGRUNTIME PyTypeObject*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__[] =
768 "Swig object carries a C/C++ instance pointer";
769
770 static PyNumberMethods PySwigObject_as_number = {
771 (binaryfunc)0, /*nb_add*/
772 (binaryfunc)0, /*nb_subtract*/
773 (binaryfunc)0, /*nb_multiply*/
774 (binaryfunc)0, /*nb_divide*/
775 (binaryfunc)0, /*nb_remainder*/
776 (binaryfunc)0, /*nb_divmod*/
777 (ternaryfunc)0,/*nb_power*/
778 (unaryfunc)0, /*nb_negative*/
779 (unaryfunc)0, /*nb_positive*/
780 (unaryfunc)0, /*nb_absolute*/
781 (inquiry)0, /*nb_nonzero*/
782 0, /*nb_invert*/
783 0, /*nb_lshift*/
784 0, /*nb_rshift*/
785 0, /*nb_and*/
786 0, /*nb_xor*/
787 0, /*nb_or*/
788 (coercion)0, /*nb_coerce*/
789 (unaryfunc)PySwigObject_long, /*nb_int*/
790 (unaryfunc)PySwigObject_long, /*nb_long*/
791 (unaryfunc)0, /*nb_float*/
792 (unaryfunc)PySwigObject_oct, /*nb_oct*/
793 (unaryfunc)PySwigObject_hex, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
798 #endif
799 };
800
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
803 ;
804 static int type_init = 0;
805 if (!type_init) {
806 PyTypeObject tmp
807 #endif
808 = {
809 PyObject_HEAD_INIT(&PyType_Type)
810 0, /*ob_size*/
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject), /*tp_basicsize*/
813 0, /*tp_itemsize*/
814 /* methods */
815 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
816 (printfunc)PySwigObject_print, /*tp_print*/
817 (getattrfunc)0, /*tp_getattr*/
818 (setattrfunc)0, /*tp_setattr*/
819 (cmpfunc)PySwigObject_compare, /*tp_compare*/
820 (reprfunc)PySwigObject_repr, /*tp_repr*/
821 &PySwigObject_as_number, /*tp_as_number*/
822 0, /*tp_as_sequence*/
823 0, /*tp_as_mapping*/
824 (hashfunc)0, /*tp_hash*/
825 (ternaryfunc)0, /*tp_call*/
826 (reprfunc)PySwigObject_str, /*tp_str*/
827 /* Space for future expansion */
828 0,0,0,0,
829 pyswigobject_type__doc__, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
831 0, /* tp_traverse */
832 0, /* tp_clear */
833 #endif
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
837 #endif
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #endif
841 #if PY_VERSION_HEX >= 0x02030000
842 0, /* tp_del */
843 #endif
844 #ifdef COUNT_ALLOCS
845 0,0,0,0 /* tp_alloc -> tp_next */
846 #endif
847 };
848 #if !defined(__cplusplus)
849 pyswigobject_type = tmp;
850 type_init = 1;
851 }
852 #endif
853 return &pyswigobject_type;
854 }
855
856 SWIGRUNTIME PyObject *
857 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
858 {
859 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
860 if (self) {
861 self->ptr = ptr;
862 self->desc = desc;
863 }
864 return (PyObject *)self;
865 }
866
867 SWIGRUNTIMEINLINE void *
868 PySwigObject_AsVoidPtr(PyObject *self)
869 {
870 return ((PySwigObject *)self)->ptr;
871 }
872
873 SWIGRUNTIMEINLINE const char *
874 PySwigObject_GetDesc(PyObject *self)
875 {
876 return ((PySwigObject *)self)->desc;
877 }
878
879 SWIGRUNTIMEINLINE int
880 PySwigObject_Check(PyObject *op) {
881 return ((op)->ob_type == PySwigObject_type())
882 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
883 }
884
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
888
889 typedef struct {
890 PyObject_HEAD
891 void *pack;
892 const char *desc;
893 size_t size;
894 } PySwigPacked;
895
896 SWIGRUNTIME int
897 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
898 {
899 char result[SWIG_BUFFER_SIZE];
900 flags = flags;
901 fputs("<Swig Packed ", fp);
902 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
903 fputs("at ", fp);
904 fputs(result, fp);
905 }
906 fputs(v->desc,fp);
907 fputs(">", fp);
908 return 0;
909 }
910
911 SWIGRUNTIME PyObject *
912 PySwigPacked_repr(PySwigPacked *v)
913 {
914 char result[SWIG_BUFFER_SIZE];
915 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
917 } else {
918 return PyString_FromFormat("<Swig Packed %s>", v->desc);
919 }
920 }
921
922 SWIGRUNTIME PyObject *
923 PySwigPacked_str(PySwigPacked *v)
924 {
925 char result[SWIG_BUFFER_SIZE];
926 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
927 return PyString_FromFormat("%s%s", result, v->desc);
928 } else {
929 return PyString_FromString(v->desc);
930 }
931 }
932
933 SWIGRUNTIME int
934 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
935 {
936 int c = strcmp(v->desc, w->desc);
937 if (c) {
938 return (c > 0) ? 1 : -1;
939 } else {
940 size_t i = v->size;
941 size_t j = w->size;
942 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
943 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
944 }
945 }
946
947 SWIGRUNTIME void
948 PySwigPacked_dealloc(PySwigPacked *self)
949 {
950 free(self->pack);
951 PyObject_Del(self);
952 }
953
954 SWIGRUNTIME PyTypeObject*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
960 ;
961 static int type_init = 0;
962 if (!type_init) {
963 PyTypeObject tmp
964 #endif
965 = {
966 PyObject_HEAD_INIT(&PyType_Type)
967 0, /*ob_size*/
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked), /*tp_basicsize*/
970 0, /*tp_itemsize*/
971 /* methods */
972 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
973 (printfunc)PySwigPacked_print, /*tp_print*/
974 (getattrfunc)0, /*tp_getattr*/
975 (setattrfunc)0, /*tp_setattr*/
976 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
977 (reprfunc)PySwigPacked_repr, /*tp_repr*/
978 0, /*tp_as_number*/
979 0, /*tp_as_sequence*/
980 0, /*tp_as_mapping*/
981 (hashfunc)0, /*tp_hash*/
982 (ternaryfunc)0, /*tp_call*/
983 (reprfunc)PySwigPacked_str, /*tp_str*/
984 /* Space for future expansion */
985 0,0,0,0,
986 pyswigpacked_type__doc__, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
988 0, /* tp_traverse */
989 0, /* tp_clear */
990 #endif
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
994 #endif
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #endif
998 #if PY_VERSION_HEX >= 0x02030000
999 0, /* tp_del */
1000 #endif
1001 #ifdef COUNT_ALLOCS
1002 0,0,0,0 /* tp_alloc -> tp_next */
1003 #endif
1004 };
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type = tmp;
1007 type_init = 1;
1008 }
1009 #endif
1010 return &pyswigpacked_type;
1011 }
1012
1013 SWIGRUNTIME PyObject *
1014 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1015 {
1016 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1017 if (self == NULL) {
1018 return NULL;
1019 } else {
1020 void *pack = malloc(size);
1021 if (pack) {
1022 memcpy(pack, ptr, size);
1023 self->pack = pack;
1024 self->desc = desc;
1025 self->size = size;
1026 return (PyObject *) self;
1027 }
1028 return NULL;
1029 }
1030 }
1031
1032 SWIGRUNTIMEINLINE const char *
1033 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1034 {
1035 PySwigPacked *self = (PySwigPacked *)obj;
1036 if (self->size != size) return 0;
1037 memcpy(ptr, self->pack, size);
1038 return self->desc;
1039 }
1040
1041 SWIGRUNTIMEINLINE const char *
1042 PySwigPacked_GetDesc(PyObject *self)
1043 {
1044 return ((PySwigPacked *)self)->desc;
1045 }
1046
1047 SWIGRUNTIMEINLINE int
1048 PySwigPacked_Check(PyObject *op) {
1049 return ((op)->ob_type == PySwigPacked_type())
1050 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1051 }
1052
1053 #else
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1057
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1062
1063 #endif
1064
1065 #endif
1066
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1070
1071 SWIGRUNTIME void
1072 SWIG_Python_TypeError(const char *type, PyObject *obj)
1073 {
1074 if (type) {
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj && PySwigObject_Check(obj)) {
1077 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1078 if (otype) {
1079 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1080 type, otype);
1081 return;
1082 }
1083 } else
1084 #endif
1085 {
1086 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1087 if (otype) {
1088 PyObject *str = PyObject_Str(obj);
1089 const char *cstr = str ? PyString_AsString(str) : 0;
1090 if (cstr) {
1091 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1092 type, otype, cstr);
1093 } else {
1094 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1095 type, otype);
1096 }
1097 Py_XDECREF(str);
1098 return;
1099 }
1100 }
1101 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1102 } else {
1103 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1104 }
1105 }
1106
1107 SWIGRUNTIMEINLINE void
1108 SWIG_Python_NullRef(const char *type)
1109 {
1110 if (type) {
1111 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1112 } else {
1113 PyErr_Format(PyExc_TypeError, "null reference was received");
1114 }
1115 }
1116
1117 SWIGRUNTIME int
1118 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1119 {
1120 if (PyErr_Occurred()) {
1121 PyObject *type = 0;
1122 PyObject *value = 0;
1123 PyObject *traceback = 0;
1124 PyErr_Fetch(&type, &value, &traceback);
1125 if (value) {
1126 PyObject *old_str = PyObject_Str(value);
1127 Py_XINCREF(type);
1128 PyErr_Clear();
1129 if (infront) {
1130 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1131 } else {
1132 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1133 }
1134 Py_DECREF(old_str);
1135 }
1136 return 1;
1137 } else {
1138 return 0;
1139 }
1140 }
1141
1142 SWIGRUNTIME int
1143 SWIG_Python_ArgFail(int argnum)
1144 {
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1147 char mesg[256];
1148 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1149 return SWIG_Python_AddErrMesg(mesg, 1);
1150 } else {
1151 return 0;
1152 }
1153 }
1154
1155
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1159
1160 /* Convert a pointer value */
1161 SWIGRUNTIME int
1162 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1163 swig_cast_info *tc;
1164 const char *c = 0;
1165 static PyObject *SWIG_this = 0;
1166 int newref = 0;
1167 PyObject *pyobj = 0;
1168 void *vptr;
1169
1170 if (!obj) return 0;
1171 if (obj == Py_None) {
1172 *ptr = 0;
1173 return 0;
1174 }
1175
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj))) {
1178 if (!SWIG_this)
1179 SWIG_this = PyString_FromString("this");
1180 pyobj = obj;
1181 obj = PyObject_GetAttr(obj,SWIG_this);
1182 newref = 1;
1183 if (!obj) goto type_error;
1184 if (!PySwigObject_Check(obj)) {
1185 Py_DECREF(obj);
1186 goto type_error;
1187 }
1188 }
1189 vptr = PySwigObject_AsVoidPtr(obj);
1190 c = (const char *) PySwigObject_GetDesc(obj);
1191 if (newref) { Py_DECREF(obj); }
1192 goto type_check;
1193 #else
1194 if (!(PyString_Check(obj))) {
1195 if (!SWIG_this)
1196 SWIG_this = PyString_FromString("this");
1197 pyobj = obj;
1198 obj = PyObject_GetAttr(obj,SWIG_this);
1199 newref = 1;
1200 if (!obj) goto type_error;
1201 if (!PyString_Check(obj)) {
1202 Py_DECREF(obj);
1203 goto type_error;
1204 }
1205 }
1206 c = PyString_AsString(obj);
1207 /* Pointer values must start with leading underscore */
1208 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1209 if (newref) { Py_DECREF(obj); }
1210 if (!c) goto type_error;
1211 #endif
1212
1213 type_check:
1214 if (ty) {
1215 tc = SWIG_TypeCheck(c,ty);
1216 if (!tc) goto type_error;
1217 *ptr = SWIG_TypeCast(tc,vptr);
1218 } else {
1219 *ptr = vptr;
1220 }
1221 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1222 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1223 }
1224 return 0;
1225
1226 type_error:
1227 PyErr_Clear();
1228 if (pyobj && !obj) {
1229 obj = pyobj;
1230 if (PyCFunction_Check(obj)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1233 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1234 if (c) {
1235 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1236 if (!c) goto type_error;
1237 goto type_check;
1238 }
1239 }
1240 }
1241 if (flags & SWIG_POINTER_EXCEPTION) {
1242 if (ty) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1244 } else {
1245 SWIG_Python_TypeError("C/C++ pointer", obj);
1246 }
1247 }
1248 return -1;
1249 }
1250
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIGRUNTIME void *
1253 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1254 void *result;
1255 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1256 PyErr_Clear();
1257 if (flags & SWIG_POINTER_EXCEPTION) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1259 SWIG_Python_ArgFail(argnum);
1260 }
1261 }
1262 return result;
1263 }
1264
1265 /* Convert a packed value value */
1266 SWIGRUNTIME int
1267 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1268 swig_cast_info *tc;
1269 const char *c = 0;
1270
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c = PySwigPacked_UnpackData(obj, ptr, sz);
1273 #else
1274 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1275 c = PyString_AsString(obj);
1276 /* Pointer values must start with leading underscore */
1277 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1278 #endif
1279 if (!c) goto type_error;
1280 if (ty) {
1281 tc = SWIG_TypeCheck(c,ty);
1282 if (!tc) goto type_error;
1283 }
1284 return 0;
1285
1286 type_error:
1287 PyErr_Clear();
1288 if (flags & SWIG_POINTER_EXCEPTION) {
1289 if (ty) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1291 } else {
1292 SWIG_Python_TypeError("C/C++ packed data", obj);
1293 }
1294 }
1295 return -1;
1296 }
1297
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject *
1300 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1301 PyObject *robj = 0;
1302 if (!type) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1305 }
1306 return robj;
1307 }
1308 if (!ptr) {
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311 }
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1314 #else
1315 {
1316 char result[SWIG_BUFFER_SIZE];
1317 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1318 PyString_FromString(result) : 0;
1319 }
1320 #endif
1321 if (!robj || (robj == Py_None)) return robj;
1322 if (type->clientdata) {
1323 PyObject *inst;
1324 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1325 Py_DECREF(robj);
1326 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1327 Py_DECREF(args);
1328 if (inst) {
1329 if (own) {
1330 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1331 }
1332 robj = inst;
1333 }
1334 }
1335 return robj;
1336 }
1337
1338 SWIGRUNTIME PyObject *
1339 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1340 PyObject *robj = 0;
1341 if (!ptr) {
1342 Py_INCREF(Py_None);
1343 return Py_None;
1344 }
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1347 #else
1348 {
1349 char result[SWIG_BUFFER_SIZE];
1350 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1351 PyString_FromString(result) : 0;
1352 }
1353 #endif
1354 return robj;
1355 }
1356
1357 /* -----------------------------------------------------------------------------*
1358 * Get type list
1359 * -----------------------------------------------------------------------------*/
1360
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1363 #endif
1364
1365 SWIGRUNTIME swig_module_info *
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer = (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1372 #else
1373 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1375 if (PyErr_Occurred()) {
1376 PyErr_Clear();
1377 type_pointer = (void *)0;
1378 }
1379 #endif
1380 }
1381 return (swig_module_info *) type_pointer;
1382 }
1383
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 SWIGINTERN int
1388 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1389 {
1390 PyObject *dict;
1391 if (!PyModule_Check(m)) {
1392 PyErr_SetString(PyExc_TypeError,
1393 "PyModule_AddObject() needs module as first arg");
1394 return -1;
1395 }
1396 if (!o) {
1397 PyErr_SetString(PyExc_TypeError,
1398 "PyModule_AddObject() needs non-NULL value");
1399 return -1;
1400 }
1401
1402 dict = PyModule_GetDict(m);
1403 if (dict == NULL) {
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1406 PyModule_GetName(m));
1407 return -1;
1408 }
1409 if (PyDict_SetItemString(dict, name, o))
1410 return -1;
1411 Py_DECREF(o);
1412 return 0;
1413 }
1414 #endif
1415
1416 SWIGRUNTIME void
1417 SWIG_Python_SetModule(swig_module_info *swig_module) {
1418 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1419
1420 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1421 swig_empty_runtime_method_table);
1422 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1423 if (pointer && module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1425 }
1426 }
1427
1428 #ifdef __cplusplus
1429 }
1430 #endif
1431
1432
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1434
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_double swig_types[1]
1437 #define SWIGTYPE_p_form_ops_t swig_types[2]
1438 #define SWIGTYPE_p_int swig_types[3]
1439 #define SWIGTYPE_p_unsigned_char swig_types[4]
1440 #define SWIGTYPE_p_unsigned_int swig_types[5]
1441 #define SWIGTYPE_p_unsigned_long swig_types[6]
1442 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1443 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1444 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1445 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
1446 #define SWIGTYPE_p_wxBitmap swig_types[11]
1447 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
1448 #define SWIGTYPE_p_wxBrush swig_types[13]
1449 #define SWIGTYPE_p_wxBrushList swig_types[14]
1450 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
1451 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
1452 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1453 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
1454 #define SWIGTYPE_p_wxClientDC swig_types[19]
1455 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
1456 #define SWIGTYPE_p_wxColour swig_types[21]
1457 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
1458 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
1459 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
1460 #define SWIGTYPE_p_wxControl swig_types[25]
1461 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
1462 #define SWIGTYPE_p_wxCursor swig_types[27]
1463 #define SWIGTYPE_p_wxDC swig_types[28]
1464 #define SWIGTYPE_p_wxDash swig_types[29]
1465 #define SWIGTYPE_p_wxDateEvent swig_types[30]
1466 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
1467 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
1468 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
1469 #define SWIGTYPE_p_wxEffects swig_types[34]
1470 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
1471 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
1472 #define SWIGTYPE_p_wxEvent swig_types[37]
1473 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
1474 #define SWIGTYPE_p_wxFSFile swig_types[39]
1475 #define SWIGTYPE_p_wxFileSystem swig_types[40]
1476 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
1477 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
1478 #define SWIGTYPE_p_wxFont swig_types[43]
1479 #define SWIGTYPE_p_wxFontList swig_types[44]
1480 #define SWIGTYPE_p_wxFontMapper swig_types[45]
1481 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
1482 #define SWIGTYPE_p_wxGDIObject swig_types[47]
1483 #define SWIGTYPE_p_wxGIFHandler swig_types[48]
1484 #define SWIGTYPE_p_wxGridBagSizer swig_types[49]
1485 #define SWIGTYPE_p_wxGridSizer swig_types[50]
1486 #define SWIGTYPE_p_wxICOHandler swig_types[51]
1487 #define SWIGTYPE_p_wxIcon swig_types[52]
1488 #define SWIGTYPE_p_wxIconBundle swig_types[53]
1489 #define SWIGTYPE_p_wxIconLocation swig_types[54]
1490 #define SWIGTYPE_p_wxIconizeEvent swig_types[55]
1491 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
1492 #define SWIGTYPE_p_wxImage swig_types[57]
1493 #define SWIGTYPE_p_wxImageHandler swig_types[58]
1494 #define SWIGTYPE_p_wxImageList swig_types[59]
1495 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60]
1496 #define SWIGTYPE_p_wxInitDialogEvent swig_types[61]
1497 #define SWIGTYPE_p_wxJPEGHandler swig_types[62]
1498 #define SWIGTYPE_p_wxKeyEvent swig_types[63]
1499 #define SWIGTYPE_p_wxLanguageInfo swig_types[64]
1500 #define SWIGTYPE_p_wxLayoutConstraints swig_types[65]
1501 #define SWIGTYPE_p_wxLocale swig_types[66]
1502 #define SWIGTYPE_p_wxMask swig_types[67]
1503 #define SWIGTYPE_p_wxMaximizeEvent swig_types[68]
1504 #define SWIGTYPE_p_wxMemoryDC swig_types[69]
1505 #define SWIGTYPE_p_wxMenu swig_types[70]
1506 #define SWIGTYPE_p_wxMenuBar swig_types[71]
1507 #define SWIGTYPE_p_wxMenuEvent swig_types[72]
1508 #define SWIGTYPE_p_wxMenuItem swig_types[73]
1509 #define SWIGTYPE_p_wxMetaFile swig_types[74]
1510 #define SWIGTYPE_p_wxMetaFileDC swig_types[75]
1511 #define SWIGTYPE_p_wxMirrorDC swig_types[76]
1512 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
1513 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
1514 #define SWIGTYPE_p_wxMoveEvent swig_types[79]
1515 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80]
1516 #define SWIGTYPE_p_wxNativeFontInfo swig_types[81]
1517 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
1518 #define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
1519 #define SWIGTYPE_p_wxNotifyEvent swig_types[84]
1520 #define SWIGTYPE_p_wxObject swig_types[85]
1521 #define SWIGTYPE_p_wxPCXHandler swig_types[86]
1522 #define SWIGTYPE_p_wxPNGHandler swig_types[87]
1523 #define SWIGTYPE_p_wxPNMHandler swig_types[88]
1524 #define SWIGTYPE_p_wxPaintDC swig_types[89]
1525 #define SWIGTYPE_p_wxPaintEvent swig_types[90]
1526 #define SWIGTYPE_p_wxPalette swig_types[91]
1527 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92]
1528 #define SWIGTYPE_p_wxPaperSize swig_types[93]
1529 #define SWIGTYPE_p_wxPen swig_types[94]
1530 #define SWIGTYPE_p_wxPenList swig_types[95]
1531 #define SWIGTYPE_p_wxPoint swig_types[96]
1532 #define SWIGTYPE_p_wxPostScriptDC swig_types[97]
1533 #define SWIGTYPE_p_wxPrintData swig_types[98]
1534 #define SWIGTYPE_p_wxPrinterDC swig_types[99]
1535 #define SWIGTYPE_p_wxPyApp swig_types[100]
1536 #define SWIGTYPE_p_wxPyCommandEvent swig_types[101]
1537 #define SWIGTYPE_p_wxPyEvent swig_types[102]
1538 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103]
1539 #define SWIGTYPE_p_wxPyImageHandler swig_types[104]
1540 #define SWIGTYPE_p_wxPySizer swig_types[105]
1541 #define SWIGTYPE_p_wxPyValidator swig_types[106]
1542 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
1543 #define SWIGTYPE_p_wxRect swig_types[108]
1544 #define SWIGTYPE_p_wxRegion swig_types[109]
1545 #define SWIGTYPE_p_wxRegionIterator swig_types[110]
1546 #define SWIGTYPE_p_wxRendererNative swig_types[111]
1547 #define SWIGTYPE_p_wxRendererVersion swig_types[112]
1548 #define SWIGTYPE_p_wxScreenDC swig_types[113]
1549 #define SWIGTYPE_p_wxScrollEvent swig_types[114]
1550 #define SWIGTYPE_p_wxScrollWinEvent swig_types[115]
1551 #define SWIGTYPE_p_wxSetCursorEvent swig_types[116]
1552 #define SWIGTYPE_p_wxShowEvent swig_types[117]
1553 #define SWIGTYPE_p_wxSize swig_types[118]
1554 #define SWIGTYPE_p_wxSizeEvent swig_types[119]
1555 #define SWIGTYPE_p_wxSizer swig_types[120]
1556 #define SWIGTYPE_p_wxSizerItem swig_types[121]
1557 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122]
1558 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123]
1559 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124]
1560 #define SWIGTYPE_p_wxString swig_types[125]
1561 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126]
1562 #define SWIGTYPE_p_wxTIFFHandler swig_types[127]
1563 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
1564 #define SWIGTYPE_p_wxValidator swig_types[129]
1565 #define SWIGTYPE_p_wxWindow swig_types[130]
1566 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
1567 #define SWIGTYPE_p_wxWindowDC swig_types[132]
1568 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
1569 #define SWIGTYPE_p_wxXPMHandler swig_types[134]
1570 #define SWIGTYPE_ptrdiff_t swig_types[135]
1571 #define SWIGTYPE_std__ptrdiff_t swig_types[136]
1572 #define SWIGTYPE_unsigned_int swig_types[137]
1573 static swig_type_info *swig_types[139];
1574 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
1575 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1576 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1577
1578 /* -------- TYPES TABLE (END) -------- */
1579
1580
1581 /*-----------------------------------------------
1582 @(target):= _gdi_.so
1583 ------------------------------------------------*/
1584 #define SWIG_init init_gdi_
1585
1586 #define SWIG_name "_gdi_"
1587
1588 #include "wx/wxPython/wxPython.h"
1589 #include "wx/wxPython/pyclasses.h"
1590
1591
1592 static const wxString wxPyEmptyString(wxEmptyString);
1593
1594 #include <limits.h>
1595
1596
1597 SWIGINTERN int
1598 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1599 const char *errmsg)
1600 {
1601 if (value < min_value) {
1602 if (errmsg) {
1603 PyErr_Format(PyExc_OverflowError,
1604 "value %ld is less than '%s' minimum %ld",
1605 value, errmsg, min_value);
1606 }
1607 return 0;
1608 } else if (value > max_value) {
1609 if (errmsg) {
1610 PyErr_Format(PyExc_OverflowError,
1611 "value %ld is greater than '%s' maximum %ld",
1612 value, errmsg, max_value);
1613 }
1614 return 0;
1615 }
1616 return 1;
1617 }
1618
1619
1620 SWIGINTERN int
1621 SWIG_AsVal_long(PyObject* obj, long* val)
1622 {
1623 if (PyNumber_Check(obj)) {
1624 if (val) *val = PyInt_AsLong(obj);
1625 return 1;
1626 }
1627 else {
1628 SWIG_Python_TypeError("number", obj);
1629 }
1630 return 0;
1631 }
1632
1633
1634 #if INT_MAX != LONG_MAX
1635 SWIGINTERN int
1636 SWIG_AsVal_int(PyObject *obj, int *val)
1637 {
1638 const char* errmsg = val ? "int" : (char*)0;
1639 long v;
1640 if (SWIG_AsVal_long(obj, &v)) {
1641 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1642 if (val) *val = static_cast<int >(v);
1643 return 1;
1644 } else {
1645 return 0;
1646 }
1647 } else {
1648 PyErr_Clear();
1649 }
1650 if (val) {
1651 SWIG_type_error(errmsg, obj);
1652 }
1653 return 0;
1654 }
1655 #else
1656 SWIGINTERNINLINE int
1657 SWIG_AsVal_int(PyObject *obj, int *val)
1658 {
1659 return SWIG_AsVal_long(obj,(long*)val);
1660 }
1661 #endif
1662
1663
1664 SWIGINTERN int
1665 SWIG_AsVal_bool(PyObject *obj, bool *val)
1666 {
1667 if (obj == Py_True) {
1668 if (val) *val = true;
1669 return 1;
1670 }
1671 if (obj == Py_False) {
1672 if (val) *val = false;
1673 return 1;
1674 }
1675 int res = 0;
1676 if (SWIG_AsVal_int(obj, &res)) {
1677 if (val) *val = res ? true : false;
1678 return 1;
1679 } else {
1680 PyErr_Clear();
1681 }
1682 if (val) {
1683 SWIG_type_error("bool", obj);
1684 }
1685 return 0;
1686 }
1687
1688
1689 SWIGINTERNINLINE bool
1690 SWIG_As_bool(PyObject* obj)
1691 {
1692 bool v;
1693 if (!SWIG_AsVal_bool(obj, &v)) {
1694 /*
1695 this is needed to make valgrind/purify happier.
1696 */
1697 memset((void*)&v, 0, sizeof(bool));
1698 }
1699 return v;
1700 }
1701
1702
1703 SWIGINTERNINLINE int
1704 SWIG_Check_bool(PyObject* obj)
1705 {
1706 return SWIG_AsVal_bool(obj, (bool*)0);
1707 }
1708
1709
1710 SWIGINTERN int
1711 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1712 {
1713 long v = 0;
1714 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1715 SWIG_Python_TypeError("unsigned number", obj);
1716 }
1717 else if (val)
1718 *val = (unsigned long)v;
1719 return 1;
1720 }
1721
1722
1723 SWIGINTERNINLINE int
1724 SWIG_CheckUnsignedLongInRange(unsigned long value,
1725 unsigned long max_value,
1726 const char *errmsg)
1727 {
1728 if (value > max_value) {
1729 if (errmsg) {
1730 PyErr_Format(PyExc_OverflowError,
1731 "value %lu is greater than '%s' minimum %lu",
1732 value, errmsg, max_value);
1733 }
1734 return 0;
1735 }
1736 return 1;
1737 }
1738
1739
1740 SWIGINTERN int
1741 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1742 {
1743 const char* errmsg = val ? "unsigned char" : (char*)0;
1744 unsigned long v;
1745 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1746 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1747 if (val) *val = static_cast<unsigned char >(v);
1748 return 1;
1749 } else {
1750 return 0;
1751 }
1752 } else {
1753 PyErr_Clear();
1754 }
1755 if (val) {
1756 SWIG_type_error(errmsg, obj);
1757 }
1758 return 0;
1759 }
1760
1761
1762 SWIGINTERNINLINE unsigned char
1763 SWIG_As_unsigned_SS_char(PyObject* obj)
1764 {
1765 unsigned char v;
1766 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1767 /*
1768 this is needed to make valgrind/purify happier.
1769 */
1770 memset((void*)&v, 0, sizeof(unsigned char));
1771 }
1772 return v;
1773 }
1774
1775
1776 SWIGINTERNINLINE int
1777 SWIG_Check_unsigned_SS_char(PyObject* obj)
1778 {
1779 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1780 }
1781
1782
1783 SWIGINTERNINLINE unsigned long
1784 SWIG_As_unsigned_SS_long(PyObject* obj)
1785 {
1786 unsigned long v;
1787 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1788 /*
1789 this is needed to make valgrind/purify happier.
1790 */
1791 memset((void*)&v, 0, sizeof(unsigned long));
1792 }
1793 return v;
1794 }
1795
1796
1797 SWIGINTERNINLINE int
1798 SWIG_Check_unsigned_SS_long(PyObject* obj)
1799 {
1800 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1801 }
1802
1803
1804 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1805 #define SWIG_From_unsigned_SS_char PyInt_FromLong
1806 /*@@*/
1807
1808
1809 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1810 #define SWIG_From_long PyInt_FromLong
1811 /*@@*/
1812
1813 static PyObject *wxColour_Get(wxColour *self){
1814 PyObject* rv = PyTuple_New(3);
1815 int red = -1;
1816 int green = -1;
1817 int blue = -1;
1818 if (self->Ok()) {
1819 red = self->Red();
1820 green = self->Green();
1821 blue = self->Blue();
1822 }
1823 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
1824 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
1825 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
1826 return rv;
1827 }
1828 static unsigned long wxColour_GetRGB(wxColour *self){
1829 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
1830 }
1831
1832 SWIGINTERNINLINE PyObject*
1833 SWIG_From_unsigned_SS_long(unsigned long value)
1834 {
1835 return (value > LONG_MAX) ?
1836 PyLong_FromUnsignedLong(value)
1837 : PyInt_FromLong(static_cast<long >(value));
1838 }
1839
1840
1841 SWIGINTERNINLINE int
1842 SWIG_As_int(PyObject* obj)
1843 {
1844 int v;
1845 if (!SWIG_AsVal_int(obj, &v)) {
1846 /*
1847 this is needed to make valgrind/purify happier.
1848 */
1849 memset((void*)&v, 0, sizeof(int));
1850 }
1851 return v;
1852 }
1853
1854
1855 SWIGINTERNINLINE int
1856 SWIG_Check_int(PyObject* obj)
1857 {
1858 return SWIG_AsVal_int(obj, (int*)0);
1859 }
1860
1861
1862 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1863 #define SWIG_From_int PyInt_FromLong
1864 /*@@*/
1865
1866
1867 static PyObject* t_output_helper(PyObject* result, PyObject* obj)
1868 {
1869 PyObject* o2;
1870 PyObject* o3;
1871 if (!result) {
1872 result = obj;
1873 } else if (result == Py_None) {
1874 Py_DECREF(result);
1875 result = obj;
1876 } else {
1877 if (!PyTuple_Check(result)) {
1878 o2 = result;
1879 result = PyTuple_New(1);
1880 PyTuple_SET_ITEM(result, 0, o2);
1881 }
1882 o3 = PyTuple_New(1);
1883 PyTuple_SetItem(o3, 0, obj);
1884 o2 = result;
1885 result = PySequence_Concat(o2, o3);
1886 Py_DECREF(o2);
1887 Py_DECREF(o3);
1888 }
1889 return result;
1890 }
1891
1892
1893 static PyObject *wxPen_GetDashes(wxPen *self){
1894 wxDash* dashes;
1895 int count = self->GetDashes(&dashes);
1896 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1897 PyObject* retval = PyList_New(0);
1898 for (int x=0; x<count; x++) {
1899 PyObject* pyint = PyInt_FromLong(dashes[x]);
1900 PyList_Append(retval, pyint);
1901 Py_DECREF(pyint);
1902 }
1903 wxPyEndBlockThreads(blocked);
1904 return retval;
1905 }
1906 static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
1907 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1908 int size = PyList_Size(pyDashes);
1909 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
1910
1911 // black magic warning! The array of wxDashes needs to exist as
1912 // long as the pen does because wxPen does not copy the array. So
1913 // stick a copy in a Python string object and attach it to _self,
1914 // and then call SetDashes with a pointer to that array. Then
1915 // when the Python pen object is destroyed the array will be
1916 // cleaned up too.
1917 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
1918 PyObject_SetAttrString(_self, "_dashes", strDashes);
1919
1920 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
1921 delete [] dashes;
1922 Py_DECREF(strDashes);
1923 wxPyEndBlockThreads(blocked);
1924 }
1925 static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
1926 static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
1927
1928 #include <wx/image.h>
1929
1930 static char** ConvertListOfStrings(PyObject* listOfStrings) {
1931 char** cArray = NULL;
1932 int count;
1933
1934 if (!PyList_Check(listOfStrings)) {
1935 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
1936 return NULL;
1937 }
1938 count = PyList_Size(listOfStrings);
1939 cArray = new char*[count];
1940
1941 for(int x=0; x<count; x++) {
1942 // TODO: Need some validation and error checking here
1943 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
1944 }
1945 return cArray;
1946 }
1947
1948
1949 static wxBitmap *new_wxBitmap(PyObject *listOfStrings){
1950 char** cArray = NULL;
1951 wxBitmap* bmp;
1952
1953 cArray = ConvertListOfStrings(listOfStrings);
1954 if (! cArray)
1955 return NULL;
1956 bmp = new wxBitmap(cArray);
1957 delete [] cArray;
1958 return bmp;
1959 }
1960 static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
1961 char* buf;
1962 int length;
1963 PyString_AsStringAndSize(bits, &buf, &length);
1964 return new wxBitmap(buf, width, height, depth);
1965 }
1966 static wxSize wxBitmap_GetSize(wxBitmap *self){
1967 wxSize size(self->GetWidth(), self->GetHeight());
1968 return size;
1969 }
1970 static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
1971 wxMask *mask = new wxMask(*self, colour);
1972 self->SetMask(mask);
1973 }
1974 static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
1975 self->SetWidth(size.x);
1976 self->SetHeight(size.y);
1977 }
1978 static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
1979 static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
1980 static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
1981 if ( !colour.Ok() )
1982 return new wxMask(bitmap, *wxBLACK);
1983 else
1984 return new wxMask(bitmap, colour);
1985 }
1986
1987 #include <wx/iconbndl.h>
1988
1989 static wxIcon *new_wxIcon(wxBitmap const &bmp){
1990 wxIcon* icon = new wxIcon();
1991 icon->CopyFromBitmap(bmp);
1992 return icon;
1993 }
1994 static wxIcon *new_wxIcon(PyObject *listOfStrings){
1995 char** cArray = NULL;
1996 wxIcon* icon;
1997
1998 cArray = ConvertListOfStrings(listOfStrings);
1999 if (! cArray)
2000 return NULL;
2001 icon = new wxIcon(cArray);
2002 delete [] cArray;
2003 return icon;
2004 }
2005 static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2006
2007
2008
2009 return new wxIconLocation(*filename);
2010
2011 }
2012 static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2013
2014
2015
2016 // do nothing
2017
2018 }
2019 static int wxIconLocation_GetIndex(wxIconLocation *self){
2020
2021
2022
2023 return -1;
2024
2025 }
2026
2027 SWIGINTERNINLINE long
2028 SWIG_As_long(PyObject* obj)
2029 {
2030 long v;
2031 if (!SWIG_AsVal_long(obj, &v)) {
2032 /*
2033 this is needed to make valgrind/purify happier.
2034 */
2035 memset((void*)&v, 0, sizeof(long));
2036 }
2037 return v;
2038 }
2039
2040
2041 SWIGINTERNINLINE int
2042 SWIG_Check_long(PyObject* obj)
2043 {
2044 return SWIG_AsVal_long(obj, (long*)0);
2045 }
2046
2047 static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2048 #ifdef __WXGTK__
2049 wxImage img(cursorName, type);
2050 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2051 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2052 return new wxCursor(img);
2053 #else
2054 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2055 #endif
2056 }
2057
2058
2059 static void wxRegionIterator_Next(wxRegionIterator *self){
2060 (*self) ++;
2061 }
2062 static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2063 return self->operator bool();
2064 }
2065
2066 #include <wx/fontutil.h>
2067 #include <wx/fontmap.h>
2068 #include <wx/fontenum.h>
2069
2070 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
2071 return self->ToString();
2072 }
2073
2074 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
2075 static wxNativeEncodingInfo info;
2076 if ( wxGetNativeFontEncoding(encoding, &info) )
2077 return &info;
2078 else
2079 return NULL;
2080 }
2081
2082 static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
2083 wxFontEncoding alt_enc;
2084 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2085 return PyInt_FromLong(alt_enc);
2086 else {
2087 Py_INCREF(Py_None);
2088 return Py_None;
2089 }
2090 }
2091 static wxFont *new_wxFont(wxString const &info){
2092 wxNativeFontInfo nfi;
2093 nfi.FromString(info);
2094 return new wxFont(nfi);
2095 }
2096 static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2097 return wxFont::New(pointSize, family, flags, face, encoding);
2098 }
2099 static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2100 return wxFontBase::New(pixelSize, family,
2101 style, weight, underlined,
2102 face, encoding);
2103 }
2104 static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2105 return wxFontBase::New(pixelSize, family, flags, face, encoding);
2106 }
2107 static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
2108 static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
2109
2110 class wxPyFontEnumerator : public wxFontEnumerator {
2111 public:
2112 wxPyFontEnumerator() {}
2113 ~wxPyFontEnumerator() {}
2114
2115 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
2116 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
2117
2118 PYPRIVATE;
2119 };
2120
2121 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
2122 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
2123
2124
2125 static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
2126 wxArrayString* arr = self->GetEncodings();
2127 if (arr)
2128 return wxArrayString2PyList_helper(*arr);
2129 else
2130 return PyList_New(0);
2131 }
2132 static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
2133 wxArrayString* arr = self->GetFacenames();
2134 if (arr)
2135 return wxArrayString2PyList_helper(*arr);
2136 else
2137 return PyList_New(0);
2138 }
2139
2140 #include <locale.h>
2141
2142 static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2143 wxLocale* loc;
2144 if (language == -1)
2145 loc = new wxLocale();
2146 else
2147 loc = new wxLocale(language, flags);
2148 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2149 // for the floating point conversions and such to work right.
2150 #if PY_VERSION_HEX < 0x02040000
2151 setlocale(LC_NUMERIC, "C");
2152 #endif
2153 return loc;
2154 }
2155 static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
2156 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
2157 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2158 // for the floating point conversions and such to work right.
2159 #if PY_VERSION_HEX < 0x02040000
2160 setlocale(LC_NUMERIC, "C");
2161 #endif
2162 return rc;
2163 }
2164 static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2165 bool rc = self->Init(language, flags);
2166 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2167 // for the floating point conversions and such to work right.
2168 #if PY_VERSION_HEX < 0x02040000
2169 setlocale(LC_NUMERIC, "C");
2170 #endif
2171 return rc;
2172 }
2173
2174 #include "wx/wxPython/pydrawxxx.h"
2175
2176 static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2177 wxColour col;
2178 self->GetPixel(x, y, &col);
2179 return col;
2180 }
2181 static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2182 wxColour col;
2183 self->GetPixel(pt, &col);
2184 return col;
2185 }
2186
2187 SWIGINTERN int
2188 SWIG_AsVal_double(PyObject *obj, double* val)
2189 {
2190 if (PyNumber_Check(obj)) {
2191 if (val) *val = PyFloat_AsDouble(obj);
2192 return 1;
2193 }
2194 else {
2195 SWIG_Python_TypeError("number", obj);
2196 }
2197 return 0;
2198 }
2199
2200
2201 SWIGINTERNINLINE double
2202 SWIG_As_double(PyObject* obj)
2203 {
2204 double v;
2205 if (!SWIG_AsVal_double(obj, &v)) {
2206 /*
2207 this is needed to make valgrind/purify happier.
2208 */
2209 memset((void*)&v, 0, sizeof(double));
2210 }
2211 return v;
2212 }
2213
2214
2215 SWIGINTERNINLINE int
2216 SWIG_Check_double(PyObject* obj)
2217 {
2218 return SWIG_AsVal_double(obj, (double*)0);
2219 }
2220
2221 static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2222 wxRect rv;
2223 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2224 return rv;
2225 }
2226
2227 static wxRect wxDC_GetClippingRect(wxDC *self){
2228 wxRect rect;
2229 self->GetClippingBox(rect);
2230 return rect;
2231 }
2232 static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2233 wxArrayInt widths;
2234 self->GetPartialTextExtents(text, widths);
2235 return widths;
2236 }
2237
2238 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2239 #define SWIG_From_double PyFloat_FromDouble
2240 /*@@*/
2241
2242
2243 static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2244 self->SetLogicalOrigin(point.x, point.y);
2245 }
2246 static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2247 self->SetDeviceOrigin(point.x, point.y);
2248 }
2249 static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2250 self->CalcBoundingBox(point.x, point.y);
2251 }
2252 static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2253 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2254 }
2255 static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2256 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2257 }
2258 static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2259 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2260 }
2261 static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2262 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2263 }
2264 static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2265 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2266 }
2267 static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2268 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2269 }
2270
2271 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2272 *x1 = dc->MinX();
2273 *y1 = dc->MinY();
2274 *x2 = dc->MaxX();
2275 *y2 = dc->MaxY();
2276 }
2277
2278
2279 #include <wx/dcbuffer.h>
2280
2281
2282 #include <wx/dcps.h>
2283
2284
2285 class wxMetaFile : public wxObject {
2286 public:
2287 wxMetaFile(const wxString&)
2288 { wxPyRaiseNotImplemented(); }
2289 };
2290
2291 class wxMetaFileDC : public wxClientDC {
2292 public:
2293 wxMetaFileDC(const wxString&, int, int, const wxString&)
2294 { wxPyRaiseNotImplemented(); }
2295 };
2296
2297
2298
2299 class wxPrinterDC : public wxClientDC {
2300 public:
2301 wxPrinterDC(const wxPrintData&)
2302 { wxPyRaiseNotImplemented(); }
2303
2304 };
2305
2306
2307
2308 static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2309 self->AddColour(name, wxColour(red, green, blue));
2310 }
2311
2312 #include <wx/effects.h>
2313
2314
2315 #include "wx/renderer.h"
2316
2317
2318 SWIGINTERNINLINE PyObject*
2319 SWIG_From_bool(bool value)
2320 {
2321 PyObject *obj = value ? Py_True : Py_False;
2322 Py_INCREF(obj);
2323 return obj;
2324 }
2325
2326 #ifdef __cplusplus
2327 extern "C" {
2328 #endif
2329 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2330 PyObject *resultobj = NULL;
2331 wxGDIObject *result;
2332 char *kwnames[] = {
2333 NULL
2334 };
2335
2336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
2337 {
2338 if (!wxPyCheckForApp()) SWIG_fail;
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 result = (wxGDIObject *)new wxGDIObject();
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj = NULL;
2354 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2355 PyObject * obj0 = 0 ;
2356 char *kwnames[] = {
2357 (char *) "self", NULL
2358 };
2359
2360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2362 if (SWIG_arg_fail(1)) SWIG_fail;
2363 {
2364 PyThreadState* __tstate = wxPyBeginAllowThreads();
2365 delete arg1;
2366
2367 wxPyEndAllowThreads(__tstate);
2368 if (PyErr_Occurred()) SWIG_fail;
2369 }
2370 Py_INCREF(Py_None); resultobj = Py_None;
2371 return resultobj;
2372 fail:
2373 return NULL;
2374 }
2375
2376
2377 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2378 PyObject *resultobj = NULL;
2379 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2380 bool result;
2381 PyObject * obj0 = 0 ;
2382 char *kwnames[] = {
2383 (char *) "self", NULL
2384 };
2385
2386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2387 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2388 if (SWIG_arg_fail(1)) SWIG_fail;
2389 {
2390 PyThreadState* __tstate = wxPyBeginAllowThreads();
2391 result = (bool)(arg1)->GetVisible();
2392
2393 wxPyEndAllowThreads(__tstate);
2394 if (PyErr_Occurred()) SWIG_fail;
2395 }
2396 {
2397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2398 }
2399 return resultobj;
2400 fail:
2401 return NULL;
2402 }
2403
2404
2405 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2406 PyObject *resultobj = NULL;
2407 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2408 bool arg2 ;
2409 PyObject * obj0 = 0 ;
2410 PyObject * obj1 = 0 ;
2411 char *kwnames[] = {
2412 (char *) "self",(char *) "visible", NULL
2413 };
2414
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2417 if (SWIG_arg_fail(1)) SWIG_fail;
2418 {
2419 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
2420 if (SWIG_arg_fail(2)) SWIG_fail;
2421 }
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 (arg1)->SetVisible(arg2);
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) SWIG_fail;
2428 }
2429 Py_INCREF(Py_None); resultobj = Py_None;
2430 return resultobj;
2431 fail:
2432 return NULL;
2433 }
2434
2435
2436 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
2437 PyObject *resultobj = NULL;
2438 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2439 bool result;
2440 PyObject * obj0 = 0 ;
2441 char *kwnames[] = {
2442 (char *) "self", NULL
2443 };
2444
2445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2447 if (SWIG_arg_fail(1)) SWIG_fail;
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 result = (bool)(arg1)->IsNull();
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) SWIG_fail;
2454 }
2455 {
2456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2457 }
2458 return resultobj;
2459 fail:
2460 return NULL;
2461 }
2462
2463
2464 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
2465 PyObject *obj;
2466 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2467 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
2468 Py_INCREF(obj);
2469 return Py_BuildValue((char *)"");
2470 }
2471 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2472 PyObject *resultobj = NULL;
2473 byte arg1 = (byte) 0 ;
2474 byte arg2 = (byte) 0 ;
2475 byte arg3 = (byte) 0 ;
2476 wxColour *result;
2477 PyObject * obj0 = 0 ;
2478 PyObject * obj1 = 0 ;
2479 PyObject * obj2 = 0 ;
2480 char *kwnames[] = {
2481 (char *) "red",(char *) "green",(char *) "blue", NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2485 if (obj0) {
2486 {
2487 arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0));
2488 if (SWIG_arg_fail(1)) SWIG_fail;
2489 }
2490 }
2491 if (obj1) {
2492 {
2493 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2494 if (SWIG_arg_fail(2)) SWIG_fail;
2495 }
2496 }
2497 if (obj2) {
2498 {
2499 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2500 if (SWIG_arg_fail(3)) SWIG_fail;
2501 }
2502 }
2503 {
2504 PyThreadState* __tstate = wxPyBeginAllowThreads();
2505 result = (wxColour *)new wxColour(arg1,arg2,arg3);
2506
2507 wxPyEndAllowThreads(__tstate);
2508 if (PyErr_Occurred()) SWIG_fail;
2509 }
2510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2511 return resultobj;
2512 fail:
2513 return NULL;
2514 }
2515
2516
2517 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
2518 PyObject *resultobj = NULL;
2519 wxString *arg1 = 0 ;
2520 wxColour *result;
2521 bool temp1 = false ;
2522 PyObject * obj0 = 0 ;
2523 char *kwnames[] = {
2524 (char *) "colorName", NULL
2525 };
2526
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2528 {
2529 arg1 = wxString_in_helper(obj0);
2530 if (arg1 == NULL) SWIG_fail;
2531 temp1 = true;
2532 }
2533 {
2534 if (!wxPyCheckForApp()) SWIG_fail;
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 result = (wxColour *)new wxColour((wxString const &)*arg1);
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 }
2541 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2542 {
2543 if (temp1)
2544 delete arg1;
2545 }
2546 return resultobj;
2547 fail:
2548 {
2549 if (temp1)
2550 delete arg1;
2551 }
2552 return NULL;
2553 }
2554
2555
2556 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2557 PyObject *resultobj = NULL;
2558 unsigned long arg1 ;
2559 wxColour *result;
2560 PyObject * obj0 = 0 ;
2561 char *kwnames[] = {
2562 (char *) "colRGB", NULL
2563 };
2564
2565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2566 {
2567 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
2568 if (SWIG_arg_fail(1)) SWIG_fail;
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 result = (wxColour *)new wxColour(arg1);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2578 return resultobj;
2579 fail:
2580 return NULL;
2581 }
2582
2583
2584 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj = NULL;
2586 wxColour *arg1 = (wxColour *) 0 ;
2587 PyObject * obj0 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "self", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2594 if (SWIG_arg_fail(1)) SWIG_fail;
2595 {
2596 PyThreadState* __tstate = wxPyBeginAllowThreads();
2597 delete arg1;
2598
2599 wxPyEndAllowThreads(__tstate);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 Py_INCREF(Py_None); resultobj = Py_None;
2603 return resultobj;
2604 fail:
2605 return NULL;
2606 }
2607
2608
2609 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
2610 PyObject *resultobj = NULL;
2611 wxColour *arg1 = (wxColour *) 0 ;
2612 byte result;
2613 PyObject * obj0 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "self", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2619 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2620 if (SWIG_arg_fail(1)) SWIG_fail;
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 result = (byte)(arg1)->Red();
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 {
2629 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2630 }
2631 return resultobj;
2632 fail:
2633 return NULL;
2634 }
2635
2636
2637 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
2638 PyObject *resultobj = NULL;
2639 wxColour *arg1 = (wxColour *) 0 ;
2640 byte result;
2641 PyObject * obj0 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "self", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2647 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2648 if (SWIG_arg_fail(1)) SWIG_fail;
2649 {
2650 PyThreadState* __tstate = wxPyBeginAllowThreads();
2651 result = (byte)(arg1)->Green();
2652
2653 wxPyEndAllowThreads(__tstate);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 {
2657 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2658 }
2659 return resultobj;
2660 fail:
2661 return NULL;
2662 }
2663
2664
2665 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
2666 PyObject *resultobj = NULL;
2667 wxColour *arg1 = (wxColour *) 0 ;
2668 byte result;
2669 PyObject * obj0 = 0 ;
2670 char *kwnames[] = {
2671 (char *) "self", NULL
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2675 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2676 if (SWIG_arg_fail(1)) SWIG_fail;
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = (byte)(arg1)->Blue();
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 {
2685 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2686 }
2687 return resultobj;
2688 fail:
2689 return NULL;
2690 }
2691
2692
2693 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2694 PyObject *resultobj = NULL;
2695 wxColour *arg1 = (wxColour *) 0 ;
2696 bool result;
2697 PyObject * obj0 = 0 ;
2698 char *kwnames[] = {
2699 (char *) "self", NULL
2700 };
2701
2702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2704 if (SWIG_arg_fail(1)) SWIG_fail;
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 result = (bool)(arg1)->Ok();
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) SWIG_fail;
2711 }
2712 {
2713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2714 }
2715 return resultobj;
2716 fail:
2717 return NULL;
2718 }
2719
2720
2721 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj = NULL;
2723 wxColour *arg1 = (wxColour *) 0 ;
2724 byte arg2 ;
2725 byte arg3 ;
2726 byte arg4 ;
2727 PyObject * obj0 = 0 ;
2728 PyObject * obj1 = 0 ;
2729 PyObject * obj2 = 0 ;
2730 PyObject * obj3 = 0 ;
2731 char *kwnames[] = {
2732 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
2733 };
2734
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2737 if (SWIG_arg_fail(1)) SWIG_fail;
2738 {
2739 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2740 if (SWIG_arg_fail(2)) SWIG_fail;
2741 }
2742 {
2743 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2744 if (SWIG_arg_fail(3)) SWIG_fail;
2745 }
2746 {
2747 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
2748 if (SWIG_arg_fail(4)) SWIG_fail;
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 (arg1)->Set(arg2,arg3,arg4);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 Py_INCREF(Py_None); resultobj = Py_None;
2758 return resultobj;
2759 fail:
2760 return NULL;
2761 }
2762
2763
2764 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2765 PyObject *resultobj = NULL;
2766 wxColour *arg1 = (wxColour *) 0 ;
2767 unsigned long arg2 ;
2768 PyObject * obj0 = 0 ;
2769 PyObject * obj1 = 0 ;
2770 char *kwnames[] = {
2771 (char *) "self",(char *) "colRGB", NULL
2772 };
2773
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2775 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2776 if (SWIG_arg_fail(1)) SWIG_fail;
2777 {
2778 arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1));
2779 if (SWIG_arg_fail(2)) SWIG_fail;
2780 }
2781 {
2782 PyThreadState* __tstate = wxPyBeginAllowThreads();
2783 (arg1)->Set(arg2);
2784
2785 wxPyEndAllowThreads(__tstate);
2786 if (PyErr_Occurred()) SWIG_fail;
2787 }
2788 Py_INCREF(Py_None); resultobj = Py_None;
2789 return resultobj;
2790 fail:
2791 return NULL;
2792 }
2793
2794
2795 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
2796 PyObject *resultobj = NULL;
2797 wxColour *arg1 = (wxColour *) 0 ;
2798 wxString *arg2 = 0 ;
2799 bool temp2 = false ;
2800 PyObject * obj0 = 0 ;
2801 PyObject * obj1 = 0 ;
2802 char *kwnames[] = {
2803 (char *) "self",(char *) "colourName", NULL
2804 };
2805
2806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2808 if (SWIG_arg_fail(1)) SWIG_fail;
2809 {
2810 arg2 = wxString_in_helper(obj1);
2811 if (arg2 == NULL) SWIG_fail;
2812 temp2 = true;
2813 }
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 (arg1)->InitFromName((wxString const &)*arg2);
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 Py_INCREF(Py_None); resultobj = Py_None;
2822 {
2823 if (temp2)
2824 delete arg2;
2825 }
2826 return resultobj;
2827 fail:
2828 {
2829 if (temp2)
2830 delete arg2;
2831 }
2832 return NULL;
2833 }
2834
2835
2836 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
2837 PyObject *resultobj = NULL;
2838 wxColour *arg1 = (wxColour *) 0 ;
2839 long result;
2840 PyObject * obj0 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "self", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2847 if (SWIG_arg_fail(1)) SWIG_fail;
2848 {
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 result = (long)((wxColour const *)arg1)->GetPixel();
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 {
2856 resultobj = SWIG_From_long(static_cast<long >(result));
2857 }
2858 return resultobj;
2859 fail:
2860 return NULL;
2861 }
2862
2863
2864 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2865 PyObject *resultobj = NULL;
2866 wxColour *arg1 = (wxColour *) 0 ;
2867 wxColour *arg2 = 0 ;
2868 bool result;
2869 wxColour temp2 ;
2870 PyObject * obj0 = 0 ;
2871 PyObject * obj1 = 0 ;
2872 char *kwnames[] = {
2873 (char *) "self",(char *) "colour", NULL
2874 };
2875
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2877 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2878 if (SWIG_arg_fail(1)) SWIG_fail;
2879 {
2880 arg2 = &temp2;
2881 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2882 }
2883 {
2884 PyThreadState* __tstate = wxPyBeginAllowThreads();
2885 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
2886
2887 wxPyEndAllowThreads(__tstate);
2888 if (PyErr_Occurred()) SWIG_fail;
2889 }
2890 {
2891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2892 }
2893 return resultobj;
2894 fail:
2895 return NULL;
2896 }
2897
2898
2899 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2900 PyObject *resultobj = NULL;
2901 wxColour *arg1 = (wxColour *) 0 ;
2902 wxColour *arg2 = 0 ;
2903 bool result;
2904 wxColour temp2 ;
2905 PyObject * obj0 = 0 ;
2906 PyObject * obj1 = 0 ;
2907 char *kwnames[] = {
2908 (char *) "self",(char *) "colour", NULL
2909 };
2910
2911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2913 if (SWIG_arg_fail(1)) SWIG_fail;
2914 {
2915 arg2 = &temp2;
2916 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2917 }
2918 {
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 }
2925 {
2926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2927 }
2928 return resultobj;
2929 fail:
2930 return NULL;
2931 }
2932
2933
2934 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
2935 PyObject *resultobj = NULL;
2936 wxColour *arg1 = (wxColour *) 0 ;
2937 PyObject *result;
2938 PyObject * obj0 = 0 ;
2939 char *kwnames[] = {
2940 (char *) "self", NULL
2941 };
2942
2943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2945 if (SWIG_arg_fail(1)) SWIG_fail;
2946 {
2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
2948 result = (PyObject *)wxColour_Get(arg1);
2949
2950 wxPyEndAllowThreads(__tstate);
2951 if (PyErr_Occurred()) SWIG_fail;
2952 }
2953 resultobj = result;
2954 return resultobj;
2955 fail:
2956 return NULL;
2957 }
2958
2959
2960 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2961 PyObject *resultobj = NULL;
2962 wxColour *arg1 = (wxColour *) 0 ;
2963 unsigned long result;
2964 PyObject * obj0 = 0 ;
2965 char *kwnames[] = {
2966 (char *) "self", NULL
2967 };
2968
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2970 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2971 if (SWIG_arg_fail(1)) SWIG_fail;
2972 {
2973 PyThreadState* __tstate = wxPyBeginAllowThreads();
2974 result = (unsigned long)wxColour_GetRGB(arg1);
2975
2976 wxPyEndAllowThreads(__tstate);
2977 if (PyErr_Occurred()) SWIG_fail;
2978 }
2979 {
2980 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
2981 }
2982 return resultobj;
2983 fail:
2984 return NULL;
2985 }
2986
2987
2988 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
2989 PyObject *obj;
2990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2991 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
2992 Py_INCREF(obj);
2993 return Py_BuildValue((char *)"");
2994 }
2995 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj = NULL;
2997 int arg1 ;
2998 unsigned char *arg2 = (unsigned char *) 0 ;
2999 unsigned char *arg3 = (unsigned char *) 0 ;
3000 unsigned char *arg4 = (unsigned char *) 0 ;
3001 wxPalette *result;
3002 PyObject * obj0 = 0 ;
3003 PyObject * obj1 = 0 ;
3004 PyObject * obj2 = 0 ;
3005 PyObject * obj3 = 0 ;
3006 char *kwnames[] = {
3007 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3008 };
3009
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3011 {
3012 arg1 = static_cast<int >(SWIG_As_int(obj0));
3013 if (SWIG_arg_fail(1)) SWIG_fail;
3014 }
3015 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3016 if (SWIG_arg_fail(2)) SWIG_fail;
3017 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3018 if (SWIG_arg_fail(3)) SWIG_fail;
3019 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3020 if (SWIG_arg_fail(4)) SWIG_fail;
3021 {
3022 if (!wxPyCheckForApp()) SWIG_fail;
3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
3024 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3025
3026 wxPyEndAllowThreads(__tstate);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
3030 return resultobj;
3031 fail:
3032 return NULL;
3033 }
3034
3035
3036 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
3037 PyObject *resultobj = NULL;
3038 wxPalette *arg1 = (wxPalette *) 0 ;
3039 PyObject * obj0 = 0 ;
3040 char *kwnames[] = {
3041 (char *) "self", NULL
3042 };
3043
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
3045 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3046 if (SWIG_arg_fail(1)) SWIG_fail;
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 delete arg1;
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 Py_INCREF(Py_None); resultobj = Py_None;
3055 return resultobj;
3056 fail:
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj = NULL;
3063 wxPalette *arg1 = (wxPalette *) 0 ;
3064 byte arg2 ;
3065 byte arg3 ;
3066 byte arg4 ;
3067 int result;
3068 PyObject * obj0 = 0 ;
3069 PyObject * obj1 = 0 ;
3070 PyObject * obj2 = 0 ;
3071 PyObject * obj3 = 0 ;
3072 char *kwnames[] = {
3073 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3074 };
3075
3076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3078 if (SWIG_arg_fail(1)) SWIG_fail;
3079 {
3080 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
3081 if (SWIG_arg_fail(2)) SWIG_fail;
3082 }
3083 {
3084 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
3085 if (SWIG_arg_fail(3)) SWIG_fail;
3086 }
3087 {
3088 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
3089 if (SWIG_arg_fail(4)) SWIG_fail;
3090 }
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) SWIG_fail;
3097 }
3098 {
3099 resultobj = SWIG_From_int(static_cast<int >(result));
3100 }
3101 return resultobj;
3102 fail:
3103 return NULL;
3104 }
3105
3106
3107 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
3108 PyObject *resultobj = NULL;
3109 wxPalette *arg1 = (wxPalette *) 0 ;
3110 int arg2 ;
3111 byte *arg3 = (byte *) 0 ;
3112 byte *arg4 = (byte *) 0 ;
3113 byte *arg5 = (byte *) 0 ;
3114 bool result;
3115 byte temp3 ;
3116 int res3 = 0 ;
3117 byte temp4 ;
3118 int res4 = 0 ;
3119 byte temp5 ;
3120 int res5 = 0 ;
3121 PyObject * obj0 = 0 ;
3122 PyObject * obj1 = 0 ;
3123 char *kwnames[] = {
3124 (char *) "self",(char *) "pixel", NULL
3125 };
3126
3127 arg3 = &temp3; res3 = SWIG_NEWOBJ;
3128 arg4 = &temp4; res4 = SWIG_NEWOBJ;
3129 arg5 = &temp5; res5 = SWIG_NEWOBJ;
3130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
3131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3132 if (SWIG_arg_fail(1)) SWIG_fail;
3133 {
3134 arg2 = static_cast<int >(SWIG_As_int(obj1));
3135 if (SWIG_arg_fail(2)) SWIG_fail;
3136 }
3137 {
3138 PyThreadState* __tstate = wxPyBeginAllowThreads();
3139 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
3140
3141 wxPyEndAllowThreads(__tstate);
3142 if (PyErr_Occurred()) SWIG_fail;
3143 }
3144 {
3145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3146 }
3147 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
3148 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
3149 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
3150 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
3151 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
3152 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj = NULL;
3161 wxPalette *arg1 = (wxPalette *) 0 ;
3162 int result;
3163 PyObject * obj0 = 0 ;
3164 char *kwnames[] = {
3165 (char *) "self", NULL
3166 };
3167
3168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
3169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3170 if (SWIG_arg_fail(1)) SWIG_fail;
3171 {
3172 PyThreadState* __tstate = wxPyBeginAllowThreads();
3173 result = (int)((wxPalette const *)arg1)->GetColoursCount();
3174
3175 wxPyEndAllowThreads(__tstate);
3176 if (PyErr_Occurred()) SWIG_fail;
3177 }
3178 {
3179 resultobj = SWIG_From_int(static_cast<int >(result));
3180 }
3181 return resultobj;
3182 fail:
3183 return NULL;
3184 }
3185
3186
3187 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3188 PyObject *resultobj = NULL;
3189 wxPalette *arg1 = (wxPalette *) 0 ;
3190 bool result;
3191 PyObject * obj0 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "self", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3197 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3198 if (SWIG_arg_fail(1)) SWIG_fail;
3199 {
3200 PyThreadState* __tstate = wxPyBeginAllowThreads();
3201 result = (bool)(arg1)->Ok();
3202
3203 wxPyEndAllowThreads(__tstate);
3204 if (PyErr_Occurred()) SWIG_fail;
3205 }
3206 {
3207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3208 }
3209 return resultobj;
3210 fail:
3211 return NULL;
3212 }
3213
3214
3215 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
3216 PyObject *obj;
3217 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3218 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
3219 Py_INCREF(obj);
3220 return Py_BuildValue((char *)"");
3221 }
3222 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3223 PyObject *resultobj = NULL;
3224 wxColour *arg1 = 0 ;
3225 int arg2 = (int) 1 ;
3226 int arg3 = (int) wxSOLID ;
3227 wxPen *result;
3228 wxColour temp1 ;
3229 PyObject * obj0 = 0 ;
3230 PyObject * obj1 = 0 ;
3231 PyObject * obj2 = 0 ;
3232 char *kwnames[] = {
3233 (char *) "colour",(char *) "width",(char *) "style", NULL
3234 };
3235
3236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
3237 {
3238 arg1 = &temp1;
3239 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3240 }
3241 if (obj1) {
3242 {
3243 arg2 = static_cast<int >(SWIG_As_int(obj1));
3244 if (SWIG_arg_fail(2)) SWIG_fail;
3245 }
3246 }
3247 if (obj2) {
3248 {
3249 arg3 = static_cast<int >(SWIG_As_int(obj2));
3250 if (SWIG_arg_fail(3)) SWIG_fail;
3251 }
3252 }
3253 {
3254 if (!wxPyCheckForApp()) SWIG_fail;
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
3257
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
3262 return resultobj;
3263 fail:
3264 return NULL;
3265 }
3266
3267
3268 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3269 PyObject *resultobj = NULL;
3270 wxPen *arg1 = (wxPen *) 0 ;
3271 PyObject * obj0 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "self", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3278 if (SWIG_arg_fail(1)) SWIG_fail;
3279 {
3280 PyThreadState* __tstate = wxPyBeginAllowThreads();
3281 delete arg1;
3282
3283 wxPyEndAllowThreads(__tstate);
3284 if (PyErr_Occurred()) SWIG_fail;
3285 }
3286 Py_INCREF(Py_None); resultobj = Py_None;
3287 return resultobj;
3288 fail:
3289 return NULL;
3290 }
3291
3292
3293 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3294 PyObject *resultobj = NULL;
3295 wxPen *arg1 = (wxPen *) 0 ;
3296 int result;
3297 PyObject * obj0 = 0 ;
3298 char *kwnames[] = {
3299 (char *) "self", NULL
3300 };
3301
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3304 if (SWIG_arg_fail(1)) SWIG_fail;
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (int)(arg1)->GetCap();
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 {
3313 resultobj = SWIG_From_int(static_cast<int >(result));
3314 }
3315 return resultobj;
3316 fail:
3317 return NULL;
3318 }
3319
3320
3321 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3322 PyObject *resultobj = NULL;
3323 wxPen *arg1 = (wxPen *) 0 ;
3324 wxColour result;
3325 PyObject * obj0 = 0 ;
3326 char *kwnames[] = {
3327 (char *) "self", NULL
3328 };
3329
3330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3331 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3332 if (SWIG_arg_fail(1)) SWIG_fail;
3333 {
3334 PyThreadState* __tstate = wxPyBeginAllowThreads();
3335 result = (arg1)->GetColour();
3336
3337 wxPyEndAllowThreads(__tstate);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 }
3340 {
3341 wxColour * resultptr;
3342 resultptr = new wxColour(static_cast<wxColour & >(result));
3343 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3344 }
3345 return resultobj;
3346 fail:
3347 return NULL;
3348 }
3349
3350
3351 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3352 PyObject *resultobj = NULL;
3353 wxPen *arg1 = (wxPen *) 0 ;
3354 int result;
3355 PyObject * obj0 = 0 ;
3356 char *kwnames[] = {
3357 (char *) "self", NULL
3358 };
3359
3360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3362 if (SWIG_arg_fail(1)) SWIG_fail;
3363 {
3364 PyThreadState* __tstate = wxPyBeginAllowThreads();
3365 result = (int)(arg1)->GetJoin();
3366
3367 wxPyEndAllowThreads(__tstate);
3368 if (PyErr_Occurred()) SWIG_fail;
3369 }
3370 {
3371 resultobj = SWIG_From_int(static_cast<int >(result));
3372 }
3373 return resultobj;
3374 fail:
3375 return NULL;
3376 }
3377
3378
3379 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3380 PyObject *resultobj = NULL;
3381 wxPen *arg1 = (wxPen *) 0 ;
3382 int result;
3383 PyObject * obj0 = 0 ;
3384 char *kwnames[] = {
3385 (char *) "self", NULL
3386 };
3387
3388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3390 if (SWIG_arg_fail(1)) SWIG_fail;
3391 {
3392 PyThreadState* __tstate = wxPyBeginAllowThreads();
3393 result = (int)(arg1)->GetStyle();
3394
3395 wxPyEndAllowThreads(__tstate);
3396 if (PyErr_Occurred()) SWIG_fail;
3397 }
3398 {
3399 resultobj = SWIG_From_int(static_cast<int >(result));
3400 }
3401 return resultobj;
3402 fail:
3403 return NULL;
3404 }
3405
3406
3407 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3408 PyObject *resultobj = NULL;
3409 wxPen *arg1 = (wxPen *) 0 ;
3410 int result;
3411 PyObject * obj0 = 0 ;
3412 char *kwnames[] = {
3413 (char *) "self", NULL
3414 };
3415
3416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3418 if (SWIG_arg_fail(1)) SWIG_fail;
3419 {
3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
3421 result = (int)(arg1)->GetWidth();
3422
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) SWIG_fail;
3425 }
3426 {
3427 resultobj = SWIG_From_int(static_cast<int >(result));
3428 }
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3436 PyObject *resultobj = NULL;
3437 wxPen *arg1 = (wxPen *) 0 ;
3438 bool result;
3439 PyObject * obj0 = 0 ;
3440 char *kwnames[] = {
3441 (char *) "self", NULL
3442 };
3443
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3446 if (SWIG_arg_fail(1)) SWIG_fail;
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 result = (bool)(arg1)->Ok();
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) SWIG_fail;
3453 }
3454 {
3455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3456 }
3457 return resultobj;
3458 fail:
3459 return NULL;
3460 }
3461
3462
3463 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3464 PyObject *resultobj = NULL;
3465 wxPen *arg1 = (wxPen *) 0 ;
3466 int arg2 ;
3467 PyObject * obj0 = 0 ;
3468 PyObject * obj1 = 0 ;
3469 char *kwnames[] = {
3470 (char *) "self",(char *) "cap_style", NULL
3471 };
3472
3473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3474 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3475 if (SWIG_arg_fail(1)) SWIG_fail;
3476 {
3477 arg2 = static_cast<int >(SWIG_As_int(obj1));
3478 if (SWIG_arg_fail(2)) SWIG_fail;
3479 }
3480 {
3481 PyThreadState* __tstate = wxPyBeginAllowThreads();
3482 (arg1)->SetCap(arg2);
3483
3484 wxPyEndAllowThreads(__tstate);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 Py_INCREF(Py_None); resultobj = Py_None;
3488 return resultobj;
3489 fail:
3490 return NULL;
3491 }
3492
3493
3494 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3495 PyObject *resultobj = NULL;
3496 wxPen *arg1 = (wxPen *) 0 ;
3497 wxColour *arg2 = 0 ;
3498 wxColour temp2 ;
3499 PyObject * obj0 = 0 ;
3500 PyObject * obj1 = 0 ;
3501 char *kwnames[] = {
3502 (char *) "self",(char *) "colour", NULL
3503 };
3504
3505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3506 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3507 if (SWIG_arg_fail(1)) SWIG_fail;
3508 {
3509 arg2 = &temp2;
3510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3511 }
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 (arg1)->SetColour(*arg2);
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 Py_INCREF(Py_None); resultobj = Py_None;
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj = NULL;
3528 wxPen *arg1 = (wxPen *) 0 ;
3529 int arg2 ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self",(char *) "join_style", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3538 if (SWIG_arg_fail(1)) SWIG_fail;
3539 {
3540 arg2 = static_cast<int >(SWIG_As_int(obj1));
3541 if (SWIG_arg_fail(2)) SWIG_fail;
3542 }
3543 {
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 (arg1)->SetJoin(arg2);
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
3550 Py_INCREF(Py_None); resultobj = Py_None;
3551 return resultobj;
3552 fail:
3553 return NULL;
3554 }
3555
3556
3557 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3558 PyObject *resultobj = NULL;
3559 wxPen *arg1 = (wxPen *) 0 ;
3560 int arg2 ;
3561 PyObject * obj0 = 0 ;
3562 PyObject * obj1 = 0 ;
3563 char *kwnames[] = {
3564 (char *) "self",(char *) "style", NULL
3565 };
3566
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3569 if (SWIG_arg_fail(1)) SWIG_fail;
3570 {
3571 arg2 = static_cast<int >(SWIG_As_int(obj1));
3572 if (SWIG_arg_fail(2)) SWIG_fail;
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 (arg1)->SetStyle(arg2);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 Py_INCREF(Py_None); resultobj = Py_None;
3582 return resultobj;
3583 fail:
3584 return NULL;
3585 }
3586
3587
3588 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3589 PyObject *resultobj = NULL;
3590 wxPen *arg1 = (wxPen *) 0 ;
3591 int arg2 ;
3592 PyObject * obj0 = 0 ;
3593 PyObject * obj1 = 0 ;
3594 char *kwnames[] = {
3595 (char *) "self",(char *) "width", NULL
3596 };
3597
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3600 if (SWIG_arg_fail(1)) SWIG_fail;
3601 {
3602 arg2 = static_cast<int >(SWIG_As_int(obj1));
3603 if (SWIG_arg_fail(2)) SWIG_fail;
3604 }
3605 {
3606 PyThreadState* __tstate = wxPyBeginAllowThreads();
3607 (arg1)->SetWidth(arg2);
3608
3609 wxPyEndAllowThreads(__tstate);
3610 if (PyErr_Occurred()) SWIG_fail;
3611 }
3612 Py_INCREF(Py_None); resultobj = Py_None;
3613 return resultobj;
3614 fail:
3615 return NULL;
3616 }
3617
3618
3619 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj = NULL;
3621 wxPen *arg1 = (wxPen *) 0 ;
3622 int arg2 ;
3623 wxDash *arg3 = (wxDash *) 0 ;
3624 PyObject * obj0 = 0 ;
3625 PyObject * obj1 = 0 ;
3626 char *kwnames[] = {
3627 (char *) "self",(char *) "dashes", NULL
3628 };
3629
3630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3632 if (SWIG_arg_fail(1)) SWIG_fail;
3633 {
3634 arg2 = PyList_Size(obj1);
3635 arg3 = (wxDash*)byte_LIST_helper(obj1);
3636 if (arg3 == NULL) SWIG_fail;
3637 }
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 (arg1)->SetDashes(arg2,arg3);
3641
3642 wxPyEndAllowThreads(__tstate);
3643 if (PyErr_Occurred()) SWIG_fail;
3644 }
3645 Py_INCREF(Py_None); resultobj = Py_None;
3646 {
3647 if (arg3) delete [] arg3;
3648 }
3649 return resultobj;
3650 fail:
3651 {
3652 if (arg3) delete [] arg3;
3653 }
3654 return NULL;
3655 }
3656
3657
3658 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3659 PyObject *resultobj = NULL;
3660 wxPen *arg1 = (wxPen *) 0 ;
3661 PyObject *result;
3662 PyObject * obj0 = 0 ;
3663 char *kwnames[] = {
3664 (char *) "self", NULL
3665 };
3666
3667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3668 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3669 if (SWIG_arg_fail(1)) SWIG_fail;
3670 {
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 result = (PyObject *)wxPen_GetDashes(arg1);
3673
3674 wxPyEndAllowThreads(__tstate);
3675 if (PyErr_Occurred()) SWIG_fail;
3676 }
3677 resultobj = result;
3678 return resultobj;
3679 fail:
3680 return NULL;
3681 }
3682
3683
3684 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3685 PyObject *resultobj = NULL;
3686 wxPen *arg1 = (wxPen *) 0 ;
3687 PyObject *arg2 = (PyObject *) 0 ;
3688 PyObject *arg3 = (PyObject *) 0 ;
3689 PyObject * obj0 = 0 ;
3690 PyObject * obj1 = 0 ;
3691 PyObject * obj2 = 0 ;
3692 char *kwnames[] = {
3693 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
3694 };
3695
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3697 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3698 if (SWIG_arg_fail(1)) SWIG_fail;
3699 arg2 = obj1;
3700 arg3 = obj2;
3701 {
3702 PyThreadState* __tstate = wxPyBeginAllowThreads();
3703 wxPen__SetDashes(arg1,arg2,arg3);
3704
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 Py_INCREF(Py_None); resultobj = Py_None;
3709 return resultobj;
3710 fail:
3711 return NULL;
3712 }
3713
3714
3715 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
3716 PyObject *resultobj = NULL;
3717 wxPen *arg1 = (wxPen *) 0 ;
3718 int result;
3719 PyObject * obj0 = 0 ;
3720 char *kwnames[] = {
3721 (char *) "self", NULL
3722 };
3723
3724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
3725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3726 if (SWIG_arg_fail(1)) SWIG_fail;
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (int)((wxPen const *)arg1)->GetDashCount();
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 {
3735 resultobj = SWIG_From_int(static_cast<int >(result));
3736 }
3737 return resultobj;
3738 fail:
3739 return NULL;
3740 }
3741
3742
3743 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3744 PyObject *resultobj = NULL;
3745 wxPen *arg1 = (wxPen *) 0 ;
3746 wxPen *arg2 = (wxPen *) 0 ;
3747 bool result;
3748 PyObject * obj0 = 0 ;
3749 PyObject * obj1 = 0 ;
3750 char *kwnames[] = {
3751 (char *) "self",(char *) "other", NULL
3752 };
3753
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3755 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3756 if (SWIG_arg_fail(1)) SWIG_fail;
3757 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3758 if (SWIG_arg_fail(2)) SWIG_fail;
3759 {
3760 PyThreadState* __tstate = wxPyBeginAllowThreads();
3761 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
3762
3763 wxPyEndAllowThreads(__tstate);
3764 if (PyErr_Occurred()) SWIG_fail;
3765 }
3766 {
3767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3768 }
3769 return resultobj;
3770 fail:
3771 return NULL;
3772 }
3773
3774
3775 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3776 PyObject *resultobj = NULL;
3777 wxPen *arg1 = (wxPen *) 0 ;
3778 wxPen *arg2 = (wxPen *) 0 ;
3779 bool result;
3780 PyObject * obj0 = 0 ;
3781 PyObject * obj1 = 0 ;
3782 char *kwnames[] = {
3783 (char *) "self",(char *) "other", NULL
3784 };
3785
3786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3787 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3788 if (SWIG_arg_fail(1)) SWIG_fail;
3789 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3790 if (SWIG_arg_fail(2)) SWIG_fail;
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
3794
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 {
3799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3800 }
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3808 PyObject *obj;
3809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3810 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3811 Py_INCREF(obj);
3812 return Py_BuildValue((char *)"");
3813 }
3814 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3815 PyObject *resultobj = NULL;
3816 wxColour *arg1 = 0 ;
3817 int arg2 = (int) wxSOLID ;
3818 wxBrush *result;
3819 wxColour temp1 ;
3820 PyObject * obj0 = 0 ;
3821 PyObject * obj1 = 0 ;
3822 char *kwnames[] = {
3823 (char *) "colour",(char *) "style", NULL
3824 };
3825
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3827 {
3828 arg1 = &temp1;
3829 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3830 }
3831 if (obj1) {
3832 {
3833 arg2 = static_cast<int >(SWIG_As_int(obj1));
3834 if (SWIG_arg_fail(2)) SWIG_fail;
3835 }
3836 }
3837 {
3838 if (!wxPyCheckForApp()) SWIG_fail;
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
3841
3842 wxPyEndAllowThreads(__tstate);
3843 if (PyErr_Occurred()) SWIG_fail;
3844 }
3845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3846 return resultobj;
3847 fail:
3848 return NULL;
3849 }
3850
3851
3852 static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3853 PyObject *resultobj = NULL;
3854 wxBitmap *arg1 = 0 ;
3855 wxBrush *result;
3856 PyObject * obj0 = 0 ;
3857 char *kwnames[] = {
3858 (char *) "stippleBitmap", NULL
3859 };
3860
3861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3862 {
3863 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3864 if (SWIG_arg_fail(1)) SWIG_fail;
3865 if (arg1 == NULL) {
3866 SWIG_null_ref("wxBitmap");
3867 }
3868 if (SWIG_arg_fail(1)) SWIG_fail;
3869 }
3870 {
3871 if (!wxPyCheckForApp()) SWIG_fail;
3872 PyThreadState* __tstate = wxPyBeginAllowThreads();
3873 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3874
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3879 return resultobj;
3880 fail:
3881 return NULL;
3882 }
3883
3884
3885 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3886 PyObject *resultobj = NULL;
3887 wxBrush *arg1 = (wxBrush *) 0 ;
3888 PyObject * obj0 = 0 ;
3889 char *kwnames[] = {
3890 (char *) "self", NULL
3891 };
3892
3893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3895 if (SWIG_arg_fail(1)) SWIG_fail;
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 delete arg1;
3899
3900 wxPyEndAllowThreads(__tstate);
3901 if (PyErr_Occurred()) SWIG_fail;
3902 }
3903 Py_INCREF(Py_None); resultobj = Py_None;
3904 return resultobj;
3905 fail:
3906 return NULL;
3907 }
3908
3909
3910 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3911 PyObject *resultobj = NULL;
3912 wxBrush *arg1 = (wxBrush *) 0 ;
3913 wxColour *arg2 = 0 ;
3914 wxColour temp2 ;
3915 PyObject * obj0 = 0 ;
3916 PyObject * obj1 = 0 ;
3917 char *kwnames[] = {
3918 (char *) "self",(char *) "col", NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3923 if (SWIG_arg_fail(1)) SWIG_fail;
3924 {
3925 arg2 = &temp2;
3926 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3927 }
3928 {
3929 PyThreadState* __tstate = wxPyBeginAllowThreads();
3930 (arg1)->SetColour((wxColour const &)*arg2);
3931
3932 wxPyEndAllowThreads(__tstate);
3933 if (PyErr_Occurred()) SWIG_fail;
3934 }
3935 Py_INCREF(Py_None); resultobj = Py_None;
3936 return resultobj;
3937 fail:
3938 return NULL;
3939 }
3940
3941
3942 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3943 PyObject *resultobj = NULL;
3944 wxBrush *arg1 = (wxBrush *) 0 ;
3945 int arg2 ;
3946 PyObject * obj0 = 0 ;
3947 PyObject * obj1 = 0 ;
3948 char *kwnames[] = {
3949 (char *) "self",(char *) "style", NULL
3950 };
3951
3952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3954 if (SWIG_arg_fail(1)) SWIG_fail;
3955 {
3956 arg2 = static_cast<int >(SWIG_As_int(obj1));
3957 if (SWIG_arg_fail(2)) SWIG_fail;
3958 }
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 (arg1)->SetStyle(arg2);
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 Py_INCREF(Py_None); resultobj = Py_None;
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj = NULL;
3975 wxBrush *arg1 = (wxBrush *) 0 ;
3976 wxBitmap *arg2 = 0 ;
3977 PyObject * obj0 = 0 ;
3978 PyObject * obj1 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "self",(char *) "stipple", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3985 if (SWIG_arg_fail(1)) SWIG_fail;
3986 {
3987 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3988 if (SWIG_arg_fail(2)) SWIG_fail;
3989 if (arg2 == NULL) {
3990 SWIG_null_ref("wxBitmap");
3991 }
3992 if (SWIG_arg_fail(2)) SWIG_fail;
3993 }
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 (arg1)->SetStipple((wxBitmap const &)*arg2);
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 Py_INCREF(Py_None); resultobj = Py_None;
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj = NULL;
4010 wxBrush *arg1 = (wxBrush *) 0 ;
4011 wxColour result;
4012 PyObject * obj0 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "self", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
4018 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4019 if (SWIG_arg_fail(1)) SWIG_fail;
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = ((wxBrush const *)arg1)->GetColour();
4023
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 wxColour * resultptr;
4029 resultptr = new wxColour(static_cast<wxColour & >(result));
4030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4031 }
4032 return resultobj;
4033 fail:
4034 return NULL;
4035 }
4036
4037
4038 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
4039 PyObject *resultobj = NULL;
4040 wxBrush *arg1 = (wxBrush *) 0 ;
4041 int result;
4042 PyObject * obj0 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
4048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4049 if (SWIG_arg_fail(1)) SWIG_fail;
4050 {
4051 PyThreadState* __tstate = wxPyBeginAllowThreads();
4052 result = (int)((wxBrush const *)arg1)->GetStyle();
4053
4054 wxPyEndAllowThreads(__tstate);
4055 if (PyErr_Occurred()) SWIG_fail;
4056 }
4057 {
4058 resultobj = SWIG_From_int(static_cast<int >(result));
4059 }
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4067 PyObject *resultobj = NULL;
4068 wxBrush *arg1 = (wxBrush *) 0 ;
4069 wxBitmap *result;
4070 PyObject * obj0 = 0 ;
4071 char *kwnames[] = {
4072 (char *) "self", NULL
4073 };
4074
4075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
4076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4077 if (SWIG_arg_fail(1)) SWIG_fail;
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
4086 return resultobj;
4087 fail:
4088 return NULL;
4089 }
4090
4091
4092 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj = NULL;
4094 wxBrush *arg1 = (wxBrush *) 0 ;
4095 bool result;
4096 PyObject * obj0 = 0 ;
4097 char *kwnames[] = {
4098 (char *) "self", NULL
4099 };
4100
4101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
4102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4103 if (SWIG_arg_fail(1)) SWIG_fail;
4104 {
4105 PyThreadState* __tstate = wxPyBeginAllowThreads();
4106 result = (bool)((wxBrush const *)arg1)->IsHatch();
4107
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 {
4112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4113 }
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj = NULL;
4122 wxBrush *arg1 = (wxBrush *) 0 ;
4123 bool result;
4124 PyObject * obj0 = 0 ;
4125 char *kwnames[] = {
4126 (char *) "self", NULL
4127 };
4128
4129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
4130 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4131 if (SWIG_arg_fail(1)) SWIG_fail;
4132 {
4133 PyThreadState* __tstate = wxPyBeginAllowThreads();
4134 result = (bool)(arg1)->Ok();
4135
4136 wxPyEndAllowThreads(__tstate);
4137 if (PyErr_Occurred()) SWIG_fail;
4138 }
4139 {
4140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4141 }
4142 return resultobj;
4143 fail:
4144 return NULL;
4145 }
4146
4147
4148 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
4149 PyObject *obj;
4150 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4151 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
4152 Py_INCREF(obj);
4153 return Py_BuildValue((char *)"");
4154 }
4155 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj = NULL;
4157 wxString *arg1 = 0 ;
4158 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
4159 wxBitmap *result;
4160 bool temp1 = false ;
4161 PyObject * obj0 = 0 ;
4162 PyObject * obj1 = 0 ;
4163 char *kwnames[] = {
4164 (char *) "name",(char *) "type", NULL
4165 };
4166
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
4168 {
4169 arg1 = wxString_in_helper(obj0);
4170 if (arg1 == NULL) SWIG_fail;
4171 temp1 = true;
4172 }
4173 if (obj1) {
4174 {
4175 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
4176 if (SWIG_arg_fail(2)) SWIG_fail;
4177 }
4178 }
4179 {
4180 if (!wxPyCheckForApp()) SWIG_fail;
4181 PyThreadState* __tstate = wxPyBeginAllowThreads();
4182 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
4183
4184 wxPyEndAllowThreads(__tstate);
4185 if (PyErr_Occurred()) SWIG_fail;
4186 }
4187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4188 {
4189 if (temp1)
4190 delete arg1;
4191 }
4192 return resultobj;
4193 fail:
4194 {
4195 if (temp1)
4196 delete arg1;
4197 }
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = NULL;
4204 wxBitmap *arg1 = (wxBitmap *) 0 ;
4205 PyObject * obj0 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "self", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4212 if (SWIG_arg_fail(1)) SWIG_fail;
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 delete arg1;
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 Py_INCREF(Py_None); resultobj = Py_None;
4221 return resultobj;
4222 fail:
4223 return NULL;
4224 }
4225
4226
4227 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4228 PyObject *resultobj = NULL;
4229 int arg1 ;
4230 int arg2 ;
4231 int arg3 = (int) -1 ;
4232 wxBitmap *result;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 PyObject * obj2 = 0 ;
4236 char *kwnames[] = {
4237 (char *) "width",(char *) "height",(char *) "depth", NULL
4238 };
4239
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4241 {
4242 arg1 = static_cast<int >(SWIG_As_int(obj0));
4243 if (SWIG_arg_fail(1)) SWIG_fail;
4244 }
4245 {
4246 arg2 = static_cast<int >(SWIG_As_int(obj1));
4247 if (SWIG_arg_fail(2)) SWIG_fail;
4248 }
4249 if (obj2) {
4250 {
4251 arg3 = static_cast<int >(SWIG_As_int(obj2));
4252 if (SWIG_arg_fail(3)) SWIG_fail;
4253 }
4254 }
4255 {
4256 if (!wxPyCheckForApp()) SWIG_fail;
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj = NULL;
4272 wxIcon *arg1 = 0 ;
4273 wxBitmap *result;
4274 PyObject * obj0 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "icon", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4280 {
4281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4282 if (SWIG_arg_fail(1)) SWIG_fail;
4283 if (arg1 == NULL) {
4284 SWIG_null_ref("wxIcon");
4285 }
4286 if (SWIG_arg_fail(1)) SWIG_fail;
4287 }
4288 {
4289 if (!wxPyCheckForApp()) SWIG_fail;
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
4292
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj = NULL;
4305 wxImage *arg1 = 0 ;
4306 int arg2 = (int) -1 ;
4307 wxBitmap *result;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "image",(char *) "depth", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
4315 {
4316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4317 if (SWIG_arg_fail(1)) SWIG_fail;
4318 if (arg1 == NULL) {
4319 SWIG_null_ref("wxImage");
4320 }
4321 if (SWIG_arg_fail(1)) SWIG_fail;
4322 }
4323 if (obj1) {
4324 {
4325 arg2 = static_cast<int >(SWIG_As_int(obj1));
4326 if (SWIG_arg_fail(2)) SWIG_fail;
4327 }
4328 }
4329 {
4330 if (!wxPyCheckForApp()) SWIG_fail;
4331 PyThreadState* __tstate = wxPyBeginAllowThreads();
4332 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
4333
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4338 return resultobj;
4339 fail:
4340 return NULL;
4341 }
4342
4343
4344 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = NULL;
4346 PyObject *arg1 = (PyObject *) 0 ;
4347 wxBitmap *result;
4348 PyObject * obj0 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "listOfStrings", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4354 arg1 = obj0;
4355 {
4356 if (!wxPyCheckForApp()) SWIG_fail;
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 result = (wxBitmap *)new_wxBitmap(arg1);
4359
4360 wxPyEndAllowThreads(__tstate);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4364 return resultobj;
4365 fail:
4366 return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
4371 PyObject *resultobj = NULL;
4372 PyObject *arg1 = (PyObject *) 0 ;
4373 int arg2 ;
4374 int arg3 ;
4375 int arg4 = (int) 1 ;
4376 wxBitmap *result;
4377 PyObject * obj0 = 0 ;
4378 PyObject * obj1 = 0 ;
4379 PyObject * obj2 = 0 ;
4380 PyObject * obj3 = 0 ;
4381 char *kwnames[] = {
4382 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
4383 };
4384
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4386 arg1 = obj0;
4387 {
4388 arg2 = static_cast<int >(SWIG_As_int(obj1));
4389 if (SWIG_arg_fail(2)) SWIG_fail;
4390 }
4391 {
4392 arg3 = static_cast<int >(SWIG_As_int(obj2));
4393 if (SWIG_arg_fail(3)) SWIG_fail;
4394 }
4395 if (obj3) {
4396 {
4397 arg4 = static_cast<int >(SWIG_As_int(obj3));
4398 if (SWIG_arg_fail(4)) SWIG_fail;
4399 }
4400 }
4401 {
4402 if (!wxPyCheckForApp()) SWIG_fail;
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj = NULL;
4418 wxBitmap *arg1 = (wxBitmap *) 0 ;
4419 bool result;
4420 PyObject * obj0 = 0 ;
4421 char *kwnames[] = {
4422 (char *) "self", NULL
4423 };
4424
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4427 if (SWIG_arg_fail(1)) SWIG_fail;
4428 {
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (bool)(arg1)->Ok();
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 {
4436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4437 }
4438 return resultobj;
4439 fail:
4440 return NULL;
4441 }
4442
4443
4444 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj = NULL;
4446 wxBitmap *arg1 = (wxBitmap *) 0 ;
4447 int result;
4448 PyObject * obj0 = 0 ;
4449 char *kwnames[] = {
4450 (char *) "self", NULL
4451 };
4452
4453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4455 if (SWIG_arg_fail(1)) SWIG_fail;
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 result = (int)(arg1)->GetWidth();
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 {
4464 resultobj = SWIG_From_int(static_cast<int >(result));
4465 }
4466 return resultobj;
4467 fail:
4468 return NULL;
4469 }
4470
4471
4472 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4473 PyObject *resultobj = NULL;
4474 wxBitmap *arg1 = (wxBitmap *) 0 ;
4475 int result;
4476 PyObject * obj0 = 0 ;
4477 char *kwnames[] = {
4478 (char *) "self", NULL
4479 };
4480
4481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4483 if (SWIG_arg_fail(1)) SWIG_fail;
4484 {
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 result = (int)(arg1)->GetHeight();
4487
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 {
4492 resultobj = SWIG_From_int(static_cast<int >(result));
4493 }
4494 return resultobj;
4495 fail:
4496 return NULL;
4497 }
4498
4499
4500 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4501 PyObject *resultobj = NULL;
4502 wxBitmap *arg1 = (wxBitmap *) 0 ;
4503 int result;
4504 PyObject * obj0 = 0 ;
4505 char *kwnames[] = {
4506 (char *) "self", NULL
4507 };
4508
4509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4510 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4511 if (SWIG_arg_fail(1)) SWIG_fail;
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 result = (int)(arg1)->GetDepth();
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 }
4519 {
4520 resultobj = SWIG_From_int(static_cast<int >(result));
4521 }
4522 return resultobj;
4523 fail:
4524 return NULL;
4525 }
4526
4527
4528 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4529 PyObject *resultobj = NULL;
4530 wxBitmap *arg1 = (wxBitmap *) 0 ;
4531 wxSize result;
4532 PyObject * obj0 = 0 ;
4533 char *kwnames[] = {
4534 (char *) "self", NULL
4535 };
4536
4537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4538 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4539 if (SWIG_arg_fail(1)) SWIG_fail;
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 result = wxBitmap_GetSize(arg1);
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 {
4548 wxSize * resultptr;
4549 resultptr = new wxSize(static_cast<wxSize & >(result));
4550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4551 }
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj = NULL;
4560 wxBitmap *arg1 = (wxBitmap *) 0 ;
4561 SwigValueWrapper<wxImage > result;
4562 PyObject * obj0 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4569 if (SWIG_arg_fail(1)) SWIG_fail;
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 result = ((wxBitmap const *)arg1)->ConvertToImage();
4573
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 }
4577 {
4578 wxImage * resultptr;
4579 resultptr = new wxImage(static_cast<wxImage & >(result));
4580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
4581 }
4582 return resultobj;
4583 fail:
4584 return NULL;
4585 }
4586
4587
4588 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj = NULL;
4590 wxBitmap *arg1 = (wxBitmap *) 0 ;
4591 wxMask *result;
4592 PyObject * obj0 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "self", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4598 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4599 if (SWIG_arg_fail(1)) SWIG_fail;
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
4603
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
4608 return resultobj;
4609 fail:
4610 return NULL;
4611 }
4612
4613
4614 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4615 PyObject *resultobj = NULL;
4616 wxBitmap *arg1 = (wxBitmap *) 0 ;
4617 wxMask *arg2 = (wxMask *) 0 ;
4618 PyObject * obj0 = 0 ;
4619 PyObject * obj1 = 0 ;
4620 char *kwnames[] = {
4621 (char *) "self",(char *) "mask", NULL
4622 };
4623
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4626 if (SWIG_arg_fail(1)) SWIG_fail;
4627 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4628 if (SWIG_arg_fail(2)) SWIG_fail;
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 (arg1)->SetMask(arg2);
4632
4633 wxPyEndAllowThreads(__tstate);
4634 if (PyErr_Occurred()) SWIG_fail;
4635 }
4636 Py_INCREF(Py_None); resultobj = Py_None;
4637 return resultobj;
4638 fail:
4639 return NULL;
4640 }
4641
4642
4643 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
4644 PyObject *resultobj = NULL;
4645 wxBitmap *arg1 = (wxBitmap *) 0 ;
4646 wxColour *arg2 = 0 ;
4647 wxColour temp2 ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char *kwnames[] = {
4651 (char *) "self",(char *) "colour", NULL
4652 };
4653
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4656 if (SWIG_arg_fail(1)) SWIG_fail;
4657 {
4658 arg2 = &temp2;
4659 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4660 }
4661 {
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
4664
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 Py_INCREF(Py_None); resultobj = Py_None;
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj = NULL;
4677 wxBitmap *arg1 = (wxBitmap *) 0 ;
4678 wxRect *arg2 = 0 ;
4679 SwigValueWrapper<wxBitmap > result;
4680 wxRect temp2 ;
4681 PyObject * obj0 = 0 ;
4682 PyObject * obj1 = 0 ;
4683 char *kwnames[] = {
4684 (char *) "self",(char *) "rect", NULL
4685 };
4686
4687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
4688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4689 if (SWIG_arg_fail(1)) SWIG_fail;
4690 {
4691 arg2 = &temp2;
4692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4693 }
4694 {
4695 PyThreadState* __tstate = wxPyBeginAllowThreads();
4696 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
4697
4698 wxPyEndAllowThreads(__tstate);
4699 if (PyErr_Occurred()) SWIG_fail;
4700 }
4701 {
4702 wxBitmap * resultptr;
4703 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
4704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4705 }
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
4713 PyObject *resultobj = NULL;
4714 wxBitmap *arg1 = (wxBitmap *) 0 ;
4715 wxString *arg2 = 0 ;
4716 wxBitmapType arg3 ;
4717 wxPalette *arg4 = (wxPalette *) NULL ;
4718 bool result;
4719 bool temp2 = false ;
4720 PyObject * obj0 = 0 ;
4721 PyObject * obj1 = 0 ;
4722 PyObject * obj2 = 0 ;
4723 PyObject * obj3 = 0 ;
4724 char *kwnames[] = {
4725 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
4726 };
4727
4728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4730 if (SWIG_arg_fail(1)) SWIG_fail;
4731 {
4732 arg2 = wxString_in_helper(obj1);
4733 if (arg2 == NULL) SWIG_fail;
4734 temp2 = true;
4735 }
4736 {
4737 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4738 if (SWIG_arg_fail(3)) SWIG_fail;
4739 }
4740 if (obj3) {
4741 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4742 if (SWIG_arg_fail(4)) SWIG_fail;
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
4747
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 {
4752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4753 }
4754 {
4755 if (temp2)
4756 delete arg2;
4757 }
4758 return resultobj;
4759 fail:
4760 {
4761 if (temp2)
4762 delete arg2;
4763 }
4764 return NULL;
4765 }
4766
4767
4768 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
4769 PyObject *resultobj = NULL;
4770 wxBitmap *arg1 = (wxBitmap *) 0 ;
4771 wxString *arg2 = 0 ;
4772 wxBitmapType arg3 ;
4773 bool result;
4774 bool temp2 = false ;
4775 PyObject * obj0 = 0 ;
4776 PyObject * obj1 = 0 ;
4777 PyObject * obj2 = 0 ;
4778 char *kwnames[] = {
4779 (char *) "self",(char *) "name",(char *) "type", NULL
4780 };
4781
4782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4783 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4784 if (SWIG_arg_fail(1)) SWIG_fail;
4785 {
4786 arg2 = wxString_in_helper(obj1);
4787 if (arg2 == NULL) SWIG_fail;
4788 temp2 = true;
4789 }
4790 {
4791 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4792 if (SWIG_arg_fail(3)) SWIG_fail;
4793 }
4794 {
4795 PyThreadState* __tstate = wxPyBeginAllowThreads();
4796 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
4797
4798 wxPyEndAllowThreads(__tstate);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 }
4801 {
4802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4803 }
4804 {
4805 if (temp2)
4806 delete arg2;
4807 }
4808 return resultobj;
4809 fail:
4810 {
4811 if (temp2)
4812 delete arg2;
4813 }
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj = NULL;
4820 wxBitmap *arg1 = (wxBitmap *) 0 ;
4821 wxPalette *result;
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "self", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4828 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4829 if (SWIG_arg_fail(1)) SWIG_fail;
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
4833
4834 wxPyEndAllowThreads(__tstate);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
4838 return resultobj;
4839 fail:
4840 return NULL;
4841 }
4842
4843
4844 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4845 PyObject *resultobj = NULL;
4846 wxBitmap *arg1 = (wxBitmap *) 0 ;
4847 wxIcon *arg2 = 0 ;
4848 bool result;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self",(char *) "icon", NULL
4853 };
4854
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4857 if (SWIG_arg_fail(1)) SWIG_fail;
4858 {
4859 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4860 if (SWIG_arg_fail(2)) SWIG_fail;
4861 if (arg2 == NULL) {
4862 SWIG_null_ref("wxIcon");
4863 }
4864 if (SWIG_arg_fail(2)) SWIG_fail;
4865 }
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 {
4874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4875 }
4876 return resultobj;
4877 fail:
4878 return NULL;
4879 }
4880
4881
4882 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4883 PyObject *resultobj = NULL;
4884 wxBitmap *arg1 = (wxBitmap *) 0 ;
4885 int arg2 ;
4886 PyObject * obj0 = 0 ;
4887 PyObject * obj1 = 0 ;
4888 char *kwnames[] = {
4889 (char *) "self",(char *) "height", NULL
4890 };
4891
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4894 if (SWIG_arg_fail(1)) SWIG_fail;
4895 {
4896 arg2 = static_cast<int >(SWIG_As_int(obj1));
4897 if (SWIG_arg_fail(2)) SWIG_fail;
4898 }
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 (arg1)->SetHeight(arg2);
4902
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 Py_INCREF(Py_None); resultobj = Py_None;
4907 return resultobj;
4908 fail:
4909 return NULL;
4910 }
4911
4912
4913 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj = NULL;
4915 wxBitmap *arg1 = (wxBitmap *) 0 ;
4916 int arg2 ;
4917 PyObject * obj0 = 0 ;
4918 PyObject * obj1 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "self",(char *) "width", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4925 if (SWIG_arg_fail(1)) SWIG_fail;
4926 {
4927 arg2 = static_cast<int >(SWIG_As_int(obj1));
4928 if (SWIG_arg_fail(2)) SWIG_fail;
4929 }
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 (arg1)->SetWidth(arg2);
4933
4934 wxPyEndAllowThreads(__tstate);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 Py_INCREF(Py_None); resultobj = Py_None;
4938 return resultobj;
4939 fail:
4940 return NULL;
4941 }
4942
4943
4944 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4945 PyObject *resultobj = NULL;
4946 wxBitmap *arg1 = (wxBitmap *) 0 ;
4947 int arg2 ;
4948 PyObject * obj0 = 0 ;
4949 PyObject * obj1 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self",(char *) "depth", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4955 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4956 if (SWIG_arg_fail(1)) SWIG_fail;
4957 {
4958 arg2 = static_cast<int >(SWIG_As_int(obj1));
4959 if (SWIG_arg_fail(2)) SWIG_fail;
4960 }
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 (arg1)->SetDepth(arg2);
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 Py_INCREF(Py_None); resultobj = Py_None;
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4976 PyObject *resultobj = NULL;
4977 wxBitmap *arg1 = (wxBitmap *) 0 ;
4978 wxSize *arg2 = 0 ;
4979 wxSize temp2 ;
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 char *kwnames[] = {
4983 (char *) "self",(char *) "size", NULL
4984 };
4985
4986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
4987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4988 if (SWIG_arg_fail(1)) SWIG_fail;
4989 {
4990 arg2 = &temp2;
4991 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4992 }
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 Py_INCREF(Py_None); resultobj = Py_None;
5001 return resultobj;
5002 fail:
5003 return NULL;
5004 }
5005
5006
5007 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj = NULL;
5009 wxBitmap *arg1 = (wxBitmap *) 0 ;
5010 wxBitmap *arg2 = (wxBitmap *) 0 ;
5011 bool result;
5012 PyObject * obj0 = 0 ;
5013 PyObject * obj1 = 0 ;
5014 char *kwnames[] = {
5015 (char *) "self",(char *) "other", NULL
5016 };
5017
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
5019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5020 if (SWIG_arg_fail(1)) SWIG_fail;
5021 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5022 if (SWIG_arg_fail(2)) SWIG_fail;
5023 {
5024 PyThreadState* __tstate = wxPyBeginAllowThreads();
5025 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
5026
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 }
5030 {
5031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5032 }
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj = NULL;
5041 wxBitmap *arg1 = (wxBitmap *) 0 ;
5042 wxBitmap *arg2 = (wxBitmap *) 0 ;
5043 bool result;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 char *kwnames[] = {
5047 (char *) "self",(char *) "other", NULL
5048 };
5049
5050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
5051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5052 if (SWIG_arg_fail(1)) SWIG_fail;
5053 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5054 if (SWIG_arg_fail(2)) SWIG_fail;
5055 {
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
5058
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 {
5063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5064 }
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
5072 PyObject *obj;
5073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5074 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
5075 Py_INCREF(obj);
5076 return Py_BuildValue((char *)"");
5077 }
5078 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
5079 PyObject *resultobj = NULL;
5080 wxBitmap *arg1 = 0 ;
5081 wxColour const &arg2_defvalue = wxNullColour ;
5082 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5083 wxMask *result;
5084 wxColour temp2 ;
5085 PyObject * obj0 = 0 ;
5086 PyObject * obj1 = 0 ;
5087 char *kwnames[] = {
5088 (char *) "bitmap",(char *) "colour", NULL
5089 };
5090
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
5092 {
5093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5094 if (SWIG_arg_fail(1)) SWIG_fail;
5095 if (arg1 == NULL) {
5096 SWIG_null_ref("wxBitmap");
5097 }
5098 if (SWIG_arg_fail(1)) SWIG_fail;
5099 }
5100 if (obj1) {
5101 {
5102 arg2 = &temp2;
5103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5104 }
5105 }
5106 {
5107 if (!wxPyCheckForApp()) SWIG_fail;
5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
5109 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
5110
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) SWIG_fail;
5113 }
5114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
5115 return resultobj;
5116 fail:
5117 return NULL;
5118 }
5119
5120
5121 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
5122 PyObject *obj;
5123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5124 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
5125 Py_INCREF(obj);
5126 return Py_BuildValue((char *)"");
5127 }
5128 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5129 PyObject *resultobj = NULL;
5130 wxString *arg1 = 0 ;
5131 wxBitmapType arg2 ;
5132 int arg3 = (int) -1 ;
5133 int arg4 = (int) -1 ;
5134 wxIcon *result;
5135 bool temp1 = false ;
5136 PyObject * obj0 = 0 ;
5137 PyObject * obj1 = 0 ;
5138 PyObject * obj2 = 0 ;
5139 PyObject * obj3 = 0 ;
5140 char *kwnames[] = {
5141 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
5142 };
5143
5144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5145 {
5146 arg1 = wxString_in_helper(obj0);
5147 if (arg1 == NULL) SWIG_fail;
5148 temp1 = true;
5149 }
5150 {
5151 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
5152 if (SWIG_arg_fail(2)) SWIG_fail;
5153 }
5154 if (obj2) {
5155 {
5156 arg3 = static_cast<int >(SWIG_As_int(obj2));
5157 if (SWIG_arg_fail(3)) SWIG_fail;
5158 }
5159 }
5160 if (obj3) {
5161 {
5162 arg4 = static_cast<int >(SWIG_As_int(obj3));
5163 if (SWIG_arg_fail(4)) SWIG_fail;
5164 }
5165 }
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5175 {
5176 if (temp1)
5177 delete arg1;
5178 }
5179 return resultobj;
5180 fail:
5181 {
5182 if (temp1)
5183 delete arg1;
5184 }
5185 return NULL;
5186 }
5187
5188
5189 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5190 PyObject *resultobj = NULL;
5191 wxIcon *arg1 = (wxIcon *) 0 ;
5192 PyObject * obj0 = 0 ;
5193 char *kwnames[] = {
5194 (char *) "self", NULL
5195 };
5196
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5199 if (SWIG_arg_fail(1)) SWIG_fail;
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 delete arg1;
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 Py_INCREF(Py_None); resultobj = Py_None;
5208 return resultobj;
5209 fail:
5210 return NULL;
5211 }
5212
5213
5214 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5215 PyObject *resultobj = NULL;
5216 wxIcon *result;
5217 char *kwnames[] = {
5218 NULL
5219 };
5220
5221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
5222 {
5223 if (!wxPyCheckForApp()) SWIG_fail;
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (wxIcon *)new wxIcon();
5226
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5231 return resultobj;
5232 fail:
5233 return NULL;
5234 }
5235
5236
5237 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5238 PyObject *resultobj = NULL;
5239 wxIconLocation *arg1 = 0 ;
5240 wxIcon *result;
5241 PyObject * obj0 = 0 ;
5242 char *kwnames[] = {
5243 (char *) "loc", NULL
5244 };
5245
5246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5247 {
5248 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5249 if (SWIG_arg_fail(1)) SWIG_fail;
5250 if (arg1 == NULL) {
5251 SWIG_null_ref("wxIconLocation");
5252 }
5253 if (SWIG_arg_fail(1)) SWIG_fail;
5254 }
5255 {
5256 if (!wxPyCheckForApp()) SWIG_fail;
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5264 return resultobj;
5265 fail:
5266 return NULL;
5267 }
5268
5269
5270 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj = NULL;
5272 wxBitmap *arg1 = 0 ;
5273 wxIcon *result;
5274 PyObject * obj0 = 0 ;
5275 char *kwnames[] = {
5276 (char *) "bmp", NULL
5277 };
5278
5279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
5280 {
5281 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5282 if (SWIG_arg_fail(1)) SWIG_fail;
5283 if (arg1 == NULL) {
5284 SWIG_null_ref("wxBitmap");
5285 }
5286 if (SWIG_arg_fail(1)) SWIG_fail;
5287 }
5288 {
5289 if (!wxPyCheckForApp()) SWIG_fail;
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
5292
5293 wxPyEndAllowThreads(__tstate);
5294 if (PyErr_Occurred()) SWIG_fail;
5295 }
5296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = NULL;
5305 PyObject *arg1 = (PyObject *) 0 ;
5306 wxIcon *result;
5307 PyObject * obj0 = 0 ;
5308 char *kwnames[] = {
5309 (char *) "listOfStrings", NULL
5310 };
5311
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5313 arg1 = obj0;
5314 {
5315 if (!wxPyCheckForApp()) SWIG_fail;
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 result = (wxIcon *)new_wxIcon(arg1);
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5323 return resultobj;
5324 fail:
5325 return NULL;
5326 }
5327
5328
5329 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj = NULL;
5331 wxIcon *arg1 = (wxIcon *) 0 ;
5332 wxString *arg2 = 0 ;
5333 wxBitmapType arg3 ;
5334 bool result;
5335 bool temp2 = false ;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 PyObject * obj2 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self",(char *) "name",(char *) "type", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5344 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5345 if (SWIG_arg_fail(1)) SWIG_fail;
5346 {
5347 arg2 = wxString_in_helper(obj1);
5348 if (arg2 == NULL) SWIG_fail;
5349 temp2 = true;
5350 }
5351 {
5352 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
5353 if (SWIG_arg_fail(3)) SWIG_fail;
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 {
5363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5364 }
5365 {
5366 if (temp2)
5367 delete arg2;
5368 }
5369 return resultobj;
5370 fail:
5371 {
5372 if (temp2)
5373 delete arg2;
5374 }
5375 return NULL;
5376 }
5377
5378
5379 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj = NULL;
5381 wxIcon *arg1 = (wxIcon *) 0 ;
5382 bool result;
5383 PyObject * obj0 = 0 ;
5384 char *kwnames[] = {
5385 (char *) "self", NULL
5386 };
5387
5388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5390 if (SWIG_arg_fail(1)) SWIG_fail;
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (bool)(arg1)->Ok();
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 {
5399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5400 }
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj = NULL;
5409 wxIcon *arg1 = (wxIcon *) 0 ;
5410 int result;
5411 PyObject * obj0 = 0 ;
5412 char *kwnames[] = {
5413 (char *) "self", NULL
5414 };
5415
5416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5418 if (SWIG_arg_fail(1)) SWIG_fail;
5419 {
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 result = (int)(arg1)->GetWidth();
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 {
5427 resultobj = SWIG_From_int(static_cast<int >(result));
5428 }
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj = NULL;
5437 wxIcon *arg1 = (wxIcon *) 0 ;
5438 int result;
5439 PyObject * obj0 = 0 ;
5440 char *kwnames[] = {
5441 (char *) "self", NULL
5442 };
5443
5444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5446 if (SWIG_arg_fail(1)) SWIG_fail;
5447 {
5448 PyThreadState* __tstate = wxPyBeginAllowThreads();
5449 result = (int)(arg1)->GetHeight();
5450
5451 wxPyEndAllowThreads(__tstate);
5452 if (PyErr_Occurred()) SWIG_fail;
5453 }
5454 {
5455 resultobj = SWIG_From_int(static_cast<int >(result));
5456 }
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = NULL;
5465 wxIcon *arg1 = (wxIcon *) 0 ;
5466 int result;
5467 PyObject * obj0 = 0 ;
5468 char *kwnames[] = {
5469 (char *) "self", NULL
5470 };
5471
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5474 if (SWIG_arg_fail(1)) SWIG_fail;
5475 {
5476 PyThreadState* __tstate = wxPyBeginAllowThreads();
5477 result = (int)(arg1)->GetDepth();
5478
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 {
5483 resultobj = SWIG_From_int(static_cast<int >(result));
5484 }
5485 return resultobj;
5486 fail:
5487 return NULL;
5488 }
5489
5490
5491 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5492 PyObject *resultobj = NULL;
5493 wxIcon *arg1 = (wxIcon *) 0 ;
5494 int arg2 ;
5495 PyObject * obj0 = 0 ;
5496 PyObject * obj1 = 0 ;
5497 char *kwnames[] = {
5498 (char *) "self",(char *) "w", NULL
5499 };
5500
5501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5503 if (SWIG_arg_fail(1)) SWIG_fail;
5504 {
5505 arg2 = static_cast<int >(SWIG_As_int(obj1));
5506 if (SWIG_arg_fail(2)) SWIG_fail;
5507 }
5508 {
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 (arg1)->SetWidth(arg2);
5511
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
5515 Py_INCREF(Py_None); resultobj = Py_None;
5516 return resultobj;
5517 fail:
5518 return NULL;
5519 }
5520
5521
5522 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5523 PyObject *resultobj = NULL;
5524 wxIcon *arg1 = (wxIcon *) 0 ;
5525 int arg2 ;
5526 PyObject * obj0 = 0 ;
5527 PyObject * obj1 = 0 ;
5528 char *kwnames[] = {
5529 (char *) "self",(char *) "h", NULL
5530 };
5531
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5533 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5534 if (SWIG_arg_fail(1)) SWIG_fail;
5535 {
5536 arg2 = static_cast<int >(SWIG_As_int(obj1));
5537 if (SWIG_arg_fail(2)) SWIG_fail;
5538 }
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 (arg1)->SetHeight(arg2);
5542
5543 wxPyEndAllowThreads(__tstate);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 Py_INCREF(Py_None); resultobj = Py_None;
5547 return resultobj;
5548 fail:
5549 return NULL;
5550 }
5551
5552
5553 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5554 PyObject *resultobj = NULL;
5555 wxIcon *arg1 = (wxIcon *) 0 ;
5556 int arg2 ;
5557 PyObject * obj0 = 0 ;
5558 PyObject * obj1 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self",(char *) "d", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5564 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5565 if (SWIG_arg_fail(1)) SWIG_fail;
5566 {
5567 arg2 = static_cast<int >(SWIG_As_int(obj1));
5568 if (SWIG_arg_fail(2)) SWIG_fail;
5569 }
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 (arg1)->SetDepth(arg2);
5573
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 Py_INCREF(Py_None); resultobj = Py_None;
5578 return resultobj;
5579 fail:
5580 return NULL;
5581 }
5582
5583
5584 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj = NULL;
5586 wxIcon *arg1 = (wxIcon *) 0 ;
5587 wxBitmap *arg2 = 0 ;
5588 PyObject * obj0 = 0 ;
5589 PyObject * obj1 = 0 ;
5590 char *kwnames[] = {
5591 (char *) "self",(char *) "bmp", NULL
5592 };
5593
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5595 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5596 if (SWIG_arg_fail(1)) SWIG_fail;
5597 {
5598 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5599 if (SWIG_arg_fail(2)) SWIG_fail;
5600 if (arg2 == NULL) {
5601 SWIG_null_ref("wxBitmap");
5602 }
5603 if (SWIG_arg_fail(2)) SWIG_fail;
5604 }
5605 {
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
5608
5609 wxPyEndAllowThreads(__tstate);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 Py_INCREF(Py_None); resultobj = Py_None;
5613 return resultobj;
5614 fail:
5615 return NULL;
5616 }
5617
5618
5619 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
5620 PyObject *obj;
5621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5622 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
5623 Py_INCREF(obj);
5624 return Py_BuildValue((char *)"");
5625 }
5626 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj = NULL;
5628 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5629 int arg2 = (int) 0 ;
5630 wxIconLocation *result;
5631 bool temp1 = false ;
5632 PyObject * obj0 = 0 ;
5633 PyObject * obj1 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "filename",(char *) "num", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5639 if (obj0) {
5640 {
5641 arg1 = wxString_in_helper(obj0);
5642 if (arg1 == NULL) SWIG_fail;
5643 temp1 = true;
5644 }
5645 }
5646 if (obj1) {
5647 {
5648 arg2 = static_cast<int >(SWIG_As_int(obj1));
5649 if (SWIG_arg_fail(2)) SWIG_fail;
5650 }
5651 }
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
5660 {
5661 if (temp1)
5662 delete arg1;
5663 }
5664 return resultobj;
5665 fail:
5666 {
5667 if (temp1)
5668 delete arg1;
5669 }
5670 return NULL;
5671 }
5672
5673
5674 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5675 PyObject *resultobj = NULL;
5676 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5677 PyObject * obj0 = 0 ;
5678 char *kwnames[] = {
5679 (char *) "self", NULL
5680 };
5681
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5683 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5684 if (SWIG_arg_fail(1)) SWIG_fail;
5685 {
5686 PyThreadState* __tstate = wxPyBeginAllowThreads();
5687 delete arg1;
5688
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 Py_INCREF(Py_None); resultobj = Py_None;
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5700 PyObject *resultobj = NULL;
5701 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5702 bool result;
5703 PyObject * obj0 = 0 ;
5704 char *kwnames[] = {
5705 (char *) "self", NULL
5706 };
5707
5708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5709 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5710 if (SWIG_arg_fail(1)) SWIG_fail;
5711 {
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = (bool)((wxIconLocation const *)arg1)->IsOk();
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 {
5719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5720 }
5721 return resultobj;
5722 fail:
5723 return NULL;
5724 }
5725
5726
5727 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5728 PyObject *resultobj = NULL;
5729 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5730 wxString *arg2 = 0 ;
5731 bool temp2 = false ;
5732 PyObject * obj0 = 0 ;
5733 PyObject * obj1 = 0 ;
5734 char *kwnames[] = {
5735 (char *) "self",(char *) "filename", NULL
5736 };
5737
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
5739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5740 if (SWIG_arg_fail(1)) SWIG_fail;
5741 {
5742 arg2 = wxString_in_helper(obj1);
5743 if (arg2 == NULL) SWIG_fail;
5744 temp2 = true;
5745 }
5746 {
5747 PyThreadState* __tstate = wxPyBeginAllowThreads();
5748 (arg1)->SetFileName((wxString const &)*arg2);
5749
5750 wxPyEndAllowThreads(__tstate);
5751 if (PyErr_Occurred()) SWIG_fail;
5752 }
5753 Py_INCREF(Py_None); resultobj = Py_None;
5754 {
5755 if (temp2)
5756 delete arg2;
5757 }
5758 return resultobj;
5759 fail:
5760 {
5761 if (temp2)
5762 delete arg2;
5763 }
5764 return NULL;
5765 }
5766
5767
5768 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5769 PyObject *resultobj = NULL;
5770 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5771 wxString *result;
5772 PyObject * obj0 = 0 ;
5773 char *kwnames[] = {
5774 (char *) "self", NULL
5775 };
5776
5777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
5778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5779 if (SWIG_arg_fail(1)) SWIG_fail;
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 {
5783 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
5784 result = (wxString *) &_result_ref;
5785 }
5786
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 {
5791 #if wxUSE_UNICODE
5792 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5793 #else
5794 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5795 #endif
5796 }
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj = NULL;
5805 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5806 int arg2 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char *kwnames[] = {
5810 (char *) "self",(char *) "num", NULL
5811 };
5812
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
5814 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5815 if (SWIG_arg_fail(1)) SWIG_fail;
5816 {
5817 arg2 = static_cast<int >(SWIG_As_int(obj1));
5818 if (SWIG_arg_fail(2)) SWIG_fail;
5819 }
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 wxIconLocation_SetIndex(arg1,arg2);
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 Py_INCREF(Py_None); resultobj = Py_None;
5828 return resultobj;
5829 fail:
5830 return NULL;
5831 }
5832
5833
5834 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj = NULL;
5836 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5837 int result;
5838 PyObject * obj0 = 0 ;
5839 char *kwnames[] = {
5840 (char *) "self", NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
5844 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5845 if (SWIG_arg_fail(1)) SWIG_fail;
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = (int)wxIconLocation_GetIndex(arg1);
5849
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 {
5854 resultobj = SWIG_From_int(static_cast<int >(result));
5855 }
5856 return resultobj;
5857 fail:
5858 return NULL;
5859 }
5860
5861
5862 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
5863 PyObject *obj;
5864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5865 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
5866 Py_INCREF(obj);
5867 return Py_BuildValue((char *)"");
5868 }
5869 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj = NULL;
5871 wxIconBundle *result;
5872 char *kwnames[] = {
5873 NULL
5874 };
5875
5876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
5877 {
5878 PyThreadState* __tstate = wxPyBeginAllowThreads();
5879 result = (wxIconBundle *)new wxIconBundle();
5880
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5885 return resultobj;
5886 fail:
5887 return NULL;
5888 }
5889
5890
5891 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj = NULL;
5893 wxString *arg1 = 0 ;
5894 long arg2 ;
5895 wxIconBundle *result;
5896 bool temp1 = false ;
5897 PyObject * obj0 = 0 ;
5898 PyObject * obj1 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "file",(char *) "type", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
5904 {
5905 arg1 = wxString_in_helper(obj0);
5906 if (arg1 == NULL) SWIG_fail;
5907 temp1 = true;
5908 }
5909 {
5910 arg2 = static_cast<long >(SWIG_As_long(obj1));
5911 if (SWIG_arg_fail(2)) SWIG_fail;
5912 }
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5921 {
5922 if (temp1)
5923 delete arg1;
5924 }
5925 return resultobj;
5926 fail:
5927 {
5928 if (temp1)
5929 delete arg1;
5930 }
5931 return NULL;
5932 }
5933
5934
5935 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5936 PyObject *resultobj = NULL;
5937 wxIcon *arg1 = 0 ;
5938 wxIconBundle *result;
5939 PyObject * obj0 = 0 ;
5940 char *kwnames[] = {
5941 (char *) "icon", NULL
5942 };
5943
5944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
5945 {
5946 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5947 if (SWIG_arg_fail(1)) SWIG_fail;
5948 if (arg1 == NULL) {
5949 SWIG_null_ref("wxIcon");
5950 }
5951 if (SWIG_arg_fail(1)) SWIG_fail;
5952 }
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
5956
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
5968 PyObject *resultobj = NULL;
5969 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5970 PyObject * obj0 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
5976 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5977 if (SWIG_arg_fail(1)) SWIG_fail;
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 delete arg1;
5981
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 Py_INCREF(Py_None); resultobj = Py_None;
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj = NULL;
5994 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5995 wxIcon *arg2 = 0 ;
5996 PyObject * obj0 = 0 ;
5997 PyObject * obj1 = 0 ;
5998 char *kwnames[] = {
5999 (char *) "self",(char *) "icon", NULL
6000 };
6001
6002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
6003 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6004 if (SWIG_arg_fail(1)) SWIG_fail;
6005 {
6006 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6007 if (SWIG_arg_fail(2)) SWIG_fail;
6008 if (arg2 == NULL) {
6009 SWIG_null_ref("wxIcon");
6010 }
6011 if (SWIG_arg_fail(2)) SWIG_fail;
6012 }
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 (arg1)->AddIcon((wxIcon const &)*arg2);
6016
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 Py_INCREF(Py_None); resultobj = Py_None;
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6028 PyObject *resultobj = NULL;
6029 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6030 wxString *arg2 = 0 ;
6031 long arg3 ;
6032 bool temp2 = false ;
6033 PyObject * obj0 = 0 ;
6034 PyObject * obj1 = 0 ;
6035 PyObject * obj2 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self",(char *) "file",(char *) "type", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6042 if (SWIG_arg_fail(1)) SWIG_fail;
6043 {
6044 arg2 = wxString_in_helper(obj1);
6045 if (arg2 == NULL) SWIG_fail;
6046 temp2 = true;
6047 }
6048 {
6049 arg3 = static_cast<long >(SWIG_As_long(obj2));
6050 if (SWIG_arg_fail(3)) SWIG_fail;
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->AddIcon((wxString const &)*arg2,arg3);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 Py_INCREF(Py_None); resultobj = Py_None;
6060 {
6061 if (temp2)
6062 delete arg2;
6063 }
6064 return resultobj;
6065 fail:
6066 {
6067 if (temp2)
6068 delete arg2;
6069 }
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj = NULL;
6076 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6077 wxSize *arg2 = 0 ;
6078 wxIcon *result;
6079 wxSize temp2 ;
6080 PyObject * obj0 = 0 ;
6081 PyObject * obj1 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self",(char *) "size", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
6087 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6088 if (SWIG_arg_fail(1)) SWIG_fail;
6089 {
6090 arg2 = &temp2;
6091 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6092 }
6093 {
6094 PyThreadState* __tstate = wxPyBeginAllowThreads();
6095 {
6096 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
6097 result = (wxIcon *) &_result_ref;
6098 }
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 wxIcon* resultptr = new wxIcon(*result);
6105 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
6106 }
6107 return resultobj;
6108 fail:
6109 return NULL;
6110 }
6111
6112
6113 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
6114 PyObject *obj;
6115 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6116 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
6117 Py_INCREF(obj);
6118 return Py_BuildValue((char *)"");
6119 }
6120 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6121 PyObject *resultobj = NULL;
6122 wxString *arg1 = 0 ;
6123 long arg2 ;
6124 int arg3 = (int) 0 ;
6125 int arg4 = (int) 0 ;
6126 wxCursor *result;
6127 bool temp1 = false ;
6128 PyObject * obj0 = 0 ;
6129 PyObject * obj1 = 0 ;
6130 PyObject * obj2 = 0 ;
6131 PyObject * obj3 = 0 ;
6132 char *kwnames[] = {
6133 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
6134 };
6135
6136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6137 {
6138 arg1 = wxString_in_helper(obj0);
6139 if (arg1 == NULL) SWIG_fail;
6140 temp1 = true;
6141 }
6142 {
6143 arg2 = static_cast<long >(SWIG_As_long(obj1));
6144 if (SWIG_arg_fail(2)) SWIG_fail;
6145 }
6146 if (obj2) {
6147 {
6148 arg3 = static_cast<int >(SWIG_As_int(obj2));
6149 if (SWIG_arg_fail(3)) SWIG_fail;
6150 }
6151 }
6152 if (obj3) {
6153 {
6154 arg4 = static_cast<int >(SWIG_As_int(obj3));
6155 if (SWIG_arg_fail(4)) SWIG_fail;
6156 }
6157 }
6158 {
6159 if (!wxPyCheckForApp()) SWIG_fail;
6160 PyThreadState* __tstate = wxPyBeginAllowThreads();
6161 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
6162
6163 wxPyEndAllowThreads(__tstate);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6167 {
6168 if (temp1)
6169 delete arg1;
6170 }
6171 return resultobj;
6172 fail:
6173 {
6174 if (temp1)
6175 delete arg1;
6176 }
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj = NULL;
6183 wxCursor *arg1 = (wxCursor *) 0 ;
6184 PyObject * obj0 = 0 ;
6185 char *kwnames[] = {
6186 (char *) "self", NULL
6187 };
6188
6189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6191 if (SWIG_arg_fail(1)) SWIG_fail;
6192 {
6193 PyThreadState* __tstate = wxPyBeginAllowThreads();
6194 delete arg1;
6195
6196 wxPyEndAllowThreads(__tstate);
6197 if (PyErr_Occurred()) SWIG_fail;
6198 }
6199 Py_INCREF(Py_None); resultobj = Py_None;
6200 return resultobj;
6201 fail:
6202 return NULL;
6203 }
6204
6205
6206 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
6207 PyObject *resultobj = NULL;
6208 int arg1 ;
6209 wxCursor *result;
6210 PyObject * obj0 = 0 ;
6211 char *kwnames[] = {
6212 (char *) "id", NULL
6213 };
6214
6215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
6216 {
6217 arg1 = static_cast<int >(SWIG_As_int(obj0));
6218 if (SWIG_arg_fail(1)) SWIG_fail;
6219 }
6220 {
6221 if (!wxPyCheckForApp()) SWIG_fail;
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 result = (wxCursor *)new wxCursor(arg1);
6224
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6229 return resultobj;
6230 fail:
6231 return NULL;
6232 }
6233
6234
6235 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
6236 PyObject *resultobj = NULL;
6237 wxImage *arg1 = 0 ;
6238 wxCursor *result;
6239 PyObject * obj0 = 0 ;
6240 char *kwnames[] = {
6241 (char *) "image", NULL
6242 };
6243
6244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
6245 {
6246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6247 if (SWIG_arg_fail(1)) SWIG_fail;
6248 if (arg1 == NULL) {
6249 SWIG_null_ref("wxImage");
6250 }
6251 if (SWIG_arg_fail(1)) SWIG_fail;
6252 }
6253 {
6254 if (!wxPyCheckForApp()) SWIG_fail;
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
6257
6258 wxPyEndAllowThreads(__tstate);
6259 if (PyErr_Occurred()) SWIG_fail;
6260 }
6261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6262 return resultobj;
6263 fail:
6264 return NULL;
6265 }
6266
6267
6268 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
6269 PyObject *resultobj = NULL;
6270 wxCursor *arg1 = (wxCursor *) 0 ;
6271 bool result;
6272 PyObject * obj0 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6279 if (SWIG_arg_fail(1)) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (bool)(arg1)->Ok();
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6289 }
6290 return resultobj;
6291 fail:
6292 return NULL;
6293 }
6294
6295
6296 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6297 PyObject *obj;
6298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6299 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6300 Py_INCREF(obj);
6301 return Py_BuildValue((char *)"");
6302 }
6303 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj = NULL;
6305 int arg1 = (int) 0 ;
6306 int arg2 = (int) 0 ;
6307 int arg3 = (int) 0 ;
6308 int arg4 = (int) 0 ;
6309 wxRegion *result;
6310 PyObject * obj0 = 0 ;
6311 PyObject * obj1 = 0 ;
6312 PyObject * obj2 = 0 ;
6313 PyObject * obj3 = 0 ;
6314 char *kwnames[] = {
6315 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6316 };
6317
6318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6319 if (obj0) {
6320 {
6321 arg1 = static_cast<int >(SWIG_As_int(obj0));
6322 if (SWIG_arg_fail(1)) SWIG_fail;
6323 }
6324 }
6325 if (obj1) {
6326 {
6327 arg2 = static_cast<int >(SWIG_As_int(obj1));
6328 if (SWIG_arg_fail(2)) SWIG_fail;
6329 }
6330 }
6331 if (obj2) {
6332 {
6333 arg3 = static_cast<int >(SWIG_As_int(obj2));
6334 if (SWIG_arg_fail(3)) SWIG_fail;
6335 }
6336 }
6337 if (obj3) {
6338 {
6339 arg4 = static_cast<int >(SWIG_As_int(obj3));
6340 if (SWIG_arg_fail(4)) SWIG_fail;
6341 }
6342 }
6343 {
6344 if (!wxPyCheckForApp()) SWIG_fail;
6345 PyThreadState* __tstate = wxPyBeginAllowThreads();
6346 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
6347
6348 wxPyEndAllowThreads(__tstate);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 }
6351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6352 return resultobj;
6353 fail:
6354 return NULL;
6355 }
6356
6357
6358 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6359 PyObject *resultobj = NULL;
6360 wxBitmap *arg1 = 0 ;
6361 wxRegion *result;
6362 PyObject * obj0 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "bmp", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6368 {
6369 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6370 if (SWIG_arg_fail(1)) SWIG_fail;
6371 if (arg1 == NULL) {
6372 SWIG_null_ref("wxBitmap");
6373 }
6374 if (SWIG_arg_fail(1)) SWIG_fail;
6375 }
6376 {
6377 if (!wxPyCheckForApp()) SWIG_fail;
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
6392 PyObject *resultobj = NULL;
6393 wxBitmap *arg1 = 0 ;
6394 wxColour *arg2 = 0 ;
6395 int arg3 = (int) 0 ;
6396 wxRegion *result;
6397 wxColour temp2 ;
6398 PyObject * obj0 = 0 ;
6399 PyObject * obj1 = 0 ;
6400 PyObject * obj2 = 0 ;
6401 char *kwnames[] = {
6402 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6403 };
6404
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6406 {
6407 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6408 if (SWIG_arg_fail(1)) SWIG_fail;
6409 if (arg1 == NULL) {
6410 SWIG_null_ref("wxBitmap");
6411 }
6412 if (SWIG_arg_fail(1)) SWIG_fail;
6413 }
6414 {
6415 arg2 = &temp2;
6416 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6417 }
6418 if (obj2) {
6419 {
6420 arg3 = static_cast<int >(SWIG_As_int(obj2));
6421 if (SWIG_arg_fail(3)) SWIG_fail;
6422 }
6423 }
6424 {
6425 if (!wxPyCheckForApp()) SWIG_fail;
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6433 return resultobj;
6434 fail:
6435 return NULL;
6436 }
6437
6438
6439 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj = NULL;
6441 int arg1 ;
6442 wxPoint *arg2 = (wxPoint *) 0 ;
6443 int arg3 = (int) wxWINDING_RULE ;
6444 wxRegion *result;
6445 PyObject * obj0 = 0 ;
6446 PyObject * obj1 = 0 ;
6447 char *kwnames[] = {
6448 (char *) "points",(char *) "fillStyle", NULL
6449 };
6450
6451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
6452 {
6453 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6454 if (arg2 == NULL) SWIG_fail;
6455 }
6456 if (obj1) {
6457 {
6458 arg3 = static_cast<int >(SWIG_As_int(obj1));
6459 if (SWIG_arg_fail(3)) SWIG_fail;
6460 }
6461 }
6462 {
6463 if (!wxPyCheckForApp()) SWIG_fail;
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6471 {
6472 if (arg2) delete [] arg2;
6473 }
6474 return resultobj;
6475 fail:
6476 {
6477 if (arg2) delete [] arg2;
6478 }
6479 return NULL;
6480 }
6481
6482
6483 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6484 PyObject *resultobj = NULL;
6485 wxRegion *arg1 = (wxRegion *) 0 ;
6486 PyObject * obj0 = 0 ;
6487 char *kwnames[] = {
6488 (char *) "self", NULL
6489 };
6490
6491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
6492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6493 if (SWIG_arg_fail(1)) SWIG_fail;
6494 {
6495 PyThreadState* __tstate = wxPyBeginAllowThreads();
6496 delete arg1;
6497
6498 wxPyEndAllowThreads(__tstate);
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 Py_INCREF(Py_None); resultobj = Py_None;
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
6509 PyObject *resultobj = NULL;
6510 wxRegion *arg1 = (wxRegion *) 0 ;
6511 PyObject * obj0 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
6517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6518 if (SWIG_arg_fail(1)) SWIG_fail;
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 (arg1)->Clear();
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 Py_INCREF(Py_None); resultobj = Py_None;
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj = NULL;
6535 wxRegion *arg1 = (wxRegion *) 0 ;
6536 int arg2 ;
6537 int arg3 ;
6538 bool result;
6539 PyObject * obj0 = 0 ;
6540 PyObject * obj1 = 0 ;
6541 PyObject * obj2 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self",(char *) "x",(char *) "y", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
6547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6548 if (SWIG_arg_fail(1)) SWIG_fail;
6549 {
6550 arg2 = static_cast<int >(SWIG_As_int(obj1));
6551 if (SWIG_arg_fail(2)) SWIG_fail;
6552 }
6553 {
6554 arg3 = static_cast<int >(SWIG_As_int(obj2));
6555 if (SWIG_arg_fail(3)) SWIG_fail;
6556 }
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 result = (bool)(arg1)->Offset(arg2,arg3);
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 {
6565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6566 }
6567 return resultobj;
6568 fail:
6569 return NULL;
6570 }
6571
6572
6573 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj = NULL;
6575 wxRegion *arg1 = (wxRegion *) 0 ;
6576 int arg2 ;
6577 int arg3 ;
6578 wxRegionContain result;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 PyObject * obj2 = 0 ;
6582 char *kwnames[] = {
6583 (char *) "self",(char *) "x",(char *) "y", NULL
6584 };
6585
6586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
6587 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6588 if (SWIG_arg_fail(1)) SWIG_fail;
6589 {
6590 arg2 = static_cast<int >(SWIG_As_int(obj1));
6591 if (SWIG_arg_fail(2)) SWIG_fail;
6592 }
6593 {
6594 arg3 = static_cast<int >(SWIG_As_int(obj2));
6595 if (SWIG_arg_fail(3)) SWIG_fail;
6596 }
6597 {
6598 PyThreadState* __tstate = wxPyBeginAllowThreads();
6599 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
6600
6601 wxPyEndAllowThreads(__tstate);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 resultobj = SWIG_From_int((result));
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj = NULL;
6613 wxRegion *arg1 = (wxRegion *) 0 ;
6614 wxPoint *arg2 = 0 ;
6615 wxRegionContain result;
6616 wxPoint temp2 ;
6617 PyObject * obj0 = 0 ;
6618 PyObject * obj1 = 0 ;
6619 char *kwnames[] = {
6620 (char *) "self",(char *) "pt", NULL
6621 };
6622
6623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
6624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6625 if (SWIG_arg_fail(1)) SWIG_fail;
6626 {
6627 arg2 = &temp2;
6628 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6629 }
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 resultobj = SWIG_From_int((result));
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj = NULL;
6646 wxRegion *arg1 = (wxRegion *) 0 ;
6647 wxRect *arg2 = 0 ;
6648 wxRegionContain result;
6649 wxRect temp2 ;
6650 PyObject * obj0 = 0 ;
6651 PyObject * obj1 = 0 ;
6652 char *kwnames[] = {
6653 (char *) "self",(char *) "rect", NULL
6654 };
6655
6656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
6657 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6658 if (SWIG_arg_fail(1)) SWIG_fail;
6659 {
6660 arg2 = &temp2;
6661 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6662 }
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_From_int((result));
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj = NULL;
6679 wxRegion *arg1 = (wxRegion *) 0 ;
6680 int arg2 ;
6681 int arg3 ;
6682 int arg4 ;
6683 int arg5 ;
6684 wxRegionContain result;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6687 PyObject * obj2 = 0 ;
6688 PyObject * obj3 = 0 ;
6689 PyObject * obj4 = 0 ;
6690 char *kwnames[] = {
6691 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
6692 };
6693
6694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6695 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6696 if (SWIG_arg_fail(1)) SWIG_fail;
6697 {
6698 arg2 = static_cast<int >(SWIG_As_int(obj1));
6699 if (SWIG_arg_fail(2)) SWIG_fail;
6700 }
6701 {
6702 arg3 = static_cast<int >(SWIG_As_int(obj2));
6703 if (SWIG_arg_fail(3)) SWIG_fail;
6704 }
6705 {
6706 arg4 = static_cast<int >(SWIG_As_int(obj3));
6707 if (SWIG_arg_fail(4)) SWIG_fail;
6708 }
6709 {
6710 arg5 = static_cast<int >(SWIG_As_int(obj4));
6711 if (SWIG_arg_fail(5)) SWIG_fail;
6712 }
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 resultobj = SWIG_From_int((result));
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj = NULL;
6729 wxRegion *arg1 = (wxRegion *) 0 ;
6730 wxRect result;
6731 PyObject * obj0 = 0 ;
6732 char *kwnames[] = {
6733 (char *) "self", NULL
6734 };
6735
6736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
6737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6738 if (SWIG_arg_fail(1)) SWIG_fail;
6739 {
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 result = (arg1)->GetBox();
6742
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 {
6747 wxRect * resultptr;
6748 resultptr = new wxRect(static_cast<wxRect & >(result));
6749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6750 }
6751 return resultobj;
6752 fail:
6753 return NULL;
6754 }
6755
6756
6757 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj = NULL;
6759 wxRegion *arg1 = (wxRegion *) 0 ;
6760 int arg2 ;
6761 int arg3 ;
6762 int arg4 ;
6763 int arg5 ;
6764 bool result;
6765 PyObject * obj0 = 0 ;
6766 PyObject * obj1 = 0 ;
6767 PyObject * obj2 = 0 ;
6768 PyObject * obj3 = 0 ;
6769 PyObject * obj4 = 0 ;
6770 char *kwnames[] = {
6771 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6772 };
6773
6774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6775 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6776 if (SWIG_arg_fail(1)) SWIG_fail;
6777 {
6778 arg2 = static_cast<int >(SWIG_As_int(obj1));
6779 if (SWIG_arg_fail(2)) SWIG_fail;
6780 }
6781 {
6782 arg3 = static_cast<int >(SWIG_As_int(obj2));
6783 if (SWIG_arg_fail(3)) SWIG_fail;
6784 }
6785 {
6786 arg4 = static_cast<int >(SWIG_As_int(obj3));
6787 if (SWIG_arg_fail(4)) SWIG_fail;
6788 }
6789 {
6790 arg5 = static_cast<int >(SWIG_As_int(obj4));
6791 if (SWIG_arg_fail(5)) SWIG_fail;
6792 }
6793 {
6794 PyThreadState* __tstate = wxPyBeginAllowThreads();
6795 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
6796
6797 wxPyEndAllowThreads(__tstate);
6798 if (PyErr_Occurred()) SWIG_fail;
6799 }
6800 {
6801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6802 }
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj = NULL;
6811 wxRegion *arg1 = (wxRegion *) 0 ;
6812 wxRect *arg2 = 0 ;
6813 bool result;
6814 wxRect temp2 ;
6815 PyObject * obj0 = 0 ;
6816 PyObject * obj1 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self",(char *) "rect", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
6822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6823 if (SWIG_arg_fail(1)) SWIG_fail;
6824 {
6825 arg2 = &temp2;
6826 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6827 }
6828 {
6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6830 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 {
6836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6837 }
6838 return resultobj;
6839 fail:
6840 return NULL;
6841 }
6842
6843
6844 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj = NULL;
6846 wxRegion *arg1 = (wxRegion *) 0 ;
6847 wxRegion *arg2 = 0 ;
6848 bool result;
6849 PyObject * obj0 = 0 ;
6850 PyObject * obj1 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "self",(char *) "region", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
6856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6857 if (SWIG_arg_fail(1)) SWIG_fail;
6858 {
6859 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6860 if (SWIG_arg_fail(2)) SWIG_fail;
6861 if (arg2 == NULL) {
6862 SWIG_null_ref("wxRegion");
6863 }
6864 if (SWIG_arg_fail(2)) SWIG_fail;
6865 }
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
6869
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 {
6874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6875 }
6876 return resultobj;
6877 fail:
6878 return NULL;
6879 }
6880
6881
6882 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
6883 PyObject *resultobj = NULL;
6884 wxRegion *arg1 = (wxRegion *) 0 ;
6885 bool result;
6886 PyObject * obj0 = 0 ;
6887 char *kwnames[] = {
6888 (char *) "self", NULL
6889 };
6890
6891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
6892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6893 if (SWIG_arg_fail(1)) SWIG_fail;
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 result = (bool)(arg1)->IsEmpty();
6897
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) SWIG_fail;
6900 }
6901 {
6902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6903 }
6904 return resultobj;
6905 fail:
6906 return NULL;
6907 }
6908
6909
6910 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj = NULL;
6912 wxRegion *arg1 = (wxRegion *) 0 ;
6913 int arg2 ;
6914 int arg3 ;
6915 int arg4 ;
6916 int arg5 ;
6917 bool result;
6918 PyObject * obj0 = 0 ;
6919 PyObject * obj1 = 0 ;
6920 PyObject * obj2 = 0 ;
6921 PyObject * obj3 = 0 ;
6922 PyObject * obj4 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6928 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6929 if (SWIG_arg_fail(1)) SWIG_fail;
6930 {
6931 arg2 = static_cast<int >(SWIG_As_int(obj1));
6932 if (SWIG_arg_fail(2)) SWIG_fail;
6933 }
6934 {
6935 arg3 = static_cast<int >(SWIG_As_int(obj2));
6936 if (SWIG_arg_fail(3)) SWIG_fail;
6937 }
6938 {
6939 arg4 = static_cast<int >(SWIG_As_int(obj3));
6940 if (SWIG_arg_fail(4)) SWIG_fail;
6941 }
6942 {
6943 arg5 = static_cast<int >(SWIG_As_int(obj4));
6944 if (SWIG_arg_fail(5)) SWIG_fail;
6945 }
6946 {
6947 PyThreadState* __tstate = wxPyBeginAllowThreads();
6948 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
6949
6950 wxPyEndAllowThreads(__tstate);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 {
6954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6955 }
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj = NULL;
6964 wxRegion *arg1 = (wxRegion *) 0 ;
6965 wxRect *arg2 = 0 ;
6966 bool result;
6967 wxRect temp2 ;
6968 PyObject * obj0 = 0 ;
6969 PyObject * obj1 = 0 ;
6970 char *kwnames[] = {
6971 (char *) "self",(char *) "rect", NULL
6972 };
6973
6974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
6975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6976 if (SWIG_arg_fail(1)) SWIG_fail;
6977 {
6978 arg2 = &temp2;
6979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6980 }
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 result = (bool)(arg1)->Union((wxRect const &)*arg2);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 {
6989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6990 }
6991 return resultobj;
6992 fail:
6993 return NULL;
6994 }
6995
6996
6997 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj = NULL;
6999 wxRegion *arg1 = (wxRegion *) 0 ;
7000 wxRegion *arg2 = 0 ;
7001 bool result;
7002 PyObject * obj0 = 0 ;
7003 PyObject * obj1 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self",(char *) "region", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
7009 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7010 if (SWIG_arg_fail(1)) SWIG_fail;
7011 {
7012 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7013 if (SWIG_arg_fail(2)) SWIG_fail;
7014 if (arg2 == NULL) {
7015 SWIG_null_ref("wxRegion");
7016 }
7017 if (SWIG_arg_fail(2)) SWIG_fail;
7018 }
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
7022
7023 wxPyEndAllowThreads(__tstate);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 {
7027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7028 }
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
7036 PyObject *resultobj = NULL;
7037 wxRegion *arg1 = (wxRegion *) 0 ;
7038 int arg2 ;
7039 int arg3 ;
7040 int arg4 ;
7041 int arg5 ;
7042 bool result;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 PyObject * obj2 = 0 ;
7046 PyObject * obj3 = 0 ;
7047 PyObject * obj4 = 0 ;
7048 char *kwnames[] = {
7049 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7050 };
7051
7052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7054 if (SWIG_arg_fail(1)) SWIG_fail;
7055 {
7056 arg2 = static_cast<int >(SWIG_As_int(obj1));
7057 if (SWIG_arg_fail(2)) SWIG_fail;
7058 }
7059 {
7060 arg3 = static_cast<int >(SWIG_As_int(obj2));
7061 if (SWIG_arg_fail(3)) SWIG_fail;
7062 }
7063 {
7064 arg4 = static_cast<int >(SWIG_As_int(obj3));
7065 if (SWIG_arg_fail(4)) SWIG_fail;
7066 }
7067 {
7068 arg5 = static_cast<int >(SWIG_As_int(obj4));
7069 if (SWIG_arg_fail(5)) SWIG_fail;
7070 }
7071 {
7072 PyThreadState* __tstate = wxPyBeginAllowThreads();
7073 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
7074
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 {
7079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7080 }
7081 return resultobj;
7082 fail:
7083 return NULL;
7084 }
7085
7086
7087 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
7088 PyObject *resultobj = NULL;
7089 wxRegion *arg1 = (wxRegion *) 0 ;
7090 wxRect *arg2 = 0 ;
7091 bool result;
7092 wxRect temp2 ;
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 char *kwnames[] = {
7096 (char *) "self",(char *) "rect", NULL
7097 };
7098
7099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
7100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7101 if (SWIG_arg_fail(1)) SWIG_fail;
7102 {
7103 arg2 = &temp2;
7104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7105 }
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
7109
7110 wxPyEndAllowThreads(__tstate);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 {
7114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7115 }
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj = NULL;
7124 wxRegion *arg1 = (wxRegion *) 0 ;
7125 wxRegion *arg2 = 0 ;
7126 bool result;
7127 PyObject * obj0 = 0 ;
7128 PyObject * obj1 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self",(char *) "region", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
7134 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7135 if (SWIG_arg_fail(1)) SWIG_fail;
7136 {
7137 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7138 if (SWIG_arg_fail(2)) SWIG_fail;
7139 if (arg2 == NULL) {
7140 SWIG_null_ref("wxRegion");
7141 }
7142 if (SWIG_arg_fail(2)) SWIG_fail;
7143 }
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 {
7152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7153 }
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj = NULL;
7162 wxRegion *arg1 = (wxRegion *) 0 ;
7163 int arg2 ;
7164 int arg3 ;
7165 int arg4 ;
7166 int arg5 ;
7167 bool result;
7168 PyObject * obj0 = 0 ;
7169 PyObject * obj1 = 0 ;
7170 PyObject * obj2 = 0 ;
7171 PyObject * obj3 = 0 ;
7172 PyObject * obj4 = 0 ;
7173 char *kwnames[] = {
7174 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7175 };
7176
7177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7179 if (SWIG_arg_fail(1)) SWIG_fail;
7180 {
7181 arg2 = static_cast<int >(SWIG_As_int(obj1));
7182 if (SWIG_arg_fail(2)) SWIG_fail;
7183 }
7184 {
7185 arg3 = static_cast<int >(SWIG_As_int(obj2));
7186 if (SWIG_arg_fail(3)) SWIG_fail;
7187 }
7188 {
7189 arg4 = static_cast<int >(SWIG_As_int(obj3));
7190 if (SWIG_arg_fail(4)) SWIG_fail;
7191 }
7192 {
7193 arg5 = static_cast<int >(SWIG_As_int(obj4));
7194 if (SWIG_arg_fail(5)) SWIG_fail;
7195 }
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 {
7204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7205 }
7206 return resultobj;
7207 fail:
7208 return NULL;
7209 }
7210
7211
7212 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
7213 PyObject *resultobj = NULL;
7214 wxRegion *arg1 = (wxRegion *) 0 ;
7215 wxRect *arg2 = 0 ;
7216 bool result;
7217 wxRect temp2 ;
7218 PyObject * obj0 = 0 ;
7219 PyObject * obj1 = 0 ;
7220 char *kwnames[] = {
7221 (char *) "self",(char *) "rect", NULL
7222 };
7223
7224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7226 if (SWIG_arg_fail(1)) SWIG_fail;
7227 {
7228 arg2 = &temp2;
7229 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7230 }
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 {
7239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7240 }
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7248 PyObject *resultobj = NULL;
7249 wxRegion *arg1 = (wxRegion *) 0 ;
7250 wxRegion *arg2 = 0 ;
7251 bool result;
7252 PyObject * obj0 = 0 ;
7253 PyObject * obj1 = 0 ;
7254 char *kwnames[] = {
7255 (char *) "self",(char *) "region", NULL
7256 };
7257
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7259 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7260 if (SWIG_arg_fail(1)) SWIG_fail;
7261 {
7262 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7263 if (SWIG_arg_fail(2)) SWIG_fail;
7264 if (arg2 == NULL) {
7265 SWIG_null_ref("wxRegion");
7266 }
7267 if (SWIG_arg_fail(2)) SWIG_fail;
7268 }
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
7272
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 {
7277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7278 }
7279 return resultobj;
7280 fail:
7281 return NULL;
7282 }
7283
7284
7285 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7286 PyObject *resultobj = NULL;
7287 wxRegion *arg1 = (wxRegion *) 0 ;
7288 SwigValueWrapper<wxBitmap > result;
7289 PyObject * obj0 = 0 ;
7290 char *kwnames[] = {
7291 (char *) "self", NULL
7292 };
7293
7294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7296 if (SWIG_arg_fail(1)) SWIG_fail;
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 result = (arg1)->ConvertToBitmap();
7300
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 {
7305 wxBitmap * resultptr;
7306 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
7307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7308 }
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj = NULL;
7317 wxRegion *arg1 = (wxRegion *) 0 ;
7318 wxBitmap *arg2 = 0 ;
7319 bool result;
7320 PyObject * obj0 = 0 ;
7321 PyObject * obj1 = 0 ;
7322 char *kwnames[] = {
7323 (char *) "self",(char *) "bmp", NULL
7324 };
7325
7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7327 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7328 if (SWIG_arg_fail(1)) SWIG_fail;
7329 {
7330 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7331 if (SWIG_arg_fail(2)) SWIG_fail;
7332 if (arg2 == NULL) {
7333 SWIG_null_ref("wxBitmap");
7334 }
7335 if (SWIG_arg_fail(2)) SWIG_fail;
7336 }
7337 {
7338 PyThreadState* __tstate = wxPyBeginAllowThreads();
7339 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
7340
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7346 }
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj = NULL;
7355 wxRegion *arg1 = (wxRegion *) 0 ;
7356 wxBitmap *arg2 = 0 ;
7357 wxColour *arg3 = 0 ;
7358 int arg4 = (int) 0 ;
7359 bool result;
7360 wxColour temp3 ;
7361 PyObject * obj0 = 0 ;
7362 PyObject * obj1 = 0 ;
7363 PyObject * obj2 = 0 ;
7364 PyObject * obj3 = 0 ;
7365 char *kwnames[] = {
7366 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7370 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7371 if (SWIG_arg_fail(1)) SWIG_fail;
7372 {
7373 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7374 if (SWIG_arg_fail(2)) SWIG_fail;
7375 if (arg2 == NULL) {
7376 SWIG_null_ref("wxBitmap");
7377 }
7378 if (SWIG_arg_fail(2)) SWIG_fail;
7379 }
7380 {
7381 arg3 = &temp3;
7382 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7383 }
7384 if (obj3) {
7385 {
7386 arg4 = static_cast<int >(SWIG_As_int(obj3));
7387 if (SWIG_arg_fail(4)) SWIG_fail;
7388 }
7389 }
7390 {
7391 PyThreadState* __tstate = wxPyBeginAllowThreads();
7392 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
7393
7394 wxPyEndAllowThreads(__tstate);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 {
7398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7399 }
7400 return resultobj;
7401 fail:
7402 return NULL;
7403 }
7404
7405
7406 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
7407 PyObject *obj;
7408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7409 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7410 Py_INCREF(obj);
7411 return Py_BuildValue((char *)"");
7412 }
7413 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj = NULL;
7415 wxRegion *arg1 = 0 ;
7416 wxRegionIterator *result;
7417 PyObject * obj0 = 0 ;
7418 char *kwnames[] = {
7419 (char *) "region", NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
7423 {
7424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7425 if (SWIG_arg_fail(1)) SWIG_fail;
7426 if (arg1 == NULL) {
7427 SWIG_null_ref("wxRegion");
7428 }
7429 if (SWIG_arg_fail(1)) SWIG_fail;
7430 }
7431 {
7432 if (!wxPyCheckForApp()) SWIG_fail;
7433 PyThreadState* __tstate = wxPyBeginAllowThreads();
7434 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
7435
7436 wxPyEndAllowThreads(__tstate);
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7447 PyObject *resultobj = NULL;
7448 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7449 PyObject * obj0 = 0 ;
7450 char *kwnames[] = {
7451 (char *) "self", NULL
7452 };
7453
7454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7456 if (SWIG_arg_fail(1)) SWIG_fail;
7457 {
7458 PyThreadState* __tstate = wxPyBeginAllowThreads();
7459 delete arg1;
7460
7461 wxPyEndAllowThreads(__tstate);
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 Py_INCREF(Py_None); resultobj = Py_None;
7465 return resultobj;
7466 fail:
7467 return NULL;
7468 }
7469
7470
7471 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
7472 PyObject *resultobj = NULL;
7473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7474 int result;
7475 PyObject * obj0 = 0 ;
7476 char *kwnames[] = {
7477 (char *) "self", NULL
7478 };
7479
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
7481 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7482 if (SWIG_arg_fail(1)) SWIG_fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 result = (int)(arg1)->GetX();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 {
7491 resultobj = SWIG_From_int(static_cast<int >(result));
7492 }
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
7500 PyObject *resultobj = NULL;
7501 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7502 int result;
7503 PyObject * obj0 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
7509 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7510 if (SWIG_arg_fail(1)) SWIG_fail;
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 result = (int)(arg1)->GetY();
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 {
7519 resultobj = SWIG_From_int(static_cast<int >(result));
7520 }
7521 return resultobj;
7522 fail:
7523 return NULL;
7524 }
7525
7526
7527 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
7528 PyObject *resultobj = NULL;
7529 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7530 int result;
7531 PyObject * obj0 = 0 ;
7532 char *kwnames[] = {
7533 (char *) "self", NULL
7534 };
7535
7536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
7537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7538 if (SWIG_arg_fail(1)) SWIG_fail;
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (int)(arg1)->GetW();
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 resultobj = SWIG_From_int(static_cast<int >(result));
7548 }
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
7556 PyObject *resultobj = NULL;
7557 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7558 int result;
7559 PyObject * obj0 = 0 ;
7560 char *kwnames[] = {
7561 (char *) "self", NULL
7562 };
7563
7564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
7565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7566 if (SWIG_arg_fail(1)) SWIG_fail;
7567 {
7568 PyThreadState* __tstate = wxPyBeginAllowThreads();
7569 result = (int)(arg1)->GetWidth();
7570
7571 wxPyEndAllowThreads(__tstate);
7572 if (PyErr_Occurred()) SWIG_fail;
7573 }
7574 {
7575 resultobj = SWIG_From_int(static_cast<int >(result));
7576 }
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj = NULL;
7585 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7586 int result;
7587 PyObject * obj0 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "self", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
7593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7594 if (SWIG_arg_fail(1)) SWIG_fail;
7595 {
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 result = (int)(arg1)->GetH();
7598
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 {
7603 resultobj = SWIG_From_int(static_cast<int >(result));
7604 }
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj = NULL;
7613 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7614 int result;
7615 PyObject * obj0 = 0 ;
7616 char *kwnames[] = {
7617 (char *) "self", NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
7621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7622 if (SWIG_arg_fail(1)) SWIG_fail;
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (int)(arg1)->GetHeight();
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 {
7631 resultobj = SWIG_From_int(static_cast<int >(result));
7632 }
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = NULL;
7641 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7642 wxRect result;
7643 PyObject * obj0 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "self", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
7649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7650 if (SWIG_arg_fail(1)) SWIG_fail;
7651 {
7652 PyThreadState* __tstate = wxPyBeginAllowThreads();
7653 result = (arg1)->GetRect();
7654
7655 wxPyEndAllowThreads(__tstate);
7656 if (PyErr_Occurred()) SWIG_fail;
7657 }
7658 {
7659 wxRect * resultptr;
7660 resultptr = new wxRect(static_cast<wxRect & >(result));
7661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7662 }
7663 return resultobj;
7664 fail:
7665 return NULL;
7666 }
7667
7668
7669 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
7670 PyObject *resultobj = NULL;
7671 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7672 bool result;
7673 PyObject * obj0 = 0 ;
7674 char *kwnames[] = {
7675 (char *) "self", NULL
7676 };
7677
7678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
7679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7680 if (SWIG_arg_fail(1)) SWIG_fail;
7681 {
7682 PyThreadState* __tstate = wxPyBeginAllowThreads();
7683 result = (bool)(arg1)->HaveRects();
7684
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 {
7689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7690 }
7691 return resultobj;
7692 fail:
7693 return NULL;
7694 }
7695
7696
7697 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
7698 PyObject *resultobj = NULL;
7699 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7700 PyObject * obj0 = 0 ;
7701 char *kwnames[] = {
7702 (char *) "self", NULL
7703 };
7704
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
7706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7707 if (SWIG_arg_fail(1)) SWIG_fail;
7708 {
7709 PyThreadState* __tstate = wxPyBeginAllowThreads();
7710 (arg1)->Reset();
7711
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 Py_INCREF(Py_None); resultobj = Py_None;
7716 return resultobj;
7717 fail:
7718 return NULL;
7719 }
7720
7721
7722 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
7723 PyObject *resultobj = NULL;
7724 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7725 PyObject * obj0 = 0 ;
7726 char *kwnames[] = {
7727 (char *) "self", NULL
7728 };
7729
7730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
7731 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7732 if (SWIG_arg_fail(1)) SWIG_fail;
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 wxRegionIterator_Next(arg1);
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 Py_INCREF(Py_None); resultobj = Py_None;
7741 return resultobj;
7742 fail:
7743 return NULL;
7744 }
7745
7746
7747 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
7748 PyObject *resultobj = NULL;
7749 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7750 bool result;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "self", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
7757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7758 if (SWIG_arg_fail(1)) SWIG_fail;
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 result = (bool)wxRegionIterator___nonzero__(arg1);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 {
7767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7768 }
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
7776 PyObject *obj;
7777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7778 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
7779 Py_INCREF(obj);
7780 return Py_BuildValue((char *)"");
7781 }
7782 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj = NULL;
7784 wxNativeFontInfo *result;
7785 char *kwnames[] = {
7786 NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (wxNativeFontInfo *)new wxNativeFontInfo();
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7805 PyObject *resultobj = NULL;
7806 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7807 PyObject * obj0 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
7813 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7814 if (SWIG_arg_fail(1)) SWIG_fail;
7815 {
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 delete arg1;
7818
7819 wxPyEndAllowThreads(__tstate);
7820 if (PyErr_Occurred()) SWIG_fail;
7821 }
7822 Py_INCREF(Py_None); resultobj = Py_None;
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7830 PyObject *resultobj = NULL;
7831 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7832 PyObject * obj0 = 0 ;
7833 char *kwnames[] = {
7834 (char *) "self", NULL
7835 };
7836
7837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
7838 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7839 if (SWIG_arg_fail(1)) SWIG_fail;
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 (arg1)->Init();
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 Py_INCREF(Py_None); resultobj = Py_None;
7848 return resultobj;
7849 fail:
7850 return NULL;
7851 }
7852
7853
7854 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj = NULL;
7856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7857 wxFont *arg2 = 0 ;
7858 PyObject * obj0 = 0 ;
7859 PyObject * obj1 = 0 ;
7860 char *kwnames[] = {
7861 (char *) "self",(char *) "font", NULL
7862 };
7863
7864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
7865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7866 if (SWIG_arg_fail(1)) SWIG_fail;
7867 {
7868 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
7869 if (SWIG_arg_fail(2)) SWIG_fail;
7870 if (arg2 == NULL) {
7871 SWIG_null_ref("wxFont");
7872 }
7873 if (SWIG_arg_fail(2)) SWIG_fail;
7874 }
7875 {
7876 PyThreadState* __tstate = wxPyBeginAllowThreads();
7877 (arg1)->InitFromFont((wxFont const &)*arg2);
7878
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 Py_INCREF(Py_None); resultobj = Py_None;
7883 return resultobj;
7884 fail:
7885 return NULL;
7886 }
7887
7888
7889 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7890 PyObject *resultobj = NULL;
7891 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7892 int result;
7893 PyObject * obj0 = 0 ;
7894 char *kwnames[] = {
7895 (char *) "self", NULL
7896 };
7897
7898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
7899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7900 if (SWIG_arg_fail(1)) SWIG_fail;
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
7904
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 {
7909 resultobj = SWIG_From_int(static_cast<int >(result));
7910 }
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj = NULL;
7919 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7920 wxFontStyle result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "self", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
7927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7928 if (SWIG_arg_fail(1)) SWIG_fail;
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
7932
7933 wxPyEndAllowThreads(__tstate);
7934 if (PyErr_Occurred()) SWIG_fail;
7935 }
7936 resultobj = SWIG_From_int((result));
7937 return resultobj;
7938 fail:
7939 return NULL;
7940 }
7941
7942
7943 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7944 PyObject *resultobj = NULL;
7945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7946 wxFontWeight result;
7947 PyObject * obj0 = 0 ;
7948 char *kwnames[] = {
7949 (char *) "self", NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
7953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7954 if (SWIG_arg_fail(1)) SWIG_fail;
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 resultobj = SWIG_From_int((result));
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj = NULL;
7971 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7972 bool result;
7973 PyObject * obj0 = 0 ;
7974 char *kwnames[] = {
7975 (char *) "self", NULL
7976 };
7977
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
7979 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7980 if (SWIG_arg_fail(1)) SWIG_fail;
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
7984
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 {
7989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7990 }
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj = NULL;
7999 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8000 wxString result;
8001 PyObject * obj0 = 0 ;
8002 char *kwnames[] = {
8003 (char *) "self", NULL
8004 };
8005
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
8007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8008 if (SWIG_arg_fail(1)) SWIG_fail;
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 {
8017 #if wxUSE_UNICODE
8018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8019 #else
8020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8021 #endif
8022 }
8023 return resultobj;
8024 fail:
8025 return NULL;
8026 }
8027
8028
8029 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8030 PyObject *resultobj = NULL;
8031 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8032 wxFontFamily result;
8033 PyObject * obj0 = 0 ;
8034 char *kwnames[] = {
8035 (char *) "self", NULL
8036 };
8037
8038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
8039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8040 if (SWIG_arg_fail(1)) SWIG_fail;
8041 {
8042 PyThreadState* __tstate = wxPyBeginAllowThreads();
8043 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
8044
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 resultobj = SWIG_From_int((result));
8049 return resultobj;
8050 fail:
8051 return NULL;
8052 }
8053
8054
8055 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8056 PyObject *resultobj = NULL;
8057 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8058 wxFontEncoding result;
8059 PyObject * obj0 = 0 ;
8060 char *kwnames[] = {
8061 (char *) "self", NULL
8062 };
8063
8064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
8065 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8066 if (SWIG_arg_fail(1)) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 resultobj = SWIG_From_int((result));
8075 return resultobj;
8076 fail:
8077 return NULL;
8078 }
8079
8080
8081 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8082 PyObject *resultobj = NULL;
8083 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8084 int arg2 ;
8085 PyObject * obj0 = 0 ;
8086 PyObject * obj1 = 0 ;
8087 char *kwnames[] = {
8088 (char *) "self",(char *) "pointsize", NULL
8089 };
8090
8091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8093 if (SWIG_arg_fail(1)) SWIG_fail;
8094 {
8095 arg2 = static_cast<int >(SWIG_As_int(obj1));
8096 if (SWIG_arg_fail(2)) SWIG_fail;
8097 }
8098 {
8099 PyThreadState* __tstate = wxPyBeginAllowThreads();
8100 (arg1)->SetPointSize(arg2);
8101
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 Py_INCREF(Py_None); resultobj = Py_None;
8106 return resultobj;
8107 fail:
8108 return NULL;
8109 }
8110
8111
8112 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj = NULL;
8114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8115 wxFontStyle arg2 ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 char *kwnames[] = {
8119 (char *) "self",(char *) "style", NULL
8120 };
8121
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8124 if (SWIG_arg_fail(1)) SWIG_fail;
8125 {
8126 arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1));
8127 if (SWIG_arg_fail(2)) SWIG_fail;
8128 }
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 (arg1)->SetStyle(arg2);
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 Py_INCREF(Py_None); resultobj = Py_None;
8137 return resultobj;
8138 fail:
8139 return NULL;
8140 }
8141
8142
8143 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj = NULL;
8145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8146 wxFontWeight arg2 ;
8147 PyObject * obj0 = 0 ;
8148 PyObject * obj1 = 0 ;
8149 char *kwnames[] = {
8150 (char *) "self",(char *) "weight", NULL
8151 };
8152
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8155 if (SWIG_arg_fail(1)) SWIG_fail;
8156 {
8157 arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1));
8158 if (SWIG_arg_fail(2)) SWIG_fail;
8159 }
8160 {
8161 PyThreadState* __tstate = wxPyBeginAllowThreads();
8162 (arg1)->SetWeight(arg2);
8163
8164 wxPyEndAllowThreads(__tstate);
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 Py_INCREF(Py_None); resultobj = Py_None;
8168 return resultobj;
8169 fail:
8170 return NULL;
8171 }
8172
8173
8174 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8175 PyObject *resultobj = NULL;
8176 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8177 bool arg2 ;
8178 PyObject * obj0 = 0 ;
8179 PyObject * obj1 = 0 ;
8180 char *kwnames[] = {
8181 (char *) "self",(char *) "underlined", NULL
8182 };
8183
8184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8186 if (SWIG_arg_fail(1)) SWIG_fail;
8187 {
8188 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
8189 if (SWIG_arg_fail(2)) SWIG_fail;
8190 }
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->SetUnderlined(arg2);
8194
8195 wxPyEndAllowThreads(__tstate);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 Py_INCREF(Py_None); resultobj = Py_None;
8199 return resultobj;
8200 fail:
8201 return NULL;
8202 }
8203
8204
8205 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj = NULL;
8207 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8208 wxString arg2 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self",(char *) "facename", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8217 if (SWIG_arg_fail(1)) SWIG_fail;
8218 {
8219 wxString* sptr = wxString_in_helper(obj1);
8220 if (sptr == NULL) SWIG_fail;
8221 arg2 = *sptr;
8222 delete sptr;
8223 }
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 (arg1)->SetFaceName(arg2);
8227
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 Py_INCREF(Py_None); resultobj = Py_None;
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj = NULL;
8240 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8241 wxFontFamily arg2 ;
8242 PyObject * obj0 = 0 ;
8243 PyObject * obj1 = 0 ;
8244 char *kwnames[] = {
8245 (char *) "self",(char *) "family", NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8249 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8250 if (SWIG_arg_fail(1)) SWIG_fail;
8251 {
8252 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
8253 if (SWIG_arg_fail(2)) SWIG_fail;
8254 }
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 (arg1)->SetFamily(arg2);
8258
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 Py_INCREF(Py_None); resultobj = Py_None;
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj = NULL;
8271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8272 wxFontEncoding arg2 ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self",(char *) "encoding", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8280 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8281 if (SWIG_arg_fail(1)) SWIG_fail;
8282 {
8283 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8284 if (SWIG_arg_fail(2)) SWIG_fail;
8285 }
8286 {
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 (arg1)->SetEncoding(arg2);
8289
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 Py_INCREF(Py_None); resultobj = Py_None;
8294 return resultobj;
8295 fail:
8296 return NULL;
8297 }
8298
8299
8300 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8301 PyObject *resultobj = NULL;
8302 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8303 wxString *arg2 = 0 ;
8304 bool result;
8305 bool temp2 = false ;
8306 PyObject * obj0 = 0 ;
8307 PyObject * obj1 = 0 ;
8308 char *kwnames[] = {
8309 (char *) "self",(char *) "s", NULL
8310 };
8311
8312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8314 if (SWIG_arg_fail(1)) SWIG_fail;
8315 {
8316 arg2 = wxString_in_helper(obj1);
8317 if (arg2 == NULL) SWIG_fail;
8318 temp2 = true;
8319 }
8320 {
8321 PyThreadState* __tstate = wxPyBeginAllowThreads();
8322 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8323
8324 wxPyEndAllowThreads(__tstate);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 {
8328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8329 }
8330 {
8331 if (temp2)
8332 delete arg2;
8333 }
8334 return resultobj;
8335 fail:
8336 {
8337 if (temp2)
8338 delete arg2;
8339 }
8340 return NULL;
8341 }
8342
8343
8344 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj = NULL;
8346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8347 wxString result;
8348 PyObject * obj0 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8354 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8355 if (SWIG_arg_fail(1)) SWIG_fail;
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 result = ((wxNativeFontInfo const *)arg1)->ToString();
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 {
8364 #if wxUSE_UNICODE
8365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8366 #else
8367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8368 #endif
8369 }
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
8377 PyObject *resultobj = NULL;
8378 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8379 wxString result;
8380 PyObject * obj0 = 0 ;
8381 char *kwnames[] = {
8382 (char *) "self", NULL
8383 };
8384
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8387 if (SWIG_arg_fail(1)) SWIG_fail;
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 result = wxNativeFontInfo___str__(arg1);
8391
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 {
8396 #if wxUSE_UNICODE
8397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8398 #else
8399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8400 #endif
8401 }
8402 return resultobj;
8403 fail:
8404 return NULL;
8405 }
8406
8407
8408 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
8409 PyObject *resultobj = NULL;
8410 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8411 wxString *arg2 = 0 ;
8412 bool result;
8413 bool temp2 = false ;
8414 PyObject * obj0 = 0 ;
8415 PyObject * obj1 = 0 ;
8416 char *kwnames[] = {
8417 (char *) "self",(char *) "s", NULL
8418 };
8419
8420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
8421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8422 if (SWIG_arg_fail(1)) SWIG_fail;
8423 {
8424 arg2 = wxString_in_helper(obj1);
8425 if (arg2 == NULL) SWIG_fail;
8426 temp2 = true;
8427 }
8428 {
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
8431
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8437 }
8438 {
8439 if (temp2)
8440 delete arg2;
8441 }
8442 return resultobj;
8443 fail:
8444 {
8445 if (temp2)
8446 delete arg2;
8447 }
8448 return NULL;
8449 }
8450
8451
8452 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj = NULL;
8454 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8455 wxString result;
8456 PyObject * obj0 = 0 ;
8457 char *kwnames[] = {
8458 (char *) "self", NULL
8459 };
8460
8461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
8462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8463 if (SWIG_arg_fail(1)) SWIG_fail;
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
8467
8468 wxPyEndAllowThreads(__tstate);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 {
8472 #if wxUSE_UNICODE
8473 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8474 #else
8475 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8476 #endif
8477 }
8478 return resultobj;
8479 fail:
8480 return NULL;
8481 }
8482
8483
8484 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
8485 PyObject *obj;
8486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8487 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
8488 Py_INCREF(obj);
8489 return Py_BuildValue((char *)"");
8490 }
8491 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj = NULL;
8493 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8494 wxString *arg2 = (wxString *) 0 ;
8495 bool temp2 = false ;
8496 PyObject * obj0 = 0 ;
8497 PyObject * obj1 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self",(char *) "facename", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
8503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8504 if (SWIG_arg_fail(1)) SWIG_fail;
8505 {
8506 arg2 = wxString_in_helper(obj1);
8507 if (arg2 == NULL) SWIG_fail;
8508 temp2 = true;
8509 }
8510 if (arg1) (arg1)->facename = *arg2;
8511
8512 Py_INCREF(Py_None); resultobj = Py_None;
8513 {
8514 if (temp2)
8515 delete arg2;
8516 }
8517 return resultobj;
8518 fail:
8519 {
8520 if (temp2)
8521 delete arg2;
8522 }
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj = NULL;
8529 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8530 wxString *result;
8531 PyObject * obj0 = 0 ;
8532 char *kwnames[] = {
8533 (char *) "self", NULL
8534 };
8535
8536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
8537 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8538 if (SWIG_arg_fail(1)) SWIG_fail;
8539 result = (wxString *)& ((arg1)->facename);
8540
8541 {
8542 #if wxUSE_UNICODE
8543 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8544 #else
8545 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8546 #endif
8547 }
8548 return resultobj;
8549 fail:
8550 return NULL;
8551 }
8552
8553
8554 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj = NULL;
8556 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8557 wxFontEncoding arg2 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 char *kwnames[] = {
8561 (char *) "self",(char *) "encoding", NULL
8562 };
8563
8564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
8565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8566 if (SWIG_arg_fail(1)) SWIG_fail;
8567 {
8568 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8569 if (SWIG_arg_fail(2)) SWIG_fail;
8570 }
8571 if (arg1) (arg1)->encoding = arg2;
8572
8573 Py_INCREF(Py_None); resultobj = Py_None;
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
8581 PyObject *resultobj = NULL;
8582 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8583 wxFontEncoding result;
8584 PyObject * obj0 = 0 ;
8585 char *kwnames[] = {
8586 (char *) "self", NULL
8587 };
8588
8589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
8590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8591 if (SWIG_arg_fail(1)) SWIG_fail;
8592 result = (wxFontEncoding) ((arg1)->encoding);
8593
8594 resultobj = SWIG_From_int((result));
8595 return resultobj;
8596 fail:
8597 return NULL;
8598 }
8599
8600
8601 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj = NULL;
8603 wxNativeEncodingInfo *result;
8604 char *kwnames[] = {
8605 NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
8617 return resultobj;
8618 fail:
8619 return NULL;
8620 }
8621
8622
8623 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj = NULL;
8625 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8626 PyObject * obj0 = 0 ;
8627 char *kwnames[] = {
8628 (char *) "self", NULL
8629 };
8630
8631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
8632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8633 if (SWIG_arg_fail(1)) SWIG_fail;
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 delete arg1;
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 Py_INCREF(Py_None); resultobj = Py_None;
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj = NULL;
8650 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8651 wxString *arg2 = 0 ;
8652 bool result;
8653 bool temp2 = false ;
8654 PyObject * obj0 = 0 ;
8655 PyObject * obj1 = 0 ;
8656 char *kwnames[] = {
8657 (char *) "self",(char *) "s", NULL
8658 };
8659
8660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8661 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8662 if (SWIG_arg_fail(1)) SWIG_fail;
8663 {
8664 arg2 = wxString_in_helper(obj1);
8665 if (arg2 == NULL) SWIG_fail;
8666 temp2 = true;
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 {
8676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8677 }
8678 {
8679 if (temp2)
8680 delete arg2;
8681 }
8682 return resultobj;
8683 fail:
8684 {
8685 if (temp2)
8686 delete arg2;
8687 }
8688 return NULL;
8689 }
8690
8691
8692 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj = NULL;
8694 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8695 wxString result;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
8702 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8703 if (SWIG_arg_fail(1)) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 {
8712 #if wxUSE_UNICODE
8713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8714 #else
8715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8716 #endif
8717 }
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
8725 PyObject *obj;
8726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8727 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
8728 Py_INCREF(obj);
8729 return Py_BuildValue((char *)"");
8730 }
8731 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8732 PyObject *resultobj = NULL;
8733 wxFontEncoding arg1 ;
8734 wxNativeEncodingInfo *result;
8735 PyObject * obj0 = 0 ;
8736 char *kwnames[] = {
8737 (char *) "encoding", NULL
8738 };
8739
8740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
8741 {
8742 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
8743 if (SWIG_arg_fail(1)) SWIG_fail;
8744 }
8745 {
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
8748
8749 wxPyEndAllowThreads(__tstate);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = NULL;
8761 wxNativeEncodingInfo *arg1 = 0 ;
8762 bool result;
8763 PyObject * obj0 = 0 ;
8764 char *kwnames[] = {
8765 (char *) "info", NULL
8766 };
8767
8768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
8769 {
8770 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8771 if (SWIG_arg_fail(1)) SWIG_fail;
8772 if (arg1 == NULL) {
8773 SWIG_null_ref("wxNativeEncodingInfo");
8774 }
8775 if (SWIG_arg_fail(1)) SWIG_fail;
8776 }
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 {
8785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8786 }
8787 return resultobj;
8788 fail:
8789 return NULL;
8790 }
8791
8792
8793 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
8794 PyObject *resultobj = NULL;
8795 wxFontMapper *result;
8796 char *kwnames[] = {
8797 NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 result = (wxFontMapper *)new wxFontMapper();
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
8809 return resultobj;
8810 fail:
8811 return NULL;
8812 }
8813
8814
8815 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj = NULL;
8817 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8818 PyObject * obj0 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "self", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
8824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8825 if (SWIG_arg_fail(1)) SWIG_fail;
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 delete arg1;
8829
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 Py_INCREF(Py_None); resultobj = Py_None;
8834 return resultobj;
8835 fail:
8836 return NULL;
8837 }
8838
8839
8840 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
8841 PyObject *resultobj = NULL;
8842 wxFontMapper *result;
8843 char *kwnames[] = {
8844 NULL
8845 };
8846
8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (wxFontMapper *)wxFontMapper::Get();
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
8856 return resultobj;
8857 fail:
8858 return NULL;
8859 }
8860
8861
8862 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
8863 PyObject *resultobj = NULL;
8864 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8865 wxFontMapper *result;
8866 PyObject * obj0 = 0 ;
8867 char *kwnames[] = {
8868 (char *) "mapper", NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
8872 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8873 if (SWIG_arg_fail(1)) SWIG_fail;
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (wxFontMapper *)wxFontMapper::Set(arg1);
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
8882 return resultobj;
8883 fail:
8884 return NULL;
8885 }
8886
8887
8888 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8889 PyObject *resultobj = NULL;
8890 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8891 wxString *arg2 = 0 ;
8892 bool arg3 = (bool) true ;
8893 wxFontEncoding result;
8894 bool temp2 = false ;
8895 PyObject * obj0 = 0 ;
8896 PyObject * obj1 = 0 ;
8897 PyObject * obj2 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "self",(char *) "charset",(char *) "interactive", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
8903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8904 if (SWIG_arg_fail(1)) SWIG_fail;
8905 {
8906 arg2 = wxString_in_helper(obj1);
8907 if (arg2 == NULL) SWIG_fail;
8908 temp2 = true;
8909 }
8910 if (obj2) {
8911 {
8912 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
8913 if (SWIG_arg_fail(3)) SWIG_fail;
8914 }
8915 }
8916 {
8917 PyThreadState* __tstate = wxPyBeginAllowThreads();
8918 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
8919
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 resultobj = SWIG_From_int((result));
8924 {
8925 if (temp2)
8926 delete arg2;
8927 }
8928 return resultobj;
8929 fail:
8930 {
8931 if (temp2)
8932 delete arg2;
8933 }
8934 return NULL;
8935 }
8936
8937
8938 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
8939 PyObject *resultobj = NULL;
8940 size_t result;
8941 char *kwnames[] = {
8942 NULL
8943 };
8944
8945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 {
8954 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
8955 }
8956 return resultobj;
8957 fail:
8958 return NULL;
8959 }
8960
8961
8962 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8963 PyObject *resultobj = NULL;
8964 size_t arg1 ;
8965 wxFontEncoding result;
8966 PyObject * obj0 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "n", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
8972 {
8973 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
8974 if (SWIG_arg_fail(1)) SWIG_fail;
8975 }
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
8983 resultobj = SWIG_From_int((result));
8984 return resultobj;
8985 fail:
8986 return NULL;
8987 }
8988
8989
8990 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj = NULL;
8992 wxFontEncoding arg1 ;
8993 wxString result;
8994 PyObject * obj0 = 0 ;
8995 char *kwnames[] = {
8996 (char *) "encoding", NULL
8997 };
8998
8999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
9000 {
9001 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9002 if (SWIG_arg_fail(1)) SWIG_fail;
9003 }
9004 {
9005 PyThreadState* __tstate = wxPyBeginAllowThreads();
9006 result = wxFontMapper::GetEncodingName(arg1);
9007
9008 wxPyEndAllowThreads(__tstate);
9009 if (PyErr_Occurred()) SWIG_fail;
9010 }
9011 {
9012 #if wxUSE_UNICODE
9013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9014 #else
9015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9016 #endif
9017 }
9018 return resultobj;
9019 fail:
9020 return NULL;
9021 }
9022
9023
9024 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
9025 PyObject *resultobj = NULL;
9026 wxFontEncoding arg1 ;
9027 wxString result;
9028 PyObject * obj0 = 0 ;
9029 char *kwnames[] = {
9030 (char *) "encoding", NULL
9031 };
9032
9033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
9034 {
9035 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9036 if (SWIG_arg_fail(1)) SWIG_fail;
9037 }
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 result = wxFontMapper::GetEncodingDescription(arg1);
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 {
9046 #if wxUSE_UNICODE
9047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9048 #else
9049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9050 #endif
9051 }
9052 return resultobj;
9053 fail:
9054 return NULL;
9055 }
9056
9057
9058 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
9059 PyObject *resultobj = NULL;
9060 wxString *arg1 = 0 ;
9061 wxFontEncoding result;
9062 bool temp1 = false ;
9063 PyObject * obj0 = 0 ;
9064 char *kwnames[] = {
9065 (char *) "name", NULL
9066 };
9067
9068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
9069 {
9070 arg1 = wxString_in_helper(obj0);
9071 if (arg1 == NULL) SWIG_fail;
9072 temp1 = true;
9073 }
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
9077
9078 wxPyEndAllowThreads(__tstate);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 resultobj = SWIG_From_int((result));
9082 {
9083 if (temp1)
9084 delete arg1;
9085 }
9086 return resultobj;
9087 fail:
9088 {
9089 if (temp1)
9090 delete arg1;
9091 }
9092 return NULL;
9093 }
9094
9095
9096 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj = NULL;
9098 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9099 wxString *arg2 = 0 ;
9100 bool temp2 = false ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 char *kwnames[] = {
9104 (char *) "self",(char *) "prefix", NULL
9105 };
9106
9107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
9108 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9109 if (SWIG_arg_fail(1)) SWIG_fail;
9110 {
9111 arg2 = wxString_in_helper(obj1);
9112 if (arg2 == NULL) SWIG_fail;
9113 temp2 = true;
9114 }
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 (arg1)->SetConfigPath((wxString const &)*arg2);
9118
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 Py_INCREF(Py_None); resultobj = Py_None;
9123 {
9124 if (temp2)
9125 delete arg2;
9126 }
9127 return resultobj;
9128 fail:
9129 {
9130 if (temp2)
9131 delete arg2;
9132 }
9133 return NULL;
9134 }
9135
9136
9137 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9138 PyObject *resultobj = NULL;
9139 wxString result;
9140 char *kwnames[] = {
9141 NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 result = wxFontMapper::GetDefaultConfigPath();
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 {
9153 #if wxUSE_UNICODE
9154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9155 #else
9156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9157 #endif
9158 }
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj = NULL;
9167 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9168 wxFontEncoding arg2 ;
9169 wxString const &arg3_defvalue = wxPyEmptyString ;
9170 wxString *arg3 = (wxString *) &arg3_defvalue ;
9171 bool arg4 = (bool) true ;
9172 PyObject *result;
9173 bool temp3 = false ;
9174 PyObject * obj0 = 0 ;
9175 PyObject * obj1 = 0 ;
9176 PyObject * obj2 = 0 ;
9177 PyObject * obj3 = 0 ;
9178 char *kwnames[] = {
9179 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
9180 };
9181
9182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9184 if (SWIG_arg_fail(1)) SWIG_fail;
9185 {
9186 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9187 if (SWIG_arg_fail(2)) SWIG_fail;
9188 }
9189 if (obj2) {
9190 {
9191 arg3 = wxString_in_helper(obj2);
9192 if (arg3 == NULL) SWIG_fail;
9193 temp3 = true;
9194 }
9195 }
9196 if (obj3) {
9197 {
9198 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
9199 if (SWIG_arg_fail(4)) SWIG_fail;
9200 }
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
9205
9206 wxPyEndAllowThreads(__tstate);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 resultobj = result;
9210 {
9211 if (temp3)
9212 delete arg3;
9213 }
9214 return resultobj;
9215 fail:
9216 {
9217 if (temp3)
9218 delete arg3;
9219 }
9220 return NULL;
9221 }
9222
9223
9224 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9225 PyObject *resultobj = NULL;
9226 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9227 wxFontEncoding arg2 ;
9228 wxString const &arg3_defvalue = wxPyEmptyString ;
9229 wxString *arg3 = (wxString *) &arg3_defvalue ;
9230 bool result;
9231 bool temp3 = false ;
9232 PyObject * obj0 = 0 ;
9233 PyObject * obj1 = 0 ;
9234 PyObject * obj2 = 0 ;
9235 char *kwnames[] = {
9236 (char *) "self",(char *) "encoding",(char *) "facename", NULL
9237 };
9238
9239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9241 if (SWIG_arg_fail(1)) SWIG_fail;
9242 {
9243 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9244 if (SWIG_arg_fail(2)) SWIG_fail;
9245 }
9246 if (obj2) {
9247 {
9248 arg3 = wxString_in_helper(obj2);
9249 if (arg3 == NULL) SWIG_fail;
9250 temp3 = true;
9251 }
9252 }
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
9256
9257 wxPyEndAllowThreads(__tstate);
9258 if (PyErr_Occurred()) SWIG_fail;
9259 }
9260 {
9261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9262 }
9263 {
9264 if (temp3)
9265 delete arg3;
9266 }
9267 return resultobj;
9268 fail:
9269 {
9270 if (temp3)
9271 delete arg3;
9272 }
9273 return NULL;
9274 }
9275
9276
9277 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
9278 PyObject *resultobj = NULL;
9279 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9280 wxWindow *arg2 = (wxWindow *) 0 ;
9281 PyObject * obj0 = 0 ;
9282 PyObject * obj1 = 0 ;
9283 char *kwnames[] = {
9284 (char *) "self",(char *) "parent", NULL
9285 };
9286
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9289 if (SWIG_arg_fail(1)) SWIG_fail;
9290 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9291 if (SWIG_arg_fail(2)) SWIG_fail;
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 (arg1)->SetDialogParent(arg2);
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 Py_INCREF(Py_None); resultobj = Py_None;
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj = NULL;
9308 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9309 wxString *arg2 = 0 ;
9310 bool temp2 = false ;
9311 PyObject * obj0 = 0 ;
9312 PyObject * obj1 = 0 ;
9313 char *kwnames[] = {
9314 (char *) "self",(char *) "title", NULL
9315 };
9316
9317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9318 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9319 if (SWIG_arg_fail(1)) SWIG_fail;
9320 {
9321 arg2 = wxString_in_helper(obj1);
9322 if (arg2 == NULL) SWIG_fail;
9323 temp2 = true;
9324 }
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 (arg1)->SetDialogTitle((wxString const &)*arg2);
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 Py_INCREF(Py_None); resultobj = Py_None;
9333 {
9334 if (temp2)
9335 delete arg2;
9336 }
9337 return resultobj;
9338 fail:
9339 {
9340 if (temp2)
9341 delete arg2;
9342 }
9343 return NULL;
9344 }
9345
9346
9347 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9348 PyObject *obj;
9349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9350 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9351 Py_INCREF(obj);
9352 return Py_BuildValue((char *)"");
9353 }
9354 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = NULL;
9356 int arg1 ;
9357 int arg2 ;
9358 int arg3 ;
9359 int arg4 ;
9360 bool arg5 = (bool) false ;
9361 wxString const &arg6_defvalue = wxPyEmptyString ;
9362 wxString *arg6 = (wxString *) &arg6_defvalue ;
9363 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9364 wxFont *result;
9365 bool temp6 = false ;
9366 PyObject * obj0 = 0 ;
9367 PyObject * obj1 = 0 ;
9368 PyObject * obj2 = 0 ;
9369 PyObject * obj3 = 0 ;
9370 PyObject * obj4 = 0 ;
9371 PyObject * obj5 = 0 ;
9372 PyObject * obj6 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9378 {
9379 arg1 = static_cast<int >(SWIG_As_int(obj0));
9380 if (SWIG_arg_fail(1)) SWIG_fail;
9381 }
9382 {
9383 arg2 = static_cast<int >(SWIG_As_int(obj1));
9384 if (SWIG_arg_fail(2)) SWIG_fail;
9385 }
9386 {
9387 arg3 = static_cast<int >(SWIG_As_int(obj2));
9388 if (SWIG_arg_fail(3)) SWIG_fail;
9389 }
9390 {
9391 arg4 = static_cast<int >(SWIG_As_int(obj3));
9392 if (SWIG_arg_fail(4)) SWIG_fail;
9393 }
9394 if (obj4) {
9395 {
9396 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9397 if (SWIG_arg_fail(5)) SWIG_fail;
9398 }
9399 }
9400 if (obj5) {
9401 {
9402 arg6 = wxString_in_helper(obj5);
9403 if (arg6 == NULL) SWIG_fail;
9404 temp6 = true;
9405 }
9406 }
9407 if (obj6) {
9408 {
9409 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
9410 if (SWIG_arg_fail(7)) SWIG_fail;
9411 }
9412 }
9413 {
9414 if (!wxPyCheckForApp()) SWIG_fail;
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
9417
9418 wxPyEndAllowThreads(__tstate);
9419 if (PyErr_Occurred()) SWIG_fail;
9420 }
9421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9422 {
9423 if (temp6)
9424 delete arg6;
9425 }
9426 return resultobj;
9427 fail:
9428 {
9429 if (temp6)
9430 delete arg6;
9431 }
9432 return NULL;
9433 }
9434
9435
9436 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj = NULL;
9438 wxFont *arg1 = (wxFont *) 0 ;
9439 PyObject * obj0 = 0 ;
9440 char *kwnames[] = {
9441 (char *) "self", NULL
9442 };
9443
9444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
9445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9446 if (SWIG_arg_fail(1)) SWIG_fail;
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 delete arg1;
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 Py_INCREF(Py_None); resultobj = Py_None;
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj = NULL;
9463 wxNativeFontInfo *arg1 = 0 ;
9464 wxFont *result;
9465 PyObject * obj0 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "info", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
9471 {
9472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9473 if (SWIG_arg_fail(1)) SWIG_fail;
9474 if (arg1 == NULL) {
9475 SWIG_null_ref("wxNativeFontInfo");
9476 }
9477 if (SWIG_arg_fail(1)) SWIG_fail;
9478 }
9479 {
9480 if (!wxPyCheckForApp()) SWIG_fail;
9481 PyThreadState* __tstate = wxPyBeginAllowThreads();
9482 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
9483
9484 wxPyEndAllowThreads(__tstate);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 }
9487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9488 return resultobj;
9489 fail:
9490 return NULL;
9491 }
9492
9493
9494 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
9495 PyObject *resultobj = NULL;
9496 wxString *arg1 = 0 ;
9497 wxFont *result;
9498 bool temp1 = false ;
9499 PyObject * obj0 = 0 ;
9500 char *kwnames[] = {
9501 (char *) "info", NULL
9502 };
9503
9504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
9505 {
9506 arg1 = wxString_in_helper(obj0);
9507 if (arg1 == NULL) SWIG_fail;
9508 temp1 = true;
9509 }
9510 {
9511 if (!wxPyCheckForApp()) SWIG_fail;
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 result = (wxFont *)new_wxFont((wxString const &)*arg1);
9514
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9519 {
9520 if (temp1)
9521 delete arg1;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp1)
9527 delete arg1;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = NULL;
9535 int arg1 ;
9536 wxFontFamily arg2 ;
9537 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9538 wxString const &arg4_defvalue = wxPyEmptyString ;
9539 wxString *arg4 = (wxString *) &arg4_defvalue ;
9540 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9541 wxFont *result;
9542 bool temp4 = false ;
9543 PyObject * obj0 = 0 ;
9544 PyObject * obj1 = 0 ;
9545 PyObject * obj2 = 0 ;
9546 PyObject * obj3 = 0 ;
9547 PyObject * obj4 = 0 ;
9548 char *kwnames[] = {
9549 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9553 {
9554 arg1 = static_cast<int >(SWIG_As_int(obj0));
9555 if (SWIG_arg_fail(1)) SWIG_fail;
9556 }
9557 {
9558 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
9559 if (SWIG_arg_fail(2)) SWIG_fail;
9560 }
9561 if (obj2) {
9562 {
9563 arg3 = static_cast<int >(SWIG_As_int(obj2));
9564 if (SWIG_arg_fail(3)) SWIG_fail;
9565 }
9566 }
9567 if (obj3) {
9568 {
9569 arg4 = wxString_in_helper(obj3);
9570 if (arg4 == NULL) SWIG_fail;
9571 temp4 = true;
9572 }
9573 }
9574 if (obj4) {
9575 {
9576 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
9577 if (SWIG_arg_fail(5)) SWIG_fail;
9578 }
9579 }
9580 {
9581 if (!wxPyCheckForApp()) SWIG_fail;
9582 PyThreadState* __tstate = wxPyBeginAllowThreads();
9583 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
9584
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9589 {
9590 if (temp4)
9591 delete arg4;
9592 }
9593 return resultobj;
9594 fail:
9595 {
9596 if (temp4)
9597 delete arg4;
9598 }
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj = NULL;
9605 wxSize *arg1 = 0 ;
9606 int arg2 ;
9607 int arg3 ;
9608 int arg4 ;
9609 bool arg5 = (bool) false ;
9610 wxString const &arg6_defvalue = wxEmptyString ;
9611 wxString *arg6 = (wxString *) &arg6_defvalue ;
9612 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9613 wxFont *result;
9614 wxSize temp1 ;
9615 bool temp6 = false ;
9616 PyObject * obj0 = 0 ;
9617 PyObject * obj1 = 0 ;
9618 PyObject * obj2 = 0 ;
9619 PyObject * obj3 = 0 ;
9620 PyObject * obj4 = 0 ;
9621 PyObject * obj5 = 0 ;
9622 PyObject * obj6 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9628 {
9629 arg1 = &temp1;
9630 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9631 }
9632 {
9633 arg2 = static_cast<int >(SWIG_As_int(obj1));
9634 if (SWIG_arg_fail(2)) SWIG_fail;
9635 }
9636 {
9637 arg3 = static_cast<int >(SWIG_As_int(obj2));
9638 if (SWIG_arg_fail(3)) SWIG_fail;
9639 }
9640 {
9641 arg4 = static_cast<int >(SWIG_As_int(obj3));
9642 if (SWIG_arg_fail(4)) SWIG_fail;
9643 }
9644 if (obj4) {
9645 {
9646 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9647 if (SWIG_arg_fail(5)) SWIG_fail;
9648 }
9649 }
9650 if (obj5) {
9651 {
9652 arg6 = wxString_in_helper(obj5);
9653 if (arg6 == NULL) SWIG_fail;
9654 temp6 = true;
9655 }
9656 }
9657 if (obj6) {
9658 {
9659 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
9660 if (SWIG_arg_fail(7)) SWIG_fail;
9661 }
9662 }
9663 {
9664 if (!wxPyCheckForApp()) SWIG_fail;
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9672 {
9673 if (temp6)
9674 delete arg6;
9675 }
9676 return resultobj;
9677 fail:
9678 {
9679 if (temp6)
9680 delete arg6;
9681 }
9682 return NULL;
9683 }
9684
9685
9686 static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9687 PyObject *resultobj = NULL;
9688 wxSize *arg1 = 0 ;
9689 wxFontFamily arg2 ;
9690 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9691 wxString const &arg4_defvalue = wxEmptyString ;
9692 wxString *arg4 = (wxString *) &arg4_defvalue ;
9693 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9694 wxFont *result;
9695 wxSize temp1 ;
9696 bool temp4 = false ;
9697 PyObject * obj0 = 0 ;
9698 PyObject * obj1 = 0 ;
9699 PyObject * obj2 = 0 ;
9700 PyObject * obj3 = 0 ;
9701 PyObject * obj4 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9707 {
9708 arg1 = &temp1;
9709 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9710 }
9711 {
9712 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
9713 if (SWIG_arg_fail(2)) SWIG_fail;
9714 }
9715 if (obj2) {
9716 {
9717 arg3 = static_cast<int >(SWIG_As_int(obj2));
9718 if (SWIG_arg_fail(3)) SWIG_fail;
9719 }
9720 }
9721 if (obj3) {
9722 {
9723 arg4 = wxString_in_helper(obj3);
9724 if (arg4 == NULL) SWIG_fail;
9725 temp4 = true;
9726 }
9727 }
9728 if (obj4) {
9729 {
9730 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
9731 if (SWIG_arg_fail(5)) SWIG_fail;
9732 }
9733 }
9734 {
9735 if (!wxPyCheckForApp()) SWIG_fail;
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9743 {
9744 if (temp4)
9745 delete arg4;
9746 }
9747 return resultobj;
9748 fail:
9749 {
9750 if (temp4)
9751 delete arg4;
9752 }
9753 return NULL;
9754 }
9755
9756
9757 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj = NULL;
9759 wxFont *arg1 = (wxFont *) 0 ;
9760 bool result;
9761 PyObject * obj0 = 0 ;
9762 char *kwnames[] = {
9763 (char *) "self", NULL
9764 };
9765
9766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
9767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9768 if (SWIG_arg_fail(1)) SWIG_fail;
9769 {
9770 PyThreadState* __tstate = wxPyBeginAllowThreads();
9771 result = (bool)((wxFont const *)arg1)->Ok();
9772
9773 wxPyEndAllowThreads(__tstate);
9774 if (PyErr_Occurred()) SWIG_fail;
9775 }
9776 {
9777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9778 }
9779 return resultobj;
9780 fail:
9781 return NULL;
9782 }
9783
9784
9785 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj = NULL;
9787 wxFont *arg1 = (wxFont *) 0 ;
9788 wxFont *arg2 = (wxFont *) 0 ;
9789 bool result;
9790 PyObject * obj0 = 0 ;
9791 PyObject * obj1 = 0 ;
9792 char *kwnames[] = {
9793 (char *) "self",(char *) "other", NULL
9794 };
9795
9796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
9797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9798 if (SWIG_arg_fail(1)) SWIG_fail;
9799 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9800 if (SWIG_arg_fail(2)) SWIG_fail;
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
9804
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 {
9809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9810 }
9811 return resultobj;
9812 fail:
9813 return NULL;
9814 }
9815
9816
9817 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = NULL;
9819 wxFont *arg1 = (wxFont *) 0 ;
9820 wxFont *arg2 = (wxFont *) 0 ;
9821 bool result;
9822 PyObject * obj0 = 0 ;
9823 PyObject * obj1 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "self",(char *) "other", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
9829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9830 if (SWIG_arg_fail(1)) SWIG_fail;
9831 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9832 if (SWIG_arg_fail(2)) SWIG_fail;
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 {
9841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9842 }
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj = NULL;
9851 wxFont *arg1 = (wxFont *) 0 ;
9852 int result;
9853 PyObject * obj0 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "self", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
9859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9860 if (SWIG_arg_fail(1)) SWIG_fail;
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (int)((wxFont const *)arg1)->GetPointSize();
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 {
9869 resultobj = SWIG_From_int(static_cast<int >(result));
9870 }
9871 return resultobj;
9872 fail:
9873 return NULL;
9874 }
9875
9876
9877 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9878 PyObject *resultobj = NULL;
9879 wxFont *arg1 = (wxFont *) 0 ;
9880 wxSize result;
9881 PyObject * obj0 = 0 ;
9882 char *kwnames[] = {
9883 (char *) "self", NULL
9884 };
9885
9886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
9887 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9888 if (SWIG_arg_fail(1)) SWIG_fail;
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 result = ((wxFont const *)arg1)->GetPixelSize();
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 {
9897 wxSize * resultptr;
9898 resultptr = new wxSize(static_cast<wxSize & >(result));
9899 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
9900 }
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = NULL;
9909 wxFont *arg1 = (wxFont *) 0 ;
9910 bool result;
9911 PyObject * obj0 = 0 ;
9912 char *kwnames[] = {
9913 (char *) "self", NULL
9914 };
9915
9916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
9917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9918 if (SWIG_arg_fail(1)) SWIG_fail;
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 {
9927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9928 }
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj = NULL;
9937 wxFont *arg1 = (wxFont *) 0 ;
9938 int result;
9939 PyObject * obj0 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
9945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9946 if (SWIG_arg_fail(1)) SWIG_fail;
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 result = (int)((wxFont const *)arg1)->GetFamily();
9950
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 {
9955 resultobj = SWIG_From_int(static_cast<int >(result));
9956 }
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9964 PyObject *resultobj = NULL;
9965 wxFont *arg1 = (wxFont *) 0 ;
9966 int result;
9967 PyObject * obj0 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
9973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9974 if (SWIG_arg_fail(1)) SWIG_fail;
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = (int)((wxFont const *)arg1)->GetStyle();
9978
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 resultobj = SWIG_From_int(static_cast<int >(result));
9984 }
9985 return resultobj;
9986 fail:
9987 return NULL;
9988 }
9989
9990
9991 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
9992 PyObject *resultobj = NULL;
9993 wxFont *arg1 = (wxFont *) 0 ;
9994 int result;
9995 PyObject * obj0 = 0 ;
9996 char *kwnames[] = {
9997 (char *) "self", NULL
9998 };
9999
10000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
10001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10002 if (SWIG_arg_fail(1)) SWIG_fail;
10003 {
10004 PyThreadState* __tstate = wxPyBeginAllowThreads();
10005 result = (int)((wxFont const *)arg1)->GetWeight();
10006
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 {
10011 resultobj = SWIG_From_int(static_cast<int >(result));
10012 }
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj = NULL;
10021 wxFont *arg1 = (wxFont *) 0 ;
10022 bool result;
10023 PyObject * obj0 = 0 ;
10024 char *kwnames[] = {
10025 (char *) "self", NULL
10026 };
10027
10028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
10029 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10030 if (SWIG_arg_fail(1)) SWIG_fail;
10031 {
10032 PyThreadState* __tstate = wxPyBeginAllowThreads();
10033 result = (bool)((wxFont const *)arg1)->GetUnderlined();
10034
10035 wxPyEndAllowThreads(__tstate);
10036 if (PyErr_Occurred()) SWIG_fail;
10037 }
10038 {
10039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10040 }
10041 return resultobj;
10042 fail:
10043 return NULL;
10044 }
10045
10046
10047 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10048 PyObject *resultobj = NULL;
10049 wxFont *arg1 = (wxFont *) 0 ;
10050 wxString result;
10051 PyObject * obj0 = 0 ;
10052 char *kwnames[] = {
10053 (char *) "self", NULL
10054 };
10055
10056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
10057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10058 if (SWIG_arg_fail(1)) SWIG_fail;
10059 {
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = ((wxFont const *)arg1)->GetFaceName();
10062
10063 wxPyEndAllowThreads(__tstate);
10064 if (PyErr_Occurred()) SWIG_fail;
10065 }
10066 {
10067 #if wxUSE_UNICODE
10068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10069 #else
10070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10071 #endif
10072 }
10073 return resultobj;
10074 fail:
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj = NULL;
10081 wxFont *arg1 = (wxFont *) 0 ;
10082 wxFontEncoding result;
10083 PyObject * obj0 = 0 ;
10084 char *kwnames[] = {
10085 (char *) "self", NULL
10086 };
10087
10088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
10089 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10090 if (SWIG_arg_fail(1)) SWIG_fail;
10091 {
10092 PyThreadState* __tstate = wxPyBeginAllowThreads();
10093 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
10094
10095 wxPyEndAllowThreads(__tstate);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 }
10098 resultobj = SWIG_From_int((result));
10099 return resultobj;
10100 fail:
10101 return NULL;
10102 }
10103
10104
10105 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10106 PyObject *resultobj = NULL;
10107 wxFont *arg1 = (wxFont *) 0 ;
10108 wxNativeFontInfo *result;
10109 PyObject * obj0 = 0 ;
10110 char *kwnames[] = {
10111 (char *) "self", NULL
10112 };
10113
10114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
10115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10116 if (SWIG_arg_fail(1)) SWIG_fail;
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
10120
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
10125 return resultobj;
10126 fail:
10127 return NULL;
10128 }
10129
10130
10131 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj = NULL;
10133 wxFont *arg1 = (wxFont *) 0 ;
10134 bool result;
10135 PyObject * obj0 = 0 ;
10136 char *kwnames[] = {
10137 (char *) "self", NULL
10138 };
10139
10140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
10141 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10142 if (SWIG_arg_fail(1)) SWIG_fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 {
10151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10152 }
10153 return resultobj;
10154 fail:
10155 return NULL;
10156 }
10157
10158
10159 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10160 PyObject *resultobj = NULL;
10161 wxFont *arg1 = (wxFont *) 0 ;
10162 wxString result;
10163 PyObject * obj0 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10169 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10170 if (SWIG_arg_fail(1)) SWIG_fail;
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
10174
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
10178 {
10179 #if wxUSE_UNICODE
10180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10181 #else
10182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10183 #endif
10184 }
10185 return resultobj;
10186 fail:
10187 return NULL;
10188 }
10189
10190
10191 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10192 PyObject *resultobj = NULL;
10193 wxFont *arg1 = (wxFont *) 0 ;
10194 wxString result;
10195 PyObject * obj0 = 0 ;
10196 char *kwnames[] = {
10197 (char *) "self", NULL
10198 };
10199
10200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10201 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10202 if (SWIG_arg_fail(1)) SWIG_fail;
10203 {
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
10206
10207 wxPyEndAllowThreads(__tstate);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 {
10211 #if wxUSE_UNICODE
10212 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10213 #else
10214 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10215 #endif
10216 }
10217 return resultobj;
10218 fail:
10219 return NULL;
10220 }
10221
10222
10223 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10224 PyObject *resultobj = NULL;
10225 wxFont *arg1 = (wxFont *) 0 ;
10226 int arg2 ;
10227 PyObject * obj0 = 0 ;
10228 PyObject * obj1 = 0 ;
10229 char *kwnames[] = {
10230 (char *) "self",(char *) "pointSize", NULL
10231 };
10232
10233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10234 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10235 if (SWIG_arg_fail(1)) SWIG_fail;
10236 {
10237 arg2 = static_cast<int >(SWIG_As_int(obj1));
10238 if (SWIG_arg_fail(2)) SWIG_fail;
10239 }
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 (arg1)->SetPointSize(arg2);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 Py_INCREF(Py_None); resultobj = Py_None;
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj = NULL;
10256 wxFont *arg1 = (wxFont *) 0 ;
10257 wxSize *arg2 = 0 ;
10258 wxSize temp2 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 char *kwnames[] = {
10262 (char *) "self",(char *) "pixelSize", NULL
10263 };
10264
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10267 if (SWIG_arg_fail(1)) SWIG_fail;
10268 {
10269 arg2 = &temp2;
10270 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10271 }
10272 {
10273 PyThreadState* __tstate = wxPyBeginAllowThreads();
10274 (arg1)->SetPixelSize((wxSize const &)*arg2);
10275
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 Py_INCREF(Py_None); resultobj = Py_None;
10280 return resultobj;
10281 fail:
10282 return NULL;
10283 }
10284
10285
10286 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10287 PyObject *resultobj = NULL;
10288 wxFont *arg1 = (wxFont *) 0 ;
10289 int arg2 ;
10290 PyObject * obj0 = 0 ;
10291 PyObject * obj1 = 0 ;
10292 char *kwnames[] = {
10293 (char *) "self",(char *) "family", NULL
10294 };
10295
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10298 if (SWIG_arg_fail(1)) SWIG_fail;
10299 {
10300 arg2 = static_cast<int >(SWIG_As_int(obj1));
10301 if (SWIG_arg_fail(2)) SWIG_fail;
10302 }
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 (arg1)->SetFamily(arg2);
10306
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) SWIG_fail;
10309 }
10310 Py_INCREF(Py_None); resultobj = Py_None;
10311 return resultobj;
10312 fail:
10313 return NULL;
10314 }
10315
10316
10317 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10318 PyObject *resultobj = NULL;
10319 wxFont *arg1 = (wxFont *) 0 ;
10320 int arg2 ;
10321 PyObject * obj0 = 0 ;
10322 PyObject * obj1 = 0 ;
10323 char *kwnames[] = {
10324 (char *) "self",(char *) "style", NULL
10325 };
10326
10327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10328 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10329 if (SWIG_arg_fail(1)) SWIG_fail;
10330 {
10331 arg2 = static_cast<int >(SWIG_As_int(obj1));
10332 if (SWIG_arg_fail(2)) SWIG_fail;
10333 }
10334 {
10335 PyThreadState* __tstate = wxPyBeginAllowThreads();
10336 (arg1)->SetStyle(arg2);
10337
10338 wxPyEndAllowThreads(__tstate);
10339 if (PyErr_Occurred()) SWIG_fail;
10340 }
10341 Py_INCREF(Py_None); resultobj = Py_None;
10342 return resultobj;
10343 fail:
10344 return NULL;
10345 }
10346
10347
10348 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10349 PyObject *resultobj = NULL;
10350 wxFont *arg1 = (wxFont *) 0 ;
10351 int arg2 ;
10352 PyObject * obj0 = 0 ;
10353 PyObject * obj1 = 0 ;
10354 char *kwnames[] = {
10355 (char *) "self",(char *) "weight", NULL
10356 };
10357
10358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10359 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10360 if (SWIG_arg_fail(1)) SWIG_fail;
10361 {
10362 arg2 = static_cast<int >(SWIG_As_int(obj1));
10363 if (SWIG_arg_fail(2)) SWIG_fail;
10364 }
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 (arg1)->SetWeight(arg2);
10368
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 Py_INCREF(Py_None); resultobj = Py_None;
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10380 PyObject *resultobj = NULL;
10381 wxFont *arg1 = (wxFont *) 0 ;
10382 wxString *arg2 = 0 ;
10383 bool temp2 = false ;
10384 PyObject * obj0 = 0 ;
10385 PyObject * obj1 = 0 ;
10386 char *kwnames[] = {
10387 (char *) "self",(char *) "faceName", NULL
10388 };
10389
10390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10391 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10392 if (SWIG_arg_fail(1)) SWIG_fail;
10393 {
10394 arg2 = wxString_in_helper(obj1);
10395 if (arg2 == NULL) SWIG_fail;
10396 temp2 = true;
10397 }
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 (arg1)->SetFaceName((wxString const &)*arg2);
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 Py_INCREF(Py_None); resultobj = Py_None;
10406 {
10407 if (temp2)
10408 delete arg2;
10409 }
10410 return resultobj;
10411 fail:
10412 {
10413 if (temp2)
10414 delete arg2;
10415 }
10416 return NULL;
10417 }
10418
10419
10420 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = NULL;
10422 wxFont *arg1 = (wxFont *) 0 ;
10423 bool arg2 ;
10424 PyObject * obj0 = 0 ;
10425 PyObject * obj1 = 0 ;
10426 char *kwnames[] = {
10427 (char *) "self",(char *) "underlined", NULL
10428 };
10429
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
10431 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10432 if (SWIG_arg_fail(1)) SWIG_fail;
10433 {
10434 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10435 if (SWIG_arg_fail(2)) SWIG_fail;
10436 }
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 (arg1)->SetUnderlined(arg2);
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 Py_INCREF(Py_None); resultobj = Py_None;
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = NULL;
10453 wxFont *arg1 = (wxFont *) 0 ;
10454 wxFontEncoding arg2 ;
10455 PyObject * obj0 = 0 ;
10456 PyObject * obj1 = 0 ;
10457 char *kwnames[] = {
10458 (char *) "self",(char *) "encoding", NULL
10459 };
10460
10461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
10462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10463 if (SWIG_arg_fail(1)) SWIG_fail;
10464 {
10465 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
10466 if (SWIG_arg_fail(2)) SWIG_fail;
10467 }
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 (arg1)->SetEncoding(arg2);
10471
10472 wxPyEndAllowThreads(__tstate);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 Py_INCREF(Py_None); resultobj = Py_None;
10476 return resultobj;
10477 fail:
10478 return NULL;
10479 }
10480
10481
10482 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10483 PyObject *resultobj = NULL;
10484 wxFont *arg1 = (wxFont *) 0 ;
10485 wxNativeFontInfo *arg2 = 0 ;
10486 PyObject * obj0 = 0 ;
10487 PyObject * obj1 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self",(char *) "info", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
10493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10494 if (SWIG_arg_fail(1)) SWIG_fail;
10495 {
10496 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10497 if (SWIG_arg_fail(2)) SWIG_fail;
10498 if (arg2 == NULL) {
10499 SWIG_null_ref("wxNativeFontInfo");
10500 }
10501 if (SWIG_arg_fail(2)) SWIG_fail;
10502 }
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
10506
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 Py_INCREF(Py_None); resultobj = Py_None;
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj = NULL;
10519 wxFont *arg1 = (wxFont *) 0 ;
10520 wxString *arg2 = 0 ;
10521 bool temp2 = false ;
10522 PyObject * obj0 = 0 ;
10523 PyObject * obj1 = 0 ;
10524 char *kwnames[] = {
10525 (char *) "self",(char *) "info", NULL
10526 };
10527
10528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
10529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10530 if (SWIG_arg_fail(1)) SWIG_fail;
10531 {
10532 arg2 = wxString_in_helper(obj1);
10533 if (arg2 == NULL) SWIG_fail;
10534 temp2 = true;
10535 }
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
10539
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 Py_INCREF(Py_None); resultobj = Py_None;
10544 {
10545 if (temp2)
10546 delete arg2;
10547 }
10548 return resultobj;
10549 fail:
10550 {
10551 if (temp2)
10552 delete arg2;
10553 }
10554 return NULL;
10555 }
10556
10557
10558 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj = NULL;
10560 wxFont *arg1 = (wxFont *) 0 ;
10561 wxString *arg2 = 0 ;
10562 bool temp2 = false ;
10563 PyObject * obj0 = 0 ;
10564 PyObject * obj1 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "info", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
10570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10571 if (SWIG_arg_fail(1)) SWIG_fail;
10572 {
10573 arg2 = wxString_in_helper(obj1);
10574 if (arg2 == NULL) SWIG_fail;
10575 temp2 = true;
10576 }
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 Py_INCREF(Py_None); resultobj = Py_None;
10585 {
10586 if (temp2)
10587 delete arg2;
10588 }
10589 return resultobj;
10590 fail:
10591 {
10592 if (temp2)
10593 delete arg2;
10594 }
10595 return NULL;
10596 }
10597
10598
10599 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
10600 PyObject *resultobj = NULL;
10601 wxFont *arg1 = (wxFont *) 0 ;
10602 wxString result;
10603 PyObject * obj0 = 0 ;
10604 char *kwnames[] = {
10605 (char *) "self", NULL
10606 };
10607
10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
10609 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10610 if (SWIG_arg_fail(1)) SWIG_fail;
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 result = ((wxFont const *)arg1)->GetFamilyString();
10614
10615 wxPyEndAllowThreads(__tstate);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 }
10618 {
10619 #if wxUSE_UNICODE
10620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10621 #else
10622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10623 #endif
10624 }
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj = NULL;
10633 wxFont *arg1 = (wxFont *) 0 ;
10634 wxString result;
10635 PyObject * obj0 = 0 ;
10636 char *kwnames[] = {
10637 (char *) "self", NULL
10638 };
10639
10640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
10641 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10642 if (SWIG_arg_fail(1)) SWIG_fail;
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 result = ((wxFont const *)arg1)->GetStyleString();
10646
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 {
10651 #if wxUSE_UNICODE
10652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10653 #else
10654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10655 #endif
10656 }
10657 return resultobj;
10658 fail:
10659 return NULL;
10660 }
10661
10662
10663 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
10664 PyObject *resultobj = NULL;
10665 wxFont *arg1 = (wxFont *) 0 ;
10666 wxString result;
10667 PyObject * obj0 = 0 ;
10668 char *kwnames[] = {
10669 (char *) "self", NULL
10670 };
10671
10672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
10673 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10674 if (SWIG_arg_fail(1)) SWIG_fail;
10675 {
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 result = ((wxFont const *)arg1)->GetWeightString();
10678
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 {
10683 #if wxUSE_UNICODE
10684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10685 #else
10686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10687 #endif
10688 }
10689 return resultobj;
10690 fail:
10691 return NULL;
10692 }
10693
10694
10695 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
10696 PyObject *resultobj = NULL;
10697 wxFont *arg1 = (wxFont *) 0 ;
10698 bool arg2 = (bool) true ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 char *kwnames[] = {
10702 (char *) "self",(char *) "no", NULL
10703 };
10704
10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
10706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10707 if (SWIG_arg_fail(1)) SWIG_fail;
10708 if (obj1) {
10709 {
10710 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10711 if (SWIG_arg_fail(2)) SWIG_fail;
10712 }
10713 }
10714 {
10715 PyThreadState* __tstate = wxPyBeginAllowThreads();
10716 (arg1)->SetNoAntiAliasing(arg2);
10717
10718 wxPyEndAllowThreads(__tstate);
10719 if (PyErr_Occurred()) SWIG_fail;
10720 }
10721 Py_INCREF(Py_None); resultobj = Py_None;
10722 return resultobj;
10723 fail:
10724 return NULL;
10725 }
10726
10727
10728 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
10729 PyObject *resultobj = NULL;
10730 wxFont *arg1 = (wxFont *) 0 ;
10731 bool result;
10732 PyObject * obj0 = 0 ;
10733 char *kwnames[] = {
10734 (char *) "self", NULL
10735 };
10736
10737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
10738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10739 if (SWIG_arg_fail(1)) SWIG_fail;
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
10743
10744 wxPyEndAllowThreads(__tstate);
10745 if (PyErr_Occurred()) SWIG_fail;
10746 }
10747 {
10748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10749 }
10750 return resultobj;
10751 fail:
10752 return NULL;
10753 }
10754
10755
10756 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = NULL;
10758 wxFontEncoding result;
10759 char *kwnames[] = {
10760 NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
10764 {
10765 if (!wxPyCheckForApp()) SWIG_fail;
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
10768
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 }
10772 resultobj = SWIG_From_int((result));
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj = NULL;
10781 wxFontEncoding arg1 ;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "encoding", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
10788 {
10789 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
10790 if (SWIG_arg_fail(1)) SWIG_fail;
10791 }
10792 {
10793 if (!wxPyCheckForApp()) SWIG_fail;
10794 PyThreadState* __tstate = wxPyBeginAllowThreads();
10795 wxFont::SetDefaultEncoding(arg1);
10796
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 Py_INCREF(Py_None); resultobj = Py_None;
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
10808 PyObject *obj;
10809 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10810 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
10811 Py_INCREF(obj);
10812 return Py_BuildValue((char *)"");
10813 }
10814 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj = NULL;
10816 wxPyFontEnumerator *result;
10817 char *kwnames[] = {
10818 NULL
10819 };
10820
10821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
10822 {
10823 if (!wxPyCheckForApp()) SWIG_fail;
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
10826
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
10830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
10831 return resultobj;
10832 fail:
10833 return NULL;
10834 }
10835
10836
10837 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
10838 PyObject *resultobj = NULL;
10839 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10840 PyObject * obj0 = 0 ;
10841 char *kwnames[] = {
10842 (char *) "self", NULL
10843 };
10844
10845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
10846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10847 if (SWIG_arg_fail(1)) SWIG_fail;
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 delete arg1;
10851
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 Py_INCREF(Py_None); resultobj = Py_None;
10856 return resultobj;
10857 fail:
10858 return NULL;
10859 }
10860
10861
10862 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10863 PyObject *resultobj = NULL;
10864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10865 PyObject *arg2 = (PyObject *) 0 ;
10866 PyObject *arg3 = (PyObject *) 0 ;
10867 bool arg4 ;
10868 PyObject * obj0 = 0 ;
10869 PyObject * obj1 = 0 ;
10870 PyObject * obj2 = 0 ;
10871 PyObject * obj3 = 0 ;
10872 char *kwnames[] = {
10873 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
10874 };
10875
10876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10877 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10878 if (SWIG_arg_fail(1)) SWIG_fail;
10879 arg2 = obj1;
10880 arg3 = obj2;
10881 {
10882 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
10883 if (SWIG_arg_fail(4)) SWIG_fail;
10884 }
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
10888
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 Py_INCREF(Py_None); resultobj = Py_None;
10893 return resultobj;
10894 fail:
10895 return NULL;
10896 }
10897
10898
10899 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj = NULL;
10901 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10902 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
10903 bool arg3 = (bool) false ;
10904 bool result;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 PyObject * obj2 = 0 ;
10908 char *kwnames[] = {
10909 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
10910 };
10911
10912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
10913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10914 if (SWIG_arg_fail(1)) SWIG_fail;
10915 if (obj1) {
10916 {
10917 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
10918 if (SWIG_arg_fail(2)) SWIG_fail;
10919 }
10920 }
10921 if (obj2) {
10922 {
10923 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
10924 if (SWIG_arg_fail(3)) SWIG_fail;
10925 }
10926 }
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj = NULL;
10945 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10946 wxString const &arg2_defvalue = wxPyEmptyString ;
10947 wxString *arg2 = (wxString *) &arg2_defvalue ;
10948 bool result;
10949 bool temp2 = false ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self",(char *) "facename", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
10957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10958 if (SWIG_arg_fail(1)) SWIG_fail;
10959 if (obj1) {
10960 {
10961 arg2 = wxString_in_helper(obj1);
10962 if (arg2 == NULL) SWIG_fail;
10963 temp2 = true;
10964 }
10965 }
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
10969
10970 wxPyEndAllowThreads(__tstate);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 {
10974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10975 }
10976 {
10977 if (temp2)
10978 delete arg2;
10979 }
10980 return resultobj;
10981 fail:
10982 {
10983 if (temp2)
10984 delete arg2;
10985 }
10986 return NULL;
10987 }
10988
10989
10990 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
10991 PyObject *resultobj = NULL;
10992 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10993 PyObject *result;
10994 PyObject * obj0 = 0 ;
10995 char *kwnames[] = {
10996 (char *) "self", NULL
10997 };
10998
10999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
11000 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11001 if (SWIG_arg_fail(1)) SWIG_fail;
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
11005
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 resultobj = result;
11010 return resultobj;
11011 fail:
11012 return NULL;
11013 }
11014
11015
11016 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = NULL;
11018 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11019 PyObject *result;
11020 PyObject * obj0 = 0 ;
11021 char *kwnames[] = {
11022 (char *) "self", NULL
11023 };
11024
11025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
11026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11027 if (SWIG_arg_fail(1)) SWIG_fail;
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
11031
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 resultobj = result;
11036 return resultobj;
11037 fail:
11038 return NULL;
11039 }
11040
11041
11042 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
11043 PyObject *obj;
11044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11045 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
11046 Py_INCREF(obj);
11047 return Py_BuildValue((char *)"");
11048 }
11049 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj = NULL;
11051 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11052 int arg2 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self",(char *) "Language", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
11060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11061 if (SWIG_arg_fail(1)) SWIG_fail;
11062 {
11063 arg2 = static_cast<int >(SWIG_As_int(obj1));
11064 if (SWIG_arg_fail(2)) SWIG_fail;
11065 }
11066 if (arg1) (arg1)->Language = arg2;
11067
11068 Py_INCREF(Py_None); resultobj = Py_None;
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
11076 PyObject *resultobj = NULL;
11077 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11078 int result;
11079 PyObject * obj0 = 0 ;
11080 char *kwnames[] = {
11081 (char *) "self", NULL
11082 };
11083
11084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
11085 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11086 if (SWIG_arg_fail(1)) SWIG_fail;
11087 result = (int) ((arg1)->Language);
11088
11089 {
11090 resultobj = SWIG_From_int(static_cast<int >(result));
11091 }
11092 return resultobj;
11093 fail:
11094 return NULL;
11095 }
11096
11097
11098 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
11099 PyObject *resultobj = NULL;
11100 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11101 wxString *arg2 = (wxString *) 0 ;
11102 bool temp2 = false ;
11103 PyObject * obj0 = 0 ;
11104 PyObject * obj1 = 0 ;
11105 char *kwnames[] = {
11106 (char *) "self",(char *) "CanonicalName", NULL
11107 };
11108
11109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
11110 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11111 if (SWIG_arg_fail(1)) SWIG_fail;
11112 {
11113 arg2 = wxString_in_helper(obj1);
11114 if (arg2 == NULL) SWIG_fail;
11115 temp2 = true;
11116 }
11117 if (arg1) (arg1)->CanonicalName = *arg2;
11118
11119 Py_INCREF(Py_None); resultobj = Py_None;
11120 {
11121 if (temp2)
11122 delete arg2;
11123 }
11124 return resultobj;
11125 fail:
11126 {
11127 if (temp2)
11128 delete arg2;
11129 }
11130 return NULL;
11131 }
11132
11133
11134 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
11135 PyObject *resultobj = NULL;
11136 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11137 wxString *result;
11138 PyObject * obj0 = 0 ;
11139 char *kwnames[] = {
11140 (char *) "self", NULL
11141 };
11142
11143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
11144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11145 if (SWIG_arg_fail(1)) SWIG_fail;
11146 result = (wxString *)& ((arg1)->CanonicalName);
11147
11148 {
11149 #if wxUSE_UNICODE
11150 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11151 #else
11152 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11153 #endif
11154 }
11155 return resultobj;
11156 fail:
11157 return NULL;
11158 }
11159
11160
11161 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
11162 PyObject *resultobj = NULL;
11163 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11164 wxString *arg2 = (wxString *) 0 ;
11165 bool temp2 = false ;
11166 PyObject * obj0 = 0 ;
11167 PyObject * obj1 = 0 ;
11168 char *kwnames[] = {
11169 (char *) "self",(char *) "Description", NULL
11170 };
11171
11172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11174 if (SWIG_arg_fail(1)) SWIG_fail;
11175 {
11176 arg2 = wxString_in_helper(obj1);
11177 if (arg2 == NULL) SWIG_fail;
11178 temp2 = true;
11179 }
11180 if (arg1) (arg1)->Description = *arg2;
11181
11182 Py_INCREF(Py_None); resultobj = Py_None;
11183 {
11184 if (temp2)
11185 delete arg2;
11186 }
11187 return resultobj;
11188 fail:
11189 {
11190 if (temp2)
11191 delete arg2;
11192 }
11193 return NULL;
11194 }
11195
11196
11197 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj = NULL;
11199 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11200 wxString *result;
11201 PyObject * obj0 = 0 ;
11202 char *kwnames[] = {
11203 (char *) "self", NULL
11204 };
11205
11206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11208 if (SWIG_arg_fail(1)) SWIG_fail;
11209 result = (wxString *)& ((arg1)->Description);
11210
11211 {
11212 #if wxUSE_UNICODE
11213 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11214 #else
11215 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11216 #endif
11217 }
11218 return resultobj;
11219 fail:
11220 return NULL;
11221 }
11222
11223
11224 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11225 PyObject *obj;
11226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11227 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11228 Py_INCREF(obj);
11229 return Py_BuildValue((char *)"");
11230 }
11231 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj = NULL;
11233 int arg1 = (int) -1 ;
11234 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11235 wxLocale *result;
11236 PyObject * obj0 = 0 ;
11237 PyObject * obj1 = 0 ;
11238 char *kwnames[] = {
11239 (char *) "language",(char *) "flags", NULL
11240 };
11241
11242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11243 if (obj0) {
11244 {
11245 arg1 = static_cast<int >(SWIG_As_int(obj0));
11246 if (SWIG_arg_fail(1)) SWIG_fail;
11247 }
11248 }
11249 if (obj1) {
11250 {
11251 arg2 = static_cast<int >(SWIG_As_int(obj1));
11252 if (SWIG_arg_fail(2)) SWIG_fail;
11253 }
11254 }
11255 {
11256 PyThreadState* __tstate = wxPyBeginAllowThreads();
11257 result = (wxLocale *)new_wxLocale(arg1,arg2);
11258
11259 wxPyEndAllowThreads(__tstate);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 }
11262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
11263 return resultobj;
11264 fail:
11265 return NULL;
11266 }
11267
11268
11269 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11270 PyObject *resultobj = NULL;
11271 wxLocale *arg1 = (wxLocale *) 0 ;
11272 PyObject * obj0 = 0 ;
11273 char *kwnames[] = {
11274 (char *) "self", NULL
11275 };
11276
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11279 if (SWIG_arg_fail(1)) SWIG_fail;
11280 {
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 delete arg1;
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 Py_INCREF(Py_None); resultobj = Py_None;
11288 return resultobj;
11289 fail:
11290 return NULL;
11291 }
11292
11293
11294 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj = NULL;
11296 wxLocale *arg1 = (wxLocale *) 0 ;
11297 wxString *arg2 = 0 ;
11298 wxString const &arg3_defvalue = wxPyEmptyString ;
11299 wxString *arg3 = (wxString *) &arg3_defvalue ;
11300 wxString const &arg4_defvalue = wxPyEmptyString ;
11301 wxString *arg4 = (wxString *) &arg4_defvalue ;
11302 bool arg5 = (bool) true ;
11303 bool arg6 = (bool) false ;
11304 bool result;
11305 bool temp2 = false ;
11306 bool temp3 = false ;
11307 bool temp4 = false ;
11308 PyObject * obj0 = 0 ;
11309 PyObject * obj1 = 0 ;
11310 PyObject * obj2 = 0 ;
11311 PyObject * obj3 = 0 ;
11312 PyObject * obj4 = 0 ;
11313 PyObject * obj5 = 0 ;
11314 char *kwnames[] = {
11315 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
11316 };
11317
11318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11319 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11320 if (SWIG_arg_fail(1)) SWIG_fail;
11321 {
11322 arg2 = wxString_in_helper(obj1);
11323 if (arg2 == NULL) SWIG_fail;
11324 temp2 = true;
11325 }
11326 if (obj2) {
11327 {
11328 arg3 = wxString_in_helper(obj2);
11329 if (arg3 == NULL) SWIG_fail;
11330 temp3 = true;
11331 }
11332 }
11333 if (obj3) {
11334 {
11335 arg4 = wxString_in_helper(obj3);
11336 if (arg4 == NULL) SWIG_fail;
11337 temp4 = true;
11338 }
11339 }
11340 if (obj4) {
11341 {
11342 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
11343 if (SWIG_arg_fail(5)) SWIG_fail;
11344 }
11345 }
11346 if (obj5) {
11347 {
11348 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
11349 if (SWIG_arg_fail(6)) SWIG_fail;
11350 }
11351 }
11352 {
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
11355
11356 wxPyEndAllowThreads(__tstate);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 {
11360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11361 }
11362 {
11363 if (temp2)
11364 delete arg2;
11365 }
11366 {
11367 if (temp3)
11368 delete arg3;
11369 }
11370 {
11371 if (temp4)
11372 delete arg4;
11373 }
11374 return resultobj;
11375 fail:
11376 {
11377 if (temp2)
11378 delete arg2;
11379 }
11380 {
11381 if (temp3)
11382 delete arg3;
11383 }
11384 {
11385 if (temp4)
11386 delete arg4;
11387 }
11388 return NULL;
11389 }
11390
11391
11392 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj = NULL;
11394 wxLocale *arg1 = (wxLocale *) 0 ;
11395 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11396 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11397 bool result;
11398 PyObject * obj0 = 0 ;
11399 PyObject * obj1 = 0 ;
11400 PyObject * obj2 = 0 ;
11401 char *kwnames[] = {
11402 (char *) "self",(char *) "language",(char *) "flags", NULL
11403 };
11404
11405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
11406 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11407 if (SWIG_arg_fail(1)) SWIG_fail;
11408 if (obj1) {
11409 {
11410 arg2 = static_cast<int >(SWIG_As_int(obj1));
11411 if (SWIG_arg_fail(2)) SWIG_fail;
11412 }
11413 }
11414 if (obj2) {
11415 {
11416 arg3 = static_cast<int >(SWIG_As_int(obj2));
11417 if (SWIG_arg_fail(3)) SWIG_fail;
11418 }
11419 }
11420 {
11421 PyThreadState* __tstate = wxPyBeginAllowThreads();
11422 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
11423
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 {
11428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11429 }
11430 return resultobj;
11431 fail:
11432 return NULL;
11433 }
11434
11435
11436 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj = NULL;
11438 int result;
11439 char *kwnames[] = {
11440 NULL
11441 };
11442
11443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (int)wxLocale::GetSystemLanguage();
11447
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 resultobj = SWIG_From_int(static_cast<int >(result));
11453 }
11454 return resultobj;
11455 fail:
11456 return NULL;
11457 }
11458
11459
11460 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj = NULL;
11462 wxFontEncoding result;
11463 char *kwnames[] = {
11464 NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 resultobj = SWIG_From_int((result));
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj = NULL;
11484 wxString result;
11485 char *kwnames[] = {
11486 NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
11490 {
11491 PyThreadState* __tstate = wxPyBeginAllowThreads();
11492 result = wxLocale::GetSystemEncodingName();
11493
11494 wxPyEndAllowThreads(__tstate);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 {
11498 #if wxUSE_UNICODE
11499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11500 #else
11501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11502 #endif
11503 }
11504 return resultobj;
11505 fail:
11506 return NULL;
11507 }
11508
11509
11510 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
11511 PyObject *resultobj = NULL;
11512 wxLocale *arg1 = (wxLocale *) 0 ;
11513 bool result;
11514 PyObject * obj0 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
11520 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11521 if (SWIG_arg_fail(1)) SWIG_fail;
11522 {
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 result = (bool)((wxLocale const *)arg1)->IsOk();
11525
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 {
11530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11531 }
11532 return resultobj;
11533 fail:
11534 return NULL;
11535 }
11536
11537
11538 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
11539 PyObject *resultobj = NULL;
11540 wxLocale *arg1 = (wxLocale *) 0 ;
11541 wxString result;
11542 PyObject * obj0 = 0 ;
11543 char *kwnames[] = {
11544 (char *) "self", NULL
11545 };
11546
11547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
11548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11549 if (SWIG_arg_fail(1)) SWIG_fail;
11550 {
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
11552 result = ((wxLocale const *)arg1)->GetLocale();
11553
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 {
11558 #if wxUSE_UNICODE
11559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11560 #else
11561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11562 #endif
11563 }
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj = NULL;
11572 wxLocale *arg1 = (wxLocale *) 0 ;
11573 int result;
11574 PyObject * obj0 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "self", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
11580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11581 if (SWIG_arg_fail(1)) SWIG_fail;
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (int)((wxLocale const *)arg1)->GetLanguage();
11585
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 {
11590 resultobj = SWIG_From_int(static_cast<int >(result));
11591 }
11592 return resultobj;
11593 fail:
11594 return NULL;
11595 }
11596
11597
11598 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj = NULL;
11600 wxLocale *arg1 = (wxLocale *) 0 ;
11601 wxString result;
11602 PyObject * obj0 = 0 ;
11603 char *kwnames[] = {
11604 (char *) "self", NULL
11605 };
11606
11607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
11608 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11609 if (SWIG_arg_fail(1)) SWIG_fail;
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = ((wxLocale const *)arg1)->GetSysName();
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 {
11618 #if wxUSE_UNICODE
11619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11620 #else
11621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11622 #endif
11623 }
11624 return resultobj;
11625 fail:
11626 return NULL;
11627 }
11628
11629
11630 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj = NULL;
11632 wxLocale *arg1 = (wxLocale *) 0 ;
11633 wxString result;
11634 PyObject * obj0 = 0 ;
11635 char *kwnames[] = {
11636 (char *) "self", NULL
11637 };
11638
11639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
11640 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11641 if (SWIG_arg_fail(1)) SWIG_fail;
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 result = ((wxLocale const *)arg1)->GetCanonicalName();
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 {
11650 #if wxUSE_UNICODE
11651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11652 #else
11653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11654 #endif
11655 }
11656 return resultobj;
11657 fail:
11658 return NULL;
11659 }
11660
11661
11662 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
11663 PyObject *resultobj = NULL;
11664 wxString *arg1 = 0 ;
11665 bool temp1 = false ;
11666 PyObject * obj0 = 0 ;
11667 char *kwnames[] = {
11668 (char *) "prefix", NULL
11669 };
11670
11671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
11672 {
11673 arg1 = wxString_in_helper(obj0);
11674 if (arg1 == NULL) SWIG_fail;
11675 temp1 = true;
11676 }
11677 {
11678 PyThreadState* __tstate = wxPyBeginAllowThreads();
11679 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
11680
11681 wxPyEndAllowThreads(__tstate);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 }
11684 Py_INCREF(Py_None); resultobj = Py_None;
11685 {
11686 if (temp1)
11687 delete arg1;
11688 }
11689 return resultobj;
11690 fail:
11691 {
11692 if (temp1)
11693 delete arg1;
11694 }
11695 return NULL;
11696 }
11697
11698
11699 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
11700 PyObject *resultobj = NULL;
11701 wxLocale *arg1 = (wxLocale *) 0 ;
11702 wxString *arg2 = 0 ;
11703 bool result;
11704 bool temp2 = false ;
11705 PyObject * obj0 = 0 ;
11706 PyObject * obj1 = 0 ;
11707 char *kwnames[] = {
11708 (char *) "self",(char *) "szDomain", NULL
11709 };
11710
11711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
11712 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11713 if (SWIG_arg_fail(1)) SWIG_fail;
11714 {
11715 arg2 = wxString_in_helper(obj1);
11716 if (arg2 == NULL) SWIG_fail;
11717 temp2 = true;
11718 }
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
11722
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 {
11727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11728 }
11729 {
11730 if (temp2)
11731 delete arg2;
11732 }
11733 return resultobj;
11734 fail:
11735 {
11736 if (temp2)
11737 delete arg2;
11738 }
11739 return NULL;
11740 }
11741
11742
11743 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj = NULL;
11745 wxLocale *arg1 = (wxLocale *) 0 ;
11746 wxString *arg2 = 0 ;
11747 bool result;
11748 bool temp2 = false ;
11749 PyObject * obj0 = 0 ;
11750 PyObject * obj1 = 0 ;
11751 char *kwnames[] = {
11752 (char *) "self",(char *) "szDomain", NULL
11753 };
11754
11755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
11756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11757 if (SWIG_arg_fail(1)) SWIG_fail;
11758 {
11759 arg2 = wxString_in_helper(obj1);
11760 if (arg2 == NULL) SWIG_fail;
11761 temp2 = true;
11762 }
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
11766
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 {
11771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11772 }
11773 {
11774 if (temp2)
11775 delete arg2;
11776 }
11777 return resultobj;
11778 fail:
11779 {
11780 if (temp2)
11781 delete arg2;
11782 }
11783 return NULL;
11784 }
11785
11786
11787 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11788 PyObject *resultobj = NULL;
11789 int arg1 ;
11790 wxLanguageInfo *result;
11791 PyObject * obj0 = 0 ;
11792 char *kwnames[] = {
11793 (char *) "lang", NULL
11794 };
11795
11796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
11797 {
11798 arg1 = static_cast<int >(SWIG_As_int(obj0));
11799 if (SWIG_arg_fail(1)) SWIG_fail;
11800 }
11801 {
11802 PyThreadState* __tstate = wxPyBeginAllowThreads();
11803 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
11804
11805 wxPyEndAllowThreads(__tstate);
11806 if (PyErr_Occurred()) SWIG_fail;
11807 }
11808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
11809 return resultobj;
11810 fail:
11811 return NULL;
11812 }
11813
11814
11815 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
11816 PyObject *resultobj = NULL;
11817 int arg1 ;
11818 wxString result;
11819 PyObject * obj0 = 0 ;
11820 char *kwnames[] = {
11821 (char *) "lang", NULL
11822 };
11823
11824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
11825 {
11826 arg1 = static_cast<int >(SWIG_As_int(obj0));
11827 if (SWIG_arg_fail(1)) SWIG_fail;
11828 }
11829 {
11830 PyThreadState* __tstate = wxPyBeginAllowThreads();
11831 result = wxLocale::GetLanguageName(arg1);
11832
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 {
11837 #if wxUSE_UNICODE
11838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11839 #else
11840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11841 #endif
11842 }
11843 return resultobj;
11844 fail:
11845 return NULL;
11846 }
11847
11848
11849 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11850 PyObject *resultobj = NULL;
11851 wxString *arg1 = 0 ;
11852 wxLanguageInfo *result;
11853 bool temp1 = false ;
11854 PyObject * obj0 = 0 ;
11855 char *kwnames[] = {
11856 (char *) "locale", NULL
11857 };
11858
11859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
11860 {
11861 arg1 = wxString_in_helper(obj0);
11862 if (arg1 == NULL) SWIG_fail;
11863 temp1 = true;
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
11873 {
11874 if (temp1)
11875 delete arg1;
11876 }
11877 return resultobj;
11878 fail:
11879 {
11880 if (temp1)
11881 delete arg1;
11882 }
11883 return NULL;
11884 }
11885
11886
11887 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11888 PyObject *resultobj = NULL;
11889 wxLanguageInfo *arg1 = 0 ;
11890 PyObject * obj0 = 0 ;
11891 char *kwnames[] = {
11892 (char *) "info", NULL
11893 };
11894
11895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
11896 {
11897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11898 if (SWIG_arg_fail(1)) SWIG_fail;
11899 if (arg1 == NULL) {
11900 SWIG_null_ref("wxLanguageInfo");
11901 }
11902 if (SWIG_arg_fail(1)) SWIG_fail;
11903 }
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
11907
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 Py_INCREF(Py_None); resultobj = Py_None;
11912 return resultobj;
11913 fail:
11914 return NULL;
11915 }
11916
11917
11918 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj = NULL;
11920 wxLocale *arg1 = (wxLocale *) 0 ;
11921 wxString *arg2 = 0 ;
11922 wxString const &arg3_defvalue = wxPyEmptyString ;
11923 wxString *arg3 = (wxString *) &arg3_defvalue ;
11924 wxString result;
11925 bool temp2 = false ;
11926 bool temp3 = false ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 PyObject * obj2 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11935 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11936 if (SWIG_arg_fail(1)) SWIG_fail;
11937 {
11938 arg2 = wxString_in_helper(obj1);
11939 if (arg2 == NULL) SWIG_fail;
11940 temp2 = true;
11941 }
11942 if (obj2) {
11943 {
11944 arg3 = wxString_in_helper(obj2);
11945 if (arg3 == NULL) SWIG_fail;
11946 temp3 = true;
11947 }
11948 }
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
11952
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 {
11957 #if wxUSE_UNICODE
11958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11959 #else
11960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11961 #endif
11962 }
11963 {
11964 if (temp2)
11965 delete arg2;
11966 }
11967 {
11968 if (temp3)
11969 delete arg3;
11970 }
11971 return resultobj;
11972 fail:
11973 {
11974 if (temp2)
11975 delete arg2;
11976 }
11977 {
11978 if (temp3)
11979 delete arg3;
11980 }
11981 return NULL;
11982 }
11983
11984
11985 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
11986 PyObject *resultobj = NULL;
11987 wxLocale *arg1 = (wxLocale *) 0 ;
11988 wxString *result;
11989 PyObject * obj0 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "self", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
11995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11996 if (SWIG_arg_fail(1)) SWIG_fail;
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 {
12000 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
12001 result = (wxString *) &_result_ref;
12002 }
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 {
12008 #if wxUSE_UNICODE
12009 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12010 #else
12011 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12012 #endif
12013 }
12014 return resultobj;
12015 fail:
12016 return NULL;
12017 }
12018
12019
12020 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
12021 PyObject *obj;
12022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12023 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
12024 Py_INCREF(obj);
12025 return Py_BuildValue((char *)"");
12026 }
12027 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12028 PyObject *resultobj = NULL;
12029 wxLocale *result;
12030 char *kwnames[] = {
12031 NULL
12032 };
12033
12034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 result = (wxLocale *)wxGetLocale();
12038
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
12043 return resultobj;
12044 fail:
12045 return NULL;
12046 }
12047
12048
12049 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
12050 PyObject *resultobj = NULL;
12051 wxString *arg1 = 0 ;
12052 wxString result;
12053 bool temp1 = false ;
12054 PyObject * obj0 = 0 ;
12055
12056 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
12057 {
12058 arg1 = wxString_in_helper(obj0);
12059 if (arg1 == NULL) SWIG_fail;
12060 temp1 = true;
12061 }
12062 {
12063 PyThreadState* __tstate = wxPyBeginAllowThreads();
12064 result = wxGetTranslation((wxString const &)*arg1);
12065
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 {
12070 #if wxUSE_UNICODE
12071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12072 #else
12073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12074 #endif
12075 }
12076 {
12077 if (temp1)
12078 delete arg1;
12079 }
12080 return resultobj;
12081 fail:
12082 {
12083 if (temp1)
12084 delete arg1;
12085 }
12086 return NULL;
12087 }
12088
12089
12090 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
12091 PyObject *resultobj = NULL;
12092 wxString *arg1 = 0 ;
12093 wxString *arg2 = 0 ;
12094 size_t arg3 ;
12095 wxString result;
12096 bool temp1 = false ;
12097 bool temp2 = false ;
12098 PyObject * obj0 = 0 ;
12099 PyObject * obj1 = 0 ;
12100 PyObject * obj2 = 0 ;
12101
12102 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
12103 {
12104 arg1 = wxString_in_helper(obj0);
12105 if (arg1 == NULL) SWIG_fail;
12106 temp1 = true;
12107 }
12108 {
12109 arg2 = wxString_in_helper(obj1);
12110 if (arg2 == NULL) SWIG_fail;
12111 temp2 = true;
12112 }
12113 {
12114 arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2));
12115 if (SWIG_arg_fail(3)) SWIG_fail;
12116 }
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
12120
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 {
12125 #if wxUSE_UNICODE
12126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12127 #else
12128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12129 #endif
12130 }
12131 {
12132 if (temp1)
12133 delete arg1;
12134 }
12135 {
12136 if (temp2)
12137 delete arg2;
12138 }
12139 return resultobj;
12140 fail:
12141 {
12142 if (temp1)
12143 delete arg1;
12144 }
12145 {
12146 if (temp2)
12147 delete arg2;
12148 }
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12154 int argc;
12155 PyObject *argv[4];
12156 int ii;
12157
12158 argc = PyObject_Length(args);
12159 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12160 argv[ii] = PyTuple_GetItem(args,ii);
12161 }
12162 if (argc == 1) {
12163 int _v;
12164 {
12165 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12166 }
12167 if (_v) {
12168 return _wrap_GetTranslation__SWIG_0(self,args);
12169 }
12170 }
12171 if (argc == 3) {
12172 int _v;
12173 {
12174 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12175 }
12176 if (_v) {
12177 {
12178 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12179 }
12180 if (_v) {
12181 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12182 if (_v) {
12183 return _wrap_GetTranslation__SWIG_1(self,args);
12184 }
12185 }
12186 }
12187 }
12188
12189 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
12190 return NULL;
12191 }
12192
12193
12194 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12195 PyObject *resultobj = NULL;
12196 wxEncodingConverter *result;
12197 char *kwnames[] = {
12198 NULL
12199 };
12200
12201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
12202 {
12203 PyThreadState* __tstate = wxPyBeginAllowThreads();
12204 result = (wxEncodingConverter *)new wxEncodingConverter();
12205
12206 wxPyEndAllowThreads(__tstate);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 }
12209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
12210 return resultobj;
12211 fail:
12212 return NULL;
12213 }
12214
12215
12216 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12217 PyObject *resultobj = NULL;
12218 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12219 PyObject * obj0 = 0 ;
12220 char *kwnames[] = {
12221 (char *) "self", NULL
12222 };
12223
12224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12226 if (SWIG_arg_fail(1)) SWIG_fail;
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 delete arg1;
12230
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 Py_INCREF(Py_None); resultobj = Py_None;
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj = NULL;
12243 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12244 wxFontEncoding arg2 ;
12245 wxFontEncoding arg3 ;
12246 int arg4 = (int) wxCONVERT_STRICT ;
12247 bool result;
12248 PyObject * obj0 = 0 ;
12249 PyObject * obj1 = 0 ;
12250 PyObject * obj2 = 0 ;
12251 PyObject * obj3 = 0 ;
12252 char *kwnames[] = {
12253 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
12254 };
12255
12256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12258 if (SWIG_arg_fail(1)) SWIG_fail;
12259 {
12260 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12261 if (SWIG_arg_fail(2)) SWIG_fail;
12262 }
12263 {
12264 arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2));
12265 if (SWIG_arg_fail(3)) SWIG_fail;
12266 }
12267 if (obj3) {
12268 {
12269 arg4 = static_cast<int >(SWIG_As_int(obj3));
12270 if (SWIG_arg_fail(4)) SWIG_fail;
12271 }
12272 }
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 result = (bool)(arg1)->Init(arg2,arg3,arg4);
12276
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 {
12281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12282 }
12283 return resultobj;
12284 fail:
12285 return NULL;
12286 }
12287
12288
12289 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
12290 PyObject *resultobj = NULL;
12291 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12292 wxString *arg2 = 0 ;
12293 wxString result;
12294 bool temp2 = false ;
12295 PyObject * obj0 = 0 ;
12296 PyObject * obj1 = 0 ;
12297 char *kwnames[] = {
12298 (char *) "self",(char *) "input", NULL
12299 };
12300
12301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12303 if (SWIG_arg_fail(1)) SWIG_fail;
12304 {
12305 arg2 = wxString_in_helper(obj1);
12306 if (arg2 == NULL) SWIG_fail;
12307 temp2 = true;
12308 }
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (arg1)->Convert((wxString const &)*arg2);
12312
12313 wxPyEndAllowThreads(__tstate);
12314 if (PyErr_Occurred()) SWIG_fail;
12315 }
12316 {
12317 #if wxUSE_UNICODE
12318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12319 #else
12320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12321 #endif
12322 }
12323 {
12324 if (temp2)
12325 delete arg2;
12326 }
12327 return resultobj;
12328 fail:
12329 {
12330 if (temp2)
12331 delete arg2;
12332 }
12333 return NULL;
12334 }
12335
12336
12337 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj = NULL;
12339 wxFontEncoding arg1 ;
12340 int arg2 = (int) wxPLATFORM_CURRENT ;
12341 wxFontEncodingArray result;
12342 PyObject * obj0 = 0 ;
12343 PyObject * obj1 = 0 ;
12344 char *kwnames[] = {
12345 (char *) "enc",(char *) "platform", NULL
12346 };
12347
12348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
12349 {
12350 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12351 if (SWIG_arg_fail(1)) SWIG_fail;
12352 }
12353 if (obj1) {
12354 {
12355 arg2 = static_cast<int >(SWIG_As_int(obj1));
12356 if (SWIG_arg_fail(2)) SWIG_fail;
12357 }
12358 }
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 {
12367 resultobj = PyList_New(0);
12368 for (size_t i=0; i < (&result)->GetCount(); i++) {
12369 PyObject* number = PyInt_FromLong((&result)->Item(i));
12370 PyList_Append(resultobj, number);
12371 Py_DECREF(number);
12372 }
12373 }
12374 return resultobj;
12375 fail:
12376 return NULL;
12377 }
12378
12379
12380 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj = NULL;
12382 wxFontEncoding arg1 ;
12383 wxFontEncodingArray result;
12384 PyObject * obj0 = 0 ;
12385 char *kwnames[] = {
12386 (char *) "enc", NULL
12387 };
12388
12389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12390 {
12391 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12392 if (SWIG_arg_fail(1)) SWIG_fail;
12393 }
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 result = wxEncodingConverter::GetAllEquivalents(arg1);
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 {
12402 resultobj = PyList_New(0);
12403 for (size_t i=0; i < (&result)->GetCount(); i++) {
12404 PyObject* number = PyInt_FromLong((&result)->Item(i));
12405 PyList_Append(resultobj, number);
12406 Py_DECREF(number);
12407 }
12408 }
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj = NULL;
12417 wxFontEncoding arg1 ;
12418 wxFontEncoding arg2 ;
12419 bool result;
12420 PyObject * obj0 = 0 ;
12421 PyObject * obj1 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "encIn",(char *) "encOut", NULL
12424 };
12425
12426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
12427 {
12428 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12429 if (SWIG_arg_fail(1)) SWIG_fail;
12430 }
12431 {
12432 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12433 if (SWIG_arg_fail(2)) SWIG_fail;
12434 }
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
12438
12439 wxPyEndAllowThreads(__tstate);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 {
12443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12444 }
12445 return resultobj;
12446 fail:
12447 return NULL;
12448 }
12449
12450
12451 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
12452 PyObject *obj;
12453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12454 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
12455 Py_INCREF(obj);
12456 return Py_BuildValue((char *)"");
12457 }
12458 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
12459 PyObject *resultobj = NULL;
12460 wxDC *arg1 = (wxDC *) 0 ;
12461 PyObject * obj0 = 0 ;
12462 char *kwnames[] = {
12463 (char *) "self", NULL
12464 };
12465
12466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
12467 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12468 if (SWIG_arg_fail(1)) SWIG_fail;
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 delete arg1;
12472
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 Py_INCREF(Py_None); resultobj = Py_None;
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj = NULL;
12485 wxDC *arg1 = (wxDC *) 0 ;
12486 int arg2 ;
12487 int arg3 ;
12488 wxColour *arg4 = 0 ;
12489 int arg5 = (int) wxFLOOD_SURFACE ;
12490 bool result;
12491 wxColour temp4 ;
12492 PyObject * obj0 = 0 ;
12493 PyObject * obj1 = 0 ;
12494 PyObject * obj2 = 0 ;
12495 PyObject * obj3 = 0 ;
12496 PyObject * obj4 = 0 ;
12497 char *kwnames[] = {
12498 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
12499 };
12500
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12503 if (SWIG_arg_fail(1)) SWIG_fail;
12504 {
12505 arg2 = static_cast<int >(SWIG_As_int(obj1));
12506 if (SWIG_arg_fail(2)) SWIG_fail;
12507 }
12508 {
12509 arg3 = static_cast<int >(SWIG_As_int(obj2));
12510 if (SWIG_arg_fail(3)) SWIG_fail;
12511 }
12512 {
12513 arg4 = &temp4;
12514 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12515 }
12516 if (obj4) {
12517 {
12518 arg5 = static_cast<int >(SWIG_As_int(obj4));
12519 if (SWIG_arg_fail(5)) SWIG_fail;
12520 }
12521 }
12522 {
12523 PyThreadState* __tstate = wxPyBeginAllowThreads();
12524 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
12525
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 {
12530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12531 }
12532 return resultobj;
12533 fail:
12534 return NULL;
12535 }
12536
12537
12538 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12539 PyObject *resultobj = NULL;
12540 wxDC *arg1 = (wxDC *) 0 ;
12541 wxPoint *arg2 = 0 ;
12542 wxColour *arg3 = 0 ;
12543 int arg4 = (int) wxFLOOD_SURFACE ;
12544 bool result;
12545 wxPoint temp2 ;
12546 wxColour temp3 ;
12547 PyObject * obj0 = 0 ;
12548 PyObject * obj1 = 0 ;
12549 PyObject * obj2 = 0 ;
12550 PyObject * obj3 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12557 if (SWIG_arg_fail(1)) SWIG_fail;
12558 {
12559 arg2 = &temp2;
12560 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12561 }
12562 {
12563 arg3 = &temp3;
12564 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12565 }
12566 if (obj3) {
12567 {
12568 arg4 = static_cast<int >(SWIG_As_int(obj3));
12569 if (SWIG_arg_fail(4)) SWIG_fail;
12570 }
12571 }
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 {
12580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12581 }
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
12589 PyObject *resultobj = NULL;
12590 wxDC *arg1 = (wxDC *) 0 ;
12591 int arg2 ;
12592 int arg3 ;
12593 wxColour result;
12594 PyObject * obj0 = 0 ;
12595 PyObject * obj1 = 0 ;
12596 PyObject * obj2 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self",(char *) "x",(char *) "y", NULL
12599 };
12600
12601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
12602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12603 if (SWIG_arg_fail(1)) SWIG_fail;
12604 {
12605 arg2 = static_cast<int >(SWIG_As_int(obj1));
12606 if (SWIG_arg_fail(2)) SWIG_fail;
12607 }
12608 {
12609 arg3 = static_cast<int >(SWIG_As_int(obj2));
12610 if (SWIG_arg_fail(3)) SWIG_fail;
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 result = wxDC_GetPixel(arg1,arg2,arg3);
12615
12616 wxPyEndAllowThreads(__tstate);
12617 if (PyErr_Occurred()) SWIG_fail;
12618 }
12619 {
12620 wxColour * resultptr;
12621 resultptr = new wxColour(static_cast<wxColour & >(result));
12622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12623 }
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12631 PyObject *resultobj = NULL;
12632 wxDC *arg1 = (wxDC *) 0 ;
12633 wxPoint *arg2 = 0 ;
12634 wxColour result;
12635 wxPoint temp2 ;
12636 PyObject * obj0 = 0 ;
12637 PyObject * obj1 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self",(char *) "pt", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
12643 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12644 if (SWIG_arg_fail(1)) SWIG_fail;
12645 {
12646 arg2 = &temp2;
12647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12648 }
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 {
12657 wxColour * resultptr;
12658 resultptr = new wxColour(static_cast<wxColour & >(result));
12659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12660 }
12661 return resultobj;
12662 fail:
12663 return NULL;
12664 }
12665
12666
12667 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj = NULL;
12669 wxDC *arg1 = (wxDC *) 0 ;
12670 int arg2 ;
12671 int arg3 ;
12672 int arg4 ;
12673 int arg5 ;
12674 PyObject * obj0 = 0 ;
12675 PyObject * obj1 = 0 ;
12676 PyObject * obj2 = 0 ;
12677 PyObject * obj3 = 0 ;
12678 PyObject * obj4 = 0 ;
12679 char *kwnames[] = {
12680 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
12681 };
12682
12683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12685 if (SWIG_arg_fail(1)) SWIG_fail;
12686 {
12687 arg2 = static_cast<int >(SWIG_As_int(obj1));
12688 if (SWIG_arg_fail(2)) SWIG_fail;
12689 }
12690 {
12691 arg3 = static_cast<int >(SWIG_As_int(obj2));
12692 if (SWIG_arg_fail(3)) SWIG_fail;
12693 }
12694 {
12695 arg4 = static_cast<int >(SWIG_As_int(obj3));
12696 if (SWIG_arg_fail(4)) SWIG_fail;
12697 }
12698 {
12699 arg5 = static_cast<int >(SWIG_As_int(obj4));
12700 if (SWIG_arg_fail(5)) SWIG_fail;
12701 }
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
12705
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 Py_INCREF(Py_None); resultobj = Py_None;
12710 return resultobj;
12711 fail:
12712 return NULL;
12713 }
12714
12715
12716 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj = NULL;
12718 wxDC *arg1 = (wxDC *) 0 ;
12719 wxPoint *arg2 = 0 ;
12720 wxPoint *arg3 = 0 ;
12721 wxPoint temp2 ;
12722 wxPoint temp3 ;
12723 PyObject * obj0 = 0 ;
12724 PyObject * obj1 = 0 ;
12725 PyObject * obj2 = 0 ;
12726 char *kwnames[] = {
12727 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
12728 };
12729
12730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12731 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12732 if (SWIG_arg_fail(1)) SWIG_fail;
12733 {
12734 arg2 = &temp2;
12735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12736 }
12737 {
12738 arg3 = &temp3;
12739 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12740 }
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 Py_INCREF(Py_None); resultobj = Py_None;
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj = NULL;
12757 wxDC *arg1 = (wxDC *) 0 ;
12758 int arg2 ;
12759 int arg3 ;
12760 PyObject * obj0 = 0 ;
12761 PyObject * obj1 = 0 ;
12762 PyObject * obj2 = 0 ;
12763 char *kwnames[] = {
12764 (char *) "self",(char *) "x",(char *) "y", NULL
12765 };
12766
12767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
12768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12769 if (SWIG_arg_fail(1)) SWIG_fail;
12770 {
12771 arg2 = static_cast<int >(SWIG_As_int(obj1));
12772 if (SWIG_arg_fail(2)) SWIG_fail;
12773 }
12774 {
12775 arg3 = static_cast<int >(SWIG_As_int(obj2));
12776 if (SWIG_arg_fail(3)) SWIG_fail;
12777 }
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 (arg1)->CrossHair(arg2,arg3);
12781
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 Py_INCREF(Py_None); resultobj = Py_None;
12786 return resultobj;
12787 fail:
12788 return NULL;
12789 }
12790
12791
12792 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12793 PyObject *resultobj = NULL;
12794 wxDC *arg1 = (wxDC *) 0 ;
12795 wxPoint *arg2 = 0 ;
12796 wxPoint temp2 ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 char *kwnames[] = {
12800 (char *) "self",(char *) "pt", NULL
12801 };
12802
12803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
12804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12805 if (SWIG_arg_fail(1)) SWIG_fail;
12806 {
12807 arg2 = &temp2;
12808 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12809 }
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 (arg1)->CrossHair((wxPoint const &)*arg2);
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 Py_INCREF(Py_None); resultobj = Py_None;
12818 return resultobj;
12819 fail:
12820 return NULL;
12821 }
12822
12823
12824 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
12825 PyObject *resultobj = NULL;
12826 wxDC *arg1 = (wxDC *) 0 ;
12827 int arg2 ;
12828 int arg3 ;
12829 int arg4 ;
12830 int arg5 ;
12831 int arg6 ;
12832 int arg7 ;
12833 PyObject * obj0 = 0 ;
12834 PyObject * obj1 = 0 ;
12835 PyObject * obj2 = 0 ;
12836 PyObject * obj3 = 0 ;
12837 PyObject * obj4 = 0 ;
12838 PyObject * obj5 = 0 ;
12839 PyObject * obj6 = 0 ;
12840 char *kwnames[] = {
12841 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
12842 };
12843
12844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
12845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12846 if (SWIG_arg_fail(1)) SWIG_fail;
12847 {
12848 arg2 = static_cast<int >(SWIG_As_int(obj1));
12849 if (SWIG_arg_fail(2)) SWIG_fail;
12850 }
12851 {
12852 arg3 = static_cast<int >(SWIG_As_int(obj2));
12853 if (SWIG_arg_fail(3)) SWIG_fail;
12854 }
12855 {
12856 arg4 = static_cast<int >(SWIG_As_int(obj3));
12857 if (SWIG_arg_fail(4)) SWIG_fail;
12858 }
12859 {
12860 arg5 = static_cast<int >(SWIG_As_int(obj4));
12861 if (SWIG_arg_fail(5)) SWIG_fail;
12862 }
12863 {
12864 arg6 = static_cast<int >(SWIG_As_int(obj5));
12865 if (SWIG_arg_fail(6)) SWIG_fail;
12866 }
12867 {
12868 arg7 = static_cast<int >(SWIG_As_int(obj6));
12869 if (SWIG_arg_fail(7)) SWIG_fail;
12870 }
12871 {
12872 PyThreadState* __tstate = wxPyBeginAllowThreads();
12873 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
12874
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
12878 Py_INCREF(Py_None); resultobj = Py_None;
12879 return resultobj;
12880 fail:
12881 return NULL;
12882 }
12883
12884
12885 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12886 PyObject *resultobj = NULL;
12887 wxDC *arg1 = (wxDC *) 0 ;
12888 wxPoint *arg2 = 0 ;
12889 wxPoint *arg3 = 0 ;
12890 wxPoint *arg4 = 0 ;
12891 wxPoint temp2 ;
12892 wxPoint temp3 ;
12893 wxPoint temp4 ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 PyObject * obj2 = 0 ;
12897 PyObject * obj3 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12904 if (SWIG_arg_fail(1)) SWIG_fail;
12905 {
12906 arg2 = &temp2;
12907 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12908 }
12909 {
12910 arg3 = &temp3;
12911 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12912 }
12913 {
12914 arg4 = &temp4;
12915 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12916 }
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
12920
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 Py_INCREF(Py_None); resultobj = Py_None;
12925 return resultobj;
12926 fail:
12927 return NULL;
12928 }
12929
12930
12931 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj = NULL;
12933 wxDC *arg1 = (wxDC *) 0 ;
12934 int arg2 ;
12935 int arg3 ;
12936 int arg4 ;
12937 int arg5 ;
12938 PyObject * obj0 = 0 ;
12939 PyObject * obj1 = 0 ;
12940 PyObject * obj2 = 0 ;
12941 PyObject * obj3 = 0 ;
12942 PyObject * obj4 = 0 ;
12943 char *kwnames[] = {
12944 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12945 };
12946
12947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12949 if (SWIG_arg_fail(1)) SWIG_fail;
12950 {
12951 arg2 = static_cast<int >(SWIG_As_int(obj1));
12952 if (SWIG_arg_fail(2)) SWIG_fail;
12953 }
12954 {
12955 arg3 = static_cast<int >(SWIG_As_int(obj2));
12956 if (SWIG_arg_fail(3)) SWIG_fail;
12957 }
12958 {
12959 arg4 = static_cast<int >(SWIG_As_int(obj3));
12960 if (SWIG_arg_fail(4)) SWIG_fail;
12961 }
12962 {
12963 arg5 = static_cast<int >(SWIG_As_int(obj4));
12964 if (SWIG_arg_fail(5)) SWIG_fail;
12965 }
12966 {
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 Py_INCREF(Py_None); resultobj = Py_None;
12974 return resultobj;
12975 fail:
12976 return NULL;
12977 }
12978
12979
12980 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
12981 PyObject *resultobj = NULL;
12982 wxDC *arg1 = (wxDC *) 0 ;
12983 wxRect *arg2 = 0 ;
12984 wxRect temp2 ;
12985 PyObject * obj0 = 0 ;
12986 PyObject * obj1 = 0 ;
12987 char *kwnames[] = {
12988 (char *) "self",(char *) "rect", NULL
12989 };
12990
12991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
12992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12993 if (SWIG_arg_fail(1)) SWIG_fail;
12994 {
12995 arg2 = &temp2;
12996 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12997 }
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 (arg1)->DrawCheckMark((wxRect const &)*arg2);
13001
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 Py_INCREF(Py_None); resultobj = Py_None;
13006 return resultobj;
13007 fail:
13008 return NULL;
13009 }
13010
13011
13012 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
13013 PyObject *resultobj = NULL;
13014 wxDC *arg1 = (wxDC *) 0 ;
13015 int arg2 ;
13016 int arg3 ;
13017 int arg4 ;
13018 int arg5 ;
13019 double arg6 ;
13020 double arg7 ;
13021 PyObject * obj0 = 0 ;
13022 PyObject * obj1 = 0 ;
13023 PyObject * obj2 = 0 ;
13024 PyObject * obj3 = 0 ;
13025 PyObject * obj4 = 0 ;
13026 PyObject * obj5 = 0 ;
13027 PyObject * obj6 = 0 ;
13028 char *kwnames[] = {
13029 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
13030 };
13031
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13034 if (SWIG_arg_fail(1)) SWIG_fail;
13035 {
13036 arg2 = static_cast<int >(SWIG_As_int(obj1));
13037 if (SWIG_arg_fail(2)) SWIG_fail;
13038 }
13039 {
13040 arg3 = static_cast<int >(SWIG_As_int(obj2));
13041 if (SWIG_arg_fail(3)) SWIG_fail;
13042 }
13043 {
13044 arg4 = static_cast<int >(SWIG_As_int(obj3));
13045 if (SWIG_arg_fail(4)) SWIG_fail;
13046 }
13047 {
13048 arg5 = static_cast<int >(SWIG_As_int(obj4));
13049 if (SWIG_arg_fail(5)) SWIG_fail;
13050 }
13051 {
13052 arg6 = static_cast<double >(SWIG_As_double(obj5));
13053 if (SWIG_arg_fail(6)) SWIG_fail;
13054 }
13055 {
13056 arg7 = static_cast<double >(SWIG_As_double(obj6));
13057 if (SWIG_arg_fail(7)) SWIG_fail;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
13062
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 Py_INCREF(Py_None); resultobj = Py_None;
13067 return resultobj;
13068 fail:
13069 return NULL;
13070 }
13071
13072
13073 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13074 PyObject *resultobj = NULL;
13075 wxDC *arg1 = (wxDC *) 0 ;
13076 wxPoint *arg2 = 0 ;
13077 wxSize *arg3 = 0 ;
13078 double arg4 ;
13079 double arg5 ;
13080 wxPoint temp2 ;
13081 wxSize temp3 ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 PyObject * obj2 = 0 ;
13085 PyObject * obj3 = 0 ;
13086 PyObject * obj4 = 0 ;
13087 char *kwnames[] = {
13088 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
13089 };
13090
13091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13093 if (SWIG_arg_fail(1)) SWIG_fail;
13094 {
13095 arg2 = &temp2;
13096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13097 }
13098 {
13099 arg3 = &temp3;
13100 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13101 }
13102 {
13103 arg4 = static_cast<double >(SWIG_As_double(obj3));
13104 if (SWIG_arg_fail(4)) SWIG_fail;
13105 }
13106 {
13107 arg5 = static_cast<double >(SWIG_As_double(obj4));
13108 if (SWIG_arg_fail(5)) SWIG_fail;
13109 }
13110 {
13111 PyThreadState* __tstate = wxPyBeginAllowThreads();
13112 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
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_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj = NULL;
13126 wxDC *arg1 = (wxDC *) 0 ;
13127 int arg2 ;
13128 int arg3 ;
13129 PyObject * obj0 = 0 ;
13130 PyObject * obj1 = 0 ;
13131 PyObject * obj2 = 0 ;
13132 char *kwnames[] = {
13133 (char *) "self",(char *) "x",(char *) "y", NULL
13134 };
13135
13136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13138 if (SWIG_arg_fail(1)) SWIG_fail;
13139 {
13140 arg2 = static_cast<int >(SWIG_As_int(obj1));
13141 if (SWIG_arg_fail(2)) SWIG_fail;
13142 }
13143 {
13144 arg3 = static_cast<int >(SWIG_As_int(obj2));
13145 if (SWIG_arg_fail(3)) SWIG_fail;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 (arg1)->DrawPoint(arg2,arg3);
13150
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 Py_INCREF(Py_None); resultobj = Py_None;
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj = NULL;
13163 wxDC *arg1 = (wxDC *) 0 ;
13164 wxPoint *arg2 = 0 ;
13165 wxPoint temp2 ;
13166 PyObject * obj0 = 0 ;
13167 PyObject * obj1 = 0 ;
13168 char *kwnames[] = {
13169 (char *) "self",(char *) "pt", NULL
13170 };
13171
13172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13174 if (SWIG_arg_fail(1)) SWIG_fail;
13175 {
13176 arg2 = &temp2;
13177 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13178 }
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 (arg1)->DrawPoint((wxPoint const &)*arg2);
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 Py_INCREF(Py_None); resultobj = Py_None;
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj = NULL;
13195 wxDC *arg1 = (wxDC *) 0 ;
13196 int arg2 ;
13197 int arg3 ;
13198 int arg4 ;
13199 int arg5 ;
13200 PyObject * obj0 = 0 ;
13201 PyObject * obj1 = 0 ;
13202 PyObject * obj2 = 0 ;
13203 PyObject * obj3 = 0 ;
13204 PyObject * obj4 = 0 ;
13205 char *kwnames[] = {
13206 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13207 };
13208
13209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13211 if (SWIG_arg_fail(1)) SWIG_fail;
13212 {
13213 arg2 = static_cast<int >(SWIG_As_int(obj1));
13214 if (SWIG_arg_fail(2)) SWIG_fail;
13215 }
13216 {
13217 arg3 = static_cast<int >(SWIG_As_int(obj2));
13218 if (SWIG_arg_fail(3)) SWIG_fail;
13219 }
13220 {
13221 arg4 = static_cast<int >(SWIG_As_int(obj3));
13222 if (SWIG_arg_fail(4)) SWIG_fail;
13223 }
13224 {
13225 arg5 = static_cast<int >(SWIG_As_int(obj4));
13226 if (SWIG_arg_fail(5)) SWIG_fail;
13227 }
13228 {
13229 PyThreadState* __tstate = wxPyBeginAllowThreads();
13230 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
13231
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 Py_INCREF(Py_None); resultobj = Py_None;
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj = NULL;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 wxRect *arg2 = 0 ;
13246 wxRect temp2 ;
13247 PyObject * obj0 = 0 ;
13248 PyObject * obj1 = 0 ;
13249 char *kwnames[] = {
13250 (char *) "self",(char *) "rect", NULL
13251 };
13252
13253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13255 if (SWIG_arg_fail(1)) SWIG_fail;
13256 {
13257 arg2 = &temp2;
13258 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13259 }
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 (arg1)->DrawRectangle((wxRect const &)*arg2);
13263
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 Py_INCREF(Py_None); resultobj = Py_None;
13268 return resultobj;
13269 fail:
13270 return NULL;
13271 }
13272
13273
13274 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj = NULL;
13276 wxDC *arg1 = (wxDC *) 0 ;
13277 wxPoint *arg2 = 0 ;
13278 wxSize *arg3 = 0 ;
13279 wxPoint temp2 ;
13280 wxSize temp3 ;
13281 PyObject * obj0 = 0 ;
13282 PyObject * obj1 = 0 ;
13283 PyObject * obj2 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self",(char *) "pt",(char *) "sz", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13289 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13290 if (SWIG_arg_fail(1)) SWIG_fail;
13291 {
13292 arg2 = &temp2;
13293 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13294 }
13295 {
13296 arg3 = &temp3;
13297 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13298 }
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
13302
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 Py_INCREF(Py_None); resultobj = Py_None;
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj = NULL;
13315 wxDC *arg1 = (wxDC *) 0 ;
13316 int arg2 ;
13317 int arg3 ;
13318 int arg4 ;
13319 int arg5 ;
13320 double arg6 ;
13321 PyObject * obj0 = 0 ;
13322 PyObject * obj1 = 0 ;
13323 PyObject * obj2 = 0 ;
13324 PyObject * obj3 = 0 ;
13325 PyObject * obj4 = 0 ;
13326 PyObject * obj5 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13333 if (SWIG_arg_fail(1)) SWIG_fail;
13334 {
13335 arg2 = static_cast<int >(SWIG_As_int(obj1));
13336 if (SWIG_arg_fail(2)) SWIG_fail;
13337 }
13338 {
13339 arg3 = static_cast<int >(SWIG_As_int(obj2));
13340 if (SWIG_arg_fail(3)) SWIG_fail;
13341 }
13342 {
13343 arg4 = static_cast<int >(SWIG_As_int(obj3));
13344 if (SWIG_arg_fail(4)) SWIG_fail;
13345 }
13346 {
13347 arg5 = static_cast<int >(SWIG_As_int(obj4));
13348 if (SWIG_arg_fail(5)) SWIG_fail;
13349 }
13350 {
13351 arg6 = static_cast<double >(SWIG_As_double(obj5));
13352 if (SWIG_arg_fail(6)) SWIG_fail;
13353 }
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
13357
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 Py_INCREF(Py_None); resultobj = Py_None;
13362 return resultobj;
13363 fail:
13364 return NULL;
13365 }
13366
13367
13368 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj = NULL;
13370 wxDC *arg1 = (wxDC *) 0 ;
13371 wxRect *arg2 = 0 ;
13372 double arg3 ;
13373 wxRect temp2 ;
13374 PyObject * obj0 = 0 ;
13375 PyObject * obj1 = 0 ;
13376 PyObject * obj2 = 0 ;
13377 char *kwnames[] = {
13378 (char *) "self",(char *) "r",(char *) "radius", NULL
13379 };
13380
13381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13382 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13383 if (SWIG_arg_fail(1)) SWIG_fail;
13384 {
13385 arg2 = &temp2;
13386 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13387 }
13388 {
13389 arg3 = static_cast<double >(SWIG_As_double(obj2));
13390 if (SWIG_arg_fail(3)) SWIG_fail;
13391 }
13392 {
13393 PyThreadState* __tstate = wxPyBeginAllowThreads();
13394 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
13395
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 Py_INCREF(Py_None); resultobj = Py_None;
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13407 PyObject *resultobj = NULL;
13408 wxDC *arg1 = (wxDC *) 0 ;
13409 wxPoint *arg2 = 0 ;
13410 wxSize *arg3 = 0 ;
13411 double arg4 ;
13412 wxPoint temp2 ;
13413 wxSize temp3 ;
13414 PyObject * obj0 = 0 ;
13415 PyObject * obj1 = 0 ;
13416 PyObject * obj2 = 0 ;
13417 PyObject * obj3 = 0 ;
13418 char *kwnames[] = {
13419 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
13420 };
13421
13422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13423 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13424 if (SWIG_arg_fail(1)) SWIG_fail;
13425 {
13426 arg2 = &temp2;
13427 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13428 }
13429 {
13430 arg3 = &temp3;
13431 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13432 }
13433 {
13434 arg4 = static_cast<double >(SWIG_As_double(obj3));
13435 if (SWIG_arg_fail(4)) SWIG_fail;
13436 }
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
13440
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 Py_INCREF(Py_None); resultobj = Py_None;
13445 return resultobj;
13446 fail:
13447 return NULL;
13448 }
13449
13450
13451 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj = NULL;
13453 wxDC *arg1 = (wxDC *) 0 ;
13454 int arg2 ;
13455 int arg3 ;
13456 int arg4 ;
13457 PyObject * obj0 = 0 ;
13458 PyObject * obj1 = 0 ;
13459 PyObject * obj2 = 0 ;
13460 PyObject * obj3 = 0 ;
13461 char *kwnames[] = {
13462 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
13463 };
13464
13465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13467 if (SWIG_arg_fail(1)) SWIG_fail;
13468 {
13469 arg2 = static_cast<int >(SWIG_As_int(obj1));
13470 if (SWIG_arg_fail(2)) SWIG_fail;
13471 }
13472 {
13473 arg3 = static_cast<int >(SWIG_As_int(obj2));
13474 if (SWIG_arg_fail(3)) SWIG_fail;
13475 }
13476 {
13477 arg4 = static_cast<int >(SWIG_As_int(obj3));
13478 if (SWIG_arg_fail(4)) SWIG_fail;
13479 }
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->DrawCircle(arg2,arg3,arg4);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 Py_INCREF(Py_None); resultobj = Py_None;
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
13495 PyObject *resultobj = NULL;
13496 wxDC *arg1 = (wxDC *) 0 ;
13497 wxPoint *arg2 = 0 ;
13498 int arg3 ;
13499 wxPoint temp2 ;
13500 PyObject * obj0 = 0 ;
13501 PyObject * obj1 = 0 ;
13502 PyObject * obj2 = 0 ;
13503 char *kwnames[] = {
13504 (char *) "self",(char *) "pt",(char *) "radius", NULL
13505 };
13506
13507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13508 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13509 if (SWIG_arg_fail(1)) SWIG_fail;
13510 {
13511 arg2 = &temp2;
13512 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13513 }
13514 {
13515 arg3 = static_cast<int >(SWIG_As_int(obj2));
13516 if (SWIG_arg_fail(3)) SWIG_fail;
13517 }
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 Py_INCREF(Py_None); resultobj = Py_None;
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj = NULL;
13534 wxDC *arg1 = (wxDC *) 0 ;
13535 int arg2 ;
13536 int arg3 ;
13537 int arg4 ;
13538 int arg5 ;
13539 PyObject * obj0 = 0 ;
13540 PyObject * obj1 = 0 ;
13541 PyObject * obj2 = 0 ;
13542 PyObject * obj3 = 0 ;
13543 PyObject * obj4 = 0 ;
13544 char *kwnames[] = {
13545 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13546 };
13547
13548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13550 if (SWIG_arg_fail(1)) SWIG_fail;
13551 {
13552 arg2 = static_cast<int >(SWIG_As_int(obj1));
13553 if (SWIG_arg_fail(2)) SWIG_fail;
13554 }
13555 {
13556 arg3 = static_cast<int >(SWIG_As_int(obj2));
13557 if (SWIG_arg_fail(3)) SWIG_fail;
13558 }
13559 {
13560 arg4 = static_cast<int >(SWIG_As_int(obj3));
13561 if (SWIG_arg_fail(4)) SWIG_fail;
13562 }
13563 {
13564 arg5 = static_cast<int >(SWIG_As_int(obj4));
13565 if (SWIG_arg_fail(5)) SWIG_fail;
13566 }
13567 {
13568 PyThreadState* __tstate = wxPyBeginAllowThreads();
13569 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
13570
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 Py_INCREF(Py_None); resultobj = Py_None;
13575 return resultobj;
13576 fail:
13577 return NULL;
13578 }
13579
13580
13581 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
13582 PyObject *resultobj = NULL;
13583 wxDC *arg1 = (wxDC *) 0 ;
13584 wxRect *arg2 = 0 ;
13585 wxRect temp2 ;
13586 PyObject * obj0 = 0 ;
13587 PyObject * obj1 = 0 ;
13588 char *kwnames[] = {
13589 (char *) "self",(char *) "rect", NULL
13590 };
13591
13592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
13593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13594 if (SWIG_arg_fail(1)) SWIG_fail;
13595 {
13596 arg2 = &temp2;
13597 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13598 }
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 (arg1)->DrawEllipse((wxRect const &)*arg2);
13602
13603 wxPyEndAllowThreads(__tstate);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 Py_INCREF(Py_None); resultobj = Py_None;
13607 return resultobj;
13608 fail:
13609 return NULL;
13610 }
13611
13612
13613 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13614 PyObject *resultobj = NULL;
13615 wxDC *arg1 = (wxDC *) 0 ;
13616 wxPoint *arg2 = 0 ;
13617 wxSize *arg3 = 0 ;
13618 wxPoint temp2 ;
13619 wxSize temp3 ;
13620 PyObject * obj0 = 0 ;
13621 PyObject * obj1 = 0 ;
13622 PyObject * obj2 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self",(char *) "pt",(char *) "sz", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13629 if (SWIG_arg_fail(1)) SWIG_fail;
13630 {
13631 arg2 = &temp2;
13632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13633 }
13634 {
13635 arg3 = &temp3;
13636 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13637 }
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 Py_INCREF(Py_None); resultobj = Py_None;
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj = NULL;
13654 wxDC *arg1 = (wxDC *) 0 ;
13655 wxIcon *arg2 = 0 ;
13656 int arg3 ;
13657 int arg4 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 PyObject * obj3 = 0 ;
13662 char *kwnames[] = {
13663 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
13664 };
13665
13666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13668 if (SWIG_arg_fail(1)) SWIG_fail;
13669 {
13670 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13671 if (SWIG_arg_fail(2)) SWIG_fail;
13672 if (arg2 == NULL) {
13673 SWIG_null_ref("wxIcon");
13674 }
13675 if (SWIG_arg_fail(2)) SWIG_fail;
13676 }
13677 {
13678 arg3 = static_cast<int >(SWIG_As_int(obj2));
13679 if (SWIG_arg_fail(3)) SWIG_fail;
13680 }
13681 {
13682 arg4 = static_cast<int >(SWIG_As_int(obj3));
13683 if (SWIG_arg_fail(4)) SWIG_fail;
13684 }
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 Py_INCREF(Py_None); resultobj = Py_None;
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj = NULL;
13701 wxDC *arg1 = (wxDC *) 0 ;
13702 wxIcon *arg2 = 0 ;
13703 wxPoint *arg3 = 0 ;
13704 wxPoint temp3 ;
13705 PyObject * obj0 = 0 ;
13706 PyObject * obj1 = 0 ;
13707 PyObject * obj2 = 0 ;
13708 char *kwnames[] = {
13709 (char *) "self",(char *) "icon",(char *) "pt", NULL
13710 };
13711
13712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13713 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13714 if (SWIG_arg_fail(1)) SWIG_fail;
13715 {
13716 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13717 if (SWIG_arg_fail(2)) SWIG_fail;
13718 if (arg2 == NULL) {
13719 SWIG_null_ref("wxIcon");
13720 }
13721 if (SWIG_arg_fail(2)) SWIG_fail;
13722 }
13723 {
13724 arg3 = &temp3;
13725 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13726 }
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
13730
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 Py_INCREF(Py_None); resultobj = Py_None;
13735 return resultobj;
13736 fail:
13737 return NULL;
13738 }
13739
13740
13741 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13742 PyObject *resultobj = NULL;
13743 wxDC *arg1 = (wxDC *) 0 ;
13744 wxBitmap *arg2 = 0 ;
13745 int arg3 ;
13746 int arg4 ;
13747 bool arg5 = (bool) false ;
13748 PyObject * obj0 = 0 ;
13749 PyObject * obj1 = 0 ;
13750 PyObject * obj2 = 0 ;
13751 PyObject * obj3 = 0 ;
13752 PyObject * obj4 = 0 ;
13753 char *kwnames[] = {
13754 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
13755 };
13756
13757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13758 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13759 if (SWIG_arg_fail(1)) SWIG_fail;
13760 {
13761 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13762 if (SWIG_arg_fail(2)) SWIG_fail;
13763 if (arg2 == NULL) {
13764 SWIG_null_ref("wxBitmap");
13765 }
13766 if (SWIG_arg_fail(2)) SWIG_fail;
13767 }
13768 {
13769 arg3 = static_cast<int >(SWIG_As_int(obj2));
13770 if (SWIG_arg_fail(3)) SWIG_fail;
13771 }
13772 {
13773 arg4 = static_cast<int >(SWIG_As_int(obj3));
13774 if (SWIG_arg_fail(4)) SWIG_fail;
13775 }
13776 if (obj4) {
13777 {
13778 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
13779 if (SWIG_arg_fail(5)) SWIG_fail;
13780 }
13781 }
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 Py_INCREF(Py_None); resultobj = Py_None;
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj = NULL;
13798 wxDC *arg1 = (wxDC *) 0 ;
13799 wxBitmap *arg2 = 0 ;
13800 wxPoint *arg3 = 0 ;
13801 bool arg4 = (bool) false ;
13802 wxPoint temp3 ;
13803 PyObject * obj0 = 0 ;
13804 PyObject * obj1 = 0 ;
13805 PyObject * obj2 = 0 ;
13806 PyObject * obj3 = 0 ;
13807 char *kwnames[] = {
13808 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
13809 };
13810
13811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13813 if (SWIG_arg_fail(1)) SWIG_fail;
13814 {
13815 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13816 if (SWIG_arg_fail(2)) SWIG_fail;
13817 if (arg2 == NULL) {
13818 SWIG_null_ref("wxBitmap");
13819 }
13820 if (SWIG_arg_fail(2)) SWIG_fail;
13821 }
13822 {
13823 arg3 = &temp3;
13824 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13825 }
13826 if (obj3) {
13827 {
13828 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
13829 if (SWIG_arg_fail(4)) SWIG_fail;
13830 }
13831 }
13832 {
13833 PyThreadState* __tstate = wxPyBeginAllowThreads();
13834 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
13835
13836 wxPyEndAllowThreads(__tstate);
13837 if (PyErr_Occurred()) SWIG_fail;
13838 }
13839 Py_INCREF(Py_None); resultobj = Py_None;
13840 return resultobj;
13841 fail:
13842 return NULL;
13843 }
13844
13845
13846 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
13847 PyObject *resultobj = NULL;
13848 wxDC *arg1 = (wxDC *) 0 ;
13849 wxString *arg2 = 0 ;
13850 int arg3 ;
13851 int arg4 ;
13852 bool temp2 = false ;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 PyObject * obj2 = 0 ;
13856 PyObject * obj3 = 0 ;
13857 char *kwnames[] = {
13858 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
13859 };
13860
13861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13863 if (SWIG_arg_fail(1)) SWIG_fail;
13864 {
13865 arg2 = wxString_in_helper(obj1);
13866 if (arg2 == NULL) SWIG_fail;
13867 temp2 = true;
13868 }
13869 {
13870 arg3 = static_cast<int >(SWIG_As_int(obj2));
13871 if (SWIG_arg_fail(3)) SWIG_fail;
13872 }
13873 {
13874 arg4 = static_cast<int >(SWIG_As_int(obj3));
13875 if (SWIG_arg_fail(4)) SWIG_fail;
13876 }
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 Py_INCREF(Py_None); resultobj = Py_None;
13885 {
13886 if (temp2)
13887 delete arg2;
13888 }
13889 return resultobj;
13890 fail:
13891 {
13892 if (temp2)
13893 delete arg2;
13894 }
13895 return NULL;
13896 }
13897
13898
13899 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13900 PyObject *resultobj = NULL;
13901 wxDC *arg1 = (wxDC *) 0 ;
13902 wxString *arg2 = 0 ;
13903 wxPoint *arg3 = 0 ;
13904 bool temp2 = false ;
13905 wxPoint temp3 ;
13906 PyObject * obj0 = 0 ;
13907 PyObject * obj1 = 0 ;
13908 PyObject * obj2 = 0 ;
13909 char *kwnames[] = {
13910 (char *) "self",(char *) "text",(char *) "pt", NULL
13911 };
13912
13913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13915 if (SWIG_arg_fail(1)) SWIG_fail;
13916 {
13917 arg2 = wxString_in_helper(obj1);
13918 if (arg2 == NULL) SWIG_fail;
13919 temp2 = true;
13920 }
13921 {
13922 arg3 = &temp3;
13923 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13924 }
13925 {
13926 PyThreadState* __tstate = wxPyBeginAllowThreads();
13927 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
13928
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 Py_INCREF(Py_None); resultobj = Py_None;
13933 {
13934 if (temp2)
13935 delete arg2;
13936 }
13937 return resultobj;
13938 fail:
13939 {
13940 if (temp2)
13941 delete arg2;
13942 }
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj = NULL;
13949 wxDC *arg1 = (wxDC *) 0 ;
13950 wxString *arg2 = 0 ;
13951 int arg3 ;
13952 int arg4 ;
13953 double arg5 ;
13954 bool temp2 = false ;
13955 PyObject * obj0 = 0 ;
13956 PyObject * obj1 = 0 ;
13957 PyObject * obj2 = 0 ;
13958 PyObject * obj3 = 0 ;
13959 PyObject * obj4 = 0 ;
13960 char *kwnames[] = {
13961 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
13962 };
13963
13964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13966 if (SWIG_arg_fail(1)) SWIG_fail;
13967 {
13968 arg2 = wxString_in_helper(obj1);
13969 if (arg2 == NULL) SWIG_fail;
13970 temp2 = true;
13971 }
13972 {
13973 arg3 = static_cast<int >(SWIG_As_int(obj2));
13974 if (SWIG_arg_fail(3)) SWIG_fail;
13975 }
13976 {
13977 arg4 = static_cast<int >(SWIG_As_int(obj3));
13978 if (SWIG_arg_fail(4)) SWIG_fail;
13979 }
13980 {
13981 arg5 = static_cast<double >(SWIG_As_double(obj4));
13982 if (SWIG_arg_fail(5)) SWIG_fail;
13983 }
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 Py_INCREF(Py_None); resultobj = Py_None;
13992 {
13993 if (temp2)
13994 delete arg2;
13995 }
13996 return resultobj;
13997 fail:
13998 {
13999 if (temp2)
14000 delete arg2;
14001 }
14002 return NULL;
14003 }
14004
14005
14006 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14007 PyObject *resultobj = NULL;
14008 wxDC *arg1 = (wxDC *) 0 ;
14009 wxString *arg2 = 0 ;
14010 wxPoint *arg3 = 0 ;
14011 double arg4 ;
14012 bool temp2 = false ;
14013 wxPoint temp3 ;
14014 PyObject * obj0 = 0 ;
14015 PyObject * obj1 = 0 ;
14016 PyObject * obj2 = 0 ;
14017 PyObject * obj3 = 0 ;
14018 char *kwnames[] = {
14019 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
14020 };
14021
14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14023 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14024 if (SWIG_arg_fail(1)) SWIG_fail;
14025 {
14026 arg2 = wxString_in_helper(obj1);
14027 if (arg2 == NULL) SWIG_fail;
14028 temp2 = true;
14029 }
14030 {
14031 arg3 = &temp3;
14032 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14033 }
14034 {
14035 arg4 = static_cast<double >(SWIG_As_double(obj3));
14036 if (SWIG_arg_fail(4)) SWIG_fail;
14037 }
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 Py_INCREF(Py_None); resultobj = Py_None;
14046 {
14047 if (temp2)
14048 delete arg2;
14049 }
14050 return resultobj;
14051 fail:
14052 {
14053 if (temp2)
14054 delete arg2;
14055 }
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj = NULL;
14062 wxDC *arg1 = (wxDC *) 0 ;
14063 int arg2 ;
14064 int arg3 ;
14065 int arg4 ;
14066 int arg5 ;
14067 wxDC *arg6 = (wxDC *) 0 ;
14068 int arg7 ;
14069 int arg8 ;
14070 int arg9 = (int) wxCOPY ;
14071 bool arg10 = (bool) false ;
14072 int arg11 = (int) -1 ;
14073 int arg12 = (int) -1 ;
14074 bool result;
14075 PyObject * obj0 = 0 ;
14076 PyObject * obj1 = 0 ;
14077 PyObject * obj2 = 0 ;
14078 PyObject * obj3 = 0 ;
14079 PyObject * obj4 = 0 ;
14080 PyObject * obj5 = 0 ;
14081 PyObject * obj6 = 0 ;
14082 PyObject * obj7 = 0 ;
14083 PyObject * obj8 = 0 ;
14084 PyObject * obj9 = 0 ;
14085 PyObject * obj10 = 0 ;
14086 PyObject * obj11 = 0 ;
14087 char *kwnames[] = {
14088 (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
14089 };
14090
14091 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;
14092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14093 if (SWIG_arg_fail(1)) SWIG_fail;
14094 {
14095 arg2 = static_cast<int >(SWIG_As_int(obj1));
14096 if (SWIG_arg_fail(2)) SWIG_fail;
14097 }
14098 {
14099 arg3 = static_cast<int >(SWIG_As_int(obj2));
14100 if (SWIG_arg_fail(3)) SWIG_fail;
14101 }
14102 {
14103 arg4 = static_cast<int >(SWIG_As_int(obj3));
14104 if (SWIG_arg_fail(4)) SWIG_fail;
14105 }
14106 {
14107 arg5 = static_cast<int >(SWIG_As_int(obj4));
14108 if (SWIG_arg_fail(5)) SWIG_fail;
14109 }
14110 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14111 if (SWIG_arg_fail(6)) SWIG_fail;
14112 {
14113 arg7 = static_cast<int >(SWIG_As_int(obj6));
14114 if (SWIG_arg_fail(7)) SWIG_fail;
14115 }
14116 {
14117 arg8 = static_cast<int >(SWIG_As_int(obj7));
14118 if (SWIG_arg_fail(8)) SWIG_fail;
14119 }
14120 if (obj8) {
14121 {
14122 arg9 = static_cast<int >(SWIG_As_int(obj8));
14123 if (SWIG_arg_fail(9)) SWIG_fail;
14124 }
14125 }
14126 if (obj9) {
14127 {
14128 arg10 = static_cast<bool >(SWIG_As_bool(obj9));
14129 if (SWIG_arg_fail(10)) SWIG_fail;
14130 }
14131 }
14132 if (obj10) {
14133 {
14134 arg11 = static_cast<int >(SWIG_As_int(obj10));
14135 if (SWIG_arg_fail(11)) SWIG_fail;
14136 }
14137 }
14138 if (obj11) {
14139 {
14140 arg12 = static_cast<int >(SWIG_As_int(obj11));
14141 if (SWIG_arg_fail(12)) SWIG_fail;
14142 }
14143 }
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14147
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 {
14152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14153 }
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14161 PyObject *resultobj = NULL;
14162 wxDC *arg1 = (wxDC *) 0 ;
14163 wxPoint *arg2 = 0 ;
14164 wxSize *arg3 = 0 ;
14165 wxDC *arg4 = (wxDC *) 0 ;
14166 wxPoint *arg5 = 0 ;
14167 int arg6 = (int) wxCOPY ;
14168 bool arg7 = (bool) false ;
14169 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14170 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14171 bool result;
14172 wxPoint temp2 ;
14173 wxSize temp3 ;
14174 wxPoint temp5 ;
14175 wxPoint temp8 ;
14176 PyObject * obj0 = 0 ;
14177 PyObject * obj1 = 0 ;
14178 PyObject * obj2 = 0 ;
14179 PyObject * obj3 = 0 ;
14180 PyObject * obj4 = 0 ;
14181 PyObject * obj5 = 0 ;
14182 PyObject * obj6 = 0 ;
14183 PyObject * obj7 = 0 ;
14184 char *kwnames[] = {
14185 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
14186 };
14187
14188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14190 if (SWIG_arg_fail(1)) SWIG_fail;
14191 {
14192 arg2 = &temp2;
14193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14194 }
14195 {
14196 arg3 = &temp3;
14197 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14198 }
14199 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14200 if (SWIG_arg_fail(4)) SWIG_fail;
14201 {
14202 arg5 = &temp5;
14203 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14204 }
14205 if (obj5) {
14206 {
14207 arg6 = static_cast<int >(SWIG_As_int(obj5));
14208 if (SWIG_arg_fail(6)) SWIG_fail;
14209 }
14210 }
14211 if (obj6) {
14212 {
14213 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
14214 if (SWIG_arg_fail(7)) SWIG_fail;
14215 }
14216 }
14217 if (obj7) {
14218 {
14219 arg8 = &temp8;
14220 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14221 }
14222 }
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14232 }
14233 return resultobj;
14234 fail:
14235 return NULL;
14236 }
14237
14238
14239 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14240 PyObject *resultobj = NULL;
14241 wxDC *arg1 = (wxDC *) 0 ;
14242 int arg2 ;
14243 int arg3 ;
14244 int arg4 ;
14245 int arg5 ;
14246 PyObject * obj0 = 0 ;
14247 PyObject * obj1 = 0 ;
14248 PyObject * obj2 = 0 ;
14249 PyObject * obj3 = 0 ;
14250 PyObject * obj4 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14253 };
14254
14255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14257 if (SWIG_arg_fail(1)) SWIG_fail;
14258 {
14259 arg2 = static_cast<int >(SWIG_As_int(obj1));
14260 if (SWIG_arg_fail(2)) SWIG_fail;
14261 }
14262 {
14263 arg3 = static_cast<int >(SWIG_As_int(obj2));
14264 if (SWIG_arg_fail(3)) SWIG_fail;
14265 }
14266 {
14267 arg4 = static_cast<int >(SWIG_As_int(obj3));
14268 if (SWIG_arg_fail(4)) SWIG_fail;
14269 }
14270 {
14271 arg5 = static_cast<int >(SWIG_As_int(obj4));
14272 if (SWIG_arg_fail(5)) SWIG_fail;
14273 }
14274 {
14275 PyThreadState* __tstate = wxPyBeginAllowThreads();
14276 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
14277
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 Py_INCREF(Py_None); resultobj = Py_None;
14282 return resultobj;
14283 fail:
14284 return NULL;
14285 }
14286
14287
14288 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14289 PyObject *resultobj = NULL;
14290 wxDC *arg1 = (wxDC *) 0 ;
14291 wxPoint *arg2 = 0 ;
14292 wxSize *arg3 = 0 ;
14293 wxPoint temp2 ;
14294 wxSize temp3 ;
14295 PyObject * obj0 = 0 ;
14296 PyObject * obj1 = 0 ;
14297 PyObject * obj2 = 0 ;
14298 char *kwnames[] = {
14299 (char *) "self",(char *) "pt",(char *) "sz", NULL
14300 };
14301
14302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14303 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14304 if (SWIG_arg_fail(1)) SWIG_fail;
14305 {
14306 arg2 = &temp2;
14307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14308 }
14309 {
14310 arg3 = &temp3;
14311 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14312 }
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
14316
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 Py_INCREF(Py_None); resultobj = Py_None;
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj = NULL;
14329 wxDC *arg1 = (wxDC *) 0 ;
14330 wxRegion *arg2 = 0 ;
14331 PyObject * obj0 = 0 ;
14332 PyObject * obj1 = 0 ;
14333 char *kwnames[] = {
14334 (char *) "self",(char *) "region", NULL
14335 };
14336
14337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
14338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14339 if (SWIG_arg_fail(1)) SWIG_fail;
14340 {
14341 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
14342 if (SWIG_arg_fail(2)) SWIG_fail;
14343 if (arg2 == NULL) {
14344 SWIG_null_ref("wxRegion");
14345 }
14346 if (SWIG_arg_fail(2)) SWIG_fail;
14347 }
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 Py_INCREF(Py_None); resultobj = Py_None;
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj = NULL;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 wxRect *arg2 = 0 ;
14366 wxRect temp2 ;
14367 PyObject * obj0 = 0 ;
14368 PyObject * obj1 = 0 ;
14369 char *kwnames[] = {
14370 (char *) "self",(char *) "rect", NULL
14371 };
14372
14373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
14374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14375 if (SWIG_arg_fail(1)) SWIG_fail;
14376 {
14377 arg2 = &temp2;
14378 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14379 }
14380 {
14381 PyThreadState* __tstate = wxPyBeginAllowThreads();
14382 (arg1)->SetClippingRegion((wxRect const &)*arg2);
14383
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 Py_INCREF(Py_None); resultobj = Py_None;
14388 return resultobj;
14389 fail:
14390 return NULL;
14391 }
14392
14393
14394 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj = NULL;
14396 wxDC *arg1 = (wxDC *) 0 ;
14397 int arg2 ;
14398 wxPoint *arg3 = (wxPoint *) 0 ;
14399 int arg4 = (int) 0 ;
14400 int arg5 = (int) 0 ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 PyObject * obj2 = 0 ;
14404 PyObject * obj3 = 0 ;
14405 char *kwnames[] = {
14406 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
14407 };
14408
14409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14411 if (SWIG_arg_fail(1)) SWIG_fail;
14412 {
14413 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14414 if (arg3 == NULL) SWIG_fail;
14415 }
14416 if (obj2) {
14417 {
14418 arg4 = static_cast<int >(SWIG_As_int(obj2));
14419 if (SWIG_arg_fail(4)) SWIG_fail;
14420 }
14421 }
14422 if (obj3) {
14423 {
14424 arg5 = static_cast<int >(SWIG_As_int(obj3));
14425 if (SWIG_arg_fail(5)) SWIG_fail;
14426 }
14427 }
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 Py_INCREF(Py_None); resultobj = Py_None;
14436 {
14437 if (arg3) delete [] arg3;
14438 }
14439 return resultobj;
14440 fail:
14441 {
14442 if (arg3) delete [] arg3;
14443 }
14444 return NULL;
14445 }
14446
14447
14448 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
14449 PyObject *resultobj = NULL;
14450 wxDC *arg1 = (wxDC *) 0 ;
14451 int arg2 ;
14452 wxPoint *arg3 = (wxPoint *) 0 ;
14453 int arg4 = (int) 0 ;
14454 int arg5 = (int) 0 ;
14455 int arg6 = (int) wxODDEVEN_RULE ;
14456 PyObject * obj0 = 0 ;
14457 PyObject * obj1 = 0 ;
14458 PyObject * obj2 = 0 ;
14459 PyObject * obj3 = 0 ;
14460 PyObject * obj4 = 0 ;
14461 char *kwnames[] = {
14462 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
14463 };
14464
14465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14467 if (SWIG_arg_fail(1)) SWIG_fail;
14468 {
14469 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14470 if (arg3 == NULL) SWIG_fail;
14471 }
14472 if (obj2) {
14473 {
14474 arg4 = static_cast<int >(SWIG_As_int(obj2));
14475 if (SWIG_arg_fail(4)) SWIG_fail;
14476 }
14477 }
14478 if (obj3) {
14479 {
14480 arg5 = static_cast<int >(SWIG_As_int(obj3));
14481 if (SWIG_arg_fail(5)) SWIG_fail;
14482 }
14483 }
14484 if (obj4) {
14485 {
14486 arg6 = static_cast<int >(SWIG_As_int(obj4));
14487 if (SWIG_arg_fail(6)) SWIG_fail;
14488 }
14489 }
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
14493
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 Py_INCREF(Py_None); resultobj = Py_None;
14498 {
14499 if (arg3) delete [] arg3;
14500 }
14501 return resultobj;
14502 fail:
14503 {
14504 if (arg3) delete [] arg3;
14505 }
14506 return NULL;
14507 }
14508
14509
14510 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj = NULL;
14512 wxDC *arg1 = (wxDC *) 0 ;
14513 wxString *arg2 = 0 ;
14514 wxRect *arg3 = 0 ;
14515 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14516 int arg5 = (int) -1 ;
14517 bool temp2 = false ;
14518 wxRect temp3 ;
14519 PyObject * obj0 = 0 ;
14520 PyObject * obj1 = 0 ;
14521 PyObject * obj2 = 0 ;
14522 PyObject * obj3 = 0 ;
14523 PyObject * obj4 = 0 ;
14524 char *kwnames[] = {
14525 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
14526 };
14527
14528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14530 if (SWIG_arg_fail(1)) SWIG_fail;
14531 {
14532 arg2 = wxString_in_helper(obj1);
14533 if (arg2 == NULL) SWIG_fail;
14534 temp2 = true;
14535 }
14536 {
14537 arg3 = &temp3;
14538 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
14539 }
14540 if (obj3) {
14541 {
14542 arg4 = static_cast<int >(SWIG_As_int(obj3));
14543 if (SWIG_arg_fail(4)) SWIG_fail;
14544 }
14545 }
14546 if (obj4) {
14547 {
14548 arg5 = static_cast<int >(SWIG_As_int(obj4));
14549 if (SWIG_arg_fail(5)) SWIG_fail;
14550 }
14551 }
14552 {
14553 PyThreadState* __tstate = wxPyBeginAllowThreads();
14554 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
14555
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 Py_INCREF(Py_None); resultobj = Py_None;
14560 {
14561 if (temp2)
14562 delete arg2;
14563 }
14564 return resultobj;
14565 fail:
14566 {
14567 if (temp2)
14568 delete arg2;
14569 }
14570 return NULL;
14571 }
14572
14573
14574 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj = NULL;
14576 wxDC *arg1 = (wxDC *) 0 ;
14577 wxString *arg2 = 0 ;
14578 wxBitmap *arg3 = 0 ;
14579 wxRect *arg4 = 0 ;
14580 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14581 int arg6 = (int) -1 ;
14582 wxRect result;
14583 bool temp2 = false ;
14584 wxRect temp4 ;
14585 PyObject * obj0 = 0 ;
14586 PyObject * obj1 = 0 ;
14587 PyObject * obj2 = 0 ;
14588 PyObject * obj3 = 0 ;
14589 PyObject * obj4 = 0 ;
14590 PyObject * obj5 = 0 ;
14591 char *kwnames[] = {
14592 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
14593 };
14594
14595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14597 if (SWIG_arg_fail(1)) SWIG_fail;
14598 {
14599 arg2 = wxString_in_helper(obj1);
14600 if (arg2 == NULL) SWIG_fail;
14601 temp2 = true;
14602 }
14603 {
14604 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14605 if (SWIG_arg_fail(3)) SWIG_fail;
14606 if (arg3 == NULL) {
14607 SWIG_null_ref("wxBitmap");
14608 }
14609 if (SWIG_arg_fail(3)) SWIG_fail;
14610 }
14611 {
14612 arg4 = &temp4;
14613 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
14614 }
14615 if (obj4) {
14616 {
14617 arg5 = static_cast<int >(SWIG_As_int(obj4));
14618 if (SWIG_arg_fail(5)) SWIG_fail;
14619 }
14620 }
14621 if (obj5) {
14622 {
14623 arg6 = static_cast<int >(SWIG_As_int(obj5));
14624 if (SWIG_arg_fail(6)) SWIG_fail;
14625 }
14626 }
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 {
14635 wxRect * resultptr;
14636 resultptr = new wxRect(static_cast<wxRect & >(result));
14637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
14638 }
14639 {
14640 if (temp2)
14641 delete arg2;
14642 }
14643 return resultobj;
14644 fail:
14645 {
14646 if (temp2)
14647 delete arg2;
14648 }
14649 return NULL;
14650 }
14651
14652
14653 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj = NULL;
14655 wxDC *arg1 = (wxDC *) 0 ;
14656 int arg2 ;
14657 wxPoint *arg3 = (wxPoint *) 0 ;
14658 PyObject * obj0 = 0 ;
14659 PyObject * obj1 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self",(char *) "points", NULL
14662 };
14663
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
14665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14666 if (SWIG_arg_fail(1)) SWIG_fail;
14667 {
14668 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14669 if (arg3 == NULL) SWIG_fail;
14670 }
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 (arg1)->DrawSpline(arg2,arg3);
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 Py_INCREF(Py_None); resultobj = Py_None;
14679 {
14680 if (arg3) delete [] arg3;
14681 }
14682 return resultobj;
14683 fail:
14684 {
14685 if (arg3) delete [] arg3;
14686 }
14687 return NULL;
14688 }
14689
14690
14691 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
14692 PyObject *resultobj = NULL;
14693 wxDC *arg1 = (wxDC *) 0 ;
14694 PyObject * obj0 = 0 ;
14695 char *kwnames[] = {
14696 (char *) "self", NULL
14697 };
14698
14699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
14700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14701 if (SWIG_arg_fail(1)) SWIG_fail;
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 (arg1)->Clear();
14705
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 Py_INCREF(Py_None); resultobj = Py_None;
14710 return resultobj;
14711 fail:
14712 return NULL;
14713 }
14714
14715
14716 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj = NULL;
14718 wxDC *arg1 = (wxDC *) 0 ;
14719 wxString *arg2 = 0 ;
14720 bool result;
14721 bool temp2 = false ;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj1 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "self",(char *) "message", NULL
14726 };
14727
14728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
14729 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14730 if (SWIG_arg_fail(1)) SWIG_fail;
14731 {
14732 arg2 = wxString_in_helper(obj1);
14733 if (arg2 == NULL) SWIG_fail;
14734 temp2 = true;
14735 }
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 {
14744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14745 }
14746 {
14747 if (temp2)
14748 delete arg2;
14749 }
14750 return resultobj;
14751 fail:
14752 {
14753 if (temp2)
14754 delete arg2;
14755 }
14756 return NULL;
14757 }
14758
14759
14760 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj = NULL;
14762 wxDC *arg1 = (wxDC *) 0 ;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
14769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14770 if (SWIG_arg_fail(1)) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 (arg1)->EndDoc();
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 Py_INCREF(Py_None); resultobj = Py_None;
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
14786 PyObject *resultobj = NULL;
14787 wxDC *arg1 = (wxDC *) 0 ;
14788 PyObject * obj0 = 0 ;
14789 char *kwnames[] = {
14790 (char *) "self", NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
14794 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14795 if (SWIG_arg_fail(1)) SWIG_fail;
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 (arg1)->StartPage();
14799
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
14803 Py_INCREF(Py_None); resultobj = Py_None;
14804 return resultobj;
14805 fail:
14806 return NULL;
14807 }
14808
14809
14810 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
14811 PyObject *resultobj = NULL;
14812 wxDC *arg1 = (wxDC *) 0 ;
14813 PyObject * obj0 = 0 ;
14814 char *kwnames[] = {
14815 (char *) "self", NULL
14816 };
14817
14818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
14819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14820 if (SWIG_arg_fail(1)) SWIG_fail;
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 (arg1)->EndPage();
14824
14825 wxPyEndAllowThreads(__tstate);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 Py_INCREF(Py_None); resultobj = Py_None;
14829 return resultobj;
14830 fail:
14831 return NULL;
14832 }
14833
14834
14835 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
14836 PyObject *resultobj = NULL;
14837 wxDC *arg1 = (wxDC *) 0 ;
14838 wxFont *arg2 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self",(char *) "font", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
14846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14847 if (SWIG_arg_fail(1)) SWIG_fail;
14848 {
14849 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
14850 if (SWIG_arg_fail(2)) SWIG_fail;
14851 if (arg2 == NULL) {
14852 SWIG_null_ref("wxFont");
14853 }
14854 if (SWIG_arg_fail(2)) SWIG_fail;
14855 }
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->SetFont((wxFont const &)*arg2);
14859
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 Py_INCREF(Py_None); resultobj = Py_None;
14864 return resultobj;
14865 fail:
14866 return NULL;
14867 }
14868
14869
14870 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj = NULL;
14872 wxDC *arg1 = (wxDC *) 0 ;
14873 wxPen *arg2 = 0 ;
14874 PyObject * obj0 = 0 ;
14875 PyObject * obj1 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self",(char *) "pen", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
14881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14882 if (SWIG_arg_fail(1)) SWIG_fail;
14883 {
14884 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
14885 if (SWIG_arg_fail(2)) SWIG_fail;
14886 if (arg2 == NULL) {
14887 SWIG_null_ref("wxPen");
14888 }
14889 if (SWIG_arg_fail(2)) SWIG_fail;
14890 }
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
14893 (arg1)->SetPen((wxPen const &)*arg2);
14894
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 Py_INCREF(Py_None); resultobj = Py_None;
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj = NULL;
14907 wxDC *arg1 = (wxDC *) 0 ;
14908 wxBrush *arg2 = 0 ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 char *kwnames[] = {
14912 (char *) "self",(char *) "brush", NULL
14913 };
14914
14915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
14916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14917 if (SWIG_arg_fail(1)) SWIG_fail;
14918 {
14919 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14920 if (SWIG_arg_fail(2)) SWIG_fail;
14921 if (arg2 == NULL) {
14922 SWIG_null_ref("wxBrush");
14923 }
14924 if (SWIG_arg_fail(2)) SWIG_fail;
14925 }
14926 {
14927 PyThreadState* __tstate = wxPyBeginAllowThreads();
14928 (arg1)->SetBrush((wxBrush const &)*arg2);
14929
14930 wxPyEndAllowThreads(__tstate);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 }
14933 Py_INCREF(Py_None); resultobj = Py_None;
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj = NULL;
14942 wxDC *arg1 = (wxDC *) 0 ;
14943 wxBrush *arg2 = 0 ;
14944 PyObject * obj0 = 0 ;
14945 PyObject * obj1 = 0 ;
14946 char *kwnames[] = {
14947 (char *) "self",(char *) "brush", NULL
14948 };
14949
14950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
14951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14952 if (SWIG_arg_fail(1)) SWIG_fail;
14953 {
14954 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14955 if (SWIG_arg_fail(2)) SWIG_fail;
14956 if (arg2 == NULL) {
14957 SWIG_null_ref("wxBrush");
14958 }
14959 if (SWIG_arg_fail(2)) SWIG_fail;
14960 }
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 (arg1)->SetBackground((wxBrush const &)*arg2);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 Py_INCREF(Py_None); resultobj = Py_None;
14969 return resultobj;
14970 fail:
14971 return NULL;
14972 }
14973
14974
14975 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj = NULL;
14977 wxDC *arg1 = (wxDC *) 0 ;
14978 int arg2 ;
14979 PyObject * obj0 = 0 ;
14980 PyObject * obj1 = 0 ;
14981 char *kwnames[] = {
14982 (char *) "self",(char *) "mode", NULL
14983 };
14984
14985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
14986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14987 if (SWIG_arg_fail(1)) SWIG_fail;
14988 {
14989 arg2 = static_cast<int >(SWIG_As_int(obj1));
14990 if (SWIG_arg_fail(2)) SWIG_fail;
14991 }
14992 {
14993 PyThreadState* __tstate = wxPyBeginAllowThreads();
14994 (arg1)->SetBackgroundMode(arg2);
14995
14996 wxPyEndAllowThreads(__tstate);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 }
14999 Py_INCREF(Py_None); resultobj = Py_None;
15000 return resultobj;
15001 fail:
15002 return NULL;
15003 }
15004
15005
15006 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
15007 PyObject *resultobj = NULL;
15008 wxDC *arg1 = (wxDC *) 0 ;
15009 wxPalette *arg2 = 0 ;
15010 PyObject * obj0 = 0 ;
15011 PyObject * obj1 = 0 ;
15012 char *kwnames[] = {
15013 (char *) "self",(char *) "palette", NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15018 if (SWIG_arg_fail(1)) SWIG_fail;
15019 {
15020 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
15021 if (SWIG_arg_fail(2)) SWIG_fail;
15022 if (arg2 == NULL) {
15023 SWIG_null_ref("wxPalette");
15024 }
15025 if (SWIG_arg_fail(2)) SWIG_fail;
15026 }
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 (arg1)->SetPalette((wxPalette const &)*arg2);
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 Py_INCREF(Py_None); resultobj = Py_None;
15035 return resultobj;
15036 fail:
15037 return NULL;
15038 }
15039
15040
15041 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
15042 PyObject *resultobj = NULL;
15043 wxDC *arg1 = (wxDC *) 0 ;
15044 PyObject * obj0 = 0 ;
15045 char *kwnames[] = {
15046 (char *) "self", NULL
15047 };
15048
15049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15051 if (SWIG_arg_fail(1)) SWIG_fail;
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 (arg1)->DestroyClippingRegion();
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 Py_INCREF(Py_None); resultobj = Py_None;
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15067 PyObject *resultobj = NULL;
15068 wxDC *arg1 = (wxDC *) 0 ;
15069 int *arg2 = (int *) 0 ;
15070 int *arg3 = (int *) 0 ;
15071 int *arg4 = (int *) 0 ;
15072 int *arg5 = (int *) 0 ;
15073 int temp2 ;
15074 int res2 = 0 ;
15075 int temp3 ;
15076 int res3 = 0 ;
15077 int temp4 ;
15078 int res4 = 0 ;
15079 int temp5 ;
15080 int res5 = 0 ;
15081 PyObject * obj0 = 0 ;
15082 char *kwnames[] = {
15083 (char *) "self", NULL
15084 };
15085
15086 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15087 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15088 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15089 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15092 if (SWIG_arg_fail(1)) SWIG_fail;
15093 {
15094 PyThreadState* __tstate = wxPyBeginAllowThreads();
15095 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
15096
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 Py_INCREF(Py_None); resultobj = Py_None;
15101 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15102 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15103 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15104 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15105 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15106 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15107 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15108 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15109 return resultobj;
15110 fail:
15111 return NULL;
15112 }
15113
15114
15115 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15116 PyObject *resultobj = NULL;
15117 wxDC *arg1 = (wxDC *) 0 ;
15118 wxRect result;
15119 PyObject * obj0 = 0 ;
15120 char *kwnames[] = {
15121 (char *) "self", NULL
15122 };
15123
15124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15126 if (SWIG_arg_fail(1)) SWIG_fail;
15127 {
15128 PyThreadState* __tstate = wxPyBeginAllowThreads();
15129 result = wxDC_GetClippingRect(arg1);
15130
15131 wxPyEndAllowThreads(__tstate);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 }
15134 {
15135 wxRect * resultptr;
15136 resultptr = new wxRect(static_cast<wxRect & >(result));
15137 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15138 }
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj = NULL;
15147 wxDC *arg1 = (wxDC *) 0 ;
15148 int result;
15149 PyObject * obj0 = 0 ;
15150 char *kwnames[] = {
15151 (char *) "self", NULL
15152 };
15153
15154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15156 if (SWIG_arg_fail(1)) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 result = (int)((wxDC const *)arg1)->GetCharHeight();
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 {
15165 resultobj = SWIG_From_int(static_cast<int >(result));
15166 }
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj = NULL;
15175 wxDC *arg1 = (wxDC *) 0 ;
15176 int result;
15177 PyObject * obj0 = 0 ;
15178 char *kwnames[] = {
15179 (char *) "self", NULL
15180 };
15181
15182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15184 if (SWIG_arg_fail(1)) SWIG_fail;
15185 {
15186 PyThreadState* __tstate = wxPyBeginAllowThreads();
15187 result = (int)((wxDC const *)arg1)->GetCharWidth();
15188
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 {
15193 resultobj = SWIG_From_int(static_cast<int >(result));
15194 }
15195 return resultobj;
15196 fail:
15197 return NULL;
15198 }
15199
15200
15201 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15202 PyObject *resultobj = NULL;
15203 wxDC *arg1 = (wxDC *) 0 ;
15204 wxString *arg2 = 0 ;
15205 int *arg3 = (int *) 0 ;
15206 int *arg4 = (int *) 0 ;
15207 bool temp2 = false ;
15208 int temp3 ;
15209 int res3 = 0 ;
15210 int temp4 ;
15211 int res4 = 0 ;
15212 PyObject * obj0 = 0 ;
15213 PyObject * obj1 = 0 ;
15214 char *kwnames[] = {
15215 (char *) "self",(char *) "string", NULL
15216 };
15217
15218 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15219 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15221 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15222 if (SWIG_arg_fail(1)) SWIG_fail;
15223 {
15224 arg2 = wxString_in_helper(obj1);
15225 if (arg2 == NULL) SWIG_fail;
15226 temp2 = true;
15227 }
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 Py_INCREF(Py_None); resultobj = Py_None;
15236 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15237 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15238 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15239 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15240 {
15241 if (temp2)
15242 delete arg2;
15243 }
15244 return resultobj;
15245 fail:
15246 {
15247 if (temp2)
15248 delete arg2;
15249 }
15250 return NULL;
15251 }
15252
15253
15254 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15255 PyObject *resultobj = NULL;
15256 wxDC *arg1 = (wxDC *) 0 ;
15257 wxString *arg2 = 0 ;
15258 int *arg3 = (int *) 0 ;
15259 int *arg4 = (int *) 0 ;
15260 int *arg5 = (int *) 0 ;
15261 int *arg6 = (int *) 0 ;
15262 wxFont *arg7 = (wxFont *) NULL ;
15263 bool temp2 = false ;
15264 int temp3 ;
15265 int res3 = 0 ;
15266 int temp4 ;
15267 int res4 = 0 ;
15268 int temp5 ;
15269 int res5 = 0 ;
15270 int temp6 ;
15271 int res6 = 0 ;
15272 PyObject * obj0 = 0 ;
15273 PyObject * obj1 = 0 ;
15274 PyObject * obj2 = 0 ;
15275 char *kwnames[] = {
15276 (char *) "self",(char *) "string",(char *) "font", NULL
15277 };
15278
15279 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15280 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15281 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15282 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15285 if (SWIG_arg_fail(1)) SWIG_fail;
15286 {
15287 arg2 = wxString_in_helper(obj1);
15288 if (arg2 == NULL) SWIG_fail;
15289 temp2 = true;
15290 }
15291 if (obj2) {
15292 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15293 if (SWIG_arg_fail(7)) SWIG_fail;
15294 }
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
15298
15299 wxPyEndAllowThreads(__tstate);
15300 if (PyErr_Occurred()) SWIG_fail;
15301 }
15302 Py_INCREF(Py_None); resultobj = Py_None;
15303 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15304 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15305 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15306 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15307 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15308 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15309 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
15310 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
15311 {
15312 if (temp2)
15313 delete arg2;
15314 }
15315 return resultobj;
15316 fail:
15317 {
15318 if (temp2)
15319 delete arg2;
15320 }
15321 return NULL;
15322 }
15323
15324
15325 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15326 PyObject *resultobj = NULL;
15327 wxDC *arg1 = (wxDC *) 0 ;
15328 wxString *arg2 = 0 ;
15329 int *arg3 = (int *) 0 ;
15330 int *arg4 = (int *) 0 ;
15331 int *arg5 = (int *) 0 ;
15332 wxFont *arg6 = (wxFont *) NULL ;
15333 bool temp2 = false ;
15334 int temp3 ;
15335 int res3 = 0 ;
15336 int temp4 ;
15337 int res4 = 0 ;
15338 int temp5 ;
15339 int res5 = 0 ;
15340 PyObject * obj0 = 0 ;
15341 PyObject * obj1 = 0 ;
15342 PyObject * obj2 = 0 ;
15343 char *kwnames[] = {
15344 (char *) "self",(char *) "text",(char *) "font", NULL
15345 };
15346
15347 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15348 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15349 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15352 if (SWIG_arg_fail(1)) SWIG_fail;
15353 {
15354 arg2 = wxString_in_helper(obj1);
15355 if (arg2 == NULL) SWIG_fail;
15356 temp2 = true;
15357 }
15358 if (obj2) {
15359 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15360 if (SWIG_arg_fail(6)) SWIG_fail;
15361 }
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 Py_INCREF(Py_None); resultobj = Py_None;
15370 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15371 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15372 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15373 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15374 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15375 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15376 {
15377 if (temp2)
15378 delete arg2;
15379 }
15380 return resultobj;
15381 fail:
15382 {
15383 if (temp2)
15384 delete arg2;
15385 }
15386 return NULL;
15387 }
15388
15389
15390 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj = NULL;
15392 wxDC *arg1 = (wxDC *) 0 ;
15393 wxString *arg2 = 0 ;
15394 wxArrayInt result;
15395 bool temp2 = false ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15398 char *kwnames[] = {
15399 (char *) "self",(char *) "text", NULL
15400 };
15401
15402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15403 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15404 if (SWIG_arg_fail(1)) SWIG_fail;
15405 {
15406 arg2 = wxString_in_helper(obj1);
15407 if (arg2 == NULL) SWIG_fail;
15408 temp2 = true;
15409 }
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
15413
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 {
15418 resultobj = PyList_New(0);
15419 size_t idx;
15420 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
15421 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
15422 PyList_Append(resultobj, val);
15423 Py_DECREF(val);
15424 }
15425 }
15426 {
15427 if (temp2)
15428 delete arg2;
15429 }
15430 return resultobj;
15431 fail:
15432 {
15433 if (temp2)
15434 delete arg2;
15435 }
15436 return NULL;
15437 }
15438
15439
15440 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
15441 PyObject *resultobj = NULL;
15442 wxDC *arg1 = (wxDC *) 0 ;
15443 wxSize result;
15444 PyObject * obj0 = 0 ;
15445 char *kwnames[] = {
15446 (char *) "self", NULL
15447 };
15448
15449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15451 if (SWIG_arg_fail(1)) SWIG_fail;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 result = (arg1)->GetSize();
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 {
15460 wxSize * resultptr;
15461 resultptr = new wxSize(static_cast<wxSize & >(result));
15462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15463 }
15464 return resultobj;
15465 fail:
15466 return NULL;
15467 }
15468
15469
15470 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj = NULL;
15472 wxDC *arg1 = (wxDC *) 0 ;
15473 int *arg2 = (int *) 0 ;
15474 int *arg3 = (int *) 0 ;
15475 int temp2 ;
15476 int res2 = 0 ;
15477 int temp3 ;
15478 int res3 = 0 ;
15479 PyObject * obj0 = 0 ;
15480 char *kwnames[] = {
15481 (char *) "self", NULL
15482 };
15483
15484 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15485 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15488 if (SWIG_arg_fail(1)) SWIG_fail;
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->GetSize(arg2,arg3);
15492
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 Py_INCREF(Py_None); resultobj = Py_None;
15497 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15498 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15499 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15500 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15501 return resultobj;
15502 fail:
15503 return NULL;
15504 }
15505
15506
15507 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
15508 PyObject *resultobj = NULL;
15509 wxDC *arg1 = (wxDC *) 0 ;
15510 wxSize result;
15511 PyObject * obj0 = 0 ;
15512 char *kwnames[] = {
15513 (char *) "self", NULL
15514 };
15515
15516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
15517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15518 if (SWIG_arg_fail(1)) SWIG_fail;
15519 {
15520 PyThreadState* __tstate = wxPyBeginAllowThreads();
15521 result = ((wxDC const *)arg1)->GetSizeMM();
15522
15523 wxPyEndAllowThreads(__tstate);
15524 if (PyErr_Occurred()) SWIG_fail;
15525 }
15526 {
15527 wxSize * resultptr;
15528 resultptr = new wxSize(static_cast<wxSize & >(result));
15529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15530 }
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = NULL;
15539 wxDC *arg1 = (wxDC *) 0 ;
15540 int *arg2 = (int *) 0 ;
15541 int *arg3 = (int *) 0 ;
15542 int temp2 ;
15543 int res2 = 0 ;
15544 int temp3 ;
15545 int res3 = 0 ;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "self", NULL
15549 };
15550
15551 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15552 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15554 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15555 if (SWIG_arg_fail(1)) SWIG_fail;
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 Py_INCREF(Py_None); resultobj = Py_None;
15564 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15565 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15566 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15567 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj = NULL;
15576 wxDC *arg1 = (wxDC *) 0 ;
15577 int arg2 ;
15578 int result;
15579 PyObject * obj0 = 0 ;
15580 PyObject * obj1 = 0 ;
15581 char *kwnames[] = {
15582 (char *) "self",(char *) "x", NULL
15583 };
15584
15585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15587 if (SWIG_arg_fail(1)) SWIG_fail;
15588 {
15589 arg2 = static_cast<int >(SWIG_As_int(obj1));
15590 if (SWIG_arg_fail(2)) SWIG_fail;
15591 }
15592 {
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
15595
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 {
15600 resultobj = SWIG_From_int(static_cast<int >(result));
15601 }
15602 return resultobj;
15603 fail:
15604 return NULL;
15605 }
15606
15607
15608 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
15609 PyObject *resultobj = NULL;
15610 wxDC *arg1 = (wxDC *) 0 ;
15611 int arg2 ;
15612 int result;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 char *kwnames[] = {
15616 (char *) "self",(char *) "y", NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15620 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15621 if (SWIG_arg_fail(1)) SWIG_fail;
15622 {
15623 arg2 = static_cast<int >(SWIG_As_int(obj1));
15624 if (SWIG_arg_fail(2)) SWIG_fail;
15625 }
15626 {
15627 PyThreadState* __tstate = wxPyBeginAllowThreads();
15628 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
15629
15630 wxPyEndAllowThreads(__tstate);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 {
15634 resultobj = SWIG_From_int(static_cast<int >(result));
15635 }
15636 return resultobj;
15637 fail:
15638 return NULL;
15639 }
15640
15641
15642 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
15643 PyObject *resultobj = NULL;
15644 wxDC *arg1 = (wxDC *) 0 ;
15645 int arg2 ;
15646 int result;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 char *kwnames[] = {
15650 (char *) "self",(char *) "x", NULL
15651 };
15652
15653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15654 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15655 if (SWIG_arg_fail(1)) SWIG_fail;
15656 {
15657 arg2 = static_cast<int >(SWIG_As_int(obj1));
15658 if (SWIG_arg_fail(2)) SWIG_fail;
15659 }
15660 {
15661 PyThreadState* __tstate = wxPyBeginAllowThreads();
15662 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
15663
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 {
15668 resultobj = SWIG_From_int(static_cast<int >(result));
15669 }
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj = NULL;
15678 wxDC *arg1 = (wxDC *) 0 ;
15679 int arg2 ;
15680 int result;
15681 PyObject * obj0 = 0 ;
15682 PyObject * obj1 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "self",(char *) "y", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15689 if (SWIG_arg_fail(1)) SWIG_fail;
15690 {
15691 arg2 = static_cast<int >(SWIG_As_int(obj1));
15692 if (SWIG_arg_fail(2)) SWIG_fail;
15693 }
15694 {
15695 PyThreadState* __tstate = wxPyBeginAllowThreads();
15696 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
15697
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 {
15702 resultobj = SWIG_From_int(static_cast<int >(result));
15703 }
15704 return resultobj;
15705 fail:
15706 return NULL;
15707 }
15708
15709
15710 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
15711 PyObject *resultobj = NULL;
15712 wxDC *arg1 = (wxDC *) 0 ;
15713 int arg2 ;
15714 int result;
15715 PyObject * obj0 = 0 ;
15716 PyObject * obj1 = 0 ;
15717 char *kwnames[] = {
15718 (char *) "self",(char *) "x", NULL
15719 };
15720
15721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15722 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15723 if (SWIG_arg_fail(1)) SWIG_fail;
15724 {
15725 arg2 = static_cast<int >(SWIG_As_int(obj1));
15726 if (SWIG_arg_fail(2)) SWIG_fail;
15727 }
15728 {
15729 PyThreadState* __tstate = wxPyBeginAllowThreads();
15730 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
15731
15732 wxPyEndAllowThreads(__tstate);
15733 if (PyErr_Occurred()) SWIG_fail;
15734 }
15735 {
15736 resultobj = SWIG_From_int(static_cast<int >(result));
15737 }
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj = NULL;
15746 wxDC *arg1 = (wxDC *) 0 ;
15747 int arg2 ;
15748 int result;
15749 PyObject * obj0 = 0 ;
15750 PyObject * obj1 = 0 ;
15751 char *kwnames[] = {
15752 (char *) "self",(char *) "y", NULL
15753 };
15754
15755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15757 if (SWIG_arg_fail(1)) SWIG_fail;
15758 {
15759 arg2 = static_cast<int >(SWIG_As_int(obj1));
15760 if (SWIG_arg_fail(2)) SWIG_fail;
15761 }
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
15765
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 {
15770 resultobj = SWIG_From_int(static_cast<int >(result));
15771 }
15772 return resultobj;
15773 fail:
15774 return NULL;
15775 }
15776
15777
15778 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
15779 PyObject *resultobj = NULL;
15780 wxDC *arg1 = (wxDC *) 0 ;
15781 int arg2 ;
15782 int result;
15783 PyObject * obj0 = 0 ;
15784 PyObject * obj1 = 0 ;
15785 char *kwnames[] = {
15786 (char *) "self",(char *) "x", NULL
15787 };
15788
15789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15790 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15791 if (SWIG_arg_fail(1)) SWIG_fail;
15792 {
15793 arg2 = static_cast<int >(SWIG_As_int(obj1));
15794 if (SWIG_arg_fail(2)) SWIG_fail;
15795 }
15796 {
15797 PyThreadState* __tstate = wxPyBeginAllowThreads();
15798 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
15799
15800 wxPyEndAllowThreads(__tstate);
15801 if (PyErr_Occurred()) SWIG_fail;
15802 }
15803 {
15804 resultobj = SWIG_From_int(static_cast<int >(result));
15805 }
15806 return resultobj;
15807 fail:
15808 return NULL;
15809 }
15810
15811
15812 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj = NULL;
15814 wxDC *arg1 = (wxDC *) 0 ;
15815 int arg2 ;
15816 int result;
15817 PyObject * obj0 = 0 ;
15818 PyObject * obj1 = 0 ;
15819 char *kwnames[] = {
15820 (char *) "self",(char *) "y", NULL
15821 };
15822
15823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15825 if (SWIG_arg_fail(1)) SWIG_fail;
15826 {
15827 arg2 = static_cast<int >(SWIG_As_int(obj1));
15828 if (SWIG_arg_fail(2)) SWIG_fail;
15829 }
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 {
15838 resultobj = SWIG_From_int(static_cast<int >(result));
15839 }
15840 return resultobj;
15841 fail:
15842 return NULL;
15843 }
15844
15845
15846 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15847 PyObject *resultobj = NULL;
15848 wxDC *arg1 = (wxDC *) 0 ;
15849 bool result;
15850 PyObject * obj0 = 0 ;
15851 char *kwnames[] = {
15852 (char *) "self", NULL
15853 };
15854
15855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15857 if (SWIG_arg_fail(1)) SWIG_fail;
15858 {
15859 PyThreadState* __tstate = wxPyBeginAllowThreads();
15860 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
15861
15862 wxPyEndAllowThreads(__tstate);
15863 if (PyErr_Occurred()) SWIG_fail;
15864 }
15865 {
15866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15867 }
15868 return resultobj;
15869 fail:
15870 return NULL;
15871 }
15872
15873
15874 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = NULL;
15876 wxDC *arg1 = (wxDC *) 0 ;
15877 bool result;
15878 PyObject * obj0 = 0 ;
15879 char *kwnames[] = {
15880 (char *) "self", NULL
15881 };
15882
15883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15885 if (SWIG_arg_fail(1)) SWIG_fail;
15886 {
15887 PyThreadState* __tstate = wxPyBeginAllowThreads();
15888 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
15889
15890 wxPyEndAllowThreads(__tstate);
15891 if (PyErr_Occurred()) SWIG_fail;
15892 }
15893 {
15894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15895 }
15896 return resultobj;
15897 fail:
15898 return NULL;
15899 }
15900
15901
15902 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj = NULL;
15904 wxDC *arg1 = (wxDC *) 0 ;
15905 int result;
15906 PyObject * obj0 = 0 ;
15907 char *kwnames[] = {
15908 (char *) "self", NULL
15909 };
15910
15911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15913 if (SWIG_arg_fail(1)) SWIG_fail;
15914 {
15915 PyThreadState* __tstate = wxPyBeginAllowThreads();
15916 result = (int)((wxDC const *)arg1)->GetDepth();
15917
15918 wxPyEndAllowThreads(__tstate);
15919 if (PyErr_Occurred()) SWIG_fail;
15920 }
15921 {
15922 resultobj = SWIG_From_int(static_cast<int >(result));
15923 }
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj = NULL;
15932 wxDC *arg1 = (wxDC *) 0 ;
15933 wxSize result;
15934 PyObject * obj0 = 0 ;
15935 char *kwnames[] = {
15936 (char *) "self", NULL
15937 };
15938
15939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15941 if (SWIG_arg_fail(1)) SWIG_fail;
15942 {
15943 PyThreadState* __tstate = wxPyBeginAllowThreads();
15944 result = ((wxDC const *)arg1)->GetPPI();
15945
15946 wxPyEndAllowThreads(__tstate);
15947 if (PyErr_Occurred()) SWIG_fail;
15948 }
15949 {
15950 wxSize * resultptr;
15951 resultptr = new wxSize(static_cast<wxSize & >(result));
15952 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15953 }
15954 return resultobj;
15955 fail:
15956 return NULL;
15957 }
15958
15959
15960 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15961 PyObject *resultobj = NULL;
15962 wxDC *arg1 = (wxDC *) 0 ;
15963 bool result;
15964 PyObject * obj0 = 0 ;
15965 char *kwnames[] = {
15966 (char *) "self", NULL
15967 };
15968
15969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15970 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15971 if (SWIG_arg_fail(1)) SWIG_fail;
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 result = (bool)((wxDC const *)arg1)->Ok();
15975
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 {
15980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15981 }
15982 return resultobj;
15983 fail:
15984 return NULL;
15985 }
15986
15987
15988 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
15989 PyObject *resultobj = NULL;
15990 wxDC *arg1 = (wxDC *) 0 ;
15991 int result;
15992 PyObject * obj0 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "self", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
15998 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15999 if (SWIG_arg_fail(1)) SWIG_fail;
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
16003
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 {
16008 resultobj = SWIG_From_int(static_cast<int >(result));
16009 }
16010 return resultobj;
16011 fail:
16012 return NULL;
16013 }
16014
16015
16016 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16017 PyObject *resultobj = NULL;
16018 wxDC *arg1 = (wxDC *) 0 ;
16019 wxBrush *result;
16020 PyObject * obj0 = 0 ;
16021 char *kwnames[] = {
16022 (char *) "self", NULL
16023 };
16024
16025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
16026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16027 if (SWIG_arg_fail(1)) SWIG_fail;
16028 {
16029 PyThreadState* __tstate = wxPyBeginAllowThreads();
16030 {
16031 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
16032 result = (wxBrush *) &_result_ref;
16033 }
16034
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 {
16039 wxBrush* resultptr = new wxBrush(*result);
16040 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16041 }
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj = NULL;
16050 wxDC *arg1 = (wxDC *) 0 ;
16051 wxBrush *result;
16052 PyObject * obj0 = 0 ;
16053 char *kwnames[] = {
16054 (char *) "self", NULL
16055 };
16056
16057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
16058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16059 if (SWIG_arg_fail(1)) SWIG_fail;
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 {
16063 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
16064 result = (wxBrush *) &_result_ref;
16065 }
16066
16067 wxPyEndAllowThreads(__tstate);
16068 if (PyErr_Occurred()) SWIG_fail;
16069 }
16070 {
16071 wxBrush* resultptr = new wxBrush(*result);
16072 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16073 }
16074 return resultobj;
16075 fail:
16076 return NULL;
16077 }
16078
16079
16080 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj = NULL;
16082 wxDC *arg1 = (wxDC *) 0 ;
16083 wxFont *result;
16084 PyObject * obj0 = 0 ;
16085 char *kwnames[] = {
16086 (char *) "self", NULL
16087 };
16088
16089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
16090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16091 if (SWIG_arg_fail(1)) SWIG_fail;
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 {
16095 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
16096 result = (wxFont *) &_result_ref;
16097 }
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 {
16103 wxFont* resultptr = new wxFont(*result);
16104 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj = NULL;
16114 wxDC *arg1 = (wxDC *) 0 ;
16115 wxPen *result;
16116 PyObject * obj0 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16122 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16123 if (SWIG_arg_fail(1)) SWIG_fail;
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 {
16127 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16128 result = (wxPen *) &_result_ref;
16129 }
16130
16131 wxPyEndAllowThreads(__tstate);
16132 if (PyErr_Occurred()) SWIG_fail;
16133 }
16134 {
16135 wxPen* resultptr = new wxPen(*result);
16136 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
16137 }
16138 return resultobj;
16139 fail:
16140 return NULL;
16141 }
16142
16143
16144 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj = NULL;
16146 wxDC *arg1 = (wxDC *) 0 ;
16147 wxColour *result;
16148 PyObject * obj0 = 0 ;
16149 char *kwnames[] = {
16150 (char *) "self", NULL
16151 };
16152
16153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16155 if (SWIG_arg_fail(1)) SWIG_fail;
16156 {
16157 PyThreadState* __tstate = wxPyBeginAllowThreads();
16158 {
16159 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16160 result = (wxColour *) &_result_ref;
16161 }
16162
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16167 return resultobj;
16168 fail:
16169 return NULL;
16170 }
16171
16172
16173 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj = NULL;
16175 wxDC *arg1 = (wxDC *) 0 ;
16176 wxColour *result;
16177 PyObject * obj0 = 0 ;
16178 char *kwnames[] = {
16179 (char *) "self", NULL
16180 };
16181
16182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16184 if (SWIG_arg_fail(1)) SWIG_fail;
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 {
16188 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16189 result = (wxColour *) &_result_ref;
16190 }
16191
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16196 return resultobj;
16197 fail:
16198 return NULL;
16199 }
16200
16201
16202 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16203 PyObject *resultobj = NULL;
16204 wxDC *arg1 = (wxDC *) 0 ;
16205 wxColour *arg2 = 0 ;
16206 wxColour temp2 ;
16207 PyObject * obj0 = 0 ;
16208 PyObject * obj1 = 0 ;
16209 char *kwnames[] = {
16210 (char *) "self",(char *) "colour", NULL
16211 };
16212
16213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16214 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16215 if (SWIG_arg_fail(1)) SWIG_fail;
16216 {
16217 arg2 = &temp2;
16218 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16219 }
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 (arg1)->SetTextForeground((wxColour const &)*arg2);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 Py_INCREF(Py_None); resultobj = Py_None;
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj = NULL;
16236 wxDC *arg1 = (wxDC *) 0 ;
16237 wxColour *arg2 = 0 ;
16238 wxColour temp2 ;
16239 PyObject * obj0 = 0 ;
16240 PyObject * obj1 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self",(char *) "colour", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16246 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16247 if (SWIG_arg_fail(1)) SWIG_fail;
16248 {
16249 arg2 = &temp2;
16250 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16251 }
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 (arg1)->SetTextBackground((wxColour const &)*arg2);
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 Py_INCREF(Py_None); resultobj = Py_None;
16260 return resultobj;
16261 fail:
16262 return NULL;
16263 }
16264
16265
16266 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16267 PyObject *resultobj = NULL;
16268 wxDC *arg1 = (wxDC *) 0 ;
16269 int result;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16277 if (SWIG_arg_fail(1)) SWIG_fail;
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (int)((wxDC const *)arg1)->GetMapMode();
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 {
16286 resultobj = SWIG_From_int(static_cast<int >(result));
16287 }
16288 return resultobj;
16289 fail:
16290 return NULL;
16291 }
16292
16293
16294 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16295 PyObject *resultobj = NULL;
16296 wxDC *arg1 = (wxDC *) 0 ;
16297 int arg2 ;
16298 PyObject * obj0 = 0 ;
16299 PyObject * obj1 = 0 ;
16300 char *kwnames[] = {
16301 (char *) "self",(char *) "mode", NULL
16302 };
16303
16304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
16305 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16306 if (SWIG_arg_fail(1)) SWIG_fail;
16307 {
16308 arg2 = static_cast<int >(SWIG_As_int(obj1));
16309 if (SWIG_arg_fail(2)) SWIG_fail;
16310 }
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 (arg1)->SetMapMode(arg2);
16314
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 Py_INCREF(Py_None); resultobj = Py_None;
16319 return resultobj;
16320 fail:
16321 return NULL;
16322 }
16323
16324
16325 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
16326 PyObject *resultobj = NULL;
16327 wxDC *arg1 = (wxDC *) 0 ;
16328 double *arg2 = (double *) 0 ;
16329 double *arg3 = (double *) 0 ;
16330 double temp2 ;
16331 int res2 = 0 ;
16332 double temp3 ;
16333 int res3 = 0 ;
16334 PyObject * obj0 = 0 ;
16335 char *kwnames[] = {
16336 (char *) "self", NULL
16337 };
16338
16339 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16340 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
16342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16343 if (SWIG_arg_fail(1)) SWIG_fail;
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 Py_INCREF(Py_None); resultobj = Py_None;
16352 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16353 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16354 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16355 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = NULL;
16364 wxDC *arg1 = (wxDC *) 0 ;
16365 double arg2 ;
16366 double arg3 ;
16367 PyObject * obj0 = 0 ;
16368 PyObject * obj1 = 0 ;
16369 PyObject * obj2 = 0 ;
16370 char *kwnames[] = {
16371 (char *) "self",(char *) "x",(char *) "y", NULL
16372 };
16373
16374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16376 if (SWIG_arg_fail(1)) SWIG_fail;
16377 {
16378 arg2 = static_cast<double >(SWIG_As_double(obj1));
16379 if (SWIG_arg_fail(2)) SWIG_fail;
16380 }
16381 {
16382 arg3 = static_cast<double >(SWIG_As_double(obj2));
16383 if (SWIG_arg_fail(3)) SWIG_fail;
16384 }
16385 {
16386 PyThreadState* __tstate = wxPyBeginAllowThreads();
16387 (arg1)->SetUserScale(arg2,arg3);
16388
16389 wxPyEndAllowThreads(__tstate);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 Py_INCREF(Py_None); resultobj = Py_None;
16393 return resultobj;
16394 fail:
16395 return NULL;
16396 }
16397
16398
16399 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
16400 PyObject *resultobj = NULL;
16401 wxDC *arg1 = (wxDC *) 0 ;
16402 double *arg2 = (double *) 0 ;
16403 double *arg3 = (double *) 0 ;
16404 double temp2 ;
16405 int res2 = 0 ;
16406 double temp3 ;
16407 int res3 = 0 ;
16408 PyObject * obj0 = 0 ;
16409 char *kwnames[] = {
16410 (char *) "self", NULL
16411 };
16412
16413 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16414 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
16416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16417 if (SWIG_arg_fail(1)) SWIG_fail;
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 (arg1)->GetLogicalScale(arg2,arg3);
16421
16422 wxPyEndAllowThreads(__tstate);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 Py_INCREF(Py_None); resultobj = Py_None;
16426 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16427 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16428 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16429 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj = NULL;
16438 wxDC *arg1 = (wxDC *) 0 ;
16439 double arg2 ;
16440 double arg3 ;
16441 PyObject * obj0 = 0 ;
16442 PyObject * obj1 = 0 ;
16443 PyObject * obj2 = 0 ;
16444 char *kwnames[] = {
16445 (char *) "self",(char *) "x",(char *) "y", NULL
16446 };
16447
16448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16450 if (SWIG_arg_fail(1)) SWIG_fail;
16451 {
16452 arg2 = static_cast<double >(SWIG_As_double(obj1));
16453 if (SWIG_arg_fail(2)) SWIG_fail;
16454 }
16455 {
16456 arg3 = static_cast<double >(SWIG_As_double(obj2));
16457 if (SWIG_arg_fail(3)) SWIG_fail;
16458 }
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 (arg1)->SetLogicalScale(arg2,arg3);
16462
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 Py_INCREF(Py_None); resultobj = Py_None;
16467 return resultobj;
16468 fail:
16469 return NULL;
16470 }
16471
16472
16473 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = NULL;
16475 wxDC *arg1 = (wxDC *) 0 ;
16476 wxPoint result;
16477 PyObject * obj0 = 0 ;
16478 char *kwnames[] = {
16479 (char *) "self", NULL
16480 };
16481
16482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
16483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16484 if (SWIG_arg_fail(1)) SWIG_fail;
16485 {
16486 PyThreadState* __tstate = wxPyBeginAllowThreads();
16487 result = ((wxDC const *)arg1)->GetLogicalOrigin();
16488
16489 wxPyEndAllowThreads(__tstate);
16490 if (PyErr_Occurred()) SWIG_fail;
16491 }
16492 {
16493 wxPoint * resultptr;
16494 resultptr = new wxPoint(static_cast<wxPoint & >(result));
16495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16496 }
16497 return resultobj;
16498 fail:
16499 return NULL;
16500 }
16501
16502
16503 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = NULL;
16505 wxDC *arg1 = (wxDC *) 0 ;
16506 int *arg2 = (int *) 0 ;
16507 int *arg3 = (int *) 0 ;
16508 int temp2 ;
16509 int res2 = 0 ;
16510 int temp3 ;
16511 int res3 = 0 ;
16512 PyObject * obj0 = 0 ;
16513 char *kwnames[] = {
16514 (char *) "self", NULL
16515 };
16516
16517 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16518 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
16520 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16521 if (SWIG_arg_fail(1)) SWIG_fail;
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
16525
16526 wxPyEndAllowThreads(__tstate);
16527 if (PyErr_Occurred()) SWIG_fail;
16528 }
16529 Py_INCREF(Py_None); resultobj = Py_None;
16530 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16531 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16532 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16533 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16534 return resultobj;
16535 fail:
16536 return NULL;
16537 }
16538
16539
16540 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj = NULL;
16542 wxDC *arg1 = (wxDC *) 0 ;
16543 int arg2 ;
16544 int arg3 ;
16545 PyObject * obj0 = 0 ;
16546 PyObject * obj1 = 0 ;
16547 PyObject * obj2 = 0 ;
16548 char *kwnames[] = {
16549 (char *) "self",(char *) "x",(char *) "y", NULL
16550 };
16551
16552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16553 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16554 if (SWIG_arg_fail(1)) SWIG_fail;
16555 {
16556 arg2 = static_cast<int >(SWIG_As_int(obj1));
16557 if (SWIG_arg_fail(2)) SWIG_fail;
16558 }
16559 {
16560 arg3 = static_cast<int >(SWIG_As_int(obj2));
16561 if (SWIG_arg_fail(3)) SWIG_fail;
16562 }
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 (arg1)->SetLogicalOrigin(arg2,arg3);
16566
16567 wxPyEndAllowThreads(__tstate);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 Py_INCREF(Py_None); resultobj = Py_None;
16571 return resultobj;
16572 fail:
16573 return NULL;
16574 }
16575
16576
16577 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj = NULL;
16579 wxDC *arg1 = (wxDC *) 0 ;
16580 wxPoint *arg2 = 0 ;
16581 wxPoint temp2 ;
16582 PyObject * obj0 = 0 ;
16583 PyObject * obj1 = 0 ;
16584 char *kwnames[] = {
16585 (char *) "self",(char *) "point", NULL
16586 };
16587
16588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16590 if (SWIG_arg_fail(1)) SWIG_fail;
16591 {
16592 arg2 = &temp2;
16593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16594 }
16595 {
16596 PyThreadState* __tstate = wxPyBeginAllowThreads();
16597 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
16598
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
16602 Py_INCREF(Py_None); resultobj = Py_None;
16603 return resultobj;
16604 fail:
16605 return NULL;
16606 }
16607
16608
16609 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16610 PyObject *resultobj = NULL;
16611 wxDC *arg1 = (wxDC *) 0 ;
16612 wxPoint result;
16613 PyObject * obj0 = 0 ;
16614 char *kwnames[] = {
16615 (char *) "self", NULL
16616 };
16617
16618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
16619 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16620 if (SWIG_arg_fail(1)) SWIG_fail;
16621 {
16622 PyThreadState* __tstate = wxPyBeginAllowThreads();
16623 result = ((wxDC const *)arg1)->GetDeviceOrigin();
16624
16625 wxPyEndAllowThreads(__tstate);
16626 if (PyErr_Occurred()) SWIG_fail;
16627 }
16628 {
16629 wxPoint * resultptr;
16630 resultptr = new wxPoint(static_cast<wxPoint & >(result));
16631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16632 }
16633 return resultobj;
16634 fail:
16635 return NULL;
16636 }
16637
16638
16639 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16640 PyObject *resultobj = NULL;
16641 wxDC *arg1 = (wxDC *) 0 ;
16642 int *arg2 = (int *) 0 ;
16643 int *arg3 = (int *) 0 ;
16644 int temp2 ;
16645 int res2 = 0 ;
16646 int temp3 ;
16647 int res3 = 0 ;
16648 PyObject * obj0 = 0 ;
16649 char *kwnames[] = {
16650 (char *) "self", NULL
16651 };
16652
16653 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16654 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
16656 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16657 if (SWIG_arg_fail(1)) SWIG_fail;
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
16661
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 Py_INCREF(Py_None); resultobj = Py_None;
16666 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16667 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16668 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16669 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16670 return resultobj;
16671 fail:
16672 return NULL;
16673 }
16674
16675
16676 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16677 PyObject *resultobj = NULL;
16678 wxDC *arg1 = (wxDC *) 0 ;
16679 int arg2 ;
16680 int arg3 ;
16681 PyObject * obj0 = 0 ;
16682 PyObject * obj1 = 0 ;
16683 PyObject * obj2 = 0 ;
16684 char *kwnames[] = {
16685 (char *) "self",(char *) "x",(char *) "y", NULL
16686 };
16687
16688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16689 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16690 if (SWIG_arg_fail(1)) SWIG_fail;
16691 {
16692 arg2 = static_cast<int >(SWIG_As_int(obj1));
16693 if (SWIG_arg_fail(2)) SWIG_fail;
16694 }
16695 {
16696 arg3 = static_cast<int >(SWIG_As_int(obj2));
16697 if (SWIG_arg_fail(3)) SWIG_fail;
16698 }
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 (arg1)->SetDeviceOrigin(arg2,arg3);
16702
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 Py_INCREF(Py_None); resultobj = Py_None;
16707 return resultobj;
16708 fail:
16709 return NULL;
16710 }
16711
16712
16713 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj = NULL;
16715 wxDC *arg1 = (wxDC *) 0 ;
16716 wxPoint *arg2 = 0 ;
16717 wxPoint temp2 ;
16718 PyObject * obj0 = 0 ;
16719 PyObject * obj1 = 0 ;
16720 char *kwnames[] = {
16721 (char *) "self",(char *) "point", NULL
16722 };
16723
16724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16726 if (SWIG_arg_fail(1)) SWIG_fail;
16727 {
16728 arg2 = &temp2;
16729 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16730 }
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
16734
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 Py_INCREF(Py_None); resultobj = Py_None;
16739 return resultobj;
16740 fail:
16741 return NULL;
16742 }
16743
16744
16745 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16746 PyObject *resultobj = NULL;
16747 wxDC *arg1 = (wxDC *) 0 ;
16748 bool arg2 ;
16749 bool arg3 ;
16750 PyObject * obj0 = 0 ;
16751 PyObject * obj1 = 0 ;
16752 PyObject * obj2 = 0 ;
16753 char *kwnames[] = {
16754 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
16755 };
16756
16757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
16758 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16759 if (SWIG_arg_fail(1)) SWIG_fail;
16760 {
16761 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
16762 if (SWIG_arg_fail(2)) SWIG_fail;
16763 }
16764 {
16765 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
16766 if (SWIG_arg_fail(3)) SWIG_fail;
16767 }
16768 {
16769 PyThreadState* __tstate = wxPyBeginAllowThreads();
16770 (arg1)->SetAxisOrientation(arg2,arg3);
16771
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 Py_INCREF(Py_None); resultobj = Py_None;
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
16783 PyObject *resultobj = NULL;
16784 wxDC *arg1 = (wxDC *) 0 ;
16785 int result;
16786 PyObject * obj0 = 0 ;
16787 char *kwnames[] = {
16788 (char *) "self", NULL
16789 };
16790
16791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
16792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16793 if (SWIG_arg_fail(1)) SWIG_fail;
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
16797
16798 wxPyEndAllowThreads(__tstate);
16799 if (PyErr_Occurred()) SWIG_fail;
16800 }
16801 {
16802 resultobj = SWIG_From_int(static_cast<int >(result));
16803 }
16804 return resultobj;
16805 fail:
16806 return NULL;
16807 }
16808
16809
16810 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
16811 PyObject *resultobj = NULL;
16812 wxDC *arg1 = (wxDC *) 0 ;
16813 int arg2 ;
16814 PyObject * obj0 = 0 ;
16815 PyObject * obj1 = 0 ;
16816 char *kwnames[] = {
16817 (char *) "self",(char *) "function", NULL
16818 };
16819
16820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
16821 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16822 if (SWIG_arg_fail(1)) SWIG_fail;
16823 {
16824 arg2 = static_cast<int >(SWIG_As_int(obj1));
16825 if (SWIG_arg_fail(2)) SWIG_fail;
16826 }
16827 {
16828 PyThreadState* __tstate = wxPyBeginAllowThreads();
16829 (arg1)->SetLogicalFunction(arg2);
16830
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 Py_INCREF(Py_None); resultobj = Py_None;
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16842 PyObject *resultobj = NULL;
16843 wxDC *arg1 = (wxDC *) 0 ;
16844 PyObject * obj0 = 0 ;
16845 char *kwnames[] = {
16846 (char *) "self", NULL
16847 };
16848
16849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail;
16850 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16851 if (SWIG_arg_fail(1)) SWIG_fail;
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 (arg1)->ComputeScaleAndOrigin();
16855
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 Py_INCREF(Py_None); resultobj = Py_None;
16860 return resultobj;
16861 fail:
16862 return NULL;
16863 }
16864
16865
16866 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
16867 PyObject *resultobj = NULL;
16868 wxDC *arg1 = (wxDC *) 0 ;
16869 int arg2 ;
16870 int arg3 ;
16871 PyObject * obj0 = 0 ;
16872 PyObject * obj1 = 0 ;
16873 PyObject * obj2 = 0 ;
16874 char *kwnames[] = {
16875 (char *) "self",(char *) "x",(char *) "y", NULL
16876 };
16877
16878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
16879 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16880 if (SWIG_arg_fail(1)) SWIG_fail;
16881 {
16882 arg2 = static_cast<int >(SWIG_As_int(obj1));
16883 if (SWIG_arg_fail(2)) SWIG_fail;
16884 }
16885 {
16886 arg3 = static_cast<int >(SWIG_As_int(obj2));
16887 if (SWIG_arg_fail(3)) SWIG_fail;
16888 }
16889 {
16890 PyThreadState* __tstate = wxPyBeginAllowThreads();
16891 (arg1)->CalcBoundingBox(arg2,arg3);
16892
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 Py_INCREF(Py_None); resultobj = Py_None;
16897 return resultobj;
16898 fail:
16899 return NULL;
16900 }
16901
16902
16903 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj = NULL;
16905 wxDC *arg1 = (wxDC *) 0 ;
16906 wxPoint *arg2 = 0 ;
16907 wxPoint temp2 ;
16908 PyObject * obj0 = 0 ;
16909 PyObject * obj1 = 0 ;
16910 char *kwnames[] = {
16911 (char *) "self",(char *) "point", NULL
16912 };
16913
16914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
16915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16916 if (SWIG_arg_fail(1)) SWIG_fail;
16917 {
16918 arg2 = &temp2;
16919 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16920 }
16921 {
16922 PyThreadState* __tstate = wxPyBeginAllowThreads();
16923 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
16924
16925 wxPyEndAllowThreads(__tstate);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 }
16928 Py_INCREF(Py_None); resultobj = Py_None;
16929 return resultobj;
16930 fail:
16931 return NULL;
16932 }
16933
16934
16935 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
16936 PyObject *resultobj = NULL;
16937 wxDC *arg1 = (wxDC *) 0 ;
16938 PyObject * obj0 = 0 ;
16939 char *kwnames[] = {
16940 (char *) "self", NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
16944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16945 if (SWIG_arg_fail(1)) SWIG_fail;
16946 {
16947 PyThreadState* __tstate = wxPyBeginAllowThreads();
16948 (arg1)->ResetBoundingBox();
16949
16950 wxPyEndAllowThreads(__tstate);
16951 if (PyErr_Occurred()) SWIG_fail;
16952 }
16953 Py_INCREF(Py_None); resultobj = Py_None;
16954 return resultobj;
16955 fail:
16956 return NULL;
16957 }
16958
16959
16960 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
16961 PyObject *resultobj = NULL;
16962 wxDC *arg1 = (wxDC *) 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:DC_MinX",kwnames,&obj0)) goto fail;
16970 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16971 if (SWIG_arg_fail(1)) SWIG_fail;
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 result = (int)((wxDC const *)arg1)->MinX();
16975
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 {
16980 resultobj = SWIG_From_int(static_cast<int >(result));
16981 }
16982 return resultobj;
16983 fail:
16984 return NULL;
16985 }
16986
16987
16988 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
16989 PyObject *resultobj = NULL;
16990 wxDC *arg1 = (wxDC *) 0 ;
16991 int result;
16992 PyObject * obj0 = 0 ;
16993 char *kwnames[] = {
16994 (char *) "self", NULL
16995 };
16996
16997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
16998 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16999 if (SWIG_arg_fail(1)) SWIG_fail;
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 result = (int)((wxDC const *)arg1)->MaxX();
17003
17004 wxPyEndAllowThreads(__tstate);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 {
17008 resultobj = SWIG_From_int(static_cast<int >(result));
17009 }
17010 return resultobj;
17011 fail:
17012 return NULL;
17013 }
17014
17015
17016 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
17017 PyObject *resultobj = NULL;
17018 wxDC *arg1 = (wxDC *) 0 ;
17019 int result;
17020 PyObject * obj0 = 0 ;
17021 char *kwnames[] = {
17022 (char *) "self", NULL
17023 };
17024
17025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
17026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17027 if (SWIG_arg_fail(1)) SWIG_fail;
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (int)((wxDC const *)arg1)->MinY();
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 resultobj = SWIG_From_int(static_cast<int >(result));
17037 }
17038 return resultobj;
17039 fail:
17040 return NULL;
17041 }
17042
17043
17044 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
17045 PyObject *resultobj = NULL;
17046 wxDC *arg1 = (wxDC *) 0 ;
17047 int result;
17048 PyObject * obj0 = 0 ;
17049 char *kwnames[] = {
17050 (char *) "self", NULL
17051 };
17052
17053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
17054 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17055 if (SWIG_arg_fail(1)) SWIG_fail;
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = (int)((wxDC const *)arg1)->MaxY();
17059
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 resultobj = SWIG_From_int(static_cast<int >(result));
17065 }
17066 return resultobj;
17067 fail:
17068 return NULL;
17069 }
17070
17071
17072 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17073 PyObject *resultobj = NULL;
17074 wxDC *arg1 = (wxDC *) 0 ;
17075 int *arg2 = (int *) 0 ;
17076 int *arg3 = (int *) 0 ;
17077 int *arg4 = (int *) 0 ;
17078 int *arg5 = (int *) 0 ;
17079 int temp2 ;
17080 int res2 = 0 ;
17081 int temp3 ;
17082 int res3 = 0 ;
17083 int temp4 ;
17084 int res4 = 0 ;
17085 int temp5 ;
17086 int res5 = 0 ;
17087 PyObject * obj0 = 0 ;
17088 char *kwnames[] = {
17089 (char *) "self", NULL
17090 };
17091
17092 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17093 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17094 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17095 arg5 = &temp5; res5 = SWIG_NEWOBJ;
17096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
17097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17098 if (SWIG_arg_fail(1)) SWIG_fail;
17099 {
17100 PyThreadState* __tstate = wxPyBeginAllowThreads();
17101 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
17102
17103 wxPyEndAllowThreads(__tstate);
17104 if (PyErr_Occurred()) SWIG_fail;
17105 }
17106 Py_INCREF(Py_None); resultobj = Py_None;
17107 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17108 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17109 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17110 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17111 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17112 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17113 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17114 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
17115 return resultobj;
17116 fail:
17117 return NULL;
17118 }
17119
17120
17121 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
17122 PyObject *resultobj = NULL;
17123 wxDC *arg1 = (wxDC *) 0 ;
17124 PyObject *arg2 = (PyObject *) 0 ;
17125 PyObject *arg3 = (PyObject *) 0 ;
17126 PyObject *arg4 = (PyObject *) 0 ;
17127 PyObject *result;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 PyObject * obj2 = 0 ;
17131 PyObject * obj3 = 0 ;
17132 char *kwnames[] = {
17133 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17134 };
17135
17136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17137 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17138 if (SWIG_arg_fail(1)) SWIG_fail;
17139 arg2 = obj1;
17140 arg3 = obj2;
17141 arg4 = obj3;
17142 {
17143 PyThreadState* __tstate = wxPyBeginAllowThreads();
17144 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
17145
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 resultobj = result;
17150 return resultobj;
17151 fail:
17152 return NULL;
17153 }
17154
17155
17156 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj = NULL;
17158 wxDC *arg1 = (wxDC *) 0 ;
17159 PyObject *arg2 = (PyObject *) 0 ;
17160 PyObject *arg3 = (PyObject *) 0 ;
17161 PyObject *arg4 = (PyObject *) 0 ;
17162 PyObject *result;
17163 PyObject * obj0 = 0 ;
17164 PyObject * obj1 = 0 ;
17165 PyObject * obj2 = 0 ;
17166 PyObject * obj3 = 0 ;
17167 char *kwnames[] = {
17168 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17169 };
17170
17171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17173 if (SWIG_arg_fail(1)) SWIG_fail;
17174 arg2 = obj1;
17175 arg3 = obj2;
17176 arg4 = obj3;
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
17180
17181 wxPyEndAllowThreads(__tstate);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 }
17184 resultobj = result;
17185 return resultobj;
17186 fail:
17187 return NULL;
17188 }
17189
17190
17191 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
17192 PyObject *resultobj = NULL;
17193 wxDC *arg1 = (wxDC *) 0 ;
17194 PyObject *arg2 = (PyObject *) 0 ;
17195 PyObject *arg3 = (PyObject *) 0 ;
17196 PyObject *arg4 = (PyObject *) 0 ;
17197 PyObject *result;
17198 PyObject * obj0 = 0 ;
17199 PyObject * obj1 = 0 ;
17200 PyObject * obj2 = 0 ;
17201 PyObject * obj3 = 0 ;
17202 char *kwnames[] = {
17203 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17204 };
17205
17206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17207 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17208 if (SWIG_arg_fail(1)) SWIG_fail;
17209 arg2 = obj1;
17210 arg3 = obj2;
17211 arg4 = obj3;
17212 {
17213 PyThreadState* __tstate = wxPyBeginAllowThreads();
17214 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
17215
17216 wxPyEndAllowThreads(__tstate);
17217 if (PyErr_Occurred()) SWIG_fail;
17218 }
17219 resultobj = result;
17220 return resultobj;
17221 fail:
17222 return NULL;
17223 }
17224
17225
17226 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
17227 PyObject *resultobj = NULL;
17228 wxDC *arg1 = (wxDC *) 0 ;
17229 PyObject *arg2 = (PyObject *) 0 ;
17230 PyObject *arg3 = (PyObject *) 0 ;
17231 PyObject *arg4 = (PyObject *) 0 ;
17232 PyObject *result;
17233 PyObject * obj0 = 0 ;
17234 PyObject * obj1 = 0 ;
17235 PyObject * obj2 = 0 ;
17236 PyObject * obj3 = 0 ;
17237 char *kwnames[] = {
17238 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17239 };
17240
17241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17242 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17243 if (SWIG_arg_fail(1)) SWIG_fail;
17244 arg2 = obj1;
17245 arg3 = obj2;
17246 arg4 = obj3;
17247 {
17248 PyThreadState* __tstate = wxPyBeginAllowThreads();
17249 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
17250
17251 wxPyEndAllowThreads(__tstate);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 resultobj = result;
17255 return resultobj;
17256 fail:
17257 return NULL;
17258 }
17259
17260
17261 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
17262 PyObject *resultobj = NULL;
17263 wxDC *arg1 = (wxDC *) 0 ;
17264 PyObject *arg2 = (PyObject *) 0 ;
17265 PyObject *arg3 = (PyObject *) 0 ;
17266 PyObject *arg4 = (PyObject *) 0 ;
17267 PyObject *result;
17268 PyObject * obj0 = 0 ;
17269 PyObject * obj1 = 0 ;
17270 PyObject * obj2 = 0 ;
17271 PyObject * obj3 = 0 ;
17272 char *kwnames[] = {
17273 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17274 };
17275
17276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17278 if (SWIG_arg_fail(1)) SWIG_fail;
17279 arg2 = obj1;
17280 arg3 = obj2;
17281 arg4 = obj3;
17282 {
17283 PyThreadState* __tstate = wxPyBeginAllowThreads();
17284 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
17285
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 resultobj = result;
17290 return resultobj;
17291 fail:
17292 return NULL;
17293 }
17294
17295
17296 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
17297 PyObject *resultobj = NULL;
17298 wxDC *arg1 = (wxDC *) 0 ;
17299 PyObject *arg2 = (PyObject *) 0 ;
17300 PyObject *arg3 = (PyObject *) 0 ;
17301 PyObject *arg4 = (PyObject *) 0 ;
17302 PyObject *arg5 = (PyObject *) 0 ;
17303 PyObject *result;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 PyObject * obj2 = 0 ;
17307 PyObject * obj3 = 0 ;
17308 PyObject * obj4 = 0 ;
17309 char *kwnames[] = {
17310 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
17311 };
17312
17313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17314 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17315 if (SWIG_arg_fail(1)) SWIG_fail;
17316 arg2 = obj1;
17317 arg3 = obj2;
17318 arg4 = obj3;
17319 arg5 = obj4;
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 resultobj = result;
17328 return resultobj;
17329 fail:
17330 return NULL;
17331 }
17332
17333
17334 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
17335 PyObject *obj;
17336 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17337 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
17338 Py_INCREF(obj);
17339 return Py_BuildValue((char *)"");
17340 }
17341 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = NULL;
17343 wxMemoryDC *result;
17344 char *kwnames[] = {
17345 NULL
17346 };
17347
17348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
17349 {
17350 if (!wxPyCheckForApp()) SWIG_fail;
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 result = (wxMemoryDC *)new wxMemoryDC();
17353
17354 wxPyEndAllowThreads(__tstate);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 }
17357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
17358 return resultobj;
17359 fail:
17360 return NULL;
17361 }
17362
17363
17364 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
17365 PyObject *resultobj = NULL;
17366 wxDC *arg1 = (wxDC *) 0 ;
17367 wxMemoryDC *result;
17368 PyObject * obj0 = 0 ;
17369 char *kwnames[] = {
17370 (char *) "oldDC", NULL
17371 };
17372
17373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
17374 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17375 if (SWIG_arg_fail(1)) SWIG_fail;
17376 {
17377 if (!wxPyCheckForApp()) SWIG_fail;
17378 PyThreadState* __tstate = wxPyBeginAllowThreads();
17379 result = (wxMemoryDC *)new wxMemoryDC(arg1);
17380
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
17385 return resultobj;
17386 fail:
17387 return NULL;
17388 }
17389
17390
17391 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
17392 PyObject *resultobj = NULL;
17393 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
17394 wxBitmap *arg2 = 0 ;
17395 PyObject * obj0 = 0 ;
17396 PyObject * obj1 = 0 ;
17397 char *kwnames[] = {
17398 (char *) "self",(char *) "bitmap", NULL
17399 };
17400
17401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
17402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
17403 if (SWIG_arg_fail(1)) SWIG_fail;
17404 {
17405 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17406 if (SWIG_arg_fail(2)) SWIG_fail;
17407 if (arg2 == NULL) {
17408 SWIG_null_ref("wxBitmap");
17409 }
17410 if (SWIG_arg_fail(2)) SWIG_fail;
17411 }
17412 {
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 (arg1)->SelectObject((wxBitmap const &)*arg2);
17415
17416 wxPyEndAllowThreads(__tstate);
17417 if (PyErr_Occurred()) SWIG_fail;
17418 }
17419 Py_INCREF(Py_None); resultobj = Py_None;
17420 return resultobj;
17421 fail:
17422 return NULL;
17423 }
17424
17425
17426 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
17427 PyObject *obj;
17428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17429 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
17430 Py_INCREF(obj);
17431 return Py_BuildValue((char *)"");
17432 }
17433 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
17434 PyObject *resultobj = NULL;
17435 wxDC *arg1 = (wxDC *) 0 ;
17436 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17437 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
17438 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17439 wxBufferedDC *result;
17440 PyObject * obj0 = 0 ;
17441 PyObject * obj1 = 0 ;
17442 PyObject * obj2 = 0 ;
17443
17444 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
17445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17446 if (SWIG_arg_fail(1)) SWIG_fail;
17447 if (obj1) {
17448 {
17449 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17450 if (SWIG_arg_fail(2)) SWIG_fail;
17451 if (arg2 == NULL) {
17452 SWIG_null_ref("wxBitmap");
17453 }
17454 if (SWIG_arg_fail(2)) SWIG_fail;
17455 }
17456 }
17457 if (obj2) {
17458 {
17459 arg3 = static_cast<int >(SWIG_As_int(obj2));
17460 if (SWIG_arg_fail(3)) SWIG_fail;
17461 }
17462 }
17463 {
17464 if (!wxPyCheckForApp()) SWIG_fail;
17465 PyThreadState* __tstate = wxPyBeginAllowThreads();
17466 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
17467
17468 wxPyEndAllowThreads(__tstate);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 }
17471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
17472 return resultobj;
17473 fail:
17474 return NULL;
17475 }
17476
17477
17478 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
17479 PyObject *resultobj = NULL;
17480 wxDC *arg1 = (wxDC *) 0 ;
17481 wxSize *arg2 = 0 ;
17482 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17483 wxBufferedDC *result;
17484 wxSize temp2 ;
17485 PyObject * obj0 = 0 ;
17486 PyObject * obj1 = 0 ;
17487 PyObject * obj2 = 0 ;
17488
17489 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
17490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17491 if (SWIG_arg_fail(1)) SWIG_fail;
17492 {
17493 arg2 = &temp2;
17494 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17495 }
17496 if (obj2) {
17497 {
17498 arg3 = static_cast<int >(SWIG_As_int(obj2));
17499 if (SWIG_arg_fail(3)) SWIG_fail;
17500 }
17501 }
17502 {
17503 if (!wxPyCheckForApp()) SWIG_fail;
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
17506
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
17511 return resultobj;
17512 fail:
17513 return NULL;
17514 }
17515
17516
17517 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
17518 int argc;
17519 PyObject *argv[4];
17520 int ii;
17521
17522 argc = PyObject_Length(args);
17523 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
17524 argv[ii] = PyTuple_GetItem(args,ii);
17525 }
17526 if ((argc >= 1) && (argc <= 3)) {
17527 int _v;
17528 {
17529 void *ptr;
17530 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17531 _v = 0;
17532 PyErr_Clear();
17533 } else {
17534 _v = 1;
17535 }
17536 }
17537 if (_v) {
17538 if (argc <= 1) {
17539 return _wrap_new_BufferedDC__SWIG_0(self,args);
17540 }
17541 {
17542 void *ptr = 0;
17543 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
17544 _v = 0;
17545 PyErr_Clear();
17546 } else {
17547 _v = (ptr != 0);
17548 }
17549 }
17550 if (_v) {
17551 if (argc <= 2) {
17552 return _wrap_new_BufferedDC__SWIG_0(self,args);
17553 }
17554 _v = SWIG_Check_int(argv[2]);
17555 if (_v) {
17556 return _wrap_new_BufferedDC__SWIG_0(self,args);
17557 }
17558 }
17559 }
17560 }
17561 if ((argc >= 2) && (argc <= 3)) {
17562 int _v;
17563 {
17564 void *ptr;
17565 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17566 _v = 0;
17567 PyErr_Clear();
17568 } else {
17569 _v = 1;
17570 }
17571 }
17572 if (_v) {
17573 {
17574 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
17575 }
17576 if (_v) {
17577 if (argc <= 2) {
17578 return _wrap_new_BufferedDC__SWIG_1(self,args);
17579 }
17580 _v = SWIG_Check_int(argv[2]);
17581 if (_v) {
17582 return _wrap_new_BufferedDC__SWIG_1(self,args);
17583 }
17584 }
17585 }
17586 }
17587
17588 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
17589 return NULL;
17590 }
17591
17592
17593 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
17594 PyObject *resultobj = NULL;
17595 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
17596 PyObject * obj0 = 0 ;
17597 char *kwnames[] = {
17598 (char *) "self", NULL
17599 };
17600
17601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
17602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17603 if (SWIG_arg_fail(1)) SWIG_fail;
17604 {
17605 PyThreadState* __tstate = wxPyBeginAllowThreads();
17606 delete arg1;
17607
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 Py_INCREF(Py_None); resultobj = Py_None;
17612 return resultobj;
17613 fail:
17614 return NULL;
17615 }
17616
17617
17618 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj = NULL;
17620 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
17621 PyObject * obj0 = 0 ;
17622 char *kwnames[] = {
17623 (char *) "self", NULL
17624 };
17625
17626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
17627 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17628 if (SWIG_arg_fail(1)) SWIG_fail;
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 (arg1)->UnMask();
17632
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 Py_INCREF(Py_None); resultobj = Py_None;
17637 return resultobj;
17638 fail:
17639 return NULL;
17640 }
17641
17642
17643 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
17644 PyObject *obj;
17645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17646 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
17647 Py_INCREF(obj);
17648 return Py_BuildValue((char *)"");
17649 }
17650 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
17651 PyObject *resultobj = NULL;
17652 wxWindow *arg1 = (wxWindow *) 0 ;
17653 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17654 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
17655 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17656 wxBufferedPaintDC *result;
17657 PyObject * obj0 = 0 ;
17658 PyObject * obj1 = 0 ;
17659 PyObject * obj2 = 0 ;
17660 char *kwnames[] = {
17661 (char *) "window",(char *) "buffer",(char *) "style", NULL
17662 };
17663
17664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
17665 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17666 if (SWIG_arg_fail(1)) SWIG_fail;
17667 if (obj1) {
17668 {
17669 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17670 if (SWIG_arg_fail(2)) SWIG_fail;
17671 if (arg2 == NULL) {
17672 SWIG_null_ref("wxBitmap");
17673 }
17674 if (SWIG_arg_fail(2)) SWIG_fail;
17675 }
17676 }
17677 if (obj2) {
17678 {
17679 arg3 = static_cast<int >(SWIG_As_int(obj2));
17680 if (SWIG_arg_fail(3)) SWIG_fail;
17681 }
17682 }
17683 {
17684 if (!wxPyCheckForApp()) SWIG_fail;
17685 PyThreadState* __tstate = wxPyBeginAllowThreads();
17686 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
17687
17688 wxPyEndAllowThreads(__tstate);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
17692 return resultobj;
17693 fail:
17694 return NULL;
17695 }
17696
17697
17698 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
17699 PyObject *obj;
17700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17701 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
17702 Py_INCREF(obj);
17703 return Py_BuildValue((char *)"");
17704 }
17705 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
17706 PyObject *resultobj = NULL;
17707 wxScreenDC *result;
17708 char *kwnames[] = {
17709 NULL
17710 };
17711
17712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
17713 {
17714 if (!wxPyCheckForApp()) SWIG_fail;
17715 PyThreadState* __tstate = wxPyBeginAllowThreads();
17716 result = (wxScreenDC *)new wxScreenDC();
17717
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
17722 return resultobj;
17723 fail:
17724 return NULL;
17725 }
17726
17727
17728 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
17729 PyObject *resultobj = NULL;
17730 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17731 wxWindow *arg2 = (wxWindow *) 0 ;
17732 bool result;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "self",(char *) "window", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
17740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17741 if (SWIG_arg_fail(1)) SWIG_fail;
17742 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17743 if (SWIG_arg_fail(2)) SWIG_fail;
17744 {
17745 PyThreadState* __tstate = wxPyBeginAllowThreads();
17746 result = (bool)(arg1)->StartDrawingOnTop(arg2);
17747
17748 wxPyEndAllowThreads(__tstate);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 }
17751 {
17752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17753 }
17754 return resultobj;
17755 fail:
17756 return NULL;
17757 }
17758
17759
17760 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
17761 PyObject *resultobj = NULL;
17762 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17763 wxRect *arg2 = (wxRect *) NULL ;
17764 bool result;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 char *kwnames[] = {
17768 (char *) "self",(char *) "rect", NULL
17769 };
17770
17771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
17772 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17773 if (SWIG_arg_fail(1)) SWIG_fail;
17774 if (obj1) {
17775 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
17776 if (SWIG_arg_fail(2)) SWIG_fail;
17777 }
17778 {
17779 PyThreadState* __tstate = wxPyBeginAllowThreads();
17780 result = (bool)(arg1)->StartDrawingOnTop(arg2);
17781
17782 wxPyEndAllowThreads(__tstate);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 }
17785 {
17786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17787 }
17788 return resultobj;
17789 fail:
17790 return NULL;
17791 }
17792
17793
17794 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
17795 PyObject *resultobj = NULL;
17796 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17797 bool result;
17798 PyObject * obj0 = 0 ;
17799 char *kwnames[] = {
17800 (char *) "self", NULL
17801 };
17802
17803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
17804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17805 if (SWIG_arg_fail(1)) SWIG_fail;
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 result = (bool)(arg1)->EndDrawingOnTop();
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 {
17814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17815 }
17816 return resultobj;
17817 fail:
17818 return NULL;
17819 }
17820
17821
17822 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
17823 PyObject *obj;
17824 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17825 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
17826 Py_INCREF(obj);
17827 return Py_BuildValue((char *)"");
17828 }
17829 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
17830 PyObject *resultobj = NULL;
17831 wxWindow *arg1 = (wxWindow *) 0 ;
17832 wxClientDC *result;
17833 PyObject * obj0 = 0 ;
17834 char *kwnames[] = {
17835 (char *) "win", NULL
17836 };
17837
17838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
17839 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17840 if (SWIG_arg_fail(1)) SWIG_fail;
17841 {
17842 if (!wxPyCheckForApp()) SWIG_fail;
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (wxClientDC *)new wxClientDC(arg1);
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
17850 return resultobj;
17851 fail:
17852 return NULL;
17853 }
17854
17855
17856 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
17857 PyObject *obj;
17858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17859 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
17860 Py_INCREF(obj);
17861 return Py_BuildValue((char *)"");
17862 }
17863 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj = NULL;
17865 wxWindow *arg1 = (wxWindow *) 0 ;
17866 wxPaintDC *result;
17867 PyObject * obj0 = 0 ;
17868 char *kwnames[] = {
17869 (char *) "win", NULL
17870 };
17871
17872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
17873 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17874 if (SWIG_arg_fail(1)) SWIG_fail;
17875 {
17876 if (!wxPyCheckForApp()) SWIG_fail;
17877 PyThreadState* __tstate = wxPyBeginAllowThreads();
17878 result = (wxPaintDC *)new wxPaintDC(arg1);
17879
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
17883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
17884 return resultobj;
17885 fail:
17886 return NULL;
17887 }
17888
17889
17890 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
17891 PyObject *obj;
17892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17893 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
17894 Py_INCREF(obj);
17895 return Py_BuildValue((char *)"");
17896 }
17897 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj = NULL;
17899 wxWindow *arg1 = (wxWindow *) 0 ;
17900 wxWindowDC *result;
17901 PyObject * obj0 = 0 ;
17902 char *kwnames[] = {
17903 (char *) "win", NULL
17904 };
17905
17906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
17907 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17908 if (SWIG_arg_fail(1)) SWIG_fail;
17909 {
17910 if (!wxPyCheckForApp()) SWIG_fail;
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = (wxWindowDC *)new wxWindowDC(arg1);
17913
17914 wxPyEndAllowThreads(__tstate);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 }
17917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
17918 return resultobj;
17919 fail:
17920 return NULL;
17921 }
17922
17923
17924 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
17925 PyObject *obj;
17926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17927 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
17928 Py_INCREF(obj);
17929 return Py_BuildValue((char *)"");
17930 }
17931 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj = NULL;
17933 wxDC *arg1 = 0 ;
17934 bool arg2 ;
17935 wxMirrorDC *result;
17936 PyObject * obj0 = 0 ;
17937 PyObject * obj1 = 0 ;
17938 char *kwnames[] = {
17939 (char *) "dc",(char *) "mirror", NULL
17940 };
17941
17942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
17943 {
17944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17945 if (SWIG_arg_fail(1)) SWIG_fail;
17946 if (arg1 == NULL) {
17947 SWIG_null_ref("wxDC");
17948 }
17949 if (SWIG_arg_fail(1)) SWIG_fail;
17950 }
17951 {
17952 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17953 if (SWIG_arg_fail(2)) SWIG_fail;
17954 }
17955 {
17956 if (!wxPyCheckForApp()) SWIG_fail;
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
17959
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
17971 PyObject *obj;
17972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17973 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
17974 Py_INCREF(obj);
17975 return Py_BuildValue((char *)"");
17976 }
17977 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
17978 PyObject *resultobj = NULL;
17979 wxPrintData *arg1 = 0 ;
17980 wxPostScriptDC *result;
17981 PyObject * obj0 = 0 ;
17982 char *kwnames[] = {
17983 (char *) "printData", NULL
17984 };
17985
17986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
17987 {
17988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
17989 if (SWIG_arg_fail(1)) SWIG_fail;
17990 if (arg1 == NULL) {
17991 SWIG_null_ref("wxPrintData");
17992 }
17993 if (SWIG_arg_fail(1)) SWIG_fail;
17994 }
17995 {
17996 if (!wxPyCheckForApp()) SWIG_fail;
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
17999
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
18004 return resultobj;
18005 fail:
18006 return NULL;
18007 }
18008
18009
18010 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj = NULL;
18012 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18013 wxPrintData *result;
18014 PyObject * obj0 = 0 ;
18015 char *kwnames[] = {
18016 (char *) "self", NULL
18017 };
18018
18019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
18020 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18021 if (SWIG_arg_fail(1)) SWIG_fail;
18022 {
18023 PyThreadState* __tstate = wxPyBeginAllowThreads();
18024 {
18025 wxPrintData &_result_ref = (arg1)->GetPrintData();
18026 result = (wxPrintData *) &_result_ref;
18027 }
18028
18029 wxPyEndAllowThreads(__tstate);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 }
18032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
18033 return resultobj;
18034 fail:
18035 return NULL;
18036 }
18037
18038
18039 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18040 PyObject *resultobj = NULL;
18041 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18042 wxPrintData *arg2 = 0 ;
18043 PyObject * obj0 = 0 ;
18044 PyObject * obj1 = 0 ;
18045 char *kwnames[] = {
18046 (char *) "self",(char *) "data", NULL
18047 };
18048
18049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
18050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18051 if (SWIG_arg_fail(1)) SWIG_fail;
18052 {
18053 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18054 if (SWIG_arg_fail(2)) SWIG_fail;
18055 if (arg2 == NULL) {
18056 SWIG_null_ref("wxPrintData");
18057 }
18058 if (SWIG_arg_fail(2)) SWIG_fail;
18059 }
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->SetPrintData((wxPrintData const &)*arg2);
18063
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 Py_INCREF(Py_None); resultobj = Py_None;
18068 return resultobj;
18069 fail:
18070 return NULL;
18071 }
18072
18073
18074 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj = NULL;
18076 int arg1 ;
18077 PyObject * obj0 = 0 ;
18078 char *kwnames[] = {
18079 (char *) "ppi", NULL
18080 };
18081
18082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
18083 {
18084 arg1 = static_cast<int >(SWIG_As_int(obj0));
18085 if (SWIG_arg_fail(1)) SWIG_fail;
18086 }
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 wxPostScriptDC::SetResolution(arg1);
18090
18091 wxPyEndAllowThreads(__tstate);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 Py_INCREF(Py_None); resultobj = Py_None;
18095 return resultobj;
18096 fail:
18097 return NULL;
18098 }
18099
18100
18101 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18102 PyObject *resultobj = NULL;
18103 int result;
18104 char *kwnames[] = {
18105 NULL
18106 };
18107
18108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 result = (int)wxPostScriptDC::GetResolution();
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 {
18117 resultobj = SWIG_From_int(static_cast<int >(result));
18118 }
18119 return resultobj;
18120 fail:
18121 return NULL;
18122 }
18123
18124
18125 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18126 PyObject *obj;
18127 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18128 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18129 Py_INCREF(obj);
18130 return Py_BuildValue((char *)"");
18131 }
18132 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj = NULL;
18134 wxString const &arg1_defvalue = wxPyEmptyString ;
18135 wxString *arg1 = (wxString *) &arg1_defvalue ;
18136 wxMetaFile *result;
18137 bool temp1 = false ;
18138 PyObject * obj0 = 0 ;
18139 char *kwnames[] = {
18140 (char *) "filename", NULL
18141 };
18142
18143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18144 if (obj0) {
18145 {
18146 arg1 = wxString_in_helper(obj0);
18147 if (arg1 == NULL) SWIG_fail;
18148 temp1 = true;
18149 }
18150 }
18151 {
18152 if (!wxPyCheckForApp()) SWIG_fail;
18153 PyThreadState* __tstate = wxPyBeginAllowThreads();
18154 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
18155
18156 wxPyEndAllowThreads(__tstate);
18157 if (PyErr_Occurred()) SWIG_fail;
18158 }
18159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18160 {
18161 if (temp1)
18162 delete arg1;
18163 }
18164 return resultobj;
18165 fail:
18166 {
18167 if (temp1)
18168 delete arg1;
18169 }
18170 return NULL;
18171 }
18172
18173
18174 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
18175 PyObject *obj;
18176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18177 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
18178 Py_INCREF(obj);
18179 return Py_BuildValue((char *)"");
18180 }
18181 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
18182 PyObject *resultobj = NULL;
18183 wxString const &arg1_defvalue = wxPyEmptyString ;
18184 wxString *arg1 = (wxString *) &arg1_defvalue ;
18185 int arg2 = (int) 0 ;
18186 int arg3 = (int) 0 ;
18187 wxString const &arg4_defvalue = wxPyEmptyString ;
18188 wxString *arg4 = (wxString *) &arg4_defvalue ;
18189 wxMetaFileDC *result;
18190 bool temp1 = false ;
18191 bool temp4 = false ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 PyObject * obj2 = 0 ;
18195 PyObject * obj3 = 0 ;
18196 char *kwnames[] = {
18197 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
18198 };
18199
18200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18201 if (obj0) {
18202 {
18203 arg1 = wxString_in_helper(obj0);
18204 if (arg1 == NULL) SWIG_fail;
18205 temp1 = true;
18206 }
18207 }
18208 if (obj1) {
18209 {
18210 arg2 = static_cast<int >(SWIG_As_int(obj1));
18211 if (SWIG_arg_fail(2)) SWIG_fail;
18212 }
18213 }
18214 if (obj2) {
18215 {
18216 arg3 = static_cast<int >(SWIG_As_int(obj2));
18217 if (SWIG_arg_fail(3)) SWIG_fail;
18218 }
18219 }
18220 if (obj3) {
18221 {
18222 arg4 = wxString_in_helper(obj3);
18223 if (arg4 == NULL) SWIG_fail;
18224 temp4 = true;
18225 }
18226 }
18227 {
18228 if (!wxPyCheckForApp()) SWIG_fail;
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
18231
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
18236 {
18237 if (temp1)
18238 delete arg1;
18239 }
18240 {
18241 if (temp4)
18242 delete arg4;
18243 }
18244 return resultobj;
18245 fail:
18246 {
18247 if (temp1)
18248 delete arg1;
18249 }
18250 {
18251 if (temp4)
18252 delete arg4;
18253 }
18254 return NULL;
18255 }
18256
18257
18258 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
18259 PyObject *obj;
18260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18261 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
18262 Py_INCREF(obj);
18263 return Py_BuildValue((char *)"");
18264 }
18265 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
18266 PyObject *resultobj = NULL;
18267 wxPrintData *arg1 = 0 ;
18268 wxPrinterDC *result;
18269 PyObject * obj0 = 0 ;
18270 char *kwnames[] = {
18271 (char *) "printData", NULL
18272 };
18273
18274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
18275 {
18276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18277 if (SWIG_arg_fail(1)) SWIG_fail;
18278 if (arg1 == NULL) {
18279 SWIG_null_ref("wxPrintData");
18280 }
18281 if (SWIG_arg_fail(1)) SWIG_fail;
18282 }
18283 {
18284 if (!wxPyCheckForApp()) SWIG_fail;
18285 PyThreadState* __tstate = wxPyBeginAllowThreads();
18286 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
18287
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
18299 PyObject *obj;
18300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18301 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
18302 Py_INCREF(obj);
18303 return Py_BuildValue((char *)"");
18304 }
18305 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18306 PyObject *resultobj = NULL;
18307 int arg1 ;
18308 int arg2 ;
18309 int arg3 = (int) true ;
18310 int arg4 = (int) 1 ;
18311 wxImageList *result;
18312 PyObject * obj0 = 0 ;
18313 PyObject * obj1 = 0 ;
18314 PyObject * obj2 = 0 ;
18315 PyObject * obj3 = 0 ;
18316 char *kwnames[] = {
18317 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
18318 };
18319
18320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18321 {
18322 arg1 = static_cast<int >(SWIG_As_int(obj0));
18323 if (SWIG_arg_fail(1)) SWIG_fail;
18324 }
18325 {
18326 arg2 = static_cast<int >(SWIG_As_int(obj1));
18327 if (SWIG_arg_fail(2)) SWIG_fail;
18328 }
18329 if (obj2) {
18330 {
18331 arg3 = static_cast<int >(SWIG_As_int(obj2));
18332 if (SWIG_arg_fail(3)) SWIG_fail;
18333 }
18334 }
18335 if (obj3) {
18336 {
18337 arg4 = static_cast<int >(SWIG_As_int(obj3));
18338 if (SWIG_arg_fail(4)) SWIG_fail;
18339 }
18340 }
18341 {
18342 if (!wxPyCheckForApp()) SWIG_fail;
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
18345
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 {
18350 resultobj = wxPyMake_wxObject(result, (bool)1);
18351 }
18352 return resultobj;
18353 fail:
18354 return NULL;
18355 }
18356
18357
18358 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj = NULL;
18360 wxImageList *arg1 = (wxImageList *) 0 ;
18361 PyObject * obj0 = 0 ;
18362 char *kwnames[] = {
18363 (char *) "self", NULL
18364 };
18365
18366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
18367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18368 if (SWIG_arg_fail(1)) SWIG_fail;
18369 {
18370 PyThreadState* __tstate = wxPyBeginAllowThreads();
18371 delete arg1;
18372
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 Py_INCREF(Py_None); resultobj = Py_None;
18377 return resultobj;
18378 fail:
18379 return NULL;
18380 }
18381
18382
18383 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
18384 PyObject *resultobj = NULL;
18385 wxImageList *arg1 = (wxImageList *) 0 ;
18386 wxBitmap *arg2 = 0 ;
18387 wxBitmap const &arg3_defvalue = wxNullBitmap ;
18388 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
18389 int result;
18390 PyObject * obj0 = 0 ;
18391 PyObject * obj1 = 0 ;
18392 PyObject * obj2 = 0 ;
18393 char *kwnames[] = {
18394 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
18395 };
18396
18397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
18398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18399 if (SWIG_arg_fail(1)) SWIG_fail;
18400 {
18401 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18402 if (SWIG_arg_fail(2)) SWIG_fail;
18403 if (arg2 == NULL) {
18404 SWIG_null_ref("wxBitmap");
18405 }
18406 if (SWIG_arg_fail(2)) SWIG_fail;
18407 }
18408 if (obj2) {
18409 {
18410 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18411 if (SWIG_arg_fail(3)) SWIG_fail;
18412 if (arg3 == NULL) {
18413 SWIG_null_ref("wxBitmap");
18414 }
18415 if (SWIG_arg_fail(3)) SWIG_fail;
18416 }
18417 }
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
18421
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 {
18426 resultobj = SWIG_From_int(static_cast<int >(result));
18427 }
18428 return resultobj;
18429 fail:
18430 return NULL;
18431 }
18432
18433
18434 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj = NULL;
18436 wxImageList *arg1 = (wxImageList *) 0 ;
18437 wxBitmap *arg2 = 0 ;
18438 wxColour *arg3 = 0 ;
18439 int result;
18440 wxColour temp3 ;
18441 PyObject * obj0 = 0 ;
18442 PyObject * obj1 = 0 ;
18443 PyObject * obj2 = 0 ;
18444 char *kwnames[] = {
18445 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
18446 };
18447
18448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
18449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18450 if (SWIG_arg_fail(1)) SWIG_fail;
18451 {
18452 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18453 if (SWIG_arg_fail(2)) SWIG_fail;
18454 if (arg2 == NULL) {
18455 SWIG_null_ref("wxBitmap");
18456 }
18457 if (SWIG_arg_fail(2)) SWIG_fail;
18458 }
18459 {
18460 arg3 = &temp3;
18461 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18462 }
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
18466
18467 wxPyEndAllowThreads(__tstate);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 {
18471 resultobj = SWIG_From_int(static_cast<int >(result));
18472 }
18473 return resultobj;
18474 fail:
18475 return NULL;
18476 }
18477
18478
18479 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18480 PyObject *resultobj = NULL;
18481 wxImageList *arg1 = (wxImageList *) 0 ;
18482 wxIcon *arg2 = 0 ;
18483 int result;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 char *kwnames[] = {
18487 (char *) "self",(char *) "icon", NULL
18488 };
18489
18490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
18491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18492 if (SWIG_arg_fail(1)) SWIG_fail;
18493 {
18494 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
18495 if (SWIG_arg_fail(2)) SWIG_fail;
18496 if (arg2 == NULL) {
18497 SWIG_null_ref("wxIcon");
18498 }
18499 if (SWIG_arg_fail(2)) SWIG_fail;
18500 }
18501 {
18502 PyThreadState* __tstate = wxPyBeginAllowThreads();
18503 result = (int)(arg1)->Add((wxIcon const &)*arg2);
18504
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 {
18509 resultobj = SWIG_From_int(static_cast<int >(result));
18510 }
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = NULL;
18519 wxImageList *arg1 = (wxImageList *) 0 ;
18520 int arg2 ;
18521 SwigValueWrapper<wxBitmap > result;
18522 PyObject * obj0 = 0 ;
18523 PyObject * obj1 = 0 ;
18524 char *kwnames[] = {
18525 (char *) "self",(char *) "index", NULL
18526 };
18527
18528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
18529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18530 if (SWIG_arg_fail(1)) SWIG_fail;
18531 {
18532 arg2 = static_cast<int >(SWIG_As_int(obj1));
18533 if (SWIG_arg_fail(2)) SWIG_fail;
18534 }
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
18538
18539 wxPyEndAllowThreads(__tstate);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 {
18543 wxBitmap * resultptr;
18544 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
18545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
18546 }
18547 return resultobj;
18548 fail:
18549 return NULL;
18550 }
18551
18552
18553 static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18554 PyObject *resultobj = NULL;
18555 wxImageList *arg1 = (wxImageList *) 0 ;
18556 int arg2 ;
18557 wxIcon result;
18558 PyObject * obj0 = 0 ;
18559 PyObject * obj1 = 0 ;
18560 char *kwnames[] = {
18561 (char *) "self",(char *) "index", NULL
18562 };
18563
18564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
18565 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18566 if (SWIG_arg_fail(1)) SWIG_fail;
18567 {
18568 arg2 = static_cast<int >(SWIG_As_int(obj1));
18569 if (SWIG_arg_fail(2)) SWIG_fail;
18570 }
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = ((wxImageList const *)arg1)->GetIcon(arg2);
18574
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 {
18579 wxIcon * resultptr;
18580 resultptr = new wxIcon(static_cast<wxIcon & >(result));
18581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
18582 }
18583 return resultobj;
18584 fail:
18585 return NULL;
18586 }
18587
18588
18589 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
18590 PyObject *resultobj = NULL;
18591 wxImageList *arg1 = (wxImageList *) 0 ;
18592 int arg2 ;
18593 wxBitmap *arg3 = 0 ;
18594 bool result;
18595 PyObject * obj0 = 0 ;
18596 PyObject * obj1 = 0 ;
18597 PyObject * obj2 = 0 ;
18598 char *kwnames[] = {
18599 (char *) "self",(char *) "index",(char *) "bitmap", NULL
18600 };
18601
18602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
18603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18604 if (SWIG_arg_fail(1)) SWIG_fail;
18605 {
18606 arg2 = static_cast<int >(SWIG_As_int(obj1));
18607 if (SWIG_arg_fail(2)) SWIG_fail;
18608 }
18609 {
18610 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18611 if (SWIG_arg_fail(3)) SWIG_fail;
18612 if (arg3 == NULL) {
18613 SWIG_null_ref("wxBitmap");
18614 }
18615 if (SWIG_arg_fail(3)) SWIG_fail;
18616 }
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
18620
18621 wxPyEndAllowThreads(__tstate);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 {
18625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18626 }
18627 return resultobj;
18628 fail:
18629 return NULL;
18630 }
18631
18632
18633 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
18634 PyObject *resultobj = NULL;
18635 wxImageList *arg1 = (wxImageList *) 0 ;
18636 int arg2 ;
18637 wxDC *arg3 = 0 ;
18638 int arg4 ;
18639 int arg5 ;
18640 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
18641 bool arg7 = (bool) (bool)false ;
18642 bool result;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 PyObject * obj2 = 0 ;
18646 PyObject * obj3 = 0 ;
18647 PyObject * obj4 = 0 ;
18648 PyObject * obj5 = 0 ;
18649 PyObject * obj6 = 0 ;
18650 char *kwnames[] = {
18651 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
18652 };
18653
18654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18656 if (SWIG_arg_fail(1)) SWIG_fail;
18657 {
18658 arg2 = static_cast<int >(SWIG_As_int(obj1));
18659 if (SWIG_arg_fail(2)) SWIG_fail;
18660 }
18661 {
18662 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18663 if (SWIG_arg_fail(3)) SWIG_fail;
18664 if (arg3 == NULL) {
18665 SWIG_null_ref("wxDC");
18666 }
18667 if (SWIG_arg_fail(3)) SWIG_fail;
18668 }
18669 {
18670 arg4 = static_cast<int >(SWIG_As_int(obj3));
18671 if (SWIG_arg_fail(4)) SWIG_fail;
18672 }
18673 {
18674 arg5 = static_cast<int >(SWIG_As_int(obj4));
18675 if (SWIG_arg_fail(5)) SWIG_fail;
18676 }
18677 if (obj5) {
18678 {
18679 arg6 = static_cast<int >(SWIG_As_int(obj5));
18680 if (SWIG_arg_fail(6)) SWIG_fail;
18681 }
18682 }
18683 if (obj6) {
18684 {
18685 arg7 = static_cast<bool const >(SWIG_As_bool(obj6));
18686 if (SWIG_arg_fail(7)) SWIG_fail;
18687 }
18688 }
18689 {
18690 PyThreadState* __tstate = wxPyBeginAllowThreads();
18691 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
18692
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 {
18697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18698 }
18699 return resultobj;
18700 fail:
18701 return NULL;
18702 }
18703
18704
18705 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
18706 PyObject *resultobj = NULL;
18707 wxImageList *arg1 = (wxImageList *) 0 ;
18708 int result;
18709 PyObject * obj0 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
18715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18716 if (SWIG_arg_fail(1)) SWIG_fail;
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 result = (int)(arg1)->GetImageCount();
18720
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 {
18725 resultobj = SWIG_From_int(static_cast<int >(result));
18726 }
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = NULL;
18735 wxImageList *arg1 = (wxImageList *) 0 ;
18736 int arg2 ;
18737 bool result;
18738 PyObject * obj0 = 0 ;
18739 PyObject * obj1 = 0 ;
18740 char *kwnames[] = {
18741 (char *) "self",(char *) "index", NULL
18742 };
18743
18744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
18745 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18746 if (SWIG_arg_fail(1)) SWIG_fail;
18747 {
18748 arg2 = static_cast<int >(SWIG_As_int(obj1));
18749 if (SWIG_arg_fail(2)) SWIG_fail;
18750 }
18751 {
18752 PyThreadState* __tstate = wxPyBeginAllowThreads();
18753 result = (bool)(arg1)->Remove(arg2);
18754
18755 wxPyEndAllowThreads(__tstate);
18756 if (PyErr_Occurred()) SWIG_fail;
18757 }
18758 {
18759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18760 }
18761 return resultobj;
18762 fail:
18763 return NULL;
18764 }
18765
18766
18767 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
18768 PyObject *resultobj = NULL;
18769 wxImageList *arg1 = (wxImageList *) 0 ;
18770 bool result;
18771 PyObject * obj0 = 0 ;
18772 char *kwnames[] = {
18773 (char *) "self", NULL
18774 };
18775
18776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
18777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18778 if (SWIG_arg_fail(1)) SWIG_fail;
18779 {
18780 PyThreadState* __tstate = wxPyBeginAllowThreads();
18781 result = (bool)(arg1)->RemoveAll();
18782
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 {
18787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18788 }
18789 return resultobj;
18790 fail:
18791 return NULL;
18792 }
18793
18794
18795 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj = NULL;
18797 wxImageList *arg1 = (wxImageList *) 0 ;
18798 int arg2 ;
18799 int *arg3 = 0 ;
18800 int *arg4 = 0 ;
18801 int temp3 ;
18802 int res3 = 0 ;
18803 int temp4 ;
18804 int res4 = 0 ;
18805 PyObject * obj0 = 0 ;
18806 PyObject * obj1 = 0 ;
18807 char *kwnames[] = {
18808 (char *) "self",(char *) "index", NULL
18809 };
18810
18811 arg3 = &temp3; res3 = SWIG_NEWOBJ;
18812 arg4 = &temp4; res4 = SWIG_NEWOBJ;
18813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
18814 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18815 if (SWIG_arg_fail(1)) SWIG_fail;
18816 {
18817 arg2 = static_cast<int >(SWIG_As_int(obj1));
18818 if (SWIG_arg_fail(2)) SWIG_fail;
18819 }
18820 {
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 (arg1)->GetSize(arg2,*arg3,*arg4);
18823
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 Py_INCREF(Py_None); resultobj = Py_None;
18828 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
18829 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
18830 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
18831 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
18832 return resultobj;
18833 fail:
18834 return NULL;
18835 }
18836
18837
18838 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
18839 PyObject *obj;
18840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18841 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
18842 Py_INCREF(obj);
18843 return Py_BuildValue((char *)"");
18844 }
18845 static int _wrap_NORMAL_FONT_set(PyObject *) {
18846 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
18847 return 1;
18848 }
18849
18850
18851 static PyObject *_wrap_NORMAL_FONT_get(void) {
18852 PyObject *pyobj = NULL;
18853
18854 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
18855 return pyobj;
18856 }
18857
18858
18859 static int _wrap_SMALL_FONT_set(PyObject *) {
18860 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
18861 return 1;
18862 }
18863
18864
18865 static PyObject *_wrap_SMALL_FONT_get(void) {
18866 PyObject *pyobj = NULL;
18867
18868 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
18869 return pyobj;
18870 }
18871
18872
18873 static int _wrap_ITALIC_FONT_set(PyObject *) {
18874 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
18875 return 1;
18876 }
18877
18878
18879 static PyObject *_wrap_ITALIC_FONT_get(void) {
18880 PyObject *pyobj = NULL;
18881
18882 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
18883 return pyobj;
18884 }
18885
18886
18887 static int _wrap_SWISS_FONT_set(PyObject *) {
18888 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
18889 return 1;
18890 }
18891
18892
18893 static PyObject *_wrap_SWISS_FONT_get(void) {
18894 PyObject *pyobj = NULL;
18895
18896 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
18897 return pyobj;
18898 }
18899
18900
18901 static int _wrap_RED_PEN_set(PyObject *) {
18902 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
18903 return 1;
18904 }
18905
18906
18907 static PyObject *_wrap_RED_PEN_get(void) {
18908 PyObject *pyobj = NULL;
18909
18910 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
18911 return pyobj;
18912 }
18913
18914
18915 static int _wrap_CYAN_PEN_set(PyObject *) {
18916 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
18917 return 1;
18918 }
18919
18920
18921 static PyObject *_wrap_CYAN_PEN_get(void) {
18922 PyObject *pyobj = NULL;
18923
18924 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
18925 return pyobj;
18926 }
18927
18928
18929 static int _wrap_GREEN_PEN_set(PyObject *) {
18930 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
18931 return 1;
18932 }
18933
18934
18935 static PyObject *_wrap_GREEN_PEN_get(void) {
18936 PyObject *pyobj = NULL;
18937
18938 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
18939 return pyobj;
18940 }
18941
18942
18943 static int _wrap_BLACK_PEN_set(PyObject *) {
18944 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
18945 return 1;
18946 }
18947
18948
18949 static PyObject *_wrap_BLACK_PEN_get(void) {
18950 PyObject *pyobj = NULL;
18951
18952 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
18953 return pyobj;
18954 }
18955
18956
18957 static int _wrap_WHITE_PEN_set(PyObject *) {
18958 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
18959 return 1;
18960 }
18961
18962
18963 static PyObject *_wrap_WHITE_PEN_get(void) {
18964 PyObject *pyobj = NULL;
18965
18966 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
18967 return pyobj;
18968 }
18969
18970
18971 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
18972 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
18973 return 1;
18974 }
18975
18976
18977 static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
18978 PyObject *pyobj = NULL;
18979
18980 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
18981 return pyobj;
18982 }
18983
18984
18985 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
18986 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
18987 return 1;
18988 }
18989
18990
18991 static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
18992 PyObject *pyobj = NULL;
18993
18994 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
18995 return pyobj;
18996 }
18997
18998
18999 static int _wrap_GREY_PEN_set(PyObject *) {
19000 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
19001 return 1;
19002 }
19003
19004
19005 static PyObject *_wrap_GREY_PEN_get(void) {
19006 PyObject *pyobj = NULL;
19007
19008 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
19009 return pyobj;
19010 }
19011
19012
19013 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
19014 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
19015 return 1;
19016 }
19017
19018
19019 static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
19020 PyObject *pyobj = NULL;
19021
19022 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19023 return pyobj;
19024 }
19025
19026
19027 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
19028 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
19029 return 1;
19030 }
19031
19032
19033 static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
19034 PyObject *pyobj = NULL;
19035
19036 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19037 return pyobj;
19038 }
19039
19040
19041 static int _wrap_BLUE_BRUSH_set(PyObject *) {
19042 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
19043 return 1;
19044 }
19045
19046
19047 static PyObject *_wrap_BLUE_BRUSH_get(void) {
19048 PyObject *pyobj = NULL;
19049
19050 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19051 return pyobj;
19052 }
19053
19054
19055 static int _wrap_GREEN_BRUSH_set(PyObject *) {
19056 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
19057 return 1;
19058 }
19059
19060
19061 static PyObject *_wrap_GREEN_BRUSH_get(void) {
19062 PyObject *pyobj = NULL;
19063
19064 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19065 return pyobj;
19066 }
19067
19068
19069 static int _wrap_WHITE_BRUSH_set(PyObject *) {
19070 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
19071 return 1;
19072 }
19073
19074
19075 static PyObject *_wrap_WHITE_BRUSH_get(void) {
19076 PyObject *pyobj = NULL;
19077
19078 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19079 return pyobj;
19080 }
19081
19082
19083 static int _wrap_BLACK_BRUSH_set(PyObject *) {
19084 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
19085 return 1;
19086 }
19087
19088
19089 static PyObject *_wrap_BLACK_BRUSH_get(void) {
19090 PyObject *pyobj = NULL;
19091
19092 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
19093 return pyobj;
19094 }
19095
19096
19097 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
19098 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
19099 return 1;
19100 }
19101
19102
19103 static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
19104 PyObject *pyobj = NULL;
19105
19106 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
19107 return pyobj;
19108 }
19109
19110
19111 static int _wrap_CYAN_BRUSH_set(PyObject *) {
19112 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
19113 return 1;
19114 }
19115
19116
19117 static PyObject *_wrap_CYAN_BRUSH_get(void) {
19118 PyObject *pyobj = NULL;
19119
19120 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19121 return pyobj;
19122 }
19123
19124
19125 static int _wrap_RED_BRUSH_set(PyObject *) {
19126 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
19127 return 1;
19128 }
19129
19130
19131 static PyObject *_wrap_RED_BRUSH_get(void) {
19132 PyObject *pyobj = NULL;
19133
19134 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
19135 return pyobj;
19136 }
19137
19138
19139 static int _wrap_GREY_BRUSH_set(PyObject *) {
19140 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
19141 return 1;
19142 }
19143
19144
19145 static PyObject *_wrap_GREY_BRUSH_get(void) {
19146 PyObject *pyobj = NULL;
19147
19148 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19149 return pyobj;
19150 }
19151
19152
19153 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
19154 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
19155 return 1;
19156 }
19157
19158
19159 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
19160 PyObject *pyobj = NULL;
19161
19162 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19163 return pyobj;
19164 }
19165
19166
19167 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
19168 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
19169 return 1;
19170 }
19171
19172
19173 static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
19174 PyObject *pyobj = NULL;
19175
19176 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19177 return pyobj;
19178 }
19179
19180
19181 static int _wrap_BLACK_set(PyObject *) {
19182 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
19183 return 1;
19184 }
19185
19186
19187 static PyObject *_wrap_BLACK_get(void) {
19188 PyObject *pyobj = NULL;
19189
19190 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
19191 return pyobj;
19192 }
19193
19194
19195 static int _wrap_WHITE_set(PyObject *) {
19196 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
19197 return 1;
19198 }
19199
19200
19201 static PyObject *_wrap_WHITE_get(void) {
19202 PyObject *pyobj = NULL;
19203
19204 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
19205 return pyobj;
19206 }
19207
19208
19209 static int _wrap_RED_set(PyObject *) {
19210 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
19211 return 1;
19212 }
19213
19214
19215 static PyObject *_wrap_RED_get(void) {
19216 PyObject *pyobj = NULL;
19217
19218 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
19219 return pyobj;
19220 }
19221
19222
19223 static int _wrap_BLUE_set(PyObject *) {
19224 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
19225 return 1;
19226 }
19227
19228
19229 static PyObject *_wrap_BLUE_get(void) {
19230 PyObject *pyobj = NULL;
19231
19232 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
19233 return pyobj;
19234 }
19235
19236
19237 static int _wrap_GREEN_set(PyObject *) {
19238 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
19239 return 1;
19240 }
19241
19242
19243 static PyObject *_wrap_GREEN_get(void) {
19244 PyObject *pyobj = NULL;
19245
19246 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
19247 return pyobj;
19248 }
19249
19250
19251 static int _wrap_CYAN_set(PyObject *) {
19252 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
19253 return 1;
19254 }
19255
19256
19257 static PyObject *_wrap_CYAN_get(void) {
19258 PyObject *pyobj = NULL;
19259
19260 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
19261 return pyobj;
19262 }
19263
19264
19265 static int _wrap_LIGHT_GREY_set(PyObject *) {
19266 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
19267 return 1;
19268 }
19269
19270
19271 static PyObject *_wrap_LIGHT_GREY_get(void) {
19272 PyObject *pyobj = NULL;
19273
19274 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
19275 return pyobj;
19276 }
19277
19278
19279 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
19280 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
19281 return 1;
19282 }
19283
19284
19285 static PyObject *_wrap_STANDARD_CURSOR_get(void) {
19286 PyObject *pyobj = NULL;
19287
19288 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
19289 return pyobj;
19290 }
19291
19292
19293 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
19294 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
19295 return 1;
19296 }
19297
19298
19299 static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
19300 PyObject *pyobj = NULL;
19301
19302 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
19303 return pyobj;
19304 }
19305
19306
19307 static int _wrap_CROSS_CURSOR_set(PyObject *) {
19308 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
19309 return 1;
19310 }
19311
19312
19313 static PyObject *_wrap_CROSS_CURSOR_get(void) {
19314 PyObject *pyobj = NULL;
19315
19316 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
19317 return pyobj;
19318 }
19319
19320
19321 static int _wrap_NullBitmap_set(PyObject *) {
19322 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
19323 return 1;
19324 }
19325
19326
19327 static PyObject *_wrap_NullBitmap_get(void) {
19328 PyObject *pyobj = NULL;
19329
19330 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
19331 return pyobj;
19332 }
19333
19334
19335 static int _wrap_NullIcon_set(PyObject *) {
19336 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
19337 return 1;
19338 }
19339
19340
19341 static PyObject *_wrap_NullIcon_get(void) {
19342 PyObject *pyobj = NULL;
19343
19344 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
19345 return pyobj;
19346 }
19347
19348
19349 static int _wrap_NullCursor_set(PyObject *) {
19350 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
19351 return 1;
19352 }
19353
19354
19355 static PyObject *_wrap_NullCursor_get(void) {
19356 PyObject *pyobj = NULL;
19357
19358 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
19359 return pyobj;
19360 }
19361
19362
19363 static int _wrap_NullPen_set(PyObject *) {
19364 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
19365 return 1;
19366 }
19367
19368
19369 static PyObject *_wrap_NullPen_get(void) {
19370 PyObject *pyobj = NULL;
19371
19372 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
19373 return pyobj;
19374 }
19375
19376
19377 static int _wrap_NullBrush_set(PyObject *) {
19378 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
19379 return 1;
19380 }
19381
19382
19383 static PyObject *_wrap_NullBrush_get(void) {
19384 PyObject *pyobj = NULL;
19385
19386 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
19387 return pyobj;
19388 }
19389
19390
19391 static int _wrap_NullPalette_set(PyObject *) {
19392 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
19393 return 1;
19394 }
19395
19396
19397 static PyObject *_wrap_NullPalette_get(void) {
19398 PyObject *pyobj = NULL;
19399
19400 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
19401 return pyobj;
19402 }
19403
19404
19405 static int _wrap_NullFont_set(PyObject *) {
19406 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
19407 return 1;
19408 }
19409
19410
19411 static PyObject *_wrap_NullFont_get(void) {
19412 PyObject *pyobj = NULL;
19413
19414 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
19415 return pyobj;
19416 }
19417
19418
19419 static int _wrap_NullColour_set(PyObject *) {
19420 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
19421 return 1;
19422 }
19423
19424
19425 static PyObject *_wrap_NullColour_get(void) {
19426 PyObject *pyobj = NULL;
19427
19428 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
19429 return pyobj;
19430 }
19431
19432
19433 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
19434 PyObject *resultobj = NULL;
19435 wxPenList *arg1 = (wxPenList *) 0 ;
19436 wxPen *arg2 = (wxPen *) 0 ;
19437 PyObject * obj0 = 0 ;
19438 PyObject * obj1 = 0 ;
19439 char *kwnames[] = {
19440 (char *) "self",(char *) "pen", NULL
19441 };
19442
19443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
19444 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19445 if (SWIG_arg_fail(1)) SWIG_fail;
19446 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19447 if (SWIG_arg_fail(2)) SWIG_fail;
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 (arg1)->AddPen(arg2);
19451
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 Py_INCREF(Py_None); resultobj = Py_None;
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj = NULL;
19464 wxPenList *arg1 = (wxPenList *) 0 ;
19465 wxColour *arg2 = 0 ;
19466 int arg3 ;
19467 int arg4 ;
19468 wxPen *result;
19469 wxColour temp2 ;
19470 PyObject * obj0 = 0 ;
19471 PyObject * obj1 = 0 ;
19472 PyObject * obj2 = 0 ;
19473 PyObject * obj3 = 0 ;
19474 char *kwnames[] = {
19475 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
19476 };
19477
19478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19479 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19480 if (SWIG_arg_fail(1)) SWIG_fail;
19481 {
19482 arg2 = &temp2;
19483 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19484 }
19485 {
19486 arg3 = static_cast<int >(SWIG_As_int(obj2));
19487 if (SWIG_arg_fail(3)) SWIG_fail;
19488 }
19489 {
19490 arg4 = static_cast<int >(SWIG_As_int(obj3));
19491 if (SWIG_arg_fail(4)) SWIG_fail;
19492 }
19493 {
19494 PyThreadState* __tstate = wxPyBeginAllowThreads();
19495 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
19496
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
19501 return resultobj;
19502 fail:
19503 return NULL;
19504 }
19505
19506
19507 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj = NULL;
19509 wxPenList *arg1 = (wxPenList *) 0 ;
19510 wxPen *arg2 = (wxPen *) 0 ;
19511 PyObject * obj0 = 0 ;
19512 PyObject * obj1 = 0 ;
19513 char *kwnames[] = {
19514 (char *) "self",(char *) "pen", NULL
19515 };
19516
19517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
19518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19519 if (SWIG_arg_fail(1)) SWIG_fail;
19520 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19521 if (SWIG_arg_fail(2)) SWIG_fail;
19522 {
19523 PyThreadState* __tstate = wxPyBeginAllowThreads();
19524 (arg1)->RemovePen(arg2);
19525
19526 wxPyEndAllowThreads(__tstate);
19527 if (PyErr_Occurred()) SWIG_fail;
19528 }
19529 Py_INCREF(Py_None); resultobj = Py_None;
19530 return resultobj;
19531 fail:
19532 return NULL;
19533 }
19534
19535
19536 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
19537 PyObject *resultobj = NULL;
19538 wxPenList *arg1 = (wxPenList *) 0 ;
19539 int result;
19540 PyObject * obj0 = 0 ;
19541 char *kwnames[] = {
19542 (char *) "self", NULL
19543 };
19544
19545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
19546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19547 if (SWIG_arg_fail(1)) SWIG_fail;
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 result = (int)(arg1)->GetCount();
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 {
19556 resultobj = SWIG_From_int(static_cast<int >(result));
19557 }
19558 return resultobj;
19559 fail:
19560 return NULL;
19561 }
19562
19563
19564 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
19565 PyObject *obj;
19566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19567 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
19568 Py_INCREF(obj);
19569 return Py_BuildValue((char *)"");
19570 }
19571 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj = NULL;
19573 wxBrushList *arg1 = (wxBrushList *) 0 ;
19574 wxBrush *arg2 = (wxBrush *) 0 ;
19575 PyObject * obj0 = 0 ;
19576 PyObject * obj1 = 0 ;
19577 char *kwnames[] = {
19578 (char *) "self",(char *) "brush", NULL
19579 };
19580
19581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
19582 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19583 if (SWIG_arg_fail(1)) SWIG_fail;
19584 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19585 if (SWIG_arg_fail(2)) SWIG_fail;
19586 {
19587 PyThreadState* __tstate = wxPyBeginAllowThreads();
19588 (arg1)->AddBrush(arg2);
19589
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 Py_INCREF(Py_None); resultobj = Py_None;
19594 return resultobj;
19595 fail:
19596 return NULL;
19597 }
19598
19599
19600 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19601 PyObject *resultobj = NULL;
19602 wxBrushList *arg1 = (wxBrushList *) 0 ;
19603 wxColour *arg2 = 0 ;
19604 int arg3 = (int) wxSOLID ;
19605 wxBrush *result;
19606 wxColour temp2 ;
19607 PyObject * obj0 = 0 ;
19608 PyObject * obj1 = 0 ;
19609 PyObject * obj2 = 0 ;
19610 char *kwnames[] = {
19611 (char *) "self",(char *) "colour",(char *) "style", NULL
19612 };
19613
19614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
19615 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19616 if (SWIG_arg_fail(1)) SWIG_fail;
19617 {
19618 arg2 = &temp2;
19619 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19620 }
19621 if (obj2) {
19622 {
19623 arg3 = static_cast<int >(SWIG_As_int(obj2));
19624 if (SWIG_arg_fail(3)) SWIG_fail;
19625 }
19626 }
19627 {
19628 PyThreadState* __tstate = wxPyBeginAllowThreads();
19629 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
19630
19631 wxPyEndAllowThreads(__tstate);
19632 if (PyErr_Occurred()) SWIG_fail;
19633 }
19634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj = NULL;
19643 wxBrushList *arg1 = (wxBrushList *) 0 ;
19644 wxBrush *arg2 = (wxBrush *) 0 ;
19645 PyObject * obj0 = 0 ;
19646 PyObject * obj1 = 0 ;
19647 char *kwnames[] = {
19648 (char *) "self",(char *) "brush", NULL
19649 };
19650
19651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
19652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19653 if (SWIG_arg_fail(1)) SWIG_fail;
19654 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19655 if (SWIG_arg_fail(2)) SWIG_fail;
19656 {
19657 PyThreadState* __tstate = wxPyBeginAllowThreads();
19658 (arg1)->RemoveBrush(arg2);
19659
19660 wxPyEndAllowThreads(__tstate);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 Py_INCREF(Py_None); resultobj = Py_None;
19664 return resultobj;
19665 fail:
19666 return NULL;
19667 }
19668
19669
19670 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
19671 PyObject *resultobj = NULL;
19672 wxBrushList *arg1 = (wxBrushList *) 0 ;
19673 int result;
19674 PyObject * obj0 = 0 ;
19675 char *kwnames[] = {
19676 (char *) "self", NULL
19677 };
19678
19679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
19680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19681 if (SWIG_arg_fail(1)) SWIG_fail;
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (int)(arg1)->GetCount();
19685
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 {
19690 resultobj = SWIG_From_int(static_cast<int >(result));
19691 }
19692 return resultobj;
19693 fail:
19694 return NULL;
19695 }
19696
19697
19698 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
19699 PyObject *obj;
19700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19701 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
19702 Py_INCREF(obj);
19703 return Py_BuildValue((char *)"");
19704 }
19705 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
19706 PyObject *resultobj = NULL;
19707 wxColourDatabase *result;
19708 char *kwnames[] = {
19709 NULL
19710 };
19711
19712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
19713 {
19714 if (!wxPyCheckForApp()) SWIG_fail;
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = (wxColourDatabase *)new wxColourDatabase();
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
19722 return resultobj;
19723 fail:
19724 return NULL;
19725 }
19726
19727
19728 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
19729 PyObject *resultobj = NULL;
19730 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19731 PyObject * obj0 = 0 ;
19732 char *kwnames[] = {
19733 (char *) "self", NULL
19734 };
19735
19736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
19737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19738 if (SWIG_arg_fail(1)) SWIG_fail;
19739 {
19740 PyThreadState* __tstate = wxPyBeginAllowThreads();
19741 delete arg1;
19742
19743 wxPyEndAllowThreads(__tstate);
19744 if (PyErr_Occurred()) SWIG_fail;
19745 }
19746 Py_INCREF(Py_None); resultobj = Py_None;
19747 return resultobj;
19748 fail:
19749 return NULL;
19750 }
19751
19752
19753 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
19754 PyObject *resultobj = NULL;
19755 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19756 wxString *arg2 = 0 ;
19757 wxColour result;
19758 bool temp2 = false ;
19759 PyObject * obj0 = 0 ;
19760 PyObject * obj1 = 0 ;
19761 char *kwnames[] = {
19762 (char *) "self",(char *) "name", NULL
19763 };
19764
19765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
19766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19767 if (SWIG_arg_fail(1)) SWIG_fail;
19768 {
19769 arg2 = wxString_in_helper(obj1);
19770 if (arg2 == NULL) SWIG_fail;
19771 temp2 = true;
19772 }
19773 {
19774 PyThreadState* __tstate = wxPyBeginAllowThreads();
19775 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
19776
19777 wxPyEndAllowThreads(__tstate);
19778 if (PyErr_Occurred()) SWIG_fail;
19779 }
19780 {
19781 wxColour * resultptr;
19782 resultptr = new wxColour(static_cast<wxColour & >(result));
19783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19784 }
19785 {
19786 if (temp2)
19787 delete arg2;
19788 }
19789 return resultobj;
19790 fail:
19791 {
19792 if (temp2)
19793 delete arg2;
19794 }
19795 return NULL;
19796 }
19797
19798
19799 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj = NULL;
19801 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19802 wxColour *arg2 = 0 ;
19803 wxString result;
19804 wxColour temp2 ;
19805 PyObject * obj0 = 0 ;
19806 PyObject * obj1 = 0 ;
19807 char *kwnames[] = {
19808 (char *) "self",(char *) "colour", NULL
19809 };
19810
19811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
19812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19813 if (SWIG_arg_fail(1)) SWIG_fail;
19814 {
19815 arg2 = &temp2;
19816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19817 }
19818 {
19819 PyThreadState* __tstate = wxPyBeginAllowThreads();
19820 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
19821
19822 wxPyEndAllowThreads(__tstate);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 {
19826 #if wxUSE_UNICODE
19827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19828 #else
19829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19830 #endif
19831 }
19832 return resultobj;
19833 fail:
19834 return NULL;
19835 }
19836
19837
19838 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
19839 PyObject *resultobj = NULL;
19840 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19841 wxString *arg2 = 0 ;
19842 wxColour *arg3 = 0 ;
19843 bool temp2 = false ;
19844 wxColour temp3 ;
19845 PyObject * obj0 = 0 ;
19846 PyObject * obj1 = 0 ;
19847 PyObject * obj2 = 0 ;
19848 char *kwnames[] = {
19849 (char *) "self",(char *) "name",(char *) "colour", NULL
19850 };
19851
19852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
19853 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19854 if (SWIG_arg_fail(1)) SWIG_fail;
19855 {
19856 arg2 = wxString_in_helper(obj1);
19857 if (arg2 == NULL) SWIG_fail;
19858 temp2 = true;
19859 }
19860 {
19861 arg3 = &temp3;
19862 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19863 }
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
19867
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 Py_INCREF(Py_None); resultobj = Py_None;
19872 {
19873 if (temp2)
19874 delete arg2;
19875 }
19876 return resultobj;
19877 fail:
19878 {
19879 if (temp2)
19880 delete arg2;
19881 }
19882 return NULL;
19883 }
19884
19885
19886 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = NULL;
19888 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19889 wxString *arg2 = 0 ;
19890 int arg3 ;
19891 int arg4 ;
19892 int arg5 ;
19893 bool temp2 = false ;
19894 PyObject * obj0 = 0 ;
19895 PyObject * obj1 = 0 ;
19896 PyObject * obj2 = 0 ;
19897 PyObject * obj3 = 0 ;
19898 PyObject * obj4 = 0 ;
19899 char *kwnames[] = {
19900 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
19901 };
19902
19903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
19904 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19905 if (SWIG_arg_fail(1)) SWIG_fail;
19906 {
19907 arg2 = wxString_in_helper(obj1);
19908 if (arg2 == NULL) SWIG_fail;
19909 temp2 = true;
19910 }
19911 {
19912 arg3 = static_cast<int >(SWIG_As_int(obj2));
19913 if (SWIG_arg_fail(3)) SWIG_fail;
19914 }
19915 {
19916 arg4 = static_cast<int >(SWIG_As_int(obj3));
19917 if (SWIG_arg_fail(4)) SWIG_fail;
19918 }
19919 {
19920 arg5 = static_cast<int >(SWIG_As_int(obj4));
19921 if (SWIG_arg_fail(5)) SWIG_fail;
19922 }
19923 {
19924 PyThreadState* __tstate = wxPyBeginAllowThreads();
19925 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
19926
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 Py_INCREF(Py_None); resultobj = Py_None;
19931 {
19932 if (temp2)
19933 delete arg2;
19934 }
19935 return resultobj;
19936 fail:
19937 {
19938 if (temp2)
19939 delete arg2;
19940 }
19941 return NULL;
19942 }
19943
19944
19945 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
19946 PyObject *obj;
19947 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19948 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
19949 Py_INCREF(obj);
19950 return Py_BuildValue((char *)"");
19951 }
19952 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
19953 PyObject *resultobj = NULL;
19954 wxFontList *arg1 = (wxFontList *) 0 ;
19955 wxFont *arg2 = (wxFont *) 0 ;
19956 PyObject * obj0 = 0 ;
19957 PyObject * obj1 = 0 ;
19958 char *kwnames[] = {
19959 (char *) "self",(char *) "font", NULL
19960 };
19961
19962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
19963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
19964 if (SWIG_arg_fail(1)) SWIG_fail;
19965 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
19966 if (SWIG_arg_fail(2)) SWIG_fail;
19967 {
19968 PyThreadState* __tstate = wxPyBeginAllowThreads();
19969 (arg1)->AddFont(arg2);
19970
19971 wxPyEndAllowThreads(__tstate);
19972 if (PyErr_Occurred()) SWIG_fail;
19973 }
19974 Py_INCREF(Py_None); resultobj = Py_None;
19975 return resultobj;
19976 fail:
19977 return NULL;
19978 }
19979
19980
19981 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
19982 PyObject *resultobj = NULL;
19983 wxFontList *arg1 = (wxFontList *) 0 ;
19984 int arg2 ;
19985 int arg3 ;
19986 int arg4 ;
19987 int arg5 ;
19988 bool arg6 = (bool) false ;
19989 wxString const &arg7_defvalue = wxPyEmptyString ;
19990 wxString *arg7 = (wxString *) &arg7_defvalue ;
19991 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
19992 wxFont *result;
19993 bool temp7 = false ;
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 PyObject * obj2 = 0 ;
19997 PyObject * obj3 = 0 ;
19998 PyObject * obj4 = 0 ;
19999 PyObject * obj5 = 0 ;
20000 PyObject * obj6 = 0 ;
20001 PyObject * obj7 = 0 ;
20002 char *kwnames[] = {
20003 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
20004 };
20005
20006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20008 if (SWIG_arg_fail(1)) SWIG_fail;
20009 {
20010 arg2 = static_cast<int >(SWIG_As_int(obj1));
20011 if (SWIG_arg_fail(2)) SWIG_fail;
20012 }
20013 {
20014 arg3 = static_cast<int >(SWIG_As_int(obj2));
20015 if (SWIG_arg_fail(3)) SWIG_fail;
20016 }
20017 {
20018 arg4 = static_cast<int >(SWIG_As_int(obj3));
20019 if (SWIG_arg_fail(4)) SWIG_fail;
20020 }
20021 {
20022 arg5 = static_cast<int >(SWIG_As_int(obj4));
20023 if (SWIG_arg_fail(5)) SWIG_fail;
20024 }
20025 if (obj5) {
20026 {
20027 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
20028 if (SWIG_arg_fail(6)) SWIG_fail;
20029 }
20030 }
20031 if (obj6) {
20032 {
20033 arg7 = wxString_in_helper(obj6);
20034 if (arg7 == NULL) SWIG_fail;
20035 temp7 = true;
20036 }
20037 }
20038 if (obj7) {
20039 {
20040 arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7));
20041 if (SWIG_arg_fail(8)) SWIG_fail;
20042 }
20043 }
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
20047
20048 wxPyEndAllowThreads(__tstate);
20049 if (PyErr_Occurred()) SWIG_fail;
20050 }
20051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
20052 {
20053 if (temp7)
20054 delete arg7;
20055 }
20056 return resultobj;
20057 fail:
20058 {
20059 if (temp7)
20060 delete arg7;
20061 }
20062 return NULL;
20063 }
20064
20065
20066 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
20067 PyObject *resultobj = NULL;
20068 wxFontList *arg1 = (wxFontList *) 0 ;
20069 wxFont *arg2 = (wxFont *) 0 ;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 char *kwnames[] = {
20073 (char *) "self",(char *) "font", NULL
20074 };
20075
20076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
20077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20078 if (SWIG_arg_fail(1)) SWIG_fail;
20079 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20080 if (SWIG_arg_fail(2)) SWIG_fail;
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 (arg1)->RemoveFont(arg2);
20084
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 Py_INCREF(Py_None); resultobj = Py_None;
20089 return resultobj;
20090 fail:
20091 return NULL;
20092 }
20093
20094
20095 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20096 PyObject *resultobj = NULL;
20097 wxFontList *arg1 = (wxFontList *) 0 ;
20098 int result;
20099 PyObject * obj0 = 0 ;
20100 char *kwnames[] = {
20101 (char *) "self", NULL
20102 };
20103
20104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
20105 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20106 if (SWIG_arg_fail(1)) SWIG_fail;
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 result = (int)(arg1)->GetCount();
20110
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 {
20115 resultobj = SWIG_From_int(static_cast<int >(result));
20116 }
20117 return resultobj;
20118 fail:
20119 return NULL;
20120 }
20121
20122
20123 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
20124 PyObject *obj;
20125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20126 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
20127 Py_INCREF(obj);
20128 return Py_BuildValue((char *)"");
20129 }
20130 static int _wrap_TheFontList_set(PyObject *) {
20131 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
20132 return 1;
20133 }
20134
20135
20136 static PyObject *_wrap_TheFontList_get(void) {
20137 PyObject *pyobj = NULL;
20138
20139 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
20140 return pyobj;
20141 }
20142
20143
20144 static int _wrap_ThePenList_set(PyObject *) {
20145 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
20146 return 1;
20147 }
20148
20149
20150 static PyObject *_wrap_ThePenList_get(void) {
20151 PyObject *pyobj = NULL;
20152
20153 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
20154 return pyobj;
20155 }
20156
20157
20158 static int _wrap_TheBrushList_set(PyObject *) {
20159 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
20160 return 1;
20161 }
20162
20163
20164 static PyObject *_wrap_TheBrushList_get(void) {
20165 PyObject *pyobj = NULL;
20166
20167 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
20168 return pyobj;
20169 }
20170
20171
20172 static int _wrap_TheColourDatabase_set(PyObject *) {
20173 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
20174 return 1;
20175 }
20176
20177
20178 static PyObject *_wrap_TheColourDatabase_get(void) {
20179 PyObject *pyobj = NULL;
20180
20181 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
20182 return pyobj;
20183 }
20184
20185
20186 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
20187 PyObject *resultobj = NULL;
20188 wxEffects *result;
20189 char *kwnames[] = {
20190 NULL
20191 };
20192
20193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
20194 {
20195 PyThreadState* __tstate = wxPyBeginAllowThreads();
20196 result = (wxEffects *)new wxEffects();
20197
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
20202 return resultobj;
20203 fail:
20204 return NULL;
20205 }
20206
20207
20208 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
20209 PyObject *resultobj = NULL;
20210 wxEffects *arg1 = (wxEffects *) 0 ;
20211 wxColour result;
20212 PyObject * obj0 = 0 ;
20213 char *kwnames[] = {
20214 (char *) "self", NULL
20215 };
20216
20217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
20218 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20219 if (SWIG_arg_fail(1)) SWIG_fail;
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 result = ((wxEffects const *)arg1)->GetHighlightColour();
20223
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 {
20228 wxColour * resultptr;
20229 resultptr = new wxColour(static_cast<wxColour & >(result));
20230 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20231 }
20232 return resultobj;
20233 fail:
20234 return NULL;
20235 }
20236
20237
20238 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20239 PyObject *resultobj = NULL;
20240 wxEffects *arg1 = (wxEffects *) 0 ;
20241 wxColour result;
20242 PyObject * obj0 = 0 ;
20243 char *kwnames[] = {
20244 (char *) "self", NULL
20245 };
20246
20247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
20248 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20249 if (SWIG_arg_fail(1)) SWIG_fail;
20250 {
20251 PyThreadState* __tstate = wxPyBeginAllowThreads();
20252 result = ((wxEffects const *)arg1)->GetLightShadow();
20253
20254 wxPyEndAllowThreads(__tstate);
20255 if (PyErr_Occurred()) SWIG_fail;
20256 }
20257 {
20258 wxColour * resultptr;
20259 resultptr = new wxColour(static_cast<wxColour & >(result));
20260 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20261 }
20262 return resultobj;
20263 fail:
20264 return NULL;
20265 }
20266
20267
20268 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj = NULL;
20270 wxEffects *arg1 = (wxEffects *) 0 ;
20271 wxColour result;
20272 PyObject * obj0 = 0 ;
20273 char *kwnames[] = {
20274 (char *) "self", NULL
20275 };
20276
20277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
20278 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20279 if (SWIG_arg_fail(1)) SWIG_fail;
20280 {
20281 PyThreadState* __tstate = wxPyBeginAllowThreads();
20282 result = ((wxEffects const *)arg1)->GetFaceColour();
20283
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 {
20288 wxColour * resultptr;
20289 resultptr = new wxColour(static_cast<wxColour & >(result));
20290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20291 }
20292 return resultobj;
20293 fail:
20294 return NULL;
20295 }
20296
20297
20298 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20299 PyObject *resultobj = NULL;
20300 wxEffects *arg1 = (wxEffects *) 0 ;
20301 wxColour result;
20302 PyObject * obj0 = 0 ;
20303 char *kwnames[] = {
20304 (char *) "self", NULL
20305 };
20306
20307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
20308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20309 if (SWIG_arg_fail(1)) SWIG_fail;
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 result = ((wxEffects const *)arg1)->GetMediumShadow();
20313
20314 wxPyEndAllowThreads(__tstate);
20315 if (PyErr_Occurred()) SWIG_fail;
20316 }
20317 {
20318 wxColour * resultptr;
20319 resultptr = new wxColour(static_cast<wxColour & >(result));
20320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20321 }
20322 return resultobj;
20323 fail:
20324 return NULL;
20325 }
20326
20327
20328 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20329 PyObject *resultobj = NULL;
20330 wxEffects *arg1 = (wxEffects *) 0 ;
20331 wxColour result;
20332 PyObject * obj0 = 0 ;
20333 char *kwnames[] = {
20334 (char *) "self", NULL
20335 };
20336
20337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
20338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20339 if (SWIG_arg_fail(1)) SWIG_fail;
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 result = ((wxEffects const *)arg1)->GetDarkShadow();
20343
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 {
20348 wxColour * resultptr;
20349 resultptr = new wxColour(static_cast<wxColour & >(result));
20350 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20351 }
20352 return resultobj;
20353 fail:
20354 return NULL;
20355 }
20356
20357
20358 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj = NULL;
20360 wxEffects *arg1 = (wxEffects *) 0 ;
20361 wxColour *arg2 = 0 ;
20362 wxColour temp2 ;
20363 PyObject * obj0 = 0 ;
20364 PyObject * obj1 = 0 ;
20365 char *kwnames[] = {
20366 (char *) "self",(char *) "c", NULL
20367 };
20368
20369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
20370 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20371 if (SWIG_arg_fail(1)) SWIG_fail;
20372 {
20373 arg2 = &temp2;
20374 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20375 }
20376 {
20377 PyThreadState* __tstate = wxPyBeginAllowThreads();
20378 (arg1)->SetHighlightColour((wxColour const &)*arg2);
20379
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 Py_INCREF(Py_None); resultobj = Py_None;
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj = NULL;
20392 wxEffects *arg1 = (wxEffects *) 0 ;
20393 wxColour *arg2 = 0 ;
20394 wxColour temp2 ;
20395 PyObject * obj0 = 0 ;
20396 PyObject * obj1 = 0 ;
20397 char *kwnames[] = {
20398 (char *) "self",(char *) "c", NULL
20399 };
20400
20401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
20402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20403 if (SWIG_arg_fail(1)) SWIG_fail;
20404 {
20405 arg2 = &temp2;
20406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20407 }
20408 {
20409 PyThreadState* __tstate = wxPyBeginAllowThreads();
20410 (arg1)->SetLightShadow((wxColour const &)*arg2);
20411
20412 wxPyEndAllowThreads(__tstate);
20413 if (PyErr_Occurred()) SWIG_fail;
20414 }
20415 Py_INCREF(Py_None); resultobj = Py_None;
20416 return resultobj;
20417 fail:
20418 return NULL;
20419 }
20420
20421
20422 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
20423 PyObject *resultobj = NULL;
20424 wxEffects *arg1 = (wxEffects *) 0 ;
20425 wxColour *arg2 = 0 ;
20426 wxColour temp2 ;
20427 PyObject * obj0 = 0 ;
20428 PyObject * obj1 = 0 ;
20429 char *kwnames[] = {
20430 (char *) "self",(char *) "c", NULL
20431 };
20432
20433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
20434 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20435 if (SWIG_arg_fail(1)) SWIG_fail;
20436 {
20437 arg2 = &temp2;
20438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20439 }
20440 {
20441 PyThreadState* __tstate = wxPyBeginAllowThreads();
20442 (arg1)->SetFaceColour((wxColour const &)*arg2);
20443
20444 wxPyEndAllowThreads(__tstate);
20445 if (PyErr_Occurred()) SWIG_fail;
20446 }
20447 Py_INCREF(Py_None); resultobj = Py_None;
20448 return resultobj;
20449 fail:
20450 return NULL;
20451 }
20452
20453
20454 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20455 PyObject *resultobj = NULL;
20456 wxEffects *arg1 = (wxEffects *) 0 ;
20457 wxColour *arg2 = 0 ;
20458 wxColour temp2 ;
20459 PyObject * obj0 = 0 ;
20460 PyObject * obj1 = 0 ;
20461 char *kwnames[] = {
20462 (char *) "self",(char *) "c", NULL
20463 };
20464
20465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
20466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20467 if (SWIG_arg_fail(1)) SWIG_fail;
20468 {
20469 arg2 = &temp2;
20470 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20471 }
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 (arg1)->SetMediumShadow((wxColour const &)*arg2);
20475
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 Py_INCREF(Py_None); resultobj = Py_None;
20480 return resultobj;
20481 fail:
20482 return NULL;
20483 }
20484
20485
20486 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20487 PyObject *resultobj = NULL;
20488 wxEffects *arg1 = (wxEffects *) 0 ;
20489 wxColour *arg2 = 0 ;
20490 wxColour temp2 ;
20491 PyObject * obj0 = 0 ;
20492 PyObject * obj1 = 0 ;
20493 char *kwnames[] = {
20494 (char *) "self",(char *) "c", NULL
20495 };
20496
20497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
20498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20499 if (SWIG_arg_fail(1)) SWIG_fail;
20500 {
20501 arg2 = &temp2;
20502 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20503 }
20504 {
20505 PyThreadState* __tstate = wxPyBeginAllowThreads();
20506 (arg1)->SetDarkShadow((wxColour const &)*arg2);
20507
20508 wxPyEndAllowThreads(__tstate);
20509 if (PyErr_Occurred()) SWIG_fail;
20510 }
20511 Py_INCREF(Py_None); resultobj = Py_None;
20512 return resultobj;
20513 fail:
20514 return NULL;
20515 }
20516
20517
20518 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj = NULL;
20520 wxEffects *arg1 = (wxEffects *) 0 ;
20521 wxColour *arg2 = 0 ;
20522 wxColour *arg3 = 0 ;
20523 wxColour *arg4 = 0 ;
20524 wxColour *arg5 = 0 ;
20525 wxColour *arg6 = 0 ;
20526 wxColour temp2 ;
20527 wxColour temp3 ;
20528 wxColour temp4 ;
20529 wxColour temp5 ;
20530 wxColour temp6 ;
20531 PyObject * obj0 = 0 ;
20532 PyObject * obj1 = 0 ;
20533 PyObject * obj2 = 0 ;
20534 PyObject * obj3 = 0 ;
20535 PyObject * obj4 = 0 ;
20536 PyObject * obj5 = 0 ;
20537 char *kwnames[] = {
20538 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
20539 };
20540
20541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
20542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20543 if (SWIG_arg_fail(1)) SWIG_fail;
20544 {
20545 arg2 = &temp2;
20546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20547 }
20548 {
20549 arg3 = &temp3;
20550 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20551 }
20552 {
20553 arg4 = &temp4;
20554 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
20555 }
20556 {
20557 arg5 = &temp5;
20558 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
20559 }
20560 {
20561 arg6 = &temp6;
20562 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
20563 }
20564 {
20565 PyThreadState* __tstate = wxPyBeginAllowThreads();
20566 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
20567
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 Py_INCREF(Py_None); resultobj = Py_None;
20572 return resultobj;
20573 fail:
20574 return NULL;
20575 }
20576
20577
20578 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
20579 PyObject *resultobj = NULL;
20580 wxEffects *arg1 = (wxEffects *) 0 ;
20581 wxDC *arg2 = 0 ;
20582 wxRect *arg3 = 0 ;
20583 int arg4 = (int) 1 ;
20584 wxRect temp3 ;
20585 PyObject * obj0 = 0 ;
20586 PyObject * obj1 = 0 ;
20587 PyObject * obj2 = 0 ;
20588 PyObject * obj3 = 0 ;
20589 char *kwnames[] = {
20590 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
20591 };
20592
20593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20594 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20595 if (SWIG_arg_fail(1)) SWIG_fail;
20596 {
20597 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20598 if (SWIG_arg_fail(2)) SWIG_fail;
20599 if (arg2 == NULL) {
20600 SWIG_null_ref("wxDC");
20601 }
20602 if (SWIG_arg_fail(2)) SWIG_fail;
20603 }
20604 {
20605 arg3 = &temp3;
20606 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20607 }
20608 if (obj3) {
20609 {
20610 arg4 = static_cast<int >(SWIG_As_int(obj3));
20611 if (SWIG_arg_fail(4)) SWIG_fail;
20612 }
20613 }
20614 {
20615 PyThreadState* __tstate = wxPyBeginAllowThreads();
20616 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
20617
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 Py_INCREF(Py_None); resultobj = Py_None;
20622 return resultobj;
20623 fail:
20624 return NULL;
20625 }
20626
20627
20628 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
20629 PyObject *resultobj = NULL;
20630 wxEffects *arg1 = (wxEffects *) 0 ;
20631 wxRect *arg2 = 0 ;
20632 wxDC *arg3 = 0 ;
20633 wxBitmap *arg4 = 0 ;
20634 bool result;
20635 wxRect temp2 ;
20636 PyObject * obj0 = 0 ;
20637 PyObject * obj1 = 0 ;
20638 PyObject * obj2 = 0 ;
20639 PyObject * obj3 = 0 ;
20640 char *kwnames[] = {
20641 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
20642 };
20643
20644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20645 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20646 if (SWIG_arg_fail(1)) SWIG_fail;
20647 {
20648 arg2 = &temp2;
20649 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20650 }
20651 {
20652 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20653 if (SWIG_arg_fail(3)) SWIG_fail;
20654 if (arg3 == NULL) {
20655 SWIG_null_ref("wxDC");
20656 }
20657 if (SWIG_arg_fail(3)) SWIG_fail;
20658 }
20659 {
20660 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
20661 if (SWIG_arg_fail(4)) SWIG_fail;
20662 if (arg4 == NULL) {
20663 SWIG_null_ref("wxBitmap");
20664 }
20665 if (SWIG_arg_fail(4)) SWIG_fail;
20666 }
20667 {
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
20670
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 {
20675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20676 }
20677 return resultobj;
20678 fail:
20679 return NULL;
20680 }
20681
20682
20683 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
20684 PyObject *obj;
20685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20686 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
20687 Py_INCREF(obj);
20688 return Py_BuildValue((char *)"");
20689 }
20690 static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
20691 PyObject *resultobj = NULL;
20692 int arg1 ;
20693 int arg2 ;
20694 bool arg3 ;
20695 wxSplitterRenderParams *result;
20696 PyObject * obj0 = 0 ;
20697 PyObject * obj1 = 0 ;
20698 PyObject * obj2 = 0 ;
20699 char *kwnames[] = {
20700 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
20701 };
20702
20703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail;
20704 {
20705 arg1 = static_cast<int >(SWIG_As_int(obj0));
20706 if (SWIG_arg_fail(1)) SWIG_fail;
20707 }
20708 {
20709 arg2 = static_cast<int >(SWIG_As_int(obj1));
20710 if (SWIG_arg_fail(2)) SWIG_fail;
20711 }
20712 {
20713 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
20714 if (SWIG_arg_fail(3)) SWIG_fail;
20715 }
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
20719
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1);
20724 return resultobj;
20725 fail:
20726 return NULL;
20727 }
20728
20729
20730 static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj = NULL;
20732 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20733 PyObject * obj0 = 0 ;
20734 char *kwnames[] = {
20735 (char *) "self", NULL
20736 };
20737
20738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail;
20739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20740 if (SWIG_arg_fail(1)) SWIG_fail;
20741 {
20742 PyThreadState* __tstate = wxPyBeginAllowThreads();
20743 delete arg1;
20744
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 Py_INCREF(Py_None); resultobj = Py_None;
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj = NULL;
20757 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20758 int result;
20759 PyObject * obj0 = 0 ;
20760 char *kwnames[] = {
20761 (char *) "self", NULL
20762 };
20763
20764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail;
20765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20766 if (SWIG_arg_fail(1)) SWIG_fail;
20767 result = (int)(int) ((arg1)->widthSash);
20768
20769 {
20770 resultobj = SWIG_From_int(static_cast<int >(result));
20771 }
20772 return resultobj;
20773 fail:
20774 return NULL;
20775 }
20776
20777
20778 static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) {
20779 PyObject *resultobj = NULL;
20780 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20781 int result;
20782 PyObject * obj0 = 0 ;
20783 char *kwnames[] = {
20784 (char *) "self", NULL
20785 };
20786
20787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail;
20788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20789 if (SWIG_arg_fail(1)) SWIG_fail;
20790 result = (int)(int) ((arg1)->border);
20791
20792 {
20793 resultobj = SWIG_From_int(static_cast<int >(result));
20794 }
20795 return resultobj;
20796 fail:
20797 return NULL;
20798 }
20799
20800
20801 static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) {
20802 PyObject *resultobj = NULL;
20803 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20804 bool result;
20805 PyObject * obj0 = 0 ;
20806 char *kwnames[] = {
20807 (char *) "self", NULL
20808 };
20809
20810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail;
20811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20812 if (SWIG_arg_fail(1)) SWIG_fail;
20813 result = (bool)(bool) ((arg1)->isHotSensitive);
20814
20815 {
20816 resultobj = SWIG_From_bool(static_cast<bool >(result));
20817 }
20818 return resultobj;
20819 fail:
20820 return NULL;
20821 }
20822
20823
20824 static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) {
20825 PyObject *obj;
20826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20827 SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj);
20828 Py_INCREF(obj);
20829 return Py_BuildValue((char *)"");
20830 }
20831 static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
20832 PyObject *resultobj = NULL;
20833 int arg1 ;
20834 int arg2 ;
20835 wxRendererVersion *result;
20836 PyObject * obj0 = 0 ;
20837 PyObject * obj1 = 0 ;
20838 char *kwnames[] = {
20839 (char *) "version_",(char *) "age_", NULL
20840 };
20841
20842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail;
20843 {
20844 arg1 = static_cast<int >(SWIG_As_int(obj0));
20845 if (SWIG_arg_fail(1)) SWIG_fail;
20846 }
20847 {
20848 arg2 = static_cast<int >(SWIG_As_int(obj1));
20849 if (SWIG_arg_fail(2)) SWIG_fail;
20850 }
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
20854
20855 wxPyEndAllowThreads(__tstate);
20856 if (PyErr_Occurred()) SWIG_fail;
20857 }
20858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1);
20859 return resultobj;
20860 fail:
20861 return NULL;
20862 }
20863
20864
20865 static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
20866 PyObject *resultobj = NULL;
20867 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
20868 PyObject * obj0 = 0 ;
20869 char *kwnames[] = {
20870 (char *) "self", NULL
20871 };
20872
20873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail;
20874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
20875 if (SWIG_arg_fail(1)) SWIG_fail;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 delete arg1;
20879
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 Py_INCREF(Py_None); resultobj = Py_None;
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj = NULL;
20892 wxRendererVersion *arg1 = 0 ;
20893 bool result;
20894 PyObject * obj0 = 0 ;
20895 char *kwnames[] = {
20896 (char *) "ver", NULL
20897 };
20898
20899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail;
20900 {
20901 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
20902 if (SWIG_arg_fail(1)) SWIG_fail;
20903 if (arg1 == NULL) {
20904 SWIG_null_ref("wxRendererVersion");
20905 }
20906 if (SWIG_arg_fail(1)) SWIG_fail;
20907 }
20908 {
20909 PyThreadState* __tstate = wxPyBeginAllowThreads();
20910 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
20911
20912 wxPyEndAllowThreads(__tstate);
20913 if (PyErr_Occurred()) SWIG_fail;
20914 }
20915 {
20916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20917 }
20918 return resultobj;
20919 fail:
20920 return NULL;
20921 }
20922
20923
20924 static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) {
20925 PyObject *resultobj = NULL;
20926 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
20927 int result;
20928 PyObject * obj0 = 0 ;
20929 char *kwnames[] = {
20930 (char *) "self", NULL
20931 };
20932
20933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail;
20934 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
20935 if (SWIG_arg_fail(1)) SWIG_fail;
20936 result = (int)(int) ((arg1)->version);
20937
20938 {
20939 resultobj = SWIG_From_int(static_cast<int >(result));
20940 }
20941 return resultobj;
20942 fail:
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) {
20948 PyObject *resultobj = NULL;
20949 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
20950 int result;
20951 PyObject * obj0 = 0 ;
20952 char *kwnames[] = {
20953 (char *) "self", NULL
20954 };
20955
20956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail;
20957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
20958 if (SWIG_arg_fail(1)) SWIG_fail;
20959 result = (int)(int) ((arg1)->age);
20960
20961 {
20962 resultobj = SWIG_From_int(static_cast<int >(result));
20963 }
20964 return resultobj;
20965 fail:
20966 return NULL;
20967 }
20968
20969
20970 static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) {
20971 PyObject *obj;
20972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20973 SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj);
20974 Py_INCREF(obj);
20975 return Py_BuildValue((char *)"");
20976 }
20977 static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) {
20978 PyObject *resultobj = NULL;
20979 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
20980 wxWindow *arg2 = (wxWindow *) 0 ;
20981 wxDC *arg3 = 0 ;
20982 wxRect *arg4 = 0 ;
20983 int arg5 = (int) 0 ;
20984 wxRect temp4 ;
20985 PyObject * obj0 = 0 ;
20986 PyObject * obj1 = 0 ;
20987 PyObject * obj2 = 0 ;
20988 PyObject * obj3 = 0 ;
20989 PyObject * obj4 = 0 ;
20990 char *kwnames[] = {
20991 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
20992 };
20993
20994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
20996 if (SWIG_arg_fail(1)) SWIG_fail;
20997 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
20998 if (SWIG_arg_fail(2)) SWIG_fail;
20999 {
21000 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21001 if (SWIG_arg_fail(3)) SWIG_fail;
21002 if (arg3 == NULL) {
21003 SWIG_null_ref("wxDC");
21004 }
21005 if (SWIG_arg_fail(3)) SWIG_fail;
21006 }
21007 {
21008 arg4 = &temp4;
21009 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21010 }
21011 if (obj4) {
21012 {
21013 arg5 = static_cast<int >(SWIG_As_int(obj4));
21014 if (SWIG_arg_fail(5)) SWIG_fail;
21015 }
21016 }
21017 {
21018 PyThreadState* __tstate = wxPyBeginAllowThreads();
21019 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21020
21021 wxPyEndAllowThreads(__tstate);
21022 if (PyErr_Occurred()) SWIG_fail;
21023 }
21024 Py_INCREF(Py_None); resultobj = Py_None;
21025 return resultobj;
21026 fail:
21027 return NULL;
21028 }
21029
21030
21031 static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj = NULL;
21033 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21034 wxWindow *arg2 = (wxWindow *) 0 ;
21035 wxDC *arg3 = 0 ;
21036 wxRect *arg4 = 0 ;
21037 int arg5 = (int) 0 ;
21038 wxRect temp4 ;
21039 PyObject * obj0 = 0 ;
21040 PyObject * obj1 = 0 ;
21041 PyObject * obj2 = 0 ;
21042 PyObject * obj3 = 0 ;
21043 PyObject * obj4 = 0 ;
21044 char *kwnames[] = {
21045 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21046 };
21047
21048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21050 if (SWIG_arg_fail(1)) SWIG_fail;
21051 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21052 if (SWIG_arg_fail(2)) SWIG_fail;
21053 {
21054 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21055 if (SWIG_arg_fail(3)) SWIG_fail;
21056 if (arg3 == NULL) {
21057 SWIG_null_ref("wxDC");
21058 }
21059 if (SWIG_arg_fail(3)) SWIG_fail;
21060 }
21061 {
21062 arg4 = &temp4;
21063 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21064 }
21065 if (obj4) {
21066 {
21067 arg5 = static_cast<int >(SWIG_As_int(obj4));
21068 if (SWIG_arg_fail(5)) SWIG_fail;
21069 }
21070 }
21071 {
21072 PyThreadState* __tstate = wxPyBeginAllowThreads();
21073 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21074
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 Py_INCREF(Py_None); resultobj = Py_None;
21079 return resultobj;
21080 fail:
21081 return NULL;
21082 }
21083
21084
21085 static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) {
21086 PyObject *resultobj = NULL;
21087 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21088 wxWindow *arg2 = (wxWindow *) 0 ;
21089 wxDC *arg3 = 0 ;
21090 wxRect *arg4 = 0 ;
21091 int arg5 = (int) 0 ;
21092 wxRect temp4 ;
21093 PyObject * obj0 = 0 ;
21094 PyObject * obj1 = 0 ;
21095 PyObject * obj2 = 0 ;
21096 PyObject * obj3 = 0 ;
21097 PyObject * obj4 = 0 ;
21098 char *kwnames[] = {
21099 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21100 };
21101
21102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21104 if (SWIG_arg_fail(1)) SWIG_fail;
21105 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21106 if (SWIG_arg_fail(2)) SWIG_fail;
21107 {
21108 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21109 if (SWIG_arg_fail(3)) SWIG_fail;
21110 if (arg3 == NULL) {
21111 SWIG_null_ref("wxDC");
21112 }
21113 if (SWIG_arg_fail(3)) SWIG_fail;
21114 }
21115 {
21116 arg4 = &temp4;
21117 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21118 }
21119 if (obj4) {
21120 {
21121 arg5 = static_cast<int >(SWIG_As_int(obj4));
21122 if (SWIG_arg_fail(5)) SWIG_fail;
21123 }
21124 }
21125 {
21126 PyThreadState* __tstate = wxPyBeginAllowThreads();
21127 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
21128
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 Py_INCREF(Py_None); resultobj = Py_None;
21133 return resultobj;
21134 fail:
21135 return NULL;
21136 }
21137
21138
21139 static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = NULL;
21141 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21142 wxWindow *arg2 = (wxWindow *) 0 ;
21143 wxDC *arg3 = 0 ;
21144 wxSize *arg4 = 0 ;
21145 int arg5 ;
21146 wxOrientation arg6 ;
21147 int arg7 = (int) 0 ;
21148 wxSize temp4 ;
21149 PyObject * obj0 = 0 ;
21150 PyObject * obj1 = 0 ;
21151 PyObject * obj2 = 0 ;
21152 PyObject * obj3 = 0 ;
21153 PyObject * obj4 = 0 ;
21154 PyObject * obj5 = 0 ;
21155 PyObject * obj6 = 0 ;
21156 char *kwnames[] = {
21157 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
21158 };
21159
21160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21162 if (SWIG_arg_fail(1)) SWIG_fail;
21163 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21164 if (SWIG_arg_fail(2)) SWIG_fail;
21165 {
21166 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21167 if (SWIG_arg_fail(3)) SWIG_fail;
21168 if (arg3 == NULL) {
21169 SWIG_null_ref("wxDC");
21170 }
21171 if (SWIG_arg_fail(3)) SWIG_fail;
21172 }
21173 {
21174 arg4 = &temp4;
21175 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21176 }
21177 {
21178 arg5 = static_cast<int >(SWIG_As_int(obj4));
21179 if (SWIG_arg_fail(5)) SWIG_fail;
21180 }
21181 {
21182 arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5));
21183 if (SWIG_arg_fail(6)) SWIG_fail;
21184 }
21185 if (obj6) {
21186 {
21187 arg7 = static_cast<int >(SWIG_As_int(obj6));
21188 if (SWIG_arg_fail(7)) SWIG_fail;
21189 }
21190 }
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
21194
21195 wxPyEndAllowThreads(__tstate);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 Py_INCREF(Py_None); resultobj = Py_None;
21199 return resultobj;
21200 fail:
21201 return NULL;
21202 }
21203
21204
21205 static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) {
21206 PyObject *resultobj = NULL;
21207 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21208 wxWindow *arg2 = (wxWindow *) 0 ;
21209 wxDC *arg3 = 0 ;
21210 wxRect *arg4 = 0 ;
21211 int arg5 = (int) 0 ;
21212 wxRect temp4 ;
21213 PyObject * obj0 = 0 ;
21214 PyObject * obj1 = 0 ;
21215 PyObject * obj2 = 0 ;
21216 PyObject * obj3 = 0 ;
21217 PyObject * obj4 = 0 ;
21218 char *kwnames[] = {
21219 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21220 };
21221
21222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21223 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21224 if (SWIG_arg_fail(1)) SWIG_fail;
21225 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21226 if (SWIG_arg_fail(2)) SWIG_fail;
21227 {
21228 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21229 if (SWIG_arg_fail(3)) SWIG_fail;
21230 if (arg3 == NULL) {
21231 SWIG_null_ref("wxDC");
21232 }
21233 if (SWIG_arg_fail(3)) SWIG_fail;
21234 }
21235 {
21236 arg4 = &temp4;
21237 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21238 }
21239 if (obj4) {
21240 {
21241 arg5 = static_cast<int >(SWIG_As_int(obj4));
21242 if (SWIG_arg_fail(5)) SWIG_fail;
21243 }
21244 }
21245 {
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21248
21249 wxPyEndAllowThreads(__tstate);
21250 if (PyErr_Occurred()) SWIG_fail;
21251 }
21252 Py_INCREF(Py_None); resultobj = Py_None;
21253 return resultobj;
21254 fail:
21255 return NULL;
21256 }
21257
21258
21259 static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) {
21260 PyObject *resultobj = NULL;
21261 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21262 wxWindow *arg2 = (wxWindow *) 0 ;
21263 wxDC *arg3 = 0 ;
21264 wxRect *arg4 = 0 ;
21265 int arg5 = (int) 0 ;
21266 wxRect temp4 ;
21267 PyObject * obj0 = 0 ;
21268 PyObject * obj1 = 0 ;
21269 PyObject * obj2 = 0 ;
21270 PyObject * obj3 = 0 ;
21271 PyObject * obj4 = 0 ;
21272 char *kwnames[] = {
21273 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21274 };
21275
21276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21277 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21278 if (SWIG_arg_fail(1)) SWIG_fail;
21279 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21280 if (SWIG_arg_fail(2)) SWIG_fail;
21281 {
21282 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21283 if (SWIG_arg_fail(3)) SWIG_fail;
21284 if (arg3 == NULL) {
21285 SWIG_null_ref("wxDC");
21286 }
21287 if (SWIG_arg_fail(3)) SWIG_fail;
21288 }
21289 {
21290 arg4 = &temp4;
21291 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21292 }
21293 if (obj4) {
21294 {
21295 arg5 = static_cast<int >(SWIG_As_int(obj4));
21296 if (SWIG_arg_fail(5)) SWIG_fail;
21297 }
21298 }
21299 {
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
21302
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 Py_INCREF(Py_None); resultobj = Py_None;
21307 return resultobj;
21308 fail:
21309 return NULL;
21310 }
21311
21312
21313 static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj = NULL;
21315 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21316 wxWindow *arg2 = (wxWindow *) 0 ;
21317 SwigValueWrapper<wxSplitterRenderParams > result;
21318 PyObject * obj0 = 0 ;
21319 PyObject * obj1 = 0 ;
21320 char *kwnames[] = {
21321 (char *) "self",(char *) "win", NULL
21322 };
21323
21324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail;
21325 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21326 if (SWIG_arg_fail(1)) SWIG_fail;
21327 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21328 if (SWIG_arg_fail(2)) SWIG_fail;
21329 {
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
21332
21333 wxPyEndAllowThreads(__tstate);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 {
21337 wxSplitterRenderParams * resultptr;
21338 resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result));
21339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1);
21340 }
21341 return resultobj;
21342 fail:
21343 return NULL;
21344 }
21345
21346
21347 static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) {
21348 PyObject *resultobj = NULL;
21349 wxRendererNative *result;
21350 char *kwnames[] = {
21351 NULL
21352 };
21353
21354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail;
21355 {
21356 PyThreadState* __tstate = wxPyBeginAllowThreads();
21357 {
21358 wxRendererNative &_result_ref = wxRendererNative::Get();
21359 result = (wxRendererNative *) &_result_ref;
21360 }
21361
21362 wxPyEndAllowThreads(__tstate);
21363 if (PyErr_Occurred()) SWIG_fail;
21364 }
21365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21366 return resultobj;
21367 fail:
21368 return NULL;
21369 }
21370
21371
21372 static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
21373 PyObject *resultobj = NULL;
21374 wxRendererNative *result;
21375 char *kwnames[] = {
21376 NULL
21377 };
21378
21379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail;
21380 {
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 {
21383 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
21384 result = (wxRendererNative *) &_result_ref;
21385 }
21386
21387 wxPyEndAllowThreads(__tstate);
21388 if (PyErr_Occurred()) SWIG_fail;
21389 }
21390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21391 return resultobj;
21392 fail:
21393 return NULL;
21394 }
21395
21396
21397 static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
21398 PyObject *resultobj = NULL;
21399 wxRendererNative *result;
21400 char *kwnames[] = {
21401 NULL
21402 };
21403
21404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail;
21405 {
21406 PyThreadState* __tstate = wxPyBeginAllowThreads();
21407 {
21408 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
21409 result = (wxRendererNative *) &_result_ref;
21410 }
21411
21412 wxPyEndAllowThreads(__tstate);
21413 if (PyErr_Occurred()) SWIG_fail;
21414 }
21415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21416 return resultobj;
21417 fail:
21418 return NULL;
21419 }
21420
21421
21422 static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21423 PyObject *resultobj = NULL;
21424 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21425 wxRendererNative *result;
21426 PyObject * obj0 = 0 ;
21427 char *kwnames[] = {
21428 (char *) "renderer", NULL
21429 };
21430
21431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail;
21432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21433 if (SWIG_arg_fail(1)) SWIG_fail;
21434 {
21435 PyThreadState* __tstate = wxPyBeginAllowThreads();
21436 result = (wxRendererNative *)wxRendererNative::Set(arg1);
21437
21438 wxPyEndAllowThreads(__tstate);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21442 return resultobj;
21443 fail:
21444 return NULL;
21445 }
21446
21447
21448 static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj = NULL;
21450 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21451 SwigValueWrapper<wxRendererVersion > result;
21452 PyObject * obj0 = 0 ;
21453 char *kwnames[] = {
21454 (char *) "self", NULL
21455 };
21456
21457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail;
21458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21459 if (SWIG_arg_fail(1)) SWIG_fail;
21460 {
21461 PyThreadState* __tstate = wxPyBeginAllowThreads();
21462 result = ((wxRendererNative const *)arg1)->GetVersion();
21463
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 {
21468 wxRendererVersion * resultptr;
21469 resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result));
21470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1);
21471 }
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) {
21479 PyObject *obj;
21480 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21481 SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj);
21482 Py_INCREF(obj);
21483 return Py_BuildValue((char *)"");
21484 }
21485 static PyMethodDef SwigMethods[] = {
21486 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
21487 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
21488 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
21489 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
21490 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
21491 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
21492 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
21493 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
21494 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21495 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
21496 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
21497 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
21498 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
21499 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21500 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
21501 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21502 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
21503 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
21504 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21505 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21506 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
21507 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21508 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
21509 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
21510 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
21511 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
21512 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21513 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
21514 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21515 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
21516 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
21517 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
21518 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
21519 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21520 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
21521 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21522 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21523 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21524 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
21525 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21526 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
21527 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21528 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21529 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21530 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21531 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21532 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL},
21533 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21534 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21535 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
21536 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
21537 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21538 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
21539 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21540 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21541 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
21542 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21543 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21544 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
21545 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
21546 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21547 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
21548 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21549 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21550 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21551 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21552 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
21553 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
21554 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
21555 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21556 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21557 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21558 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21559 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21560 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
21561 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
21562 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
21563 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
21564 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21565 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
21566 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
21567 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
21568 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21569 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21570 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21571 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21572 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21573 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21574 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21575 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
21576 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
21577 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
21578 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
21579 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
21580 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21581 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21582 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21583 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
21584 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
21585 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21586 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21587 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21588 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21589 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21590 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21591 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21592 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21593 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
21594 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21595 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21596 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
21597 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
21598 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
21599 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
21600 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
21601 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
21602 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
21603 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
21604 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21605 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
21606 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21607 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
21608 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21609 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
21610 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
21611 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
21612 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
21613 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
21614 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21615 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
21616 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
21617 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21618 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
21619 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
21620 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
21621 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
21622 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
21623 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
21624 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21625 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
21626 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
21627 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
21628 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
21629 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
21630 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21631 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
21632 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
21633 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
21634 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21635 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
21636 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
21637 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21638 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
21639 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
21640 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21641 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21642 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21643 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
21644 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
21645 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
21646 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
21647 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
21648 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
21649 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
21650 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21651 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
21652 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21653 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
21654 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
21655 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
21656 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
21657 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
21658 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
21659 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21660 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21661 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
21662 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
21663 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21664 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21665 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21666 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21667 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21668 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21669 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21670 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21671 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21672 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21673 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21674 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21675 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21676 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21677 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
21678 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
21679 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
21680 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
21681 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
21682 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
21683 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
21684 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
21685 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
21686 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
21687 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21688 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21689 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
21690 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
21691 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
21692 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21693 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21694 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
21695 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
21696 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
21697 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
21698 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21699 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
21700 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21701 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
21702 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
21703 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
21704 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
21705 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
21706 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21707 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
21708 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
21709 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
21710 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
21711 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
21712 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
21713 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21714 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
21715 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
21716 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21717 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21718 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21719 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21720 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21721 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21722 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21723 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
21724 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21725 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21726 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21727 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21728 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21729 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21730 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21731 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21732 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21733 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21734 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21735 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21736 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21737 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21738 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21739 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21740 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21741 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21742 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21743 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
21744 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21745 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
21746 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
21747 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
21748 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
21749 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
21750 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21751 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21752 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
21753 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
21754 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
21755 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21756 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
21757 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
21758 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
21759 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
21760 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
21761 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
21762 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
21763 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
21764 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
21765 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
21766 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
21767 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
21768 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
21769 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
21770 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
21771 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
21772 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
21773 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21774 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
21775 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
21776 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
21777 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
21778 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
21779 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
21780 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
21781 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
21782 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
21783 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21784 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
21785 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21786 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
21787 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
21788 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
21789 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
21790 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
21791 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
21792 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
21793 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
21794 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
21795 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
21796 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
21797 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
21798 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
21799 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
21800 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
21801 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
21802 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21803 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
21804 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21805 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
21806 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
21807 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
21808 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21809 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
21810 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21811 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
21812 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
21813 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
21814 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21815 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21816 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21817 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
21818 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
21819 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21820 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
21821 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
21822 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21823 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
21824 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
21825 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
21826 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
21827 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21828 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21829 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21830 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21831 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21832 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
21833 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21834 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
21835 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21836 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
21837 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21838 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21839 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21840 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21841 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
21842 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
21843 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
21844 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
21845 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
21846 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
21847 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
21848 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
21849 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
21850 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
21851 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
21852 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
21853 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
21854 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21855 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
21856 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
21857 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
21858 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21859 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21860 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
21861 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21862 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21863 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
21864 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
21865 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
21866 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
21867 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21868 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21869 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
21870 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21871 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
21872 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
21873 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
21874 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
21875 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
21876 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
21877 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
21878 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
21879 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21880 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
21881 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21882 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
21883 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21884 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
21885 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
21886 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21887 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
21888 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
21889 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
21890 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
21891 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
21892 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
21893 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
21894 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
21895 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
21896 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
21897 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
21898 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
21899 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21900 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21901 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21902 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21903 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21904 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
21905 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21906 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21907 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
21908 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
21909 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
21910 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
21911 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21912 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21913 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21914 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
21915 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
21916 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
21917 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
21918 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
21919 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
21920 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
21921 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
21922 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
21923 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
21924 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
21925 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
21926 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
21927 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
21928 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
21929 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
21930 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
21931 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
21932 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
21933 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
21934 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
21935 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
21936 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
21937 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
21938 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
21939 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
21940 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
21941 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
21942 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
21943 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
21944 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
21945 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
21946 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
21947 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
21948 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
21949 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
21950 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
21951 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
21952 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
21953 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
21954 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
21955 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
21956 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
21957 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
21958 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
21959 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
21960 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
21961 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
21962 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
21963 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
21964 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
21965 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21966 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21967 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21968 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
21969 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
21970 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
21971 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
21972 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
21973 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21974 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
21975 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
21976 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
21977 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
21978 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21979 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
21980 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21981 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21982 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
21983 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21984 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
21985 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
21986 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
21987 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
21988 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
21989 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
21990 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
21991 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
21992 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
21993 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
21994 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
21995 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
21996 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
21997 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
21998 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
21999 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22000 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22001 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22002 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22003 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22004 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22005 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22006 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22007 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22008 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22009 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
22010 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22011 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
22012 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22013 { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22014 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL},
22015 { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL},
22016 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL},
22017 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
22018 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22019 { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22020 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
22021 { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL},
22022 { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL},
22023 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
22024 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
22025 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
22026 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
22027 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
22028 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
22029 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
22030 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
22031 { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22032 { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
22033 { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL},
22034 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22035 { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22036 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
22037 { NULL, NULL, 0, NULL }
22038 };
22039
22040
22041 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
22042
22043 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
22044 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
22045 }
22046 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
22047 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
22048 }
22049 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
22050 return (void *)((wxGDIObject *) ((wxIcon *) x));
22051 }
22052 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
22053 return (void *)((wxGDIObject *) ((wxPalette *) x));
22054 }
22055 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
22056 return (void *)((wxGDIObject *) ((wxPen *) x));
22057 }
22058 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
22059 return (void *)((wxGDIObject *) ((wxFont *) x));
22060 }
22061 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
22062 return (void *)((wxGDIObject *) ((wxCursor *) x));
22063 }
22064 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
22065 return (void *)((wxGDIObject *) ((wxBitmap *) x));
22066 }
22067 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
22068 return (void *)((wxGDIObject *) ((wxRegion *) x));
22069 }
22070 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
22071 return (void *)((wxGDIObject *) ((wxBrush *) x));
22072 }
22073 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
22074 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
22075 }
22076 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
22077 return (void *)((wxDC *) ((wxScreenDC *) x));
22078 }
22079 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
22080 return (void *)((wxDC *) ((wxMirrorDC *) x));
22081 }
22082 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
22083 return (void *)((wxDC *) ((wxMemoryDC *) x));
22084 }
22085 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
22086 return (void *)((wxDC *) ((wxWindowDC *) x));
22087 }
22088 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
22089 return (void *)((wxDC *) ((wxMetaFileDC *) x));
22090 }
22091 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
22092 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
22093 }
22094 static void *_p_wxClientDCTo_p_wxDC(void *x) {
22095 return (void *)((wxDC *) ((wxClientDC *) x));
22096 }
22097 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
22098 return (void *)((wxDC *) ((wxPaintDC *) x));
22099 }
22100 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
22101 return (void *)((wxDC *) ((wxPostScriptDC *) x));
22102 }
22103 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
22104 return (void *)((wxDC *) ((wxPrinterDC *) x));
22105 }
22106 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
22107 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
22108 }
22109 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
22110 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
22111 }
22112 static void *_p_wxPenTo_p_wxObject(void *x) {
22113 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
22114 }
22115 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
22116 return (void *)((wxObject *) ((wxRegionIterator *) x));
22117 }
22118 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
22119 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
22120 }
22121 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
22122 return (void *)((wxObject *) ((wxSizerItem *) x));
22123 }
22124 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
22125 return (void *)((wxObject *) ((wxColourDatabase *) x));
22126 }
22127 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
22128 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
22129 }
22130 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
22131 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
22132 }
22133 static void *_p_wxIconTo_p_wxObject(void *x) {
22134 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
22135 }
22136 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
22137 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
22138 }
22139 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
22140 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
22141 }
22142 static void *_p_wxSizerTo_p_wxObject(void *x) {
22143 return (void *)((wxObject *) ((wxSizer *) x));
22144 }
22145 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
22146 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
22147 }
22148 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
22149 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
22150 }
22151 static void *_p_wxPenListTo_p_wxObject(void *x) {
22152 return (void *)((wxObject *) ((wxPenList *) x));
22153 }
22154 static void *_p_wxEventTo_p_wxObject(void *x) {
22155 return (void *)((wxObject *) ((wxEvent *) x));
22156 }
22157 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
22158 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
22159 }
22160 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
22161 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
22162 }
22163 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
22164 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
22165 }
22166 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
22167 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
22168 }
22169 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
22170 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
22171 }
22172 static void *_p_wxDCTo_p_wxObject(void *x) {
22173 return (void *)((wxObject *) ((wxDC *) x));
22174 }
22175 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
22176 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
22177 }
22178 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
22179 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
22180 }
22181 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
22182 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
22183 }
22184 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
22185 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
22186 }
22187 static void *_p_wxControlTo_p_wxObject(void *x) {
22188 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
22189 }
22190 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
22191 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
22192 }
22193 static void *_p_wxClientDCTo_p_wxObject(void *x) {
22194 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
22195 }
22196 static void *_p_wxFSFileTo_p_wxObject(void *x) {
22197 return (void *)((wxObject *) ((wxFSFile *) x));
22198 }
22199 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
22200 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
22201 }
22202 static void *_p_wxRegionTo_p_wxObject(void *x) {
22203 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
22204 }
22205 static void *_p_wxPySizerTo_p_wxObject(void *x) {
22206 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
22207 }
22208 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
22209 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
22210 }
22211 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
22212 return (void *)((wxObject *) ((wxGDIObject *) x));
22213 }
22214 static void *_p_wxEffectsTo_p_wxObject(void *x) {
22215 return (void *)((wxObject *) ((wxEffects *) x));
22216 }
22217 static void *_p_wxPyEventTo_p_wxObject(void *x) {
22218 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
22219 }
22220 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
22221 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
22222 }
22223 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
22224 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
22225 }
22226 static void *_p_wxShowEventTo_p_wxObject(void *x) {
22227 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
22228 }
22229 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
22230 return (void *)((wxObject *) ((wxMenuItem *) x));
22231 }
22232 static void *_p_wxDateEventTo_p_wxObject(void *x) {
22233 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
22234 }
22235 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
22236 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
22237 }
22238 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
22239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
22240 }
22241 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
22242 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
22243 }
22244 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
22245 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
22246 }
22247 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
22248 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
22249 }
22250 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
22251 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
22252 }
22253 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
22254 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
22255 }
22256 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
22257 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
22258 }
22259 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
22260 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
22261 }
22262 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
22263 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
22264 }
22265 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
22266 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
22267 }
22268 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
22269 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
22270 }
22271 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
22272 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
22273 }
22274 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
22275 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
22276 }
22277 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
22278 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
22279 }
22280 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
22281 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
22282 }
22283 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
22284 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
22285 }
22286 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
22287 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
22288 }
22289 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
22290 return (void *)((wxObject *) ((wxImageHandler *) x));
22291 }
22292 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
22293 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
22294 }
22295 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
22296 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
22297 }
22298 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
22299 return (void *)((wxObject *) ((wxEvtHandler *) x));
22300 }
22301 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
22302 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
22303 }
22304 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
22305 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
22306 }
22307 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
22308 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
22309 }
22310 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
22311 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
22312 }
22313 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
22314 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
22315 }
22316 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
22317 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
22318 }
22319 static void *_p_wxImageTo_p_wxObject(void *x) {
22320 return (void *)((wxObject *) ((wxImage *) x));
22321 }
22322 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
22323 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
22324 }
22325 static void *_p_wxPaletteTo_p_wxObject(void *x) {
22326 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
22327 }
22328 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
22329 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
22330 }
22331 static void *_p_wxImageListTo_p_wxObject(void *x) {
22332 return (void *)((wxObject *) ((wxImageList *) x));
22333 }
22334 static void *_p_wxCursorTo_p_wxObject(void *x) {
22335 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
22336 }
22337 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
22338 return (void *)((wxObject *) ((wxEncodingConverter *) x));
22339 }
22340 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
22341 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
22342 }
22343 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
22344 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
22345 }
22346 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
22347 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
22348 }
22349 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
22350 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
22351 }
22352 static void *_p_wxWindowTo_p_wxObject(void *x) {
22353 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
22354 }
22355 static void *_p_wxMenuTo_p_wxObject(void *x) {
22356 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
22357 }
22358 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
22359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
22360 }
22361 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
22362 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
22363 }
22364 static void *_p_wxBrushListTo_p_wxObject(void *x) {
22365 return (void *)((wxObject *) ((wxBrushList *) x));
22366 }
22367 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
22368 return (void *)((wxObject *) ((wxFileSystem *) x));
22369 }
22370 static void *_p_wxBitmapTo_p_wxObject(void *x) {
22371 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
22372 }
22373 static void *_p_wxMaskTo_p_wxObject(void *x) {
22374 return (void *)((wxObject *) ((wxMask *) x));
22375 }
22376 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
22377 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
22378 }
22379 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
22380 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
22381 }
22382 static void *_p_wxPyAppTo_p_wxObject(void *x) {
22383 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
22384 }
22385 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
22386 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
22387 }
22388 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
22389 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
22390 }
22391 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
22392 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
22393 }
22394 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
22395 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
22396 }
22397 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
22398 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
22399 }
22400 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
22401 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
22402 }
22403 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
22404 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
22405 }
22406 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
22407 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
22408 }
22409 static void *_p_wxFontTo_p_wxObject(void *x) {
22410 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
22411 }
22412 static void *_p_wxBrushTo_p_wxObject(void *x) {
22413 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
22414 }
22415 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
22416 return (void *)((wxObject *) ((wxMetaFile *) x));
22417 }
22418 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
22419 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
22420 }
22421 static void *_p_wxColourTo_p_wxObject(void *x) {
22422 return (void *)((wxObject *) ((wxColour *) x));
22423 }
22424 static void *_p_wxFontListTo_p_wxObject(void *x) {
22425 return (void *)((wxObject *) ((wxFontList *) x));
22426 }
22427 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
22428 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
22429 }
22430 static void *_p_wxValidatorTo_p_wxObject(void *x) {
22431 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
22432 }
22433 static void *_p_wxControlTo_p_wxWindow(void *x) {
22434 return (void *)((wxWindow *) ((wxControl *) x));
22435 }
22436 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
22437 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
22438 }
22439 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
22440 return (void *)((wxWindow *) ((wxMenuBar *) x));
22441 }
22442 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
22443 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0};
22444 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
22445 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
22446 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
22447 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
22448 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
22449 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
22450 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0};
22451 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0};
22452 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0};
22453 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0};
22454 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0};
22455 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
22456 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0};
22457 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
22458 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
22459 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0};
22460 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
22461 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0};
22462 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0};
22463 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
22464 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0};
22465 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0};
22466 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0};
22467 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
22468 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0};
22469 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0};
22470 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0};
22471 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0};
22472 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0};
22473 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0};
22474 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0};
22475 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0};
22476 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0};
22477 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0};
22478 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0};
22479 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0};
22480 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0};
22481 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
22482 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
22483 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
22484 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
22485 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
22486 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
22487 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
22488 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
22489 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
22490 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
22491 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
22492 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
22493 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
22494 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
22495 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
22496 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
22497 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
22498 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
22499 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
22500 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
22501 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
22502 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
22503 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
22504 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
22505 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
22506 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
22507 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
22508 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
22509 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
22510 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
22511 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
22512 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
22513 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
22514 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
22515 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
22516 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
22517 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
22518 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
22519 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
22520 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
22521 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
22522 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
22523 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
22524 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
22525 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
22526 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
22527 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
22528 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0};
22529 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
22530 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
22531 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
22532 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
22533 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
22534 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
22535 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
22536 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
22537 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
22538 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
22539 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
22540 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
22541 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
22542 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
22543 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
22544 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
22545 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
22546 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
22547 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
22548 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
22549 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
22550 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
22551 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
22552 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
22553 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
22554 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
22555 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
22556 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0};
22557 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0};
22558 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
22559 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0};
22560 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0};
22561 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
22562 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0};
22563 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0};
22564 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0};
22565 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0};
22566 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
22567 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0};
22568 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0};
22569 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0};
22570 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0};
22571 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0};
22572 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
22573 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0};
22574 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
22575 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
22576 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0};
22577 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
22578 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
22579 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
22580
22581 static swig_type_info *swig_type_initial[] = {
22582 &_swigt__p_char,
22583 &_swigt__p_double,
22584 &_swigt__p_form_ops_t,
22585 &_swigt__p_int,
22586 &_swigt__p_unsigned_char,
22587 &_swigt__p_unsigned_int,
22588 &_swigt__p_unsigned_long,
22589 &_swigt__p_wxANIHandler,
22590 &_swigt__p_wxAcceleratorTable,
22591 &_swigt__p_wxActivateEvent,
22592 &_swigt__p_wxBMPHandler,
22593 &_swigt__p_wxBitmap,
22594 &_swigt__p_wxBoxSizer,
22595 &_swigt__p_wxBrush,
22596 &_swigt__p_wxBrushList,
22597 &_swigt__p_wxBufferedDC,
22598 &_swigt__p_wxBufferedPaintDC,
22599 &_swigt__p_wxCURHandler,
22600 &_swigt__p_wxChildFocusEvent,
22601 &_swigt__p_wxClientDC,
22602 &_swigt__p_wxCloseEvent,
22603 &_swigt__p_wxColour,
22604 &_swigt__p_wxColourDatabase,
22605 &_swigt__p_wxCommandEvent,
22606 &_swigt__p_wxContextMenuEvent,
22607 &_swigt__p_wxControl,
22608 &_swigt__p_wxControlWithItems,
22609 &_swigt__p_wxCursor,
22610 &_swigt__p_wxDC,
22611 &_swigt__p_wxDash,
22612 &_swigt__p_wxDateEvent,
22613 &_swigt__p_wxDisplayChangedEvent,
22614 &_swigt__p_wxDropFilesEvent,
22615 &_swigt__p_wxDuplexMode,
22616 &_swigt__p_wxEffects,
22617 &_swigt__p_wxEncodingConverter,
22618 &_swigt__p_wxEraseEvent,
22619 &_swigt__p_wxEvent,
22620 &_swigt__p_wxEvtHandler,
22621 &_swigt__p_wxFSFile,
22622 &_swigt__p_wxFileSystem,
22623 &_swigt__p_wxFlexGridSizer,
22624 &_swigt__p_wxFocusEvent,
22625 &_swigt__p_wxFont,
22626 &_swigt__p_wxFontList,
22627 &_swigt__p_wxFontMapper,
22628 &_swigt__p_wxGBSizerItem,
22629 &_swigt__p_wxGDIObject,
22630 &_swigt__p_wxGIFHandler,
22631 &_swigt__p_wxGridBagSizer,
22632 &_swigt__p_wxGridSizer,
22633 &_swigt__p_wxICOHandler,
22634 &_swigt__p_wxIcon,
22635 &_swigt__p_wxIconBundle,
22636 &_swigt__p_wxIconLocation,
22637 &_swigt__p_wxIconizeEvent,
22638 &_swigt__p_wxIdleEvent,
22639 &_swigt__p_wxImage,
22640 &_swigt__p_wxImageHandler,
22641 &_swigt__p_wxImageList,
22642 &_swigt__p_wxIndividualLayoutConstraint,
22643 &_swigt__p_wxInitDialogEvent,
22644 &_swigt__p_wxJPEGHandler,
22645 &_swigt__p_wxKeyEvent,
22646 &_swigt__p_wxLanguageInfo,
22647 &_swigt__p_wxLayoutConstraints,
22648 &_swigt__p_wxLocale,
22649 &_swigt__p_wxMask,
22650 &_swigt__p_wxMaximizeEvent,
22651 &_swigt__p_wxMemoryDC,
22652 &_swigt__p_wxMenu,
22653 &_swigt__p_wxMenuBar,
22654 &_swigt__p_wxMenuEvent,
22655 &_swigt__p_wxMenuItem,
22656 &_swigt__p_wxMetaFile,
22657 &_swigt__p_wxMetaFileDC,
22658 &_swigt__p_wxMirrorDC,
22659 &_swigt__p_wxMouseCaptureChangedEvent,
22660 &_swigt__p_wxMouseEvent,
22661 &_swigt__p_wxMoveEvent,
22662 &_swigt__p_wxNativeEncodingInfo,
22663 &_swigt__p_wxNativeFontInfo,
22664 &_swigt__p_wxNavigationKeyEvent,
22665 &_swigt__p_wxNcPaintEvent,
22666 &_swigt__p_wxNotifyEvent,
22667 &_swigt__p_wxObject,
22668 &_swigt__p_wxPCXHandler,
22669 &_swigt__p_wxPNGHandler,
22670 &_swigt__p_wxPNMHandler,
22671 &_swigt__p_wxPaintDC,
22672 &_swigt__p_wxPaintEvent,
22673 &_swigt__p_wxPalette,
22674 &_swigt__p_wxPaletteChangedEvent,
22675 &_swigt__p_wxPaperSize,
22676 &_swigt__p_wxPen,
22677 &_swigt__p_wxPenList,
22678 &_swigt__p_wxPoint,
22679 &_swigt__p_wxPostScriptDC,
22680 &_swigt__p_wxPrintData,
22681 &_swigt__p_wxPrinterDC,
22682 &_swigt__p_wxPyApp,
22683 &_swigt__p_wxPyCommandEvent,
22684 &_swigt__p_wxPyEvent,
22685 &_swigt__p_wxPyFontEnumerator,
22686 &_swigt__p_wxPyImageHandler,
22687 &_swigt__p_wxPySizer,
22688 &_swigt__p_wxPyValidator,
22689 &_swigt__p_wxQueryNewPaletteEvent,
22690 &_swigt__p_wxRect,
22691 &_swigt__p_wxRegion,
22692 &_swigt__p_wxRegionIterator,
22693 &_swigt__p_wxRendererNative,
22694 &_swigt__p_wxRendererVersion,
22695 &_swigt__p_wxScreenDC,
22696 &_swigt__p_wxScrollEvent,
22697 &_swigt__p_wxScrollWinEvent,
22698 &_swigt__p_wxSetCursorEvent,
22699 &_swigt__p_wxShowEvent,
22700 &_swigt__p_wxSize,
22701 &_swigt__p_wxSizeEvent,
22702 &_swigt__p_wxSizer,
22703 &_swigt__p_wxSizerItem,
22704 &_swigt__p_wxSplitterRenderParams,
22705 &_swigt__p_wxStaticBoxSizer,
22706 &_swigt__p_wxStdDialogButtonSizer,
22707 &_swigt__p_wxString,
22708 &_swigt__p_wxSysColourChangedEvent,
22709 &_swigt__p_wxTIFFHandler,
22710 &_swigt__p_wxUpdateUIEvent,
22711 &_swigt__p_wxValidator,
22712 &_swigt__p_wxWindow,
22713 &_swigt__p_wxWindowCreateEvent,
22714 &_swigt__p_wxWindowDC,
22715 &_swigt__p_wxWindowDestroyEvent,
22716 &_swigt__p_wxXPMHandler,
22717 &_swigt__ptrdiff_t,
22718 &_swigt__std__ptrdiff_t,
22719 &_swigt__unsigned_int,
22720 };
22721
22722 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
22723 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
22724 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
22725 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
22726 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
22727 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
22728 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
22729 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
22730 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
22731 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
22732 static swig_cast_info _swigc__p_wxBufferedDC[] = { {&_swigt__p_wxBufferedDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0},{0, 0, 0, 0}};
22733 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
22734 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
22735 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
22736 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
22737 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
22738 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
22739 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
22740 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
22741 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
22742 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
22743 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
22744 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
22745 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
22746 static swig_cast_info _swigc__p_wxGDIObject[] = { {&_swigt__p_wxIcon, _p_wxIconTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxGDIObject, 0, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxGDIObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxGDIObject, 0, 0},{0, 0, 0, 0}};
22747 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
22748 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
22749 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
22750 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
22751 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
22752 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
22753 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
22754 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
22755 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
22756 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
22757 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
22758 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
22759 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
22760 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
22761 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
22762 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
22763 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
22764 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
22765 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
22766 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
22767 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
22768 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
22769 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
22770 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
22771 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
22772 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
22773 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
22774 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
22775 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
22776 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
22777 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
22778 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
22779 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
22780 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
22781 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
22782 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
22783 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
22784 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
22785 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
22786 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
22787 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
22788 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
22789 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
22790 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
22791 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
22792 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
22793 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
22794 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
22795 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
22796 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
22797 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
22798 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
22799 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
22800 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
22801 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
22802 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
22803 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
22804 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
22805 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
22806 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
22807 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
22808 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
22809 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
22810 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
22811 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
22812 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
22813 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
22814 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
22815 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
22816 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
22817 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
22818 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
22819 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
22820 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
22821 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
22822 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
22823 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
22824 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
22825 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
22826 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
22827 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
22828 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
22829 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
22830 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
22831 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
22832 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
22833 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
22834 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
22835 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDatabase, _p_wxColourDatabaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
22836 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
22837 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
22838 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
22839 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
22840 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
22841 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
22842 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
22843 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
22844 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
22845 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
22846 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
22847 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
22848 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
22849 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
22850 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
22851 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
22852 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
22853 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
22854 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
22855 static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
22856 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
22857 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
22858 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
22859 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
22860
22861 static swig_cast_info *swig_cast_initial[] = {
22862 _swigc__p_char,
22863 _swigc__p_double,
22864 _swigc__p_form_ops_t,
22865 _swigc__p_int,
22866 _swigc__p_unsigned_char,
22867 _swigc__p_unsigned_int,
22868 _swigc__p_unsigned_long,
22869 _swigc__p_wxANIHandler,
22870 _swigc__p_wxAcceleratorTable,
22871 _swigc__p_wxActivateEvent,
22872 _swigc__p_wxBMPHandler,
22873 _swigc__p_wxBitmap,
22874 _swigc__p_wxBoxSizer,
22875 _swigc__p_wxBrush,
22876 _swigc__p_wxBrushList,
22877 _swigc__p_wxBufferedDC,
22878 _swigc__p_wxBufferedPaintDC,
22879 _swigc__p_wxCURHandler,
22880 _swigc__p_wxChildFocusEvent,
22881 _swigc__p_wxClientDC,
22882 _swigc__p_wxCloseEvent,
22883 _swigc__p_wxColour,
22884 _swigc__p_wxColourDatabase,
22885 _swigc__p_wxCommandEvent,
22886 _swigc__p_wxContextMenuEvent,
22887 _swigc__p_wxControl,
22888 _swigc__p_wxControlWithItems,
22889 _swigc__p_wxCursor,
22890 _swigc__p_wxDC,
22891 _swigc__p_wxDash,
22892 _swigc__p_wxDateEvent,
22893 _swigc__p_wxDisplayChangedEvent,
22894 _swigc__p_wxDropFilesEvent,
22895 _swigc__p_wxDuplexMode,
22896 _swigc__p_wxEffects,
22897 _swigc__p_wxEncodingConverter,
22898 _swigc__p_wxEraseEvent,
22899 _swigc__p_wxEvent,
22900 _swigc__p_wxEvtHandler,
22901 _swigc__p_wxFSFile,
22902 _swigc__p_wxFileSystem,
22903 _swigc__p_wxFlexGridSizer,
22904 _swigc__p_wxFocusEvent,
22905 _swigc__p_wxFont,
22906 _swigc__p_wxFontList,
22907 _swigc__p_wxFontMapper,
22908 _swigc__p_wxGBSizerItem,
22909 _swigc__p_wxGDIObject,
22910 _swigc__p_wxGIFHandler,
22911 _swigc__p_wxGridBagSizer,
22912 _swigc__p_wxGridSizer,
22913 _swigc__p_wxICOHandler,
22914 _swigc__p_wxIcon,
22915 _swigc__p_wxIconBundle,
22916 _swigc__p_wxIconLocation,
22917 _swigc__p_wxIconizeEvent,
22918 _swigc__p_wxIdleEvent,
22919 _swigc__p_wxImage,
22920 _swigc__p_wxImageHandler,
22921 _swigc__p_wxImageList,
22922 _swigc__p_wxIndividualLayoutConstraint,
22923 _swigc__p_wxInitDialogEvent,
22924 _swigc__p_wxJPEGHandler,
22925 _swigc__p_wxKeyEvent,
22926 _swigc__p_wxLanguageInfo,
22927 _swigc__p_wxLayoutConstraints,
22928 _swigc__p_wxLocale,
22929 _swigc__p_wxMask,
22930 _swigc__p_wxMaximizeEvent,
22931 _swigc__p_wxMemoryDC,
22932 _swigc__p_wxMenu,
22933 _swigc__p_wxMenuBar,
22934 _swigc__p_wxMenuEvent,
22935 _swigc__p_wxMenuItem,
22936 _swigc__p_wxMetaFile,
22937 _swigc__p_wxMetaFileDC,
22938 _swigc__p_wxMirrorDC,
22939 _swigc__p_wxMouseCaptureChangedEvent,
22940 _swigc__p_wxMouseEvent,
22941 _swigc__p_wxMoveEvent,
22942 _swigc__p_wxNativeEncodingInfo,
22943 _swigc__p_wxNativeFontInfo,
22944 _swigc__p_wxNavigationKeyEvent,
22945 _swigc__p_wxNcPaintEvent,
22946 _swigc__p_wxNotifyEvent,
22947 _swigc__p_wxObject,
22948 _swigc__p_wxPCXHandler,
22949 _swigc__p_wxPNGHandler,
22950 _swigc__p_wxPNMHandler,
22951 _swigc__p_wxPaintDC,
22952 _swigc__p_wxPaintEvent,
22953 _swigc__p_wxPalette,
22954 _swigc__p_wxPaletteChangedEvent,
22955 _swigc__p_wxPaperSize,
22956 _swigc__p_wxPen,
22957 _swigc__p_wxPenList,
22958 _swigc__p_wxPoint,
22959 _swigc__p_wxPostScriptDC,
22960 _swigc__p_wxPrintData,
22961 _swigc__p_wxPrinterDC,
22962 _swigc__p_wxPyApp,
22963 _swigc__p_wxPyCommandEvent,
22964 _swigc__p_wxPyEvent,
22965 _swigc__p_wxPyFontEnumerator,
22966 _swigc__p_wxPyImageHandler,
22967 _swigc__p_wxPySizer,
22968 _swigc__p_wxPyValidator,
22969 _swigc__p_wxQueryNewPaletteEvent,
22970 _swigc__p_wxRect,
22971 _swigc__p_wxRegion,
22972 _swigc__p_wxRegionIterator,
22973 _swigc__p_wxRendererNative,
22974 _swigc__p_wxRendererVersion,
22975 _swigc__p_wxScreenDC,
22976 _swigc__p_wxScrollEvent,
22977 _swigc__p_wxScrollWinEvent,
22978 _swigc__p_wxSetCursorEvent,
22979 _swigc__p_wxShowEvent,
22980 _swigc__p_wxSize,
22981 _swigc__p_wxSizeEvent,
22982 _swigc__p_wxSizer,
22983 _swigc__p_wxSizerItem,
22984 _swigc__p_wxSplitterRenderParams,
22985 _swigc__p_wxStaticBoxSizer,
22986 _swigc__p_wxStdDialogButtonSizer,
22987 _swigc__p_wxString,
22988 _swigc__p_wxSysColourChangedEvent,
22989 _swigc__p_wxTIFFHandler,
22990 _swigc__p_wxUpdateUIEvent,
22991 _swigc__p_wxValidator,
22992 _swigc__p_wxWindow,
22993 _swigc__p_wxWindowCreateEvent,
22994 _swigc__p_wxWindowDC,
22995 _swigc__p_wxWindowDestroyEvent,
22996 _swigc__p_wxXPMHandler,
22997 _swigc__ptrdiff_t,
22998 _swigc__std__ptrdiff_t,
22999 _swigc__unsigned_int,
23000 };
23001
23002
23003 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
23004
23005 static swig_const_info swig_const_table[] = {
23006 {0, 0, 0, 0.0, 0, 0}};
23007
23008 #ifdef __cplusplus
23009 }
23010 #endif
23011 /*************************************************************************
23012 * Type initialization:
23013 * This problem is tough by the requirement that no dynamic
23014 * memory is used. Also, since swig_type_info structures store pointers to
23015 * swig_cast_info structures and swig_cast_info structures store pointers back
23016 * to swig_type_info structures, we need some lookup code at initialization.
23017 * The idea is that swig generates all the structures that are needed.
23018 * The runtime then collects these partially filled structures.
23019 * The SWIG_InitializeModule function takes these initial arrays out of
23020 * swig_module, and does all the lookup, filling in the swig_module.types
23021 * array with the correct data and linking the correct swig_cast_info
23022 * structures together.
23023
23024 * The generated swig_type_info structures are assigned staticly to an initial
23025 * array. We just loop though that array, and handle each type individually.
23026 * First we lookup if this type has been already loaded, and if so, use the
23027 * loaded structure instead of the generated one. Then we have to fill in the
23028 * cast linked list. The cast data is initially stored in something like a
23029 * two-dimensional array. Each row corresponds to a type (there are the same
23030 * number of rows as there are in the swig_type_initial array). Each entry in
23031 * a column is one of the swig_cast_info structures for that type.
23032 * The cast_initial array is actually an array of arrays, because each row has
23033 * a variable number of columns. So to actually build the cast linked list,
23034 * we find the array of casts associated with the type, and loop through it
23035 * adding the casts to the list. The one last trick we need to do is making
23036 * sure the type pointer in the swig_cast_info struct is correct.
23037
23038 * First off, we lookup the cast->type name to see if it is already loaded.
23039 * There are three cases to handle:
23040 * 1) If the cast->type has already been loaded AND the type we are adding
23041 * casting info to has not been loaded (it is in this module), THEN we
23042 * replace the cast->type pointer with the type pointer that has already
23043 * been loaded.
23044 * 2) If BOTH types (the one we are adding casting info to, and the
23045 * cast->type) are loaded, THEN the cast info has already been loaded by
23046 * the previous module so we just ignore it.
23047 * 3) Finally, if cast->type has not already been loaded, then we add that
23048 * swig_cast_info to the linked list (because the cast->type) pointer will
23049 * be correct.
23050 **/
23051
23052 #ifdef __cplusplus
23053 extern "C" {
23054 #if 0
23055 } /* c-mode */
23056 #endif
23057 #endif
23058
23059 #if 0
23060 #define SWIGRUNTIME_DEBUG
23061 #endif
23062
23063 SWIGRUNTIME void
23064 SWIG_InitializeModule(void *clientdata) {
23065 size_t i;
23066 swig_module_info *module_head;
23067 static int init_run = 0;
23068
23069 clientdata = clientdata;
23070
23071 if (init_run) return;
23072 init_run = 1;
23073
23074 /* Initialize the swig_module */
23075 swig_module.type_initial = swig_type_initial;
23076 swig_module.cast_initial = swig_cast_initial;
23077
23078 /* Try and load any already created modules */
23079 module_head = SWIG_GetModule(clientdata);
23080 if (module_head) {
23081 swig_module.next = module_head->next;
23082 module_head->next = &swig_module;
23083 } else {
23084 /* This is the first module loaded */
23085 swig_module.next = &swig_module;
23086 SWIG_SetModule(clientdata, &swig_module);
23087 }
23088
23089 /* Now work on filling in swig_module.types */
23090 #ifdef SWIGRUNTIME_DEBUG
23091 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
23092 #endif
23093 for (i = 0; i < swig_module.size; ++i) {
23094 swig_type_info *type = 0;
23095 swig_type_info *ret;
23096 swig_cast_info *cast;
23097
23098 #ifdef SWIGRUNTIME_DEBUG
23099 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
23100 #endif
23101
23102 /* if there is another module already loaded */
23103 if (swig_module.next != &swig_module) {
23104 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
23105 }
23106 if (type) {
23107 /* Overwrite clientdata field */
23108 #ifdef SWIGRUNTIME_DEBUG
23109 printf("SWIG_InitializeModule: found type %s\n", type->name);
23110 #endif
23111 if (swig_module.type_initial[i]->clientdata) {
23112 type->clientdata = swig_module.type_initial[i]->clientdata;
23113 #ifdef SWIGRUNTIME_DEBUG
23114 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
23115 #endif
23116 }
23117 } else {
23118 type = swig_module.type_initial[i];
23119 }
23120
23121 /* Insert casting types */
23122 cast = swig_module.cast_initial[i];
23123 while (cast->type) {
23124 /* Don't need to add information already in the list */
23125 ret = 0;
23126 #ifdef SWIGRUNTIME_DEBUG
23127 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
23128 #endif
23129 if (swig_module.next != &swig_module) {
23130 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
23131 #ifdef SWIGRUNTIME_DEBUG
23132 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
23133 #endif
23134 }
23135 if (ret) {
23136 if (type == swig_module.type_initial[i]) {
23137 #ifdef SWIGRUNTIME_DEBUG
23138 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
23139 #endif
23140 cast->type = ret;
23141 ret = 0;
23142 } else {
23143 /* Check for casting already in the list */
23144 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
23145 #ifdef SWIGRUNTIME_DEBUG
23146 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
23147 #endif
23148 if (!ocast) ret = 0;
23149 }
23150 }
23151
23152 if (!ret) {
23153 #ifdef SWIGRUNTIME_DEBUG
23154 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
23155 #endif
23156 if (type->cast) {
23157 type->cast->prev = cast;
23158 cast->next = type->cast;
23159 }
23160 type->cast = cast;
23161 }
23162 cast++;
23163 }
23164 /* Set entry in modules->types array equal to the type */
23165 swig_module.types[i] = type;
23166 }
23167 swig_module.types[i] = 0;
23168
23169 #ifdef SWIGRUNTIME_DEBUG
23170 printf("**** SWIG_InitializeModule: Cast List ******\n");
23171 for (i = 0; i < swig_module.size; ++i) {
23172 int j = 0;
23173 swig_cast_info *cast = swig_module.cast_initial[i];
23174 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
23175 while (cast->type) {
23176 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
23177 cast++;
23178 ++j;
23179 }
23180 printf("---- Total casts: %d\n",j);
23181 }
23182 printf("**** SWIG_InitializeModule: Cast List ******\n");
23183 #endif
23184 }
23185
23186 /* This function will propagate the clientdata field of type to
23187 * any new swig_type_info structures that have been added into the list
23188 * of equivalent types. It is like calling
23189 * SWIG_TypeClientData(type, clientdata) a second time.
23190 */
23191 SWIGRUNTIME void
23192 SWIG_PropagateClientData(void) {
23193 size_t i;
23194 swig_cast_info *equiv;
23195 static int init_run = 0;
23196
23197 if (init_run) return;
23198 init_run = 1;
23199
23200 for (i = 0; i < swig_module.size; i++) {
23201 if (swig_module.types[i]->clientdata) {
23202 equiv = swig_module.types[i]->cast;
23203 while (equiv) {
23204 if (!equiv->converter) {
23205 if (equiv->type && !equiv->type->clientdata)
23206 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
23207 }
23208 equiv = equiv->next;
23209 }
23210 }
23211 }
23212 }
23213
23214 #ifdef __cplusplus
23215 #if 0
23216 {
23217 /* c-mode */
23218 #endif
23219 }
23220 #endif
23221
23222
23223
23224 #ifdef __cplusplus
23225 extern "C" {
23226 #endif
23227
23228 /* Python-specific SWIG API */
23229 #define SWIG_newvarlink() SWIG_Python_newvarlink()
23230 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
23231 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
23232
23233 /* -----------------------------------------------------------------------------
23234 * global variable support code.
23235 * ----------------------------------------------------------------------------- */
23236
23237 typedef struct swig_globalvar {
23238 char *name; /* Name of global variable */
23239 PyObject *(*get_attr)(void); /* Return the current value */
23240 int (*set_attr)(PyObject *); /* Set the value */
23241 struct swig_globalvar *next;
23242 } swig_globalvar;
23243
23244 typedef struct swig_varlinkobject {
23245 PyObject_HEAD
23246 swig_globalvar *vars;
23247 } swig_varlinkobject;
23248
23249 SWIGINTERN PyObject *
23250 swig_varlink_repr(swig_varlinkobject *v) {
23251 v = v;
23252 return PyString_FromString("<Swig global variables>");
23253 }
23254
23255 SWIGINTERN int
23256 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
23257 swig_globalvar *var;
23258 flags = flags;
23259 fprintf(fp,"Swig global variables { ");
23260 for (var = v->vars; var; var=var->next) {
23261 fprintf(fp,"%s", var->name);
23262 if (var->next) fprintf(fp,", ");
23263 }
23264 fprintf(fp," }\n");
23265 return 0;
23266 }
23267
23268 SWIGINTERN PyObject *
23269 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
23270 swig_globalvar *var = v->vars;
23271 while (var) {
23272 if (strcmp(var->name,n) == 0) {
23273 return (*var->get_attr)();
23274 }
23275 var = var->next;
23276 }
23277 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23278 return NULL;
23279 }
23280
23281 SWIGINTERN int
23282 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
23283 swig_globalvar *var = v->vars;
23284 while (var) {
23285 if (strcmp(var->name,n) == 0) {
23286 return (*var->set_attr)(p);
23287 }
23288 var = var->next;
23289 }
23290 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23291 return 1;
23292 }
23293
23294 SWIGINTERN PyTypeObject*
23295 swig_varlink_type(void) {
23296 static char varlink__doc__[] = "Swig var link object";
23297 static PyTypeObject varlink_type
23298 #if !defined(__cplusplus)
23299 ;
23300 static int type_init = 0;
23301 if (!type_init) {
23302 PyTypeObject tmp
23303 #endif
23304 = {
23305 PyObject_HEAD_INIT(&PyType_Type)
23306 0, /* Number of items in variable part (ob_size) */
23307 (char *)"swigvarlink", /* Type name (tp_name) */
23308 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
23309 0, /* Itemsize (tp_itemsize) */
23310 0, /* Deallocator (tp_dealloc) */
23311 (printfunc) swig_varlink_print, /* Print (tp_print) */
23312 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
23313 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
23314 0, /* tp_compare */
23315 (reprfunc) swig_varlink_repr, /* tp_repr */
23316 0, /* tp_as_number */
23317 0, /* tp_as_sequence */
23318 0, /* tp_as_mapping */
23319 0, /* tp_hash */
23320 0, /* tp_call */
23321 0, /* tp_str */
23322 0, /* tp_getattro */
23323 0, /* tp_setattro */
23324 0, /* tp_as_buffer */
23325 0, /* tp_flags */
23326 varlink__doc__, /* tp_doc */
23327 #if PY_VERSION_HEX >= 0x02000000
23328 0, /* tp_traverse */
23329 0, /* tp_clear */
23330 #endif
23331 #if PY_VERSION_HEX >= 0x02010000
23332 0, /* tp_richcompare */
23333 0, /* tp_weaklistoffset */
23334 #endif
23335 #if PY_VERSION_HEX >= 0x02020000
23336 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
23337 #endif
23338 #if PY_VERSION_HEX >= 0x02030000
23339 0, /* tp_del */
23340 #endif
23341 #ifdef COUNT_ALLOCS
23342 0,0,0,0 /* tp_alloc -> tp_next */
23343 #endif
23344 };
23345 #if !defined(__cplusplus)
23346 varlink_type = tmp;
23347 type_init = 1;
23348 }
23349 #endif
23350 return &varlink_type;
23351 }
23352
23353 /* Create a variable linking object for use later */
23354 SWIGINTERN PyObject *
23355 SWIG_Python_newvarlink(void) {
23356 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
23357 if (result) {
23358 result->vars = 0;
23359 }
23360 return ((PyObject*) result);
23361 }
23362
23363 SWIGINTERN void
23364 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
23365 swig_varlinkobject *v = (swig_varlinkobject *) p;
23366 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
23367 if (gv) {
23368 size_t size = strlen(name)+1;
23369 gv->name = (char *)malloc(size);
23370 if (gv->name) {
23371 strncpy(gv->name,name,size);
23372 gv->get_attr = get_attr;
23373 gv->set_attr = set_attr;
23374 gv->next = v->vars;
23375 }
23376 }
23377 v->vars = gv;
23378 }
23379
23380 /* -----------------------------------------------------------------------------
23381 * constants/methods manipulation
23382 * ----------------------------------------------------------------------------- */
23383
23384 /* Install Constants */
23385 SWIGINTERN void
23386 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
23387 PyObject *obj = 0;
23388 size_t i;
23389 for (i = 0; constants[i].type; ++i) {
23390 switch(constants[i].type) {
23391 case SWIG_PY_INT:
23392 obj = PyInt_FromLong(constants[i].lvalue);
23393 break;
23394 case SWIG_PY_FLOAT:
23395 obj = PyFloat_FromDouble(constants[i].dvalue);
23396 break;
23397 case SWIG_PY_STRING:
23398 if (constants[i].pvalue) {
23399 obj = PyString_FromString((char *) constants[i].pvalue);
23400 } else {
23401 Py_INCREF(Py_None);
23402 obj = Py_None;
23403 }
23404 break;
23405 case SWIG_PY_POINTER:
23406 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
23407 break;
23408 case SWIG_PY_BINARY:
23409 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
23410 break;
23411 default:
23412 obj = 0;
23413 break;
23414 }
23415 if (obj) {
23416 PyDict_SetItemString(d,constants[i].name,obj);
23417 Py_DECREF(obj);
23418 }
23419 }
23420 }
23421
23422 /* -----------------------------------------------------------------------------*/
23423 /* Fix SwigMethods to carry the callback ptrs when needed */
23424 /* -----------------------------------------------------------------------------*/
23425
23426 SWIGINTERN void
23427 SWIG_Python_FixMethods(PyMethodDef *methods,
23428 swig_const_info *const_table,
23429 swig_type_info **types,
23430 swig_type_info **types_initial) {
23431 size_t i;
23432 for (i = 0; methods[i].ml_name; ++i) {
23433 char *c = methods[i].ml_doc;
23434 if (c && (c = strstr(c, "swig_ptr: "))) {
23435 int j;
23436 swig_const_info *ci = 0;
23437 char *name = c + 10;
23438 for (j = 0; const_table[j].type; ++j) {
23439 if (strncmp(const_table[j].name, name,
23440 strlen(const_table[j].name)) == 0) {
23441 ci = &(const_table[j]);
23442 break;
23443 }
23444 }
23445 if (ci) {
23446 size_t shift = (ci->ptype) - types;
23447 swig_type_info *ty = types_initial[shift];
23448 size_t ldoc = (c - methods[i].ml_doc);
23449 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
23450 char *ndoc = (char*)malloc(ldoc + lptr + 10);
23451 if (ndoc) {
23452 char *buff = ndoc;
23453 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
23454 if (ptr) {
23455 strncpy(buff, methods[i].ml_doc, ldoc);
23456 buff += ldoc;
23457 strncpy(buff, "swig_ptr: ", 10);
23458 buff += 10;
23459 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
23460 methods[i].ml_doc = ndoc;
23461 }
23462 }
23463 }
23464 }
23465 }
23466 }
23467
23468 /* -----------------------------------------------------------------------------*
23469 * Initialize type list
23470 * -----------------------------------------------------------------------------*/
23471
23472 #ifdef __cplusplus
23473 }
23474 #endif
23475
23476 /* -----------------------------------------------------------------------------*
23477 * Partial Init method
23478 * -----------------------------------------------------------------------------*/
23479
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 SWIGEXPORT void SWIG_init(void) {
23484 static PyObject *SWIG_globals = 0;
23485 PyObject *m, *d;
23486 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
23487
23488 /* Fix SwigMethods to carry the callback ptrs when needed */
23489 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
23490
23491 m = Py_InitModule((char *) SWIG_name, SwigMethods);
23492 d = PyModule_GetDict(m);
23493
23494 SWIG_InitializeModule(0);
23495 SWIG_InstallConstants(d,swig_const_table);
23496
23497 {
23498 PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion)));
23499 }
23500 {
23501 PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion)));
23502 }
23503 {
23504 PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion)));
23505 }
23506 {
23507 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT)));
23508 }
23509 {
23510 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE)));
23511 }
23512 {
23513 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN)));
23514 }
23515 {
23516 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT)));
23517 }
23518 {
23519 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS)));
23520 }
23521 {
23522 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN)));
23523 }
23524 {
23525 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE)));
23526 }
23527 {
23528 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX)));
23529 }
23530 {
23531 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN)));
23532 }
23533 {
23534 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL)));
23535 }
23536 {
23537 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC)));
23538 }
23539 {
23540 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT)));
23541 }
23542 {
23543 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX)));
23544 }
23545 {
23546 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL)));
23547 }
23548 {
23549 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT)));
23550 }
23551 {
23552 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD)));
23553 }
23554 {
23555 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX)));
23556 }
23557 {
23558 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT)));
23559 }
23560 {
23561 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC)));
23562 }
23563 {
23564 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT)));
23565 }
23566 {
23567 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT)));
23568 }
23569 {
23570 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD)));
23571 }
23572 {
23573 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED)));
23574 }
23575 {
23576 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED)));
23577 }
23578 {
23579 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED)));
23580 }
23581 {
23582 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH)));
23583 }
23584 {
23585 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK)));
23586 }
23587 {
23588 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM)));
23589 }
23590 {
23591 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT)));
23592 }
23593 {
23594 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1)));
23595 }
23596 {
23597 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2)));
23598 }
23599 {
23600 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3)));
23601 }
23602 {
23603 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4)));
23604 }
23605 {
23606 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5)));
23607 }
23608 {
23609 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6)));
23610 }
23611 {
23612 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7)));
23613 }
23614 {
23615 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8)));
23616 }
23617 {
23618 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9)));
23619 }
23620 {
23621 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10)));
23622 }
23623 {
23624 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11)));
23625 }
23626 {
23627 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12)));
23628 }
23629 {
23630 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13)));
23631 }
23632 {
23633 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14)));
23634 }
23635 {
23636 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15)));
23637 }
23638 {
23639 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX)));
23640 }
23641 {
23642 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8)));
23643 }
23644 {
23645 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U)));
23646 }
23647 {
23648 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE)));
23649 }
23650 {
23651 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN)));
23652 }
23653 {
23654 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437)));
23655 }
23656 {
23657 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850)));
23658 }
23659 {
23660 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852)));
23661 }
23662 {
23663 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855)));
23664 }
23665 {
23666 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866)));
23667 }
23668 {
23669 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874)));
23670 }
23671 {
23672 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932)));
23673 }
23674 {
23675 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936)));
23676 }
23677 {
23678 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949)));
23679 }
23680 {
23681 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950)));
23682 }
23683 {
23684 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250)));
23685 }
23686 {
23687 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251)));
23688 }
23689 {
23690 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252)));
23691 }
23692 {
23693 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253)));
23694 }
23695 {
23696 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254)));
23697 }
23698 {
23699 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255)));
23700 }
23701 {
23702 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256)));
23703 }
23704 {
23705 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257)));
23706 }
23707 {
23708 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX)));
23709 }
23710 {
23711 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7)));
23712 }
23713 {
23714 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8)));
23715 }
23716 {
23717 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP)));
23718 }
23719 {
23720 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE)));
23721 }
23722 {
23723 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE)));
23724 }
23725 {
23726 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE)));
23727 }
23728 {
23729 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE)));
23730 }
23731 {
23732 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN)));
23733 }
23734 {
23735 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE)));
23736 }
23737 {
23738 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD)));
23739 }
23740 {
23741 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN)));
23742 }
23743 {
23744 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC)));
23745 }
23746 {
23747 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW)));
23748 }
23749 {
23750 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK)));
23751 }
23752 {
23753 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC)));
23754 }
23755 {
23756 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI)));
23757 }
23758 {
23759 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI)));
23760 }
23761 {
23762 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI)));
23763 }
23764 {
23765 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA)));
23766 }
23767 {
23768 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI)));
23769 }
23770 {
23771 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL)));
23772 }
23773 {
23774 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU)));
23775 }
23776 {
23777 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA)));
23778 }
23779 {
23780 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM)));
23781 }
23782 {
23783 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE)));
23784 }
23785 {
23786 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE)));
23787 }
23788 {
23789 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER)));
23790 }
23791 {
23792 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI)));
23793 }
23794 {
23795 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN)));
23796 }
23797 {
23798 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN)));
23799 }
23800 {
23801 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN)));
23802 }
23803 {
23804 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP)));
23805 }
23806 {
23807 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN)));
23808 }
23809 {
23810 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN)));
23811 }
23812 {
23813 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC)));
23814 }
23815 {
23816 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR)));
23817 }
23818 {
23819 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE)));
23820 }
23821 {
23822 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT)));
23823 }
23824 {
23825 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL)));
23826 }
23827 {
23828 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS)));
23829 }
23830 {
23831 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH)));
23832 }
23833 {
23834 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN)));
23835 }
23836 {
23837 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC)));
23838 }
23839 {
23840 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN)));
23841 }
23842 {
23843 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC)));
23844 }
23845 {
23846 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC)));
23847 }
23848 {
23849 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD)));
23850 }
23851 {
23852 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN)));
23853 }
23854 {
23855 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX)));
23856 }
23857 {
23858 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX)));
23859 }
23860 {
23861 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16)));
23862 }
23863 {
23864 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32)));
23865 }
23866 {
23867 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE)));
23868 }
23869 {
23870 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312)));
23871 }
23872 {
23873 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5)));
23874 }
23875 {
23876 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS)));
23877 }
23878
23879 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
23880
23881 {
23882 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT)));
23883 }
23884 {
23885 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN)));
23886 }
23887 {
23888 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN)));
23889 }
23890 {
23891 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR)));
23892 }
23893 {
23894 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS)));
23895 }
23896 {
23897 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN)));
23898 }
23899 {
23900 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC)));
23901 }
23902 {
23903 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC)));
23904 }
23905 {
23906 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA)));
23907 }
23908 {
23909 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN)));
23910 }
23911 {
23912 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT)));
23913 }
23914 {
23915 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ)));
23916 }
23917 {
23918 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN)));
23919 }
23920 {
23921 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT)));
23922 }
23923 {
23924 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON)));
23925 }
23926 {
23927 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA)));
23928 }
23929 {
23930 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO)));
23931 }
23932 {
23933 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN)));
23934 }
23935 {
23936 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR)));
23937 }
23938 {
23939 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
23940 }
23941 {
23942 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN)));
23943 }
23944 {
23945 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA)));
23946 }
23947 {
23948 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA)));
23949 }
23950 {
23951 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE)));
23952 }
23953 {
23954 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN)));
23955 }
23956 {
23957 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN)));
23958 }
23959 {
23960 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE)));
23961 }
23962 {
23963 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA)));
23964 }
23965 {
23966 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI)));
23967 }
23968 {
23969 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC)));
23970 }
23971 {
23972 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN)));
23973 }
23974 {
23975 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR)));
23976 }
23977 {
23978 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE)));
23979 }
23980 {
23981 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN)));
23982 }
23983 {
23984 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI)));
23985 }
23986 {
23987 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI)));
23988 }
23989 {
23990 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI)));
23991 }
23992 {
23993 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA)));
23994 }
23995 {
23996 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON)));
23997 }
23998 {
23999 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN)));
24000 }
24001 {
24002 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE)));
24003 }
24004 {
24005 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN)));
24006 }
24007 {
24008 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN)));
24009 }
24010 {
24011 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE)));
24012 }
24013 {
24014 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
24015 }
24016 {
24017 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
24018 }
24019 {
24020 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG)));
24021 }
24022 {
24023 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU)));
24024 }
24025 {
24026 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE)));
24027 }
24028 {
24029 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN)));
24030 }
24031 {
24032 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN)));
24033 }
24034 {
24035 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN)));
24036 }
24037 {
24038 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH)));
24039 }
24040 {
24041 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH)));
24042 }
24043 {
24044 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH)));
24045 }
24046 {
24047 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN)));
24048 }
24049 {
24050 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH)));
24051 }
24052 {
24053 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK)));
24054 }
24055 {
24056 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US)));
24057 }
24058 {
24059 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
24060 }
24061 {
24062 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE)));
24063 }
24064 {
24065 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
24066 }
24067 {
24068 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA)));
24069 }
24070 {
24071 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
24072 }
24073 {
24074 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK)));
24075 }
24076 {
24077 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE)));
24078 }
24079 {
24080 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA)));
24081 }
24082 {
24083 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
24084 }
24085 {
24086 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
24087 }
24088 {
24089 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
24090 }
24091 {
24092 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
24093 }
24094 {
24095 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
24096 }
24097 {
24098 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO)));
24099 }
24100 {
24101 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN)));
24102 }
24103 {
24104 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE)));
24105 }
24106 {
24107 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI)));
24108 }
24109 {
24110 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI)));
24111 }
24112 {
24113 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH)));
24114 }
24115 {
24116 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH)));
24117 }
24118 {
24119 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN)));
24120 }
24121 {
24122 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN)));
24123 }
24124 {
24125 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
24126 }
24127 {
24128 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO)));
24129 }
24130 {
24131 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS)));
24132 }
24133 {
24134 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN)));
24135 }
24136 {
24137 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN)));
24138 }
24139 {
24140 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN)));
24141 }
24142 {
24143 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN)));
24144 }
24145 {
24146 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
24147 }
24148 {
24149 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM)));
24150 }
24151 {
24152 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
24153 }
24154 {
24155 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
24156 }
24157 {
24158 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS)));
24159 }
24160 {
24161 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK)));
24162 }
24163 {
24164 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC)));
24165 }
24166 {
24167 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI)));
24168 }
24169 {
24170 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI)));
24171 }
24172 {
24173 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA)));
24174 }
24175 {
24176 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW)));
24177 }
24178 {
24179 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI)));
24180 }
24181 {
24182 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN)));
24183 }
24184 {
24185 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC)));
24186 }
24187 {
24188 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN)));
24189 }
24190 {
24191 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA)));
24192 }
24193 {
24194 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE)));
24195 }
24196 {
24197 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT)));
24198 }
24199 {
24200 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK)));
24201 }
24202 {
24203 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH)));
24204 }
24205 {
24206 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN)));
24207 }
24208 {
24209 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS)));
24210 }
24211 {
24212 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE)));
24213 }
24214 {
24215 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE)));
24216 }
24217 {
24218 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA)));
24219 }
24220 {
24221 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI)));
24222 }
24223 {
24224 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA)));
24225 }
24226 {
24227 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH)));
24228 }
24229 {
24230 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK)));
24231 }
24232 {
24233 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA)));
24234 }
24235 {
24236 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ)));
24237 }
24238 {
24239 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI)));
24240 }
24241 {
24242 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI)));
24243 }
24244 {
24245 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN)));
24246 }
24247 {
24248 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH)));
24249 }
24250 {
24251 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN)));
24252 }
24253 {
24254 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN)));
24255 }
24256 {
24257 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN)));
24258 }
24259 {
24260 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA)));
24261 }
24262 {
24263 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN)));
24264 }
24265 {
24266 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN)));
24267 }
24268 {
24269 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY)));
24270 }
24271 {
24272 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY)));
24273 }
24274 {
24275 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM)));
24276 }
24277 {
24278 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
24279 }
24280 {
24281 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA)));
24282 }
24283 {
24284 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE)));
24285 }
24286 {
24287 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI)));
24288 }
24289 {
24290 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI)));
24291 }
24292 {
24293 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI)));
24294 }
24295 {
24296 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN)));
24297 }
24298 {
24299 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN)));
24300 }
24301 {
24302 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU)));
24303 }
24304 {
24305 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI)));
24306 }
24307 {
24308 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA)));
24309 }
24310 {
24311 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
24312 }
24313 {
24314 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
24315 }
24316 {
24317 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN)));
24318 }
24319 {
24320 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA)));
24321 }
24322 {
24323 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO)));
24324 }
24325 {
24326 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO)));
24327 }
24328 {
24329 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH)));
24330 }
24331 {
24332 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE)));
24333 }
24334 {
24335 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
24336 }
24337 {
24338 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI)));
24339 }
24340 {
24341 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA)));
24342 }
24343 {
24344 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE)));
24345 }
24346 {
24347 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN)));
24348 }
24349 {
24350 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN)));
24351 }
24352 {
24353 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
24354 }
24355 {
24356 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN)));
24357 }
24358 {
24359 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO)));
24360 }
24361 {
24362 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT)));
24363 }
24364 {
24365 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC)));
24366 }
24367 {
24368 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN)));
24369 }
24370 {
24371 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
24372 }
24373 {
24374 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN)));
24375 }
24376 {
24377 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN)));
24378 }
24379 {
24380 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO)));
24381 }
24382 {
24383 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA)));
24384 }
24385 {
24386 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA)));
24387 }
24388 {
24389 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI)));
24390 }
24391 {
24392 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE)));
24393 }
24394 {
24395 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI)));
24396 }
24397 {
24398 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK)));
24399 }
24400 {
24401 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN)));
24402 }
24403 {
24404 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI)));
24405 }
24406 {
24407 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH)));
24408 }
24409 {
24410 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA)));
24411 }
24412 {
24413 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA)));
24414 }
24415 {
24416 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE)));
24417 }
24418 {
24419 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA)));
24420 }
24421 {
24422 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
24423 }
24424 {
24425 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
24426 }
24427 {
24428 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR)));
24429 }
24430 {
24431 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
24432 }
24433 {
24434 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA)));
24435 }
24436 {
24437 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS)));
24438 }
24439 {
24440 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN)));
24441 }
24442 {
24443 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN)));
24444 }
24445 {
24446 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA)));
24447 }
24448 {
24449 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA)));
24450 }
24451 {
24452 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY)));
24453 }
24454 {
24455 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU)));
24456 }
24457 {
24458 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
24459 }
24460 {
24461 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY)));
24462 }
24463 {
24464 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US)));
24465 }
24466 {
24467 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA)));
24468 }
24469 {
24470 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE)));
24471 }
24472 {
24473 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI)));
24474 }
24475 {
24476 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH)));
24477 }
24478 {
24479 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND)));
24480 }
24481 {
24482 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG)));
24483 }
24484 {
24485 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK)));
24486 }
24487 {
24488 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL)));
24489 }
24490 {
24491 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR)));
24492 }
24493 {
24494 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU)));
24495 }
24496 {
24497 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI)));
24498 }
24499 {
24500 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN)));
24501 }
24502 {
24503 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA)));
24504 }
24505 {
24506 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA)));
24507 }
24508 {
24509 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA)));
24510 }
24511 {
24512 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH)));
24513 }
24514 {
24515 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN)));
24516 }
24517 {
24518 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI)));
24519 }
24520 {
24521 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR)));
24522 }
24523 {
24524 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN)));
24525 }
24526 {
24527 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU)));
24528 }
24529 {
24530 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA)));
24531 }
24532 {
24533 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN)));
24534 }
24535 {
24536 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK)));
24537 }
24538 {
24539 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC)));
24540 }
24541 {
24542 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN)));
24543 }
24544 {
24545 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE)));
24546 }
24547 {
24548 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK)));
24549 }
24550 {
24551 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH)));
24552 }
24553 {
24554 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF)));
24555 }
24556 {
24557 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA)));
24558 }
24559 {
24560 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH)));
24561 }
24562 {
24563 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA)));
24564 }
24565 {
24566 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG)));
24567 }
24568 {
24569 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU)));
24570 }
24571 {
24572 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED)));
24573 }
24574 {
24575 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER)));
24576 }
24577 {
24578 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE)));
24579 }
24580 {
24581 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY)));
24582 }
24583 {
24584 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX)));
24585 }
24586 {
24587 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP)));
24588 }
24589 {
24590 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT)));
24591 }
24592 {
24593 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT)));
24594 }
24595 {
24596 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING)));
24597 }
24598 {
24599 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT)));
24600 }
24601 {
24602 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE)));
24603 }
24604 {
24605 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT)));
24606 }
24607 {
24608 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX)));
24609 }
24610 {
24611 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS)));
24612 }
24613 {
24614 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2)));
24615 }
24616 {
24617 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC)));
24618 }
24619 {
24620 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA)));
24621 }
24622 {
24623 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA)));
24624 }
24625 {
24626 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL)));
24627 }
24628 {
24629 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT)));
24630 }
24631 {
24632 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED)));
24633 }
24634 {
24635 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED)));
24636 }
24637 {
24638 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL)));
24639 }
24640 {
24641 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL)));
24642 }
24643 {
24644 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE)));
24645 }
24646 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
24647 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
24648 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
24649 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
24650 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
24651 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
24652 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
24653 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
24654 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
24655 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
24656 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
24657 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
24658 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
24659 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
24660 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
24661 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
24662 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
24663 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
24664 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
24665 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
24666 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
24667 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
24668 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
24669 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
24670 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
24671 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
24672 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
24673 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
24674 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
24675 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
24676 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
24677 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
24678 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
24679 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
24680 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
24681 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
24682 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
24683 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
24684 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
24685 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
24686 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
24687 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
24688 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
24689 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
24690 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
24691 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
24692 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
24693 {
24694 PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED)));
24695 }
24696 {
24697 PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED)));
24698 }
24699 {
24700 PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED)));
24701 }
24702 {
24703 PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT)));
24704 }
24705 {
24706 PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU)));
24707 }
24708 {
24709 PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED)));
24710 }
24711 {
24712 PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT)));
24713 }
24714 {
24715 PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED)));
24716 }
24717 {
24718 PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED)));
24719 }
24720 {
24721 PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE)));
24722 }
24723 {
24724 PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED)));
24725 }
24726 {
24727 PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK)));
24728 }
24729 {
24730 PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY)));
24731 }
24732 {
24733 PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version)));
24734 }
24735 {
24736 PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age)));
24737 }
24738
24739 // Work around a chicken/egg problem in drawlist.cpp
24740 wxPyDrawList_SetAPIPtr();
24741
24742 }
24743