]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
4179e7cc4c93e99dd041b2feb8ce71d47eda7907
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.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 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1805 #define SWIG_From_unsigned_SS_char PyInt_FromLong
1806 /*@@*/
1807
1808
1809 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\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 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\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
1967 SWIGINTERNINLINE long
1968 SWIG_As_long(PyObject* obj)
1969 {
1970 long v;
1971 if (!SWIG_AsVal_long(obj, &v)) {
1972 /*
1973 this is needed to make valgrind/purify happier.
1974 */
1975 memset((void*)&v, 0, sizeof(long));
1976 }
1977 return v;
1978 }
1979
1980
1981 SWIGINTERNINLINE int
1982 SWIG_Check_long(PyObject* obj)
1983 {
1984 return SWIG_AsVal_long(obj, (long*)0);
1985 }
1986
1987 static void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
1988 static wxSize wxBitmap_GetSize(wxBitmap *self){
1989 wxSize size(self->GetWidth(), self->GetHeight());
1990 return size;
1991 }
1992 static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
1993 wxMask *mask = new wxMask(*self, colour);
1994 self->SetMask(mask);
1995 }
1996 static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
1997 self->SetWidth(size.x);
1998 self->SetHeight(size.y);
1999 }
2000 static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2001 static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2002 static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2003 if ( !colour.Ok() )
2004 return new wxMask(bitmap, *wxBLACK);
2005 else
2006 return new wxMask(bitmap, colour);
2007 }
2008
2009 #include <wx/iconbndl.h>
2010
2011 static wxIcon *new_wxIcon(wxBitmap const &bmp){
2012 wxIcon* icon = new wxIcon();
2013 icon->CopyFromBitmap(bmp);
2014 return icon;
2015 }
2016 static wxIcon *new_wxIcon(PyObject *listOfStrings){
2017 char** cArray = NULL;
2018 wxIcon* icon;
2019
2020 cArray = ConvertListOfStrings(listOfStrings);
2021 if (! cArray)
2022 return NULL;
2023 icon = new wxIcon(cArray);
2024 delete [] cArray;
2025 return icon;
2026 }
2027 static void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2028 static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2029
2030 return new wxIconLocation(*filename, num);
2031
2032
2033
2034 }
2035 static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2036
2037 self->SetIndex(num);
2038
2039
2040
2041 }
2042 static int wxIconLocation_GetIndex(wxIconLocation *self){
2043
2044 return self->GetIndex();
2045
2046
2047
2048 }
2049 static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2050 #ifdef __WXGTK__
2051 wxImage img(cursorName, type);
2052 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2053 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2054 return new wxCursor(img);
2055 #else
2056 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2057 #endif
2058 }
2059 static void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2060
2061
2062 static void wxRegionIterator_Next(wxRegionIterator *self){
2063 (*self) ++;
2064 }
2065 static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2066 return self->operator bool();
2067 }
2068
2069 #include <wx/fontutil.h>
2070 #include <wx/fontmap.h>
2071 #include <wx/fontenum.h>
2072
2073 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
2074 return self->ToString();
2075 }
2076
2077 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
2078 { wxPyRaiseNotImplemented(); return NULL; }
2079
2080 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
2081 { wxPyRaiseNotImplemented(); return false; }
2082
2083 static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
2084 wxFontEncoding alt_enc;
2085 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2086 return PyInt_FromLong(alt_enc);
2087 else {
2088 Py_INCREF(Py_None);
2089 return Py_None;
2090 }
2091 }
2092 static wxFont *new_wxFont(wxString const &info){
2093 wxNativeFontInfo nfi;
2094 nfi.FromString(info);
2095 return new wxFont(nfi);
2096 }
2097 static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2098 return wxFont::New(pointSize, family, flags, face, encoding);
2099 }
2100 static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2101 return wxFontBase::New(pixelSize, family,
2102 style, weight, underlined,
2103 face, encoding);
2104 }
2105 static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2106 return wxFontBase::New(pixelSize, family, flags, face, encoding);
2107 }
2108 static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
2109 static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
2110
2111 class wxPyFontEnumerator : public wxFontEnumerator {
2112 public:
2113 wxPyFontEnumerator() {}
2114 ~wxPyFontEnumerator() {}
2115
2116 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
2117 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
2118
2119 PYPRIVATE;
2120 };
2121
2122 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
2123 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
2124
2125
2126 static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
2127 wxArrayString* arr = self->GetEncodings();
2128 if (arr)
2129 return wxArrayString2PyList_helper(*arr);
2130 else
2131 return PyList_New(0);
2132 }
2133 static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
2134 wxArrayString* arr = self->GetFacenames();
2135 if (arr)
2136 return wxArrayString2PyList_helper(*arr);
2137 else
2138 return PyList_New(0);
2139 }
2140
2141 #include <locale.h>
2142
2143 static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2144 wxLocale* loc;
2145 if (language == -1)
2146 loc = new wxLocale();
2147 else
2148 loc = new wxLocale(language, flags);
2149 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2150 // for the floating point conversions and such to work right.
2151 #if PY_VERSION_HEX < 0x02040000
2152 setlocale(LC_NUMERIC, "C");
2153 #endif
2154 return loc;
2155 }
2156 static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
2157 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
2158 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2159 // for the floating point conversions and such to work right.
2160 #if PY_VERSION_HEX < 0x02040000
2161 setlocale(LC_NUMERIC, "C");
2162 #endif
2163 return rc;
2164 }
2165 static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2166 bool rc = self->Init(language, flags);
2167 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2168 // for the floating point conversions and such to work right.
2169 #if PY_VERSION_HEX < 0x02040000
2170 setlocale(LC_NUMERIC, "C");
2171 #endif
2172 return rc;
2173 }
2174
2175 #include "wx/wxPython/pydrawxxx.h"
2176
2177 static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2178 wxColour col;
2179 self->GetPixel(x, y, &col);
2180 return col;
2181 }
2182 static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2183 wxColour col;
2184 self->GetPixel(pt, &col);
2185 return col;
2186 }
2187
2188 SWIGINTERN int
2189 SWIG_AsVal_double(PyObject *obj, double* val)
2190 {
2191 if (PyNumber_Check(obj)) {
2192 if (val) *val = PyFloat_AsDouble(obj);
2193 return 1;
2194 }
2195 else {
2196 SWIG_Python_TypeError("number", obj);
2197 }
2198 return 0;
2199 }
2200
2201
2202 SWIGINTERNINLINE double
2203 SWIG_As_double(PyObject* obj)
2204 {
2205 double v;
2206 if (!SWIG_AsVal_double(obj, &v)) {
2207 /*
2208 this is needed to make valgrind/purify happier.
2209 */
2210 memset((void*)&v, 0, sizeof(double));
2211 }
2212 return v;
2213 }
2214
2215
2216 SWIGINTERNINLINE int
2217 SWIG_Check_double(PyObject* obj)
2218 {
2219 return SWIG_AsVal_double(obj, (double*)0);
2220 }
2221
2222 static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2223 wxRect rv;
2224 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2225 return rv;
2226 }
2227
2228 static wxRect wxDC_GetClippingRect(wxDC *self){
2229 wxRect rect;
2230 self->GetClippingBox(rect);
2231 return rect;
2232 }
2233 static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2234 wxArrayInt widths;
2235 self->GetPartialTextExtents(text, widths);
2236 return widths;
2237 }
2238
2239 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
2240 #define SWIG_From_double PyFloat_FromDouble
2241 /*@@*/
2242
2243
2244 static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2245 self->SetLogicalOrigin(point.x, point.y);
2246 }
2247 static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2248 self->SetDeviceOrigin(point.x, point.y);
2249 }
2250 static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2251 self->CalcBoundingBox(point.x, point.y);
2252 }
2253 static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2254 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2255 }
2256 static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2257 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2258 }
2259 static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2260 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2261 }
2262 static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2263 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2264 }
2265 static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2266 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2267 }
2268 static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2269 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2270 }
2271
2272 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2273 *x1 = dc->MinX();
2274 *y1 = dc->MinY();
2275 *x2 = dc->MaxX();
2276 *y2 = dc->MaxY();
2277 }
2278
2279
2280 #include <wx/dcbuffer.h>
2281
2282
2283 #include <wx/dcps.h>
2284
2285
2286 #include <wx/metafile.h>
2287
2288
2289
2290 static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2291 self->AddColour(name, wxColour(red, green, blue));
2292 }
2293
2294 #include <wx/effects.h>
2295
2296
2297 #include "wx/renderer.h"
2298
2299
2300 SWIGINTERNINLINE PyObject*
2301 SWIG_From_bool(bool value)
2302 {
2303 PyObject *obj = value ? Py_True : Py_False;
2304 Py_INCREF(obj);
2305 return obj;
2306 }
2307
2308 #ifdef __cplusplus
2309 extern "C" {
2310 #endif
2311 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2312 PyObject *resultobj = NULL;
2313 wxGDIObject *result;
2314 char *kwnames[] = {
2315 NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
2319 {
2320 if (!wxPyCheckForApp()) SWIG_fail;
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 result = (wxGDIObject *)new wxGDIObject();
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
2328 return resultobj;
2329 fail:
2330 return NULL;
2331 }
2332
2333
2334 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj = NULL;
2336 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2337 PyObject * obj0 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "self", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2343 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2344 if (SWIG_arg_fail(1)) SWIG_fail;
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 delete arg1;
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
2352 Py_INCREF(Py_None); resultobj = Py_None;
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2360 PyObject *resultobj = NULL;
2361 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2362 bool result;
2363 PyObject * obj0 = 0 ;
2364 char *kwnames[] = {
2365 (char *) "self", NULL
2366 };
2367
2368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2369 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2370 if (SWIG_arg_fail(1)) SWIG_fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = (bool)(arg1)->GetVisible();
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 {
2379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2380 }
2381 return resultobj;
2382 fail:
2383 return NULL;
2384 }
2385
2386
2387 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2388 PyObject *resultobj = NULL;
2389 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2390 bool arg2 ;
2391 PyObject * obj0 = 0 ;
2392 PyObject * obj1 = 0 ;
2393 char *kwnames[] = {
2394 (char *) "self",(char *) "visible", NULL
2395 };
2396
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2399 if (SWIG_arg_fail(1)) SWIG_fail;
2400 {
2401 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
2402 if (SWIG_arg_fail(2)) SWIG_fail;
2403 }
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 (arg1)->SetVisible(arg2);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 Py_INCREF(Py_None); resultobj = Py_None;
2412 return resultobj;
2413 fail:
2414 return NULL;
2415 }
2416
2417
2418 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
2419 PyObject *resultobj = NULL;
2420 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2421 bool result;
2422 PyObject * obj0 = 0 ;
2423 char *kwnames[] = {
2424 (char *) "self", NULL
2425 };
2426
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2428 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2429 if (SWIG_arg_fail(1)) SWIG_fail;
2430 {
2431 PyThreadState* __tstate = wxPyBeginAllowThreads();
2432 result = (bool)(arg1)->IsNull();
2433
2434 wxPyEndAllowThreads(__tstate);
2435 if (PyErr_Occurred()) SWIG_fail;
2436 }
2437 {
2438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2439 }
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
2447 PyObject *obj;
2448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2449 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
2450 Py_INCREF(obj);
2451 return Py_BuildValue((char *)"");
2452 }
2453 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2454 PyObject *resultobj = NULL;
2455 byte arg1 = (byte) 0 ;
2456 byte arg2 = (byte) 0 ;
2457 byte arg3 = (byte) 0 ;
2458 wxColour *result;
2459 PyObject * obj0 = 0 ;
2460 PyObject * obj1 = 0 ;
2461 PyObject * obj2 = 0 ;
2462 char *kwnames[] = {
2463 (char *) "red",(char *) "green",(char *) "blue", NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2467 if (obj0) {
2468 {
2469 arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0));
2470 if (SWIG_arg_fail(1)) SWIG_fail;
2471 }
2472 }
2473 if (obj1) {
2474 {
2475 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2476 if (SWIG_arg_fail(2)) SWIG_fail;
2477 }
2478 }
2479 if (obj2) {
2480 {
2481 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2482 if (SWIG_arg_fail(3)) SWIG_fail;
2483 }
2484 }
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 result = (wxColour *)new wxColour(arg1,arg2,arg3);
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 }
2492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2493 return resultobj;
2494 fail:
2495 return NULL;
2496 }
2497
2498
2499 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
2500 PyObject *resultobj = NULL;
2501 wxString *arg1 = 0 ;
2502 wxColour *result;
2503 bool temp1 = false ;
2504 PyObject * obj0 = 0 ;
2505 char *kwnames[] = {
2506 (char *) "colorName", NULL
2507 };
2508
2509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2510 {
2511 arg1 = wxString_in_helper(obj0);
2512 if (arg1 == NULL) SWIG_fail;
2513 temp1 = true;
2514 }
2515 {
2516 if (!wxPyCheckForApp()) SWIG_fail;
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 result = (wxColour *)new wxColour((wxString const &)*arg1);
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2524 {
2525 if (temp1)
2526 delete arg1;
2527 }
2528 return resultobj;
2529 fail:
2530 {
2531 if (temp1)
2532 delete arg1;
2533 }
2534 return NULL;
2535 }
2536
2537
2538 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2539 PyObject *resultobj = NULL;
2540 unsigned long arg1 ;
2541 wxColour *result;
2542 PyObject * obj0 = 0 ;
2543 char *kwnames[] = {
2544 (char *) "colRGB", NULL
2545 };
2546
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2548 {
2549 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
2550 if (SWIG_arg_fail(1)) SWIG_fail;
2551 }
2552 {
2553 PyThreadState* __tstate = wxPyBeginAllowThreads();
2554 result = (wxColour *)new wxColour(arg1);
2555
2556 wxPyEndAllowThreads(__tstate);
2557 if (PyErr_Occurred()) SWIG_fail;
2558 }
2559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2560 return resultobj;
2561 fail:
2562 return NULL;
2563 }
2564
2565
2566 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2567 PyObject *resultobj = NULL;
2568 wxColour *arg1 = (wxColour *) 0 ;
2569 PyObject * obj0 = 0 ;
2570 char *kwnames[] = {
2571 (char *) "self", NULL
2572 };
2573
2574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2575 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2576 if (SWIG_arg_fail(1)) SWIG_fail;
2577 {
2578 PyThreadState* __tstate = wxPyBeginAllowThreads();
2579 delete arg1;
2580
2581 wxPyEndAllowThreads(__tstate);
2582 if (PyErr_Occurred()) SWIG_fail;
2583 }
2584 Py_INCREF(Py_None); resultobj = Py_None;
2585 return resultobj;
2586 fail:
2587 return NULL;
2588 }
2589
2590
2591 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj = NULL;
2593 wxColour *arg1 = (wxColour *) 0 ;
2594 byte result;
2595 PyObject * obj0 = 0 ;
2596 char *kwnames[] = {
2597 (char *) "self", NULL
2598 };
2599
2600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2601 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2602 if (SWIG_arg_fail(1)) SWIG_fail;
2603 {
2604 PyThreadState* __tstate = wxPyBeginAllowThreads();
2605 result = (byte)(arg1)->Red();
2606
2607 wxPyEndAllowThreads(__tstate);
2608 if (PyErr_Occurred()) SWIG_fail;
2609 }
2610 {
2611 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2612 }
2613 return resultobj;
2614 fail:
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj = NULL;
2621 wxColour *arg1 = (wxColour *) 0 ;
2622 byte result;
2623 PyObject * obj0 = 0 ;
2624 char *kwnames[] = {
2625 (char *) "self", NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2629 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2630 if (SWIG_arg_fail(1)) SWIG_fail;
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 result = (byte)(arg1)->Green();
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
2638 {
2639 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2640 }
2641 return resultobj;
2642 fail:
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj = NULL;
2649 wxColour *arg1 = (wxColour *) 0 ;
2650 byte result;
2651 PyObject * obj0 = 0 ;
2652 char *kwnames[] = {
2653 (char *) "self", NULL
2654 };
2655
2656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2657 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2658 if (SWIG_arg_fail(1)) SWIG_fail;
2659 {
2660 PyThreadState* __tstate = wxPyBeginAllowThreads();
2661 result = (byte)(arg1)->Blue();
2662
2663 wxPyEndAllowThreads(__tstate);
2664 if (PyErr_Occurred()) SWIG_fail;
2665 }
2666 {
2667 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2668 }
2669 return resultobj;
2670 fail:
2671 return NULL;
2672 }
2673
2674
2675 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2676 PyObject *resultobj = NULL;
2677 wxColour *arg1 = (wxColour *) 0 ;
2678 bool result;
2679 PyObject * obj0 = 0 ;
2680 char *kwnames[] = {
2681 (char *) "self", NULL
2682 };
2683
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2686 if (SWIG_arg_fail(1)) SWIG_fail;
2687 {
2688 PyThreadState* __tstate = wxPyBeginAllowThreads();
2689 result = (bool)(arg1)->Ok();
2690
2691 wxPyEndAllowThreads(__tstate);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 }
2694 {
2695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2696 }
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj = NULL;
2705 wxColour *arg1 = (wxColour *) 0 ;
2706 byte arg2 ;
2707 byte arg3 ;
2708 byte arg4 ;
2709 PyObject * obj0 = 0 ;
2710 PyObject * obj1 = 0 ;
2711 PyObject * obj2 = 0 ;
2712 PyObject * obj3 = 0 ;
2713 char *kwnames[] = {
2714 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
2715 };
2716
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2719 if (SWIG_arg_fail(1)) SWIG_fail;
2720 {
2721 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2722 if (SWIG_arg_fail(2)) SWIG_fail;
2723 }
2724 {
2725 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2726 if (SWIG_arg_fail(3)) SWIG_fail;
2727 }
2728 {
2729 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
2730 if (SWIG_arg_fail(4)) SWIG_fail;
2731 }
2732 {
2733 PyThreadState* __tstate = wxPyBeginAllowThreads();
2734 (arg1)->Set(arg2,arg3,arg4);
2735
2736 wxPyEndAllowThreads(__tstate);
2737 if (PyErr_Occurred()) SWIG_fail;
2738 }
2739 Py_INCREF(Py_None); resultobj = Py_None;
2740 return resultobj;
2741 fail:
2742 return NULL;
2743 }
2744
2745
2746 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2747 PyObject *resultobj = NULL;
2748 wxColour *arg1 = (wxColour *) 0 ;
2749 unsigned long arg2 ;
2750 PyObject * obj0 = 0 ;
2751 PyObject * obj1 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "self",(char *) "colRGB", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2758 if (SWIG_arg_fail(1)) SWIG_fail;
2759 {
2760 arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1));
2761 if (SWIG_arg_fail(2)) SWIG_fail;
2762 }
2763 {
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
2765 (arg1)->Set(arg2);
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) SWIG_fail;
2769 }
2770 Py_INCREF(Py_None); resultobj = Py_None;
2771 return resultobj;
2772 fail:
2773 return NULL;
2774 }
2775
2776
2777 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
2778 PyObject *resultobj = NULL;
2779 wxColour *arg1 = (wxColour *) 0 ;
2780 wxString *arg2 = 0 ;
2781 bool temp2 = false ;
2782 PyObject * obj0 = 0 ;
2783 PyObject * obj1 = 0 ;
2784 char *kwnames[] = {
2785 (char *) "self",(char *) "colourName", NULL
2786 };
2787
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2790 if (SWIG_arg_fail(1)) SWIG_fail;
2791 {
2792 arg2 = wxString_in_helper(obj1);
2793 if (arg2 == NULL) SWIG_fail;
2794 temp2 = true;
2795 }
2796 {
2797 PyThreadState* __tstate = wxPyBeginAllowThreads();
2798 (arg1)->InitFromName((wxString const &)*arg2);
2799
2800 wxPyEndAllowThreads(__tstate);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 Py_INCREF(Py_None); resultobj = Py_None;
2804 {
2805 if (temp2)
2806 delete arg2;
2807 }
2808 return resultobj;
2809 fail:
2810 {
2811 if (temp2)
2812 delete arg2;
2813 }
2814 return NULL;
2815 }
2816
2817
2818 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
2819 PyObject *resultobj = NULL;
2820 wxColour *arg1 = (wxColour *) 0 ;
2821 long result;
2822 PyObject * obj0 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "self", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2828 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2829 if (SWIG_arg_fail(1)) SWIG_fail;
2830 {
2831 PyThreadState* __tstate = wxPyBeginAllowThreads();
2832 result = (long)((wxColour const *)arg1)->GetPixel();
2833
2834 wxPyEndAllowThreads(__tstate);
2835 if (PyErr_Occurred()) SWIG_fail;
2836 }
2837 {
2838 resultobj = SWIG_From_long(static_cast<long >(result));
2839 }
2840 return resultobj;
2841 fail:
2842 return NULL;
2843 }
2844
2845
2846 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2847 PyObject *resultobj = NULL;
2848 wxColour *arg1 = (wxColour *) 0 ;
2849 wxColour *arg2 = 0 ;
2850 bool result;
2851 wxColour temp2 ;
2852 PyObject * obj0 = 0 ;
2853 PyObject * obj1 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "self",(char *) "colour", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2859 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2860 if (SWIG_arg_fail(1)) SWIG_fail;
2861 {
2862 arg2 = &temp2;
2863 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2864 }
2865 {
2866 PyThreadState* __tstate = wxPyBeginAllowThreads();
2867 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) SWIG_fail;
2871 }
2872 {
2873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2874 }
2875 return resultobj;
2876 fail:
2877 return NULL;
2878 }
2879
2880
2881 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2882 PyObject *resultobj = NULL;
2883 wxColour *arg1 = (wxColour *) 0 ;
2884 wxColour *arg2 = 0 ;
2885 bool result;
2886 wxColour temp2 ;
2887 PyObject * obj0 = 0 ;
2888 PyObject * obj1 = 0 ;
2889 char *kwnames[] = {
2890 (char *) "self",(char *) "colour", NULL
2891 };
2892
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2895 if (SWIG_arg_fail(1)) SWIG_fail;
2896 {
2897 arg2 = &temp2;
2898 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2899 }
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 {
2908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2909 }
2910 return resultobj;
2911 fail:
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj = NULL;
2918 wxColour *arg1 = (wxColour *) 0 ;
2919 PyObject *result;
2920 PyObject * obj0 = 0 ;
2921 char *kwnames[] = {
2922 (char *) "self", NULL
2923 };
2924
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2927 if (SWIG_arg_fail(1)) SWIG_fail;
2928 {
2929 PyThreadState* __tstate = wxPyBeginAllowThreads();
2930 result = (PyObject *)wxColour_Get(arg1);
2931
2932 wxPyEndAllowThreads(__tstate);
2933 if (PyErr_Occurred()) SWIG_fail;
2934 }
2935 resultobj = result;
2936 return resultobj;
2937 fail:
2938 return NULL;
2939 }
2940
2941
2942 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2943 PyObject *resultobj = NULL;
2944 wxColour *arg1 = (wxColour *) 0 ;
2945 unsigned long result;
2946 PyObject * obj0 = 0 ;
2947 char *kwnames[] = {
2948 (char *) "self", NULL
2949 };
2950
2951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2952 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2953 if (SWIG_arg_fail(1)) SWIG_fail;
2954 {
2955 PyThreadState* __tstate = wxPyBeginAllowThreads();
2956 result = (unsigned long)wxColour_GetRGB(arg1);
2957
2958 wxPyEndAllowThreads(__tstate);
2959 if (PyErr_Occurred()) SWIG_fail;
2960 }
2961 {
2962 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
2963 }
2964 return resultobj;
2965 fail:
2966 return NULL;
2967 }
2968
2969
2970 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
2971 PyObject *obj;
2972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2973 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
2974 Py_INCREF(obj);
2975 return Py_BuildValue((char *)"");
2976 }
2977 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
2978 PyObject *resultobj = NULL;
2979 int arg1 ;
2980 unsigned char *arg2 = (unsigned char *) 0 ;
2981 unsigned char *arg3 = (unsigned char *) 0 ;
2982 unsigned char *arg4 = (unsigned char *) 0 ;
2983 wxPalette *result;
2984 PyObject * obj0 = 0 ;
2985 PyObject * obj1 = 0 ;
2986 PyObject * obj2 = 0 ;
2987 PyObject * obj3 = 0 ;
2988 char *kwnames[] = {
2989 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
2990 };
2991
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2993 {
2994 arg1 = static_cast<int >(SWIG_As_int(obj0));
2995 if (SWIG_arg_fail(1)) SWIG_fail;
2996 }
2997 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2998 if (SWIG_arg_fail(2)) SWIG_fail;
2999 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3000 if (SWIG_arg_fail(3)) SWIG_fail;
3001 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3002 if (SWIG_arg_fail(4)) SWIG_fail;
3003 {
3004 if (!wxPyCheckForApp()) SWIG_fail;
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) SWIG_fail;
3010 }
3011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
3012 return resultobj;
3013 fail:
3014 return NULL;
3015 }
3016
3017
3018 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
3019 PyObject *resultobj = NULL;
3020 wxPalette *arg1 = (wxPalette *) 0 ;
3021 PyObject * obj0 = 0 ;
3022 char *kwnames[] = {
3023 (char *) "self", NULL
3024 };
3025
3026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
3027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3028 if (SWIG_arg_fail(1)) SWIG_fail;
3029 {
3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
3031 delete arg1;
3032
3033 wxPyEndAllowThreads(__tstate);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 Py_INCREF(Py_None); resultobj = Py_None;
3037 return resultobj;
3038 fail:
3039 return NULL;
3040 }
3041
3042
3043 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
3044 PyObject *resultobj = NULL;
3045 wxPalette *arg1 = (wxPalette *) 0 ;
3046 byte arg2 ;
3047 byte arg3 ;
3048 byte arg4 ;
3049 int result;
3050 PyObject * obj0 = 0 ;
3051 PyObject * obj1 = 0 ;
3052 PyObject * obj2 = 0 ;
3053 PyObject * obj3 = 0 ;
3054 char *kwnames[] = {
3055 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3056 };
3057
3058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3059 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3060 if (SWIG_arg_fail(1)) SWIG_fail;
3061 {
3062 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
3063 if (SWIG_arg_fail(2)) SWIG_fail;
3064 }
3065 {
3066 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
3067 if (SWIG_arg_fail(3)) SWIG_fail;
3068 }
3069 {
3070 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
3071 if (SWIG_arg_fail(4)) SWIG_fail;
3072 }
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) SWIG_fail;
3079 }
3080 {
3081 resultobj = SWIG_From_int(static_cast<int >(result));
3082 }
3083 return resultobj;
3084 fail:
3085 return NULL;
3086 }
3087
3088
3089 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
3090 PyObject *resultobj = NULL;
3091 wxPalette *arg1 = (wxPalette *) 0 ;
3092 int arg2 ;
3093 byte *arg3 = (byte *) 0 ;
3094 byte *arg4 = (byte *) 0 ;
3095 byte *arg5 = (byte *) 0 ;
3096 bool result;
3097 byte temp3 ;
3098 int res3 = 0 ;
3099 byte temp4 ;
3100 int res4 = 0 ;
3101 byte temp5 ;
3102 int res5 = 0 ;
3103 PyObject * obj0 = 0 ;
3104 PyObject * obj1 = 0 ;
3105 char *kwnames[] = {
3106 (char *) "self",(char *) "pixel", NULL
3107 };
3108
3109 arg3 = &temp3; res3 = SWIG_NEWOBJ;
3110 arg4 = &temp4; res4 = SWIG_NEWOBJ;
3111 arg5 = &temp5; res5 = SWIG_NEWOBJ;
3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
3113 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3114 if (SWIG_arg_fail(1)) SWIG_fail;
3115 {
3116 arg2 = static_cast<int >(SWIG_As_int(obj1));
3117 if (SWIG_arg_fail(2)) SWIG_fail;
3118 }
3119 {
3120 PyThreadState* __tstate = wxPyBeginAllowThreads();
3121 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
3122
3123 wxPyEndAllowThreads(__tstate);
3124 if (PyErr_Occurred()) SWIG_fail;
3125 }
3126 {
3127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3128 }
3129 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
3130 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
3131 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
3132 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
3133 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
3134 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
3135 return resultobj;
3136 fail:
3137 return NULL;
3138 }
3139
3140
3141 static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj = NULL;
3143 wxPalette *arg1 = (wxPalette *) 0 ;
3144 int result;
3145 PyObject * obj0 = 0 ;
3146 char *kwnames[] = {
3147 (char *) "self", NULL
3148 };
3149
3150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
3151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3152 if (SWIG_arg_fail(1)) SWIG_fail;
3153 {
3154 PyThreadState* __tstate = wxPyBeginAllowThreads();
3155 result = (int)((wxPalette const *)arg1)->GetColoursCount();
3156
3157 wxPyEndAllowThreads(__tstate);
3158 if (PyErr_Occurred()) SWIG_fail;
3159 }
3160 {
3161 resultobj = SWIG_From_int(static_cast<int >(result));
3162 }
3163 return resultobj;
3164 fail:
3165 return NULL;
3166 }
3167
3168
3169 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3170 PyObject *resultobj = NULL;
3171 wxPalette *arg1 = (wxPalette *) 0 ;
3172 bool result;
3173 PyObject * obj0 = 0 ;
3174 char *kwnames[] = {
3175 (char *) "self", NULL
3176 };
3177
3178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3180 if (SWIG_arg_fail(1)) SWIG_fail;
3181 {
3182 PyThreadState* __tstate = wxPyBeginAllowThreads();
3183 result = (bool)(arg1)->Ok();
3184
3185 wxPyEndAllowThreads(__tstate);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 {
3189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3190 }
3191 return resultobj;
3192 fail:
3193 return NULL;
3194 }
3195
3196
3197 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
3198 PyObject *obj;
3199 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3200 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
3201 Py_INCREF(obj);
3202 return Py_BuildValue((char *)"");
3203 }
3204 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3205 PyObject *resultobj = NULL;
3206 wxColour *arg1 = 0 ;
3207 int arg2 = (int) 1 ;
3208 int arg3 = (int) wxSOLID ;
3209 wxPen *result;
3210 wxColour temp1 ;
3211 PyObject * obj0 = 0 ;
3212 PyObject * obj1 = 0 ;
3213 PyObject * obj2 = 0 ;
3214 char *kwnames[] = {
3215 (char *) "colour",(char *) "width",(char *) "style", NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
3219 {
3220 arg1 = &temp1;
3221 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3222 }
3223 if (obj1) {
3224 {
3225 arg2 = static_cast<int >(SWIG_As_int(obj1));
3226 if (SWIG_arg_fail(2)) SWIG_fail;
3227 }
3228 }
3229 if (obj2) {
3230 {
3231 arg3 = static_cast<int >(SWIG_As_int(obj2));
3232 if (SWIG_arg_fail(3)) SWIG_fail;
3233 }
3234 }
3235 {
3236 if (!wxPyCheckForApp()) SWIG_fail;
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
3238 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
3244 return resultobj;
3245 fail:
3246 return NULL;
3247 }
3248
3249
3250 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj = NULL;
3252 wxPen *arg1 = (wxPen *) 0 ;
3253 PyObject * obj0 = 0 ;
3254 char *kwnames[] = {
3255 (char *) "self", NULL
3256 };
3257
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3259 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3260 if (SWIG_arg_fail(1)) SWIG_fail;
3261 {
3262 PyThreadState* __tstate = wxPyBeginAllowThreads();
3263 delete arg1;
3264
3265 wxPyEndAllowThreads(__tstate);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 Py_INCREF(Py_None); resultobj = Py_None;
3269 return resultobj;
3270 fail:
3271 return NULL;
3272 }
3273
3274
3275 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3276 PyObject *resultobj = NULL;
3277 wxPen *arg1 = (wxPen *) 0 ;
3278 int result;
3279 PyObject * obj0 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "self", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3286 if (SWIG_arg_fail(1)) SWIG_fail;
3287 {
3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
3289 result = (int)(arg1)->GetCap();
3290
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 {
3295 resultobj = SWIG_From_int(static_cast<int >(result));
3296 }
3297 return resultobj;
3298 fail:
3299 return NULL;
3300 }
3301
3302
3303 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj = NULL;
3305 wxPen *arg1 = (wxPen *) 0 ;
3306 wxColour result;
3307 PyObject * obj0 = 0 ;
3308 char *kwnames[] = {
3309 (char *) "self", NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3314 if (SWIG_arg_fail(1)) SWIG_fail;
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 result = (arg1)->GetColour();
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 {
3323 wxColour * resultptr;
3324 resultptr = new wxColour(static_cast<wxColour & >(result));
3325 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3326 }
3327 return resultobj;
3328 fail:
3329 return NULL;
3330 }
3331
3332
3333 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3334 PyObject *resultobj = NULL;
3335 wxPen *arg1 = (wxPen *) 0 ;
3336 int result;
3337 PyObject * obj0 = 0 ;
3338 char *kwnames[] = {
3339 (char *) "self", NULL
3340 };
3341
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3343 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3344 if (SWIG_arg_fail(1)) SWIG_fail;
3345 {
3346 PyThreadState* __tstate = wxPyBeginAllowThreads();
3347 result = (int)(arg1)->GetJoin();
3348
3349 wxPyEndAllowThreads(__tstate);
3350 if (PyErr_Occurred()) SWIG_fail;
3351 }
3352 {
3353 resultobj = SWIG_From_int(static_cast<int >(result));
3354 }
3355 return resultobj;
3356 fail:
3357 return NULL;
3358 }
3359
3360
3361 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj = NULL;
3363 wxPen *arg1 = (wxPen *) 0 ;
3364 int result;
3365 PyObject * obj0 = 0 ;
3366 char *kwnames[] = {
3367 (char *) "self", NULL
3368 };
3369
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3372 if (SWIG_arg_fail(1)) SWIG_fail;
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = (int)(arg1)->GetStyle();
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 {
3381 resultobj = SWIG_From_int(static_cast<int >(result));
3382 }
3383 return resultobj;
3384 fail:
3385 return NULL;
3386 }
3387
3388
3389 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3390 PyObject *resultobj = NULL;
3391 wxPen *arg1 = (wxPen *) 0 ;
3392 int result;
3393 PyObject * obj0 = 0 ;
3394 char *kwnames[] = {
3395 (char *) "self", NULL
3396 };
3397
3398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3400 if (SWIG_arg_fail(1)) SWIG_fail;
3401 {
3402 PyThreadState* __tstate = wxPyBeginAllowThreads();
3403 result = (int)(arg1)->GetWidth();
3404
3405 wxPyEndAllowThreads(__tstate);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 {
3409 resultobj = SWIG_From_int(static_cast<int >(result));
3410 }
3411 return resultobj;
3412 fail:
3413 return NULL;
3414 }
3415
3416
3417 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3418 PyObject *resultobj = NULL;
3419 wxPen *arg1 = (wxPen *) 0 ;
3420 bool result;
3421 PyObject * obj0 = 0 ;
3422 char *kwnames[] = {
3423 (char *) "self", NULL
3424 };
3425
3426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3428 if (SWIG_arg_fail(1)) SWIG_fail;
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (bool)(arg1)->Ok();
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 {
3437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3438 }
3439 return resultobj;
3440 fail:
3441 return NULL;
3442 }
3443
3444
3445 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj = NULL;
3447 wxPen *arg1 = (wxPen *) 0 ;
3448 int arg2 ;
3449 PyObject * obj0 = 0 ;
3450 PyObject * obj1 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "self",(char *) "cap_style", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3457 if (SWIG_arg_fail(1)) SWIG_fail;
3458 {
3459 arg2 = static_cast<int >(SWIG_As_int(obj1));
3460 if (SWIG_arg_fail(2)) SWIG_fail;
3461 }
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 (arg1)->SetCap(arg2);
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 Py_INCREF(Py_None); resultobj = Py_None;
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj = NULL;
3478 wxPen *arg1 = (wxPen *) 0 ;
3479 wxColour *arg2 = 0 ;
3480 wxColour temp2 ;
3481 PyObject * obj0 = 0 ;
3482 PyObject * obj1 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self",(char *) "colour", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3488 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3489 if (SWIG_arg_fail(1)) SWIG_fail;
3490 {
3491 arg2 = &temp2;
3492 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3493 }
3494 {
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 (arg1)->SetColour(*arg2);
3497
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 Py_INCREF(Py_None); resultobj = Py_None;
3502 return resultobj;
3503 fail:
3504 return NULL;
3505 }
3506
3507
3508 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3509 PyObject *resultobj = NULL;
3510 wxPen *arg1 = (wxPen *) 0 ;
3511 int arg2 ;
3512 PyObject * obj0 = 0 ;
3513 PyObject * obj1 = 0 ;
3514 char *kwnames[] = {
3515 (char *) "self",(char *) "join_style", NULL
3516 };
3517
3518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3520 if (SWIG_arg_fail(1)) SWIG_fail;
3521 {
3522 arg2 = static_cast<int >(SWIG_As_int(obj1));
3523 if (SWIG_arg_fail(2)) SWIG_fail;
3524 }
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 (arg1)->SetJoin(arg2);
3528
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 Py_INCREF(Py_None); resultobj = Py_None;
3533 return resultobj;
3534 fail:
3535 return NULL;
3536 }
3537
3538
3539 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3540 PyObject *resultobj = NULL;
3541 wxPen *arg1 = (wxPen *) 0 ;
3542 int arg2 ;
3543 PyObject * obj0 = 0 ;
3544 PyObject * obj1 = 0 ;
3545 char *kwnames[] = {
3546 (char *) "self",(char *) "style", NULL
3547 };
3548
3549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3550 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3551 if (SWIG_arg_fail(1)) SWIG_fail;
3552 {
3553 arg2 = static_cast<int >(SWIG_As_int(obj1));
3554 if (SWIG_arg_fail(2)) SWIG_fail;
3555 }
3556 {
3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
3558 (arg1)->SetStyle(arg2);
3559
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 Py_INCREF(Py_None); resultobj = Py_None;
3564 return resultobj;
3565 fail:
3566 return NULL;
3567 }
3568
3569
3570 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3571 PyObject *resultobj = NULL;
3572 wxPen *arg1 = (wxPen *) 0 ;
3573 int arg2 ;
3574 PyObject * obj0 = 0 ;
3575 PyObject * obj1 = 0 ;
3576 char *kwnames[] = {
3577 (char *) "self",(char *) "width", NULL
3578 };
3579
3580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3582 if (SWIG_arg_fail(1)) SWIG_fail;
3583 {
3584 arg2 = static_cast<int >(SWIG_As_int(obj1));
3585 if (SWIG_arg_fail(2)) SWIG_fail;
3586 }
3587 {
3588 PyThreadState* __tstate = wxPyBeginAllowThreads();
3589 (arg1)->SetWidth(arg2);
3590
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 Py_INCREF(Py_None); resultobj = Py_None;
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3602 PyObject *resultobj = NULL;
3603 wxPen *arg1 = (wxPen *) 0 ;
3604 int arg2 ;
3605 wxDash *arg3 = (wxDash *) 0 ;
3606 PyObject * obj0 = 0 ;
3607 PyObject * obj1 = 0 ;
3608 char *kwnames[] = {
3609 (char *) "self",(char *) "dashes", NULL
3610 };
3611
3612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3613 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3614 if (SWIG_arg_fail(1)) SWIG_fail;
3615 {
3616 arg2 = PyList_Size(obj1);
3617 arg3 = (wxDash*)byte_LIST_helper(obj1);
3618 if (arg3 == NULL) SWIG_fail;
3619 }
3620 {
3621 PyThreadState* __tstate = wxPyBeginAllowThreads();
3622 (arg1)->SetDashes(arg2,arg3);
3623
3624 wxPyEndAllowThreads(__tstate);
3625 if (PyErr_Occurred()) SWIG_fail;
3626 }
3627 Py_INCREF(Py_None); resultobj = Py_None;
3628 {
3629 if (arg3) delete [] arg3;
3630 }
3631 return resultobj;
3632 fail:
3633 {
3634 if (arg3) delete [] arg3;
3635 }
3636 return NULL;
3637 }
3638
3639
3640 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3641 PyObject *resultobj = NULL;
3642 wxPen *arg1 = (wxPen *) 0 ;
3643 PyObject *result;
3644 PyObject * obj0 = 0 ;
3645 char *kwnames[] = {
3646 (char *) "self", NULL
3647 };
3648
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3651 if (SWIG_arg_fail(1)) SWIG_fail;
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 result = (PyObject *)wxPen_GetDashes(arg1);
3655
3656 wxPyEndAllowThreads(__tstate);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 resultobj = result;
3660 return resultobj;
3661 fail:
3662 return NULL;
3663 }
3664
3665
3666 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj = NULL;
3668 wxPen *arg1 = (wxPen *) 0 ;
3669 PyObject *arg2 = (PyObject *) 0 ;
3670 PyObject *arg3 = (PyObject *) 0 ;
3671 PyObject * obj0 = 0 ;
3672 PyObject * obj1 = 0 ;
3673 PyObject * obj2 = 0 ;
3674 char *kwnames[] = {
3675 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
3676 };
3677
3678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3680 if (SWIG_arg_fail(1)) SWIG_fail;
3681 arg2 = obj1;
3682 arg3 = obj2;
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 wxPen__SetDashes(arg1,arg2,arg3);
3686
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 Py_INCREF(Py_None); resultobj = Py_None;
3691 return resultobj;
3692 fail:
3693 return NULL;
3694 }
3695
3696
3697 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj = NULL;
3699 wxPen *arg1 = (wxPen *) 0 ;
3700 int result;
3701 PyObject * obj0 = 0 ;
3702 char *kwnames[] = {
3703 (char *) "self", NULL
3704 };
3705
3706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
3707 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3708 if (SWIG_arg_fail(1)) SWIG_fail;
3709 {
3710 PyThreadState* __tstate = wxPyBeginAllowThreads();
3711 result = (int)((wxPen const *)arg1)->GetDashCount();
3712
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 }
3716 {
3717 resultobj = SWIG_From_int(static_cast<int >(result));
3718 }
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj = NULL;
3727 wxPen *arg1 = (wxPen *) 0 ;
3728 wxBitmap *result;
3729 PyObject * obj0 = 0 ;
3730 char *kwnames[] = {
3731 (char *) "self", NULL
3732 };
3733
3734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
3735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3736 if (SWIG_arg_fail(1)) SWIG_fail;
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 result = (wxBitmap *)(arg1)->GetStipple();
3740
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
3745 return resultobj;
3746 fail:
3747 return NULL;
3748 }
3749
3750
3751 static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3752 PyObject *resultobj = NULL;
3753 wxPen *arg1 = (wxPen *) 0 ;
3754 wxBitmap *arg2 = 0 ;
3755 PyObject * obj0 = 0 ;
3756 PyObject * obj1 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self",(char *) "stipple", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3762 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3763 if (SWIG_arg_fail(1)) SWIG_fail;
3764 {
3765 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3766 if (SWIG_arg_fail(2)) SWIG_fail;
3767 if (arg2 == NULL) {
3768 SWIG_null_ref("wxBitmap");
3769 }
3770 if (SWIG_arg_fail(2)) SWIG_fail;
3771 }
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 (arg1)->SetStipple(*arg2);
3775
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 Py_INCREF(Py_None); resultobj = Py_None;
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj = NULL;
3788 wxPen *arg1 = (wxPen *) 0 ;
3789 wxPen *arg2 = (wxPen *) 0 ;
3790 bool result;
3791 PyObject * obj0 = 0 ;
3792 PyObject * obj1 = 0 ;
3793 char *kwnames[] = {
3794 (char *) "self",(char *) "other", NULL
3795 };
3796
3797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3798 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3799 if (SWIG_arg_fail(1)) SWIG_fail;
3800 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3801 if (SWIG_arg_fail(2)) SWIG_fail;
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
3804 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
3805
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 {
3810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3811 }
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj = NULL;
3820 wxPen *arg1 = (wxPen *) 0 ;
3821 wxPen *arg2 = (wxPen *) 0 ;
3822 bool result;
3823 PyObject * obj0 = 0 ;
3824 PyObject * obj1 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self",(char *) "other", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3831 if (SWIG_arg_fail(1)) SWIG_fail;
3832 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3833 if (SWIG_arg_fail(2)) SWIG_fail;
3834 {
3835 PyThreadState* __tstate = wxPyBeginAllowThreads();
3836 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
3837
3838 wxPyEndAllowThreads(__tstate);
3839 if (PyErr_Occurred()) SWIG_fail;
3840 }
3841 {
3842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3843 }
3844 return resultobj;
3845 fail:
3846 return NULL;
3847 }
3848
3849
3850 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3851 PyObject *obj;
3852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3853 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3854 Py_INCREF(obj);
3855 return Py_BuildValue((char *)"");
3856 }
3857 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3858 PyObject *resultobj = NULL;
3859 wxColour *arg1 = 0 ;
3860 int arg2 = (int) wxSOLID ;
3861 wxBrush *result;
3862 wxColour temp1 ;
3863 PyObject * obj0 = 0 ;
3864 PyObject * obj1 = 0 ;
3865 char *kwnames[] = {
3866 (char *) "colour",(char *) "style", NULL
3867 };
3868
3869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3870 {
3871 arg1 = &temp1;
3872 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3873 }
3874 if (obj1) {
3875 {
3876 arg2 = static_cast<int >(SWIG_As_int(obj1));
3877 if (SWIG_arg_fail(2)) SWIG_fail;
3878 }
3879 }
3880 {
3881 if (!wxPyCheckForApp()) SWIG_fail;
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
3884
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3889 return resultobj;
3890 fail:
3891 return NULL;
3892 }
3893
3894
3895 static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj = NULL;
3897 wxBitmap *arg1 = 0 ;
3898 wxBrush *result;
3899 PyObject * obj0 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "stippleBitmap", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3905 {
3906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3907 if (SWIG_arg_fail(1)) SWIG_fail;
3908 if (arg1 == NULL) {
3909 SWIG_null_ref("wxBitmap");
3910 }
3911 if (SWIG_arg_fail(1)) SWIG_fail;
3912 }
3913 {
3914 if (!wxPyCheckForApp()) SWIG_fail;
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj = NULL;
3930 wxBrush *arg1 = (wxBrush *) 0 ;
3931 PyObject * obj0 = 0 ;
3932 char *kwnames[] = {
3933 (char *) "self", NULL
3934 };
3935
3936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3937 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3938 if (SWIG_arg_fail(1)) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 delete arg1;
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 Py_INCREF(Py_None); resultobj = Py_None;
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj = NULL;
3955 wxBrush *arg1 = (wxBrush *) 0 ;
3956 wxColour *arg2 = 0 ;
3957 wxColour temp2 ;
3958 PyObject * obj0 = 0 ;
3959 PyObject * obj1 = 0 ;
3960 char *kwnames[] = {
3961 (char *) "self",(char *) "col", NULL
3962 };
3963
3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3965 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3966 if (SWIG_arg_fail(1)) SWIG_fail;
3967 {
3968 arg2 = &temp2;
3969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3970 }
3971 {
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 (arg1)->SetColour((wxColour const &)*arg2);
3974
3975 wxPyEndAllowThreads(__tstate);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 }
3978 Py_INCREF(Py_None); resultobj = Py_None;
3979 return resultobj;
3980 fail:
3981 return NULL;
3982 }
3983
3984
3985 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3986 PyObject *resultobj = NULL;
3987 wxBrush *arg1 = (wxBrush *) 0 ;
3988 int arg2 ;
3989 PyObject * obj0 = 0 ;
3990 PyObject * obj1 = 0 ;
3991 char *kwnames[] = {
3992 (char *) "self",(char *) "style", NULL
3993 };
3994
3995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3996 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3997 if (SWIG_arg_fail(1)) SWIG_fail;
3998 {
3999 arg2 = static_cast<int >(SWIG_As_int(obj1));
4000 if (SWIG_arg_fail(2)) SWIG_fail;
4001 }
4002 {
4003 PyThreadState* __tstate = wxPyBeginAllowThreads();
4004 (arg1)->SetStyle(arg2);
4005
4006 wxPyEndAllowThreads(__tstate);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 }
4009 Py_INCREF(Py_None); resultobj = Py_None;
4010 return resultobj;
4011 fail:
4012 return NULL;
4013 }
4014
4015
4016 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4017 PyObject *resultobj = NULL;
4018 wxBrush *arg1 = (wxBrush *) 0 ;
4019 wxBitmap *arg2 = 0 ;
4020 PyObject * obj0 = 0 ;
4021 PyObject * obj1 = 0 ;
4022 char *kwnames[] = {
4023 (char *) "self",(char *) "stipple", NULL
4024 };
4025
4026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
4027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4028 if (SWIG_arg_fail(1)) SWIG_fail;
4029 {
4030 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4031 if (SWIG_arg_fail(2)) SWIG_fail;
4032 if (arg2 == NULL) {
4033 SWIG_null_ref("wxBitmap");
4034 }
4035 if (SWIG_arg_fail(2)) SWIG_fail;
4036 }
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 (arg1)->SetStipple((wxBitmap const &)*arg2);
4040
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 Py_INCREF(Py_None); resultobj = Py_None;
4045 return resultobj;
4046 fail:
4047 return NULL;
4048 }
4049
4050
4051 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
4052 PyObject *resultobj = NULL;
4053 wxBrush *arg1 = (wxBrush *) 0 ;
4054 wxColour result;
4055 PyObject * obj0 = 0 ;
4056 char *kwnames[] = {
4057 (char *) "self", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
4061 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4062 if (SWIG_arg_fail(1)) SWIG_fail;
4063 {
4064 PyThreadState* __tstate = wxPyBeginAllowThreads();
4065 result = ((wxBrush const *)arg1)->GetColour();
4066
4067 wxPyEndAllowThreads(__tstate);
4068 if (PyErr_Occurred()) SWIG_fail;
4069 }
4070 {
4071 wxColour * resultptr;
4072 resultptr = new wxColour(static_cast<wxColour & >(result));
4073 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4074 }
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj = NULL;
4083 wxBrush *arg1 = (wxBrush *) 0 ;
4084 int result;
4085 PyObject * obj0 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "self", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
4091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4092 if (SWIG_arg_fail(1)) SWIG_fail;
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (int)((wxBrush const *)arg1)->GetStyle();
4096
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 {
4101 resultobj = SWIG_From_int(static_cast<int >(result));
4102 }
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj = NULL;
4111 wxBrush *arg1 = (wxBrush *) 0 ;
4112 wxBitmap *result;
4113 PyObject * obj0 = 0 ;
4114 char *kwnames[] = {
4115 (char *) "self", NULL
4116 };
4117
4118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
4119 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4120 if (SWIG_arg_fail(1)) SWIG_fail;
4121 {
4122 PyThreadState* __tstate = wxPyBeginAllowThreads();
4123 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
4124
4125 wxPyEndAllowThreads(__tstate);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 }
4128 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
4129 return resultobj;
4130 fail:
4131 return NULL;
4132 }
4133
4134
4135 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
4136 PyObject *resultobj = NULL;
4137 wxBrush *arg1 = (wxBrush *) 0 ;
4138 bool result;
4139 PyObject * obj0 = 0 ;
4140 char *kwnames[] = {
4141 (char *) "self", NULL
4142 };
4143
4144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
4145 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4146 if (SWIG_arg_fail(1)) SWIG_fail;
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 result = (bool)((wxBrush const *)arg1)->IsHatch();
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 {
4155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4156 }
4157 return resultobj;
4158 fail:
4159 return NULL;
4160 }
4161
4162
4163 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4164 PyObject *resultobj = NULL;
4165 wxBrush *arg1 = (wxBrush *) 0 ;
4166 bool result;
4167 PyObject * obj0 = 0 ;
4168 char *kwnames[] = {
4169 (char *) "self", NULL
4170 };
4171
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
4173 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4174 if (SWIG_arg_fail(1)) SWIG_fail;
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (bool)(arg1)->Ok();
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 {
4183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4184 }
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
4192 PyObject *obj;
4193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4194 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
4195 Py_INCREF(obj);
4196 return Py_BuildValue((char *)"");
4197 }
4198 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj = NULL;
4200 wxString *arg1 = 0 ;
4201 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
4202 wxBitmap *result;
4203 bool temp1 = false ;
4204 PyObject * obj0 = 0 ;
4205 PyObject * obj1 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "name",(char *) "type", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
4211 {
4212 arg1 = wxString_in_helper(obj0);
4213 if (arg1 == NULL) SWIG_fail;
4214 temp1 = true;
4215 }
4216 if (obj1) {
4217 {
4218 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
4219 if (SWIG_arg_fail(2)) SWIG_fail;
4220 }
4221 }
4222 {
4223 if (!wxPyCheckForApp()) SWIG_fail;
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
4226
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4231 {
4232 if (temp1)
4233 delete arg1;
4234 }
4235 return resultobj;
4236 fail:
4237 {
4238 if (temp1)
4239 delete arg1;
4240 }
4241 return NULL;
4242 }
4243
4244
4245 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj = NULL;
4247 wxBitmap *arg1 = (wxBitmap *) 0 ;
4248 PyObject * obj0 = 0 ;
4249 char *kwnames[] = {
4250 (char *) "self", NULL
4251 };
4252
4253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4254 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4255 if (SWIG_arg_fail(1)) SWIG_fail;
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 delete arg1;
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 Py_INCREF(Py_None); resultobj = Py_None;
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj = NULL;
4272 int arg1 ;
4273 int arg2 ;
4274 int arg3 = (int) -1 ;
4275 wxBitmap *result;
4276 PyObject * obj0 = 0 ;
4277 PyObject * obj1 = 0 ;
4278 PyObject * obj2 = 0 ;
4279 char *kwnames[] = {
4280 (char *) "width",(char *) "height",(char *) "depth", NULL
4281 };
4282
4283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4284 {
4285 arg1 = static_cast<int >(SWIG_As_int(obj0));
4286 if (SWIG_arg_fail(1)) SWIG_fail;
4287 }
4288 {
4289 arg2 = static_cast<int >(SWIG_As_int(obj1));
4290 if (SWIG_arg_fail(2)) SWIG_fail;
4291 }
4292 if (obj2) {
4293 {
4294 arg3 = static_cast<int >(SWIG_As_int(obj2));
4295 if (SWIG_arg_fail(3)) SWIG_fail;
4296 }
4297 }
4298 {
4299 if (!wxPyCheckForApp()) SWIG_fail;
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
4302
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4307 return resultobj;
4308 fail:
4309 return NULL;
4310 }
4311
4312
4313 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4314 PyObject *resultobj = NULL;
4315 wxIcon *arg1 = 0 ;
4316 wxBitmap *result;
4317 PyObject * obj0 = 0 ;
4318 char *kwnames[] = {
4319 (char *) "icon", NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4323 {
4324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4325 if (SWIG_arg_fail(1)) SWIG_fail;
4326 if (arg1 == NULL) {
4327 SWIG_null_ref("wxIcon");
4328 }
4329 if (SWIG_arg_fail(1)) SWIG_fail;
4330 }
4331 {
4332 if (!wxPyCheckForApp()) SWIG_fail;
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj = NULL;
4348 wxImage *arg1 = 0 ;
4349 int arg2 = (int) -1 ;
4350 wxBitmap *result;
4351 PyObject * obj0 = 0 ;
4352 PyObject * obj1 = 0 ;
4353 char *kwnames[] = {
4354 (char *) "image",(char *) "depth", NULL
4355 };
4356
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
4358 {
4359 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4360 if (SWIG_arg_fail(1)) SWIG_fail;
4361 if (arg1 == NULL) {
4362 SWIG_null_ref("wxImage");
4363 }
4364 if (SWIG_arg_fail(1)) SWIG_fail;
4365 }
4366 if (obj1) {
4367 {
4368 arg2 = static_cast<int >(SWIG_As_int(obj1));
4369 if (SWIG_arg_fail(2)) SWIG_fail;
4370 }
4371 }
4372 {
4373 if (!wxPyCheckForApp()) SWIG_fail;
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
4376
4377 wxPyEndAllowThreads(__tstate);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 }
4380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj = NULL;
4389 PyObject *arg1 = (PyObject *) 0 ;
4390 wxBitmap *result;
4391 PyObject * obj0 = 0 ;
4392 char *kwnames[] = {
4393 (char *) "listOfStrings", NULL
4394 };
4395
4396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4397 arg1 = obj0;
4398 {
4399 if (!wxPyCheckForApp()) SWIG_fail;
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 result = (wxBitmap *)new_wxBitmap(arg1);
4402
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4407 return resultobj;
4408 fail:
4409 return NULL;
4410 }
4411
4412
4413 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
4414 PyObject *resultobj = NULL;
4415 PyObject *arg1 = (PyObject *) 0 ;
4416 int arg2 ;
4417 int arg3 ;
4418 int arg4 = (int) 1 ;
4419 wxBitmap *result;
4420 PyObject * obj0 = 0 ;
4421 PyObject * obj1 = 0 ;
4422 PyObject * obj2 = 0 ;
4423 PyObject * obj3 = 0 ;
4424 char *kwnames[] = {
4425 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
4426 };
4427
4428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4429 arg1 = obj0;
4430 {
4431 arg2 = static_cast<int >(SWIG_As_int(obj1));
4432 if (SWIG_arg_fail(2)) SWIG_fail;
4433 }
4434 {
4435 arg3 = static_cast<int >(SWIG_As_int(obj2));
4436 if (SWIG_arg_fail(3)) SWIG_fail;
4437 }
4438 if (obj3) {
4439 {
4440 arg4 = static_cast<int >(SWIG_As_int(obj3));
4441 if (SWIG_arg_fail(4)) SWIG_fail;
4442 }
4443 }
4444 {
4445 if (!wxPyCheckForApp()) SWIG_fail;
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
4448
4449 wxPyEndAllowThreads(__tstate);
4450 if (PyErr_Occurred()) SWIG_fail;
4451 }
4452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4453 return resultobj;
4454 fail:
4455 return NULL;
4456 }
4457
4458
4459 static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4460 PyObject *resultobj = NULL;
4461 wxBitmap *arg1 = (wxBitmap *) 0 ;
4462 long result;
4463 PyObject * obj0 = 0 ;
4464 char *kwnames[] = {
4465 (char *) "self", NULL
4466 };
4467
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
4469 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4470 if (SWIG_arg_fail(1)) SWIG_fail;
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = (long)(arg1)->GetHandle();
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 {
4479 resultobj = SWIG_From_long(static_cast<long >(result));
4480 }
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = NULL;
4489 wxBitmap *arg1 = (wxBitmap *) 0 ;
4490 long arg2 ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 char *kwnames[] = {
4494 (char *) "self",(char *) "handle", NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4499 if (SWIG_arg_fail(1)) SWIG_fail;
4500 {
4501 arg2 = static_cast<long >(SWIG_As_long(obj1));
4502 if (SWIG_arg_fail(2)) SWIG_fail;
4503 }
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 wxBitmap_SetHandle(arg1,arg2);
4507
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 Py_INCREF(Py_None); resultobj = Py_None;
4512 return resultobj;
4513 fail:
4514 return NULL;
4515 }
4516
4517
4518 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4519 PyObject *resultobj = NULL;
4520 wxBitmap *arg1 = (wxBitmap *) 0 ;
4521 bool result;
4522 PyObject * obj0 = 0 ;
4523 char *kwnames[] = {
4524 (char *) "self", NULL
4525 };
4526
4527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4528 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4529 if (SWIG_arg_fail(1)) SWIG_fail;
4530 {
4531 PyThreadState* __tstate = wxPyBeginAllowThreads();
4532 result = (bool)(arg1)->Ok();
4533
4534 wxPyEndAllowThreads(__tstate);
4535 if (PyErr_Occurred()) SWIG_fail;
4536 }
4537 {
4538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4539 }
4540 return resultobj;
4541 fail:
4542 return NULL;
4543 }
4544
4545
4546 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj = NULL;
4548 wxBitmap *arg1 = (wxBitmap *) 0 ;
4549 int result;
4550 PyObject * obj0 = 0 ;
4551 char *kwnames[] = {
4552 (char *) "self", NULL
4553 };
4554
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4556 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4557 if (SWIG_arg_fail(1)) SWIG_fail;
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (int)(arg1)->GetWidth();
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 {
4566 resultobj = SWIG_From_int(static_cast<int >(result));
4567 }
4568 return resultobj;
4569 fail:
4570 return NULL;
4571 }
4572
4573
4574 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj = NULL;
4576 wxBitmap *arg1 = (wxBitmap *) 0 ;
4577 int result;
4578 PyObject * obj0 = 0 ;
4579 char *kwnames[] = {
4580 (char *) "self", NULL
4581 };
4582
4583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4584 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4585 if (SWIG_arg_fail(1)) SWIG_fail;
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 result = (int)(arg1)->GetHeight();
4589
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 {
4594 resultobj = SWIG_From_int(static_cast<int >(result));
4595 }
4596 return resultobj;
4597 fail:
4598 return NULL;
4599 }
4600
4601
4602 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4603 PyObject *resultobj = NULL;
4604 wxBitmap *arg1 = (wxBitmap *) 0 ;
4605 int result;
4606 PyObject * obj0 = 0 ;
4607 char *kwnames[] = {
4608 (char *) "self", NULL
4609 };
4610
4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4613 if (SWIG_arg_fail(1)) SWIG_fail;
4614 {
4615 PyThreadState* __tstate = wxPyBeginAllowThreads();
4616 result = (int)(arg1)->GetDepth();
4617
4618 wxPyEndAllowThreads(__tstate);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 {
4622 resultobj = SWIG_From_int(static_cast<int >(result));
4623 }
4624 return resultobj;
4625 fail:
4626 return NULL;
4627 }
4628
4629
4630 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj = NULL;
4632 wxBitmap *arg1 = (wxBitmap *) 0 ;
4633 wxSize result;
4634 PyObject * obj0 = 0 ;
4635 char *kwnames[] = {
4636 (char *) "self", NULL
4637 };
4638
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4640 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4641 if (SWIG_arg_fail(1)) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 result = wxBitmap_GetSize(arg1);
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 {
4650 wxSize * resultptr;
4651 resultptr = new wxSize(static_cast<wxSize & >(result));
4652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4653 }
4654 return resultobj;
4655 fail:
4656 return NULL;
4657 }
4658
4659
4660 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
4661 PyObject *resultobj = NULL;
4662 wxBitmap *arg1 = (wxBitmap *) 0 ;
4663 SwigValueWrapper<wxImage > result;
4664 PyObject * obj0 = 0 ;
4665 char *kwnames[] = {
4666 (char *) "self", NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4670 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4671 if (SWIG_arg_fail(1)) SWIG_fail;
4672 {
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 result = ((wxBitmap const *)arg1)->ConvertToImage();
4675
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 {
4680 wxImage * resultptr;
4681 resultptr = new wxImage(static_cast<wxImage & >(result));
4682 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
4683 }
4684 return resultobj;
4685 fail:
4686 return NULL;
4687 }
4688
4689
4690 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4691 PyObject *resultobj = NULL;
4692 wxBitmap *arg1 = (wxBitmap *) 0 ;
4693 wxMask *result;
4694 PyObject * obj0 = 0 ;
4695 char *kwnames[] = {
4696 (char *) "self", NULL
4697 };
4698
4699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4701 if (SWIG_arg_fail(1)) SWIG_fail;
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
4705
4706 wxPyEndAllowThreads(__tstate);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
4710 return resultobj;
4711 fail:
4712 return NULL;
4713 }
4714
4715
4716 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj = NULL;
4718 wxBitmap *arg1 = (wxBitmap *) 0 ;
4719 wxMask *arg2 = (wxMask *) 0 ;
4720 PyObject * obj0 = 0 ;
4721 PyObject * obj1 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self",(char *) "mask", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4727 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4728 if (SWIG_arg_fail(1)) SWIG_fail;
4729 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4730 if (SWIG_arg_fail(2)) SWIG_fail;
4731 {
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 (arg1)->SetMask(arg2);
4734
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 Py_INCREF(Py_None); resultobj = Py_None;
4739 return resultobj;
4740 fail:
4741 return NULL;
4742 }
4743
4744
4745 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj = NULL;
4747 wxBitmap *arg1 = (wxBitmap *) 0 ;
4748 wxColour *arg2 = 0 ;
4749 wxColour temp2 ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 char *kwnames[] = {
4753 (char *) "self",(char *) "colour", NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4757 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4758 if (SWIG_arg_fail(1)) SWIG_fail;
4759 {
4760 arg2 = &temp2;
4761 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4762 }
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 Py_INCREF(Py_None); resultobj = Py_None;
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj = NULL;
4779 wxBitmap *arg1 = (wxBitmap *) 0 ;
4780 wxRect *arg2 = 0 ;
4781 SwigValueWrapper<wxBitmap > result;
4782 wxRect temp2 ;
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self",(char *) "rect", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
4790 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4791 if (SWIG_arg_fail(1)) SWIG_fail;
4792 {
4793 arg2 = &temp2;
4794 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4795 }
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 {
4804 wxBitmap * resultptr;
4805 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
4806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4807 }
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj = NULL;
4816 wxBitmap *arg1 = (wxBitmap *) 0 ;
4817 wxString *arg2 = 0 ;
4818 wxBitmapType arg3 ;
4819 wxPalette *arg4 = (wxPalette *) NULL ;
4820 bool result;
4821 bool temp2 = false ;
4822 PyObject * obj0 = 0 ;
4823 PyObject * obj1 = 0 ;
4824 PyObject * obj2 = 0 ;
4825 PyObject * obj3 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4832 if (SWIG_arg_fail(1)) SWIG_fail;
4833 {
4834 arg2 = wxString_in_helper(obj1);
4835 if (arg2 == NULL) SWIG_fail;
4836 temp2 = true;
4837 }
4838 {
4839 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4840 if (SWIG_arg_fail(3)) SWIG_fail;
4841 }
4842 if (obj3) {
4843 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4844 if (SWIG_arg_fail(4)) SWIG_fail;
4845 }
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
4849
4850 wxPyEndAllowThreads(__tstate);
4851 if (PyErr_Occurred()) SWIG_fail;
4852 }
4853 {
4854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4855 }
4856 {
4857 if (temp2)
4858 delete arg2;
4859 }
4860 return resultobj;
4861 fail:
4862 {
4863 if (temp2)
4864 delete arg2;
4865 }
4866 return NULL;
4867 }
4868
4869
4870 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
4871 PyObject *resultobj = NULL;
4872 wxBitmap *arg1 = (wxBitmap *) 0 ;
4873 wxString *arg2 = 0 ;
4874 wxBitmapType arg3 ;
4875 bool result;
4876 bool temp2 = false ;
4877 PyObject * obj0 = 0 ;
4878 PyObject * obj1 = 0 ;
4879 PyObject * obj2 = 0 ;
4880 char *kwnames[] = {
4881 (char *) "self",(char *) "name",(char *) "type", NULL
4882 };
4883
4884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4885 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4886 if (SWIG_arg_fail(1)) SWIG_fail;
4887 {
4888 arg2 = wxString_in_helper(obj1);
4889 if (arg2 == NULL) SWIG_fail;
4890 temp2 = true;
4891 }
4892 {
4893 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4894 if (SWIG_arg_fail(3)) SWIG_fail;
4895 }
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
4899
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 {
4904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4905 }
4906 {
4907 if (temp2)
4908 delete arg2;
4909 }
4910 return resultobj;
4911 fail:
4912 {
4913 if (temp2)
4914 delete arg2;
4915 }
4916 return NULL;
4917 }
4918
4919
4920 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4921 PyObject *resultobj = NULL;
4922 wxBitmap *arg1 = (wxBitmap *) 0 ;
4923 wxPalette *result;
4924 PyObject * obj0 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4931 if (SWIG_arg_fail(1)) SWIG_fail;
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
4940 return resultobj;
4941 fail:
4942 return NULL;
4943 }
4944
4945
4946 static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj = NULL;
4948 wxBitmap *arg1 = (wxBitmap *) 0 ;
4949 wxPalette *arg2 = 0 ;
4950 PyObject * obj0 = 0 ;
4951 PyObject * obj1 = 0 ;
4952 char *kwnames[] = {
4953 (char *) "self",(char *) "palette", NULL
4954 };
4955
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
4957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4958 if (SWIG_arg_fail(1)) SWIG_fail;
4959 {
4960 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4961 if (SWIG_arg_fail(2)) SWIG_fail;
4962 if (arg2 == NULL) {
4963 SWIG_null_ref("wxPalette");
4964 }
4965 if (SWIG_arg_fail(2)) SWIG_fail;
4966 }
4967 {
4968 PyThreadState* __tstate = wxPyBeginAllowThreads();
4969 (arg1)->SetPalette((wxPalette const &)*arg2);
4970
4971 wxPyEndAllowThreads(__tstate);
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 Py_INCREF(Py_None); resultobj = Py_None;
4975 return resultobj;
4976 fail:
4977 return NULL;
4978 }
4979
4980
4981 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj = NULL;
4983 wxBitmap *arg1 = (wxBitmap *) 0 ;
4984 wxIcon *arg2 = 0 ;
4985 bool result;
4986 PyObject * obj0 = 0 ;
4987 PyObject * obj1 = 0 ;
4988 char *kwnames[] = {
4989 (char *) "self",(char *) "icon", NULL
4990 };
4991
4992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4993 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4994 if (SWIG_arg_fail(1)) SWIG_fail;
4995 {
4996 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4997 if (SWIG_arg_fail(2)) SWIG_fail;
4998 if (arg2 == NULL) {
4999 SWIG_null_ref("wxIcon");
5000 }
5001 if (SWIG_arg_fail(2)) SWIG_fail;
5002 }
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
5006
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 {
5011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5012 }
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj = NULL;
5021 wxBitmap *arg1 = (wxBitmap *) 0 ;
5022 int arg2 ;
5023 PyObject * obj0 = 0 ;
5024 PyObject * obj1 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self",(char *) "height", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5030 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5031 if (SWIG_arg_fail(1)) SWIG_fail;
5032 {
5033 arg2 = static_cast<int >(SWIG_As_int(obj1));
5034 if (SWIG_arg_fail(2)) SWIG_fail;
5035 }
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 (arg1)->SetHeight(arg2);
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 Py_INCREF(Py_None); resultobj = Py_None;
5044 return resultobj;
5045 fail:
5046 return NULL;
5047 }
5048
5049
5050 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5051 PyObject *resultobj = NULL;
5052 wxBitmap *arg1 = (wxBitmap *) 0 ;
5053 int arg2 ;
5054 PyObject * obj0 = 0 ;
5055 PyObject * obj1 = 0 ;
5056 char *kwnames[] = {
5057 (char *) "self",(char *) "width", NULL
5058 };
5059
5060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5061 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5062 if (SWIG_arg_fail(1)) SWIG_fail;
5063 {
5064 arg2 = static_cast<int >(SWIG_As_int(obj1));
5065 if (SWIG_arg_fail(2)) SWIG_fail;
5066 }
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 (arg1)->SetWidth(arg2);
5070
5071 wxPyEndAllowThreads(__tstate);
5072 if (PyErr_Occurred()) SWIG_fail;
5073 }
5074 Py_INCREF(Py_None); resultobj = Py_None;
5075 return resultobj;
5076 fail:
5077 return NULL;
5078 }
5079
5080
5081 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5082 PyObject *resultobj = NULL;
5083 wxBitmap *arg1 = (wxBitmap *) 0 ;
5084 int arg2 ;
5085 PyObject * obj0 = 0 ;
5086 PyObject * obj1 = 0 ;
5087 char *kwnames[] = {
5088 (char *) "self",(char *) "depth", NULL
5089 };
5090
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5093 if (SWIG_arg_fail(1)) SWIG_fail;
5094 {
5095 arg2 = static_cast<int >(SWIG_As_int(obj1));
5096 if (SWIG_arg_fail(2)) SWIG_fail;
5097 }
5098 {
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 (arg1)->SetDepth(arg2);
5101
5102 wxPyEndAllowThreads(__tstate);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 Py_INCREF(Py_None); resultobj = Py_None;
5106 return resultobj;
5107 fail:
5108 return NULL;
5109 }
5110
5111
5112 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5113 PyObject *resultobj = NULL;
5114 wxBitmap *arg1 = (wxBitmap *) 0 ;
5115 wxSize *arg2 = 0 ;
5116 wxSize temp2 ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 char *kwnames[] = {
5120 (char *) "self",(char *) "size", NULL
5121 };
5122
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
5124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5125 if (SWIG_arg_fail(1)) SWIG_fail;
5126 {
5127 arg2 = &temp2;
5128 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5129 }
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
5133
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 Py_INCREF(Py_None); resultobj = Py_None;
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5145 PyObject *resultobj = NULL;
5146 wxBitmap *arg1 = (wxBitmap *) 0 ;
5147 wxCursor *arg2 = 0 ;
5148 bool result;
5149 PyObject * obj0 = 0 ;
5150 PyObject * obj1 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self",(char *) "cursor", NULL
5153 };
5154
5155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
5156 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5157 if (SWIG_arg_fail(1)) SWIG_fail;
5158 {
5159 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5160 if (SWIG_arg_fail(2)) SWIG_fail;
5161 if (arg2 == NULL) {
5162 SWIG_null_ref("wxCursor");
5163 }
5164 if (SWIG_arg_fail(2)) SWIG_fail;
5165 }
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 {
5174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5175 }
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj = NULL;
5184 wxBitmap *arg1 = (wxBitmap *) 0 ;
5185 wxBitmap *arg2 = (wxBitmap *) 0 ;
5186 bool result;
5187 PyObject * obj0 = 0 ;
5188 PyObject * obj1 = 0 ;
5189 char *kwnames[] = {
5190 (char *) "self",(char *) "other", NULL
5191 };
5192
5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
5194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5195 if (SWIG_arg_fail(1)) SWIG_fail;
5196 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5197 if (SWIG_arg_fail(2)) SWIG_fail;
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
5201
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 {
5206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5207 }
5208 return resultobj;
5209 fail:
5210 return NULL;
5211 }
5212
5213
5214 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
5215 PyObject *resultobj = NULL;
5216 wxBitmap *arg1 = (wxBitmap *) 0 ;
5217 wxBitmap *arg2 = (wxBitmap *) 0 ;
5218 bool result;
5219 PyObject * obj0 = 0 ;
5220 PyObject * obj1 = 0 ;
5221 char *kwnames[] = {
5222 (char *) "self",(char *) "other", NULL
5223 };
5224
5225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
5226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5227 if (SWIG_arg_fail(1)) SWIG_fail;
5228 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5229 if (SWIG_arg_fail(2)) SWIG_fail;
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
5233
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 {
5238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5239 }
5240 return resultobj;
5241 fail:
5242 return NULL;
5243 }
5244
5245
5246 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
5247 PyObject *obj;
5248 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5249 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
5250 Py_INCREF(obj);
5251 return Py_BuildValue((char *)"");
5252 }
5253 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
5254 PyObject *resultobj = NULL;
5255 wxBitmap *arg1 = 0 ;
5256 wxColour const &arg2_defvalue = wxNullColour ;
5257 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5258 wxMask *result;
5259 wxColour temp2 ;
5260 PyObject * obj0 = 0 ;
5261 PyObject * obj1 = 0 ;
5262 char *kwnames[] = {
5263 (char *) "bitmap",(char *) "colour", NULL
5264 };
5265
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
5267 {
5268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5269 if (SWIG_arg_fail(1)) SWIG_fail;
5270 if (arg1 == NULL) {
5271 SWIG_null_ref("wxBitmap");
5272 }
5273 if (SWIG_arg_fail(1)) SWIG_fail;
5274 }
5275 if (obj1) {
5276 {
5277 arg2 = &temp2;
5278 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5279 }
5280 }
5281 {
5282 if (!wxPyCheckForApp()) SWIG_fail;
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
5290 return resultobj;
5291 fail:
5292 return NULL;
5293 }
5294
5295
5296 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
5297 PyObject *obj;
5298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5299 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
5300 Py_INCREF(obj);
5301 return Py_BuildValue((char *)"");
5302 }
5303 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5304 PyObject *resultobj = NULL;
5305 wxString *arg1 = 0 ;
5306 wxBitmapType arg2 ;
5307 int arg3 = (int) -1 ;
5308 int arg4 = (int) -1 ;
5309 wxIcon *result;
5310 bool temp1 = false ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 PyObject * obj2 = 0 ;
5314 PyObject * obj3 = 0 ;
5315 char *kwnames[] = {
5316 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
5317 };
5318
5319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5320 {
5321 arg1 = wxString_in_helper(obj0);
5322 if (arg1 == NULL) SWIG_fail;
5323 temp1 = true;
5324 }
5325 {
5326 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
5327 if (SWIG_arg_fail(2)) SWIG_fail;
5328 }
5329 if (obj2) {
5330 {
5331 arg3 = static_cast<int >(SWIG_As_int(obj2));
5332 if (SWIG_arg_fail(3)) SWIG_fail;
5333 }
5334 }
5335 if (obj3) {
5336 {
5337 arg4 = static_cast<int >(SWIG_As_int(obj3));
5338 if (SWIG_arg_fail(4)) SWIG_fail;
5339 }
5340 }
5341 {
5342 if (!wxPyCheckForApp()) SWIG_fail;
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5350 {
5351 if (temp1)
5352 delete arg1;
5353 }
5354 return resultobj;
5355 fail:
5356 {
5357 if (temp1)
5358 delete arg1;
5359 }
5360 return NULL;
5361 }
5362
5363
5364 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5365 PyObject *resultobj = NULL;
5366 wxIcon *arg1 = (wxIcon *) 0 ;
5367 PyObject * obj0 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5373 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5374 if (SWIG_arg_fail(1)) SWIG_fail;
5375 {
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 delete arg1;
5378
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 Py_INCREF(Py_None); resultobj = Py_None;
5383 return resultobj;
5384 fail:
5385 return NULL;
5386 }
5387
5388
5389 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5390 PyObject *resultobj = NULL;
5391 wxIcon *result;
5392 char *kwnames[] = {
5393 NULL
5394 };
5395
5396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
5397 {
5398 if (!wxPyCheckForApp()) SWIG_fail;
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 result = (wxIcon *)new wxIcon();
5401
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5413 PyObject *resultobj = NULL;
5414 wxIconLocation *arg1 = 0 ;
5415 wxIcon *result;
5416 PyObject * obj0 = 0 ;
5417 char *kwnames[] = {
5418 (char *) "loc", NULL
5419 };
5420
5421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5422 {
5423 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5424 if (SWIG_arg_fail(1)) SWIG_fail;
5425 if (arg1 == NULL) {
5426 SWIG_null_ref("wxIconLocation");
5427 }
5428 if (SWIG_arg_fail(1)) SWIG_fail;
5429 }
5430 {
5431 if (!wxPyCheckForApp()) SWIG_fail;
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5439 return resultobj;
5440 fail:
5441 return NULL;
5442 }
5443
5444
5445 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = NULL;
5447 wxBitmap *arg1 = 0 ;
5448 wxIcon *result;
5449 PyObject * obj0 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "bmp", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
5455 {
5456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5457 if (SWIG_arg_fail(1)) SWIG_fail;
5458 if (arg1 == NULL) {
5459 SWIG_null_ref("wxBitmap");
5460 }
5461 if (SWIG_arg_fail(1)) SWIG_fail;
5462 }
5463 {
5464 if (!wxPyCheckForApp()) SWIG_fail;
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
5467
5468 wxPyEndAllowThreads(__tstate);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 }
5471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5472 return resultobj;
5473 fail:
5474 return NULL;
5475 }
5476
5477
5478 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj = NULL;
5480 PyObject *arg1 = (PyObject *) 0 ;
5481 wxIcon *result;
5482 PyObject * obj0 = 0 ;
5483 char *kwnames[] = {
5484 (char *) "listOfStrings", NULL
5485 };
5486
5487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5488 arg1 = obj0;
5489 {
5490 if (!wxPyCheckForApp()) SWIG_fail;
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (wxIcon *)new_wxIcon(arg1);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj = NULL;
5506 wxIcon *arg1 = (wxIcon *) 0 ;
5507 wxString *arg2 = 0 ;
5508 wxBitmapType arg3 ;
5509 bool result;
5510 bool temp2 = false ;
5511 PyObject * obj0 = 0 ;
5512 PyObject * obj1 = 0 ;
5513 PyObject * obj2 = 0 ;
5514 char *kwnames[] = {
5515 (char *) "self",(char *) "name",(char *) "type", NULL
5516 };
5517
5518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5520 if (SWIG_arg_fail(1)) SWIG_fail;
5521 {
5522 arg2 = wxString_in_helper(obj1);
5523 if (arg2 == NULL) SWIG_fail;
5524 temp2 = true;
5525 }
5526 {
5527 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
5528 if (SWIG_arg_fail(3)) SWIG_fail;
5529 }
5530 {
5531 PyThreadState* __tstate = wxPyBeginAllowThreads();
5532 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5533
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 {
5538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5539 }
5540 {
5541 if (temp2)
5542 delete arg2;
5543 }
5544 return resultobj;
5545 fail:
5546 {
5547 if (temp2)
5548 delete arg2;
5549 }
5550 return NULL;
5551 }
5552
5553
5554 static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj = NULL;
5556 wxIcon *arg1 = (wxIcon *) 0 ;
5557 long result;
5558 PyObject * obj0 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self", NULL
5561 };
5562
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 result = (long)(arg1)->GetHandle();
5569
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 {
5574 resultobj = SWIG_From_long(static_cast<long >(result));
5575 }
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj = NULL;
5584 wxIcon *arg1 = (wxIcon *) 0 ;
5585 long arg2 ;
5586 PyObject * obj0 = 0 ;
5587 PyObject * obj1 = 0 ;
5588 char *kwnames[] = {
5589 (char *) "self",(char *) "handle", NULL
5590 };
5591
5592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5593 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5594 if (SWIG_arg_fail(1)) SWIG_fail;
5595 {
5596 arg2 = static_cast<long >(SWIG_As_long(obj1));
5597 if (SWIG_arg_fail(2)) SWIG_fail;
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 wxIcon_SetHandle(arg1,arg2);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 Py_INCREF(Py_None); resultobj = Py_None;
5607 return resultobj;
5608 fail:
5609 return NULL;
5610 }
5611
5612
5613 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
5614 PyObject *resultobj = NULL;
5615 wxIcon *arg1 = (wxIcon *) 0 ;
5616 bool result;
5617 PyObject * obj0 = 0 ;
5618 char *kwnames[] = {
5619 (char *) "self", NULL
5620 };
5621
5622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5623 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5624 if (SWIG_arg_fail(1)) SWIG_fail;
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 result = (bool)(arg1)->Ok();
5628
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 {
5633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5634 }
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj = NULL;
5643 wxIcon *arg1 = (wxIcon *) 0 ;
5644 int result;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5652 if (SWIG_arg_fail(1)) SWIG_fail;
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 result = (int)(arg1)->GetWidth();
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 {
5661 resultobj = SWIG_From_int(static_cast<int >(result));
5662 }
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5670 PyObject *resultobj = NULL;
5671 wxIcon *arg1 = (wxIcon *) 0 ;
5672 int result;
5673 PyObject * obj0 = 0 ;
5674 char *kwnames[] = {
5675 (char *) "self", NULL
5676 };
5677
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5680 if (SWIG_arg_fail(1)) SWIG_fail;
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (int)(arg1)->GetHeight();
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 {
5689 resultobj = SWIG_From_int(static_cast<int >(result));
5690 }
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5698 PyObject *resultobj = NULL;
5699 wxIcon *arg1 = (wxIcon *) 0 ;
5700 int result;
5701 PyObject * obj0 = 0 ;
5702 char *kwnames[] = {
5703 (char *) "self", NULL
5704 };
5705
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5707 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5708 if (SWIG_arg_fail(1)) SWIG_fail;
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 result = (int)(arg1)->GetDepth();
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = SWIG_From_int(static_cast<int >(result));
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj = NULL;
5727 wxIcon *arg1 = (wxIcon *) 0 ;
5728 int arg2 ;
5729 PyObject * obj0 = 0 ;
5730 PyObject * obj1 = 0 ;
5731 char *kwnames[] = {
5732 (char *) "self",(char *) "w", NULL
5733 };
5734
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5737 if (SWIG_arg_fail(1)) SWIG_fail;
5738 {
5739 arg2 = static_cast<int >(SWIG_As_int(obj1));
5740 if (SWIG_arg_fail(2)) SWIG_fail;
5741 }
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 (arg1)->SetWidth(arg2);
5745
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 Py_INCREF(Py_None); resultobj = Py_None;
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj = NULL;
5758 wxIcon *arg1 = (wxIcon *) 0 ;
5759 int arg2 ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self",(char *) "h", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5768 if (SWIG_arg_fail(1)) SWIG_fail;
5769 {
5770 arg2 = static_cast<int >(SWIG_As_int(obj1));
5771 if (SWIG_arg_fail(2)) SWIG_fail;
5772 }
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 (arg1)->SetHeight(arg2);
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 Py_INCREF(Py_None); resultobj = Py_None;
5781 return resultobj;
5782 fail:
5783 return NULL;
5784 }
5785
5786
5787 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj = NULL;
5789 wxIcon *arg1 = (wxIcon *) 0 ;
5790 int arg2 ;
5791 PyObject * obj0 = 0 ;
5792 PyObject * obj1 = 0 ;
5793 char *kwnames[] = {
5794 (char *) "self",(char *) "d", NULL
5795 };
5796
5797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5798 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5799 if (SWIG_arg_fail(1)) SWIG_fail;
5800 {
5801 arg2 = static_cast<int >(SWIG_As_int(obj1));
5802 if (SWIG_arg_fail(2)) SWIG_fail;
5803 }
5804 {
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 (arg1)->SetDepth(arg2);
5807
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 Py_INCREF(Py_None); resultobj = Py_None;
5812 return resultobj;
5813 fail:
5814 return NULL;
5815 }
5816
5817
5818 static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj = NULL;
5820 wxIcon *arg1 = (wxIcon *) 0 ;
5821 wxSize *arg2 = 0 ;
5822 wxSize temp2 ;
5823 PyObject * obj0 = 0 ;
5824 PyObject * obj1 = 0 ;
5825 char *kwnames[] = {
5826 (char *) "self",(char *) "size", NULL
5827 };
5828
5829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
5830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5831 if (SWIG_arg_fail(1)) SWIG_fail;
5832 {
5833 arg2 = &temp2;
5834 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 (arg1)->SetSize((wxSize const &)*arg2);
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 Py_INCREF(Py_None); resultobj = Py_None;
5844 return resultobj;
5845 fail:
5846 return NULL;
5847 }
5848
5849
5850 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5851 PyObject *resultobj = NULL;
5852 wxIcon *arg1 = (wxIcon *) 0 ;
5853 wxBitmap *arg2 = 0 ;
5854 PyObject * obj0 = 0 ;
5855 PyObject * obj1 = 0 ;
5856 char *kwnames[] = {
5857 (char *) "self",(char *) "bmp", NULL
5858 };
5859
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5862 if (SWIG_arg_fail(1)) SWIG_fail;
5863 {
5864 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5865 if (SWIG_arg_fail(2)) SWIG_fail;
5866 if (arg2 == NULL) {
5867 SWIG_null_ref("wxBitmap");
5868 }
5869 if (SWIG_arg_fail(2)) SWIG_fail;
5870 }
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
5874
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 Py_INCREF(Py_None); resultobj = Py_None;
5879 return resultobj;
5880 fail:
5881 return NULL;
5882 }
5883
5884
5885 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
5886 PyObject *obj;
5887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5888 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
5889 Py_INCREF(obj);
5890 return Py_BuildValue((char *)"");
5891 }
5892 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5893 PyObject *resultobj = NULL;
5894 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5895 int arg2 = (int) 0 ;
5896 wxIconLocation *result;
5897 bool temp1 = false ;
5898 PyObject * obj0 = 0 ;
5899 PyObject * obj1 = 0 ;
5900 char *kwnames[] = {
5901 (char *) "filename",(char *) "num", NULL
5902 };
5903
5904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5905 if (obj0) {
5906 {
5907 arg1 = wxString_in_helper(obj0);
5908 if (arg1 == NULL) SWIG_fail;
5909 temp1 = true;
5910 }
5911 }
5912 if (obj1) {
5913 {
5914 arg2 = static_cast<int >(SWIG_As_int(obj1));
5915 if (SWIG_arg_fail(2)) SWIG_fail;
5916 }
5917 }
5918 {
5919 PyThreadState* __tstate = wxPyBeginAllowThreads();
5920 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
5921
5922 wxPyEndAllowThreads(__tstate);
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
5926 {
5927 if (temp1)
5928 delete arg1;
5929 }
5930 return resultobj;
5931 fail:
5932 {
5933 if (temp1)
5934 delete arg1;
5935 }
5936 return NULL;
5937 }
5938
5939
5940 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj = NULL;
5942 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5943 PyObject * obj0 = 0 ;
5944 char *kwnames[] = {
5945 (char *) "self", NULL
5946 };
5947
5948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5949 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5950 if (SWIG_arg_fail(1)) SWIG_fail;
5951 {
5952 PyThreadState* __tstate = wxPyBeginAllowThreads();
5953 delete arg1;
5954
5955 wxPyEndAllowThreads(__tstate);
5956 if (PyErr_Occurred()) SWIG_fail;
5957 }
5958 Py_INCREF(Py_None); resultobj = Py_None;
5959 return resultobj;
5960 fail:
5961 return NULL;
5962 }
5963
5964
5965 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5966 PyObject *resultobj = NULL;
5967 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5968 bool result;
5969 PyObject * obj0 = 0 ;
5970 char *kwnames[] = {
5971 (char *) "self", NULL
5972 };
5973
5974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5976 if (SWIG_arg_fail(1)) SWIG_fail;
5977 {
5978 PyThreadState* __tstate = wxPyBeginAllowThreads();
5979 result = (bool)((wxIconLocation const *)arg1)->IsOk();
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 {
5985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5986 }
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj = NULL;
5995 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5996 wxString *arg2 = 0 ;
5997 bool temp2 = false ;
5998 PyObject * obj0 = 0 ;
5999 PyObject * obj1 = 0 ;
6000 char *kwnames[] = {
6001 (char *) "self",(char *) "filename", NULL
6002 };
6003
6004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
6005 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6006 if (SWIG_arg_fail(1)) SWIG_fail;
6007 {
6008 arg2 = wxString_in_helper(obj1);
6009 if (arg2 == NULL) SWIG_fail;
6010 temp2 = true;
6011 }
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 (arg1)->SetFileName((wxString const &)*arg2);
6015
6016 wxPyEndAllowThreads(__tstate);
6017 if (PyErr_Occurred()) SWIG_fail;
6018 }
6019 Py_INCREF(Py_None); resultobj = Py_None;
6020 {
6021 if (temp2)
6022 delete arg2;
6023 }
6024 return resultobj;
6025 fail:
6026 {
6027 if (temp2)
6028 delete arg2;
6029 }
6030 return NULL;
6031 }
6032
6033
6034 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
6035 PyObject *resultobj = NULL;
6036 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6037 wxString *result;
6038 PyObject * obj0 = 0 ;
6039 char *kwnames[] = {
6040 (char *) "self", NULL
6041 };
6042
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
6044 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6045 if (SWIG_arg_fail(1)) SWIG_fail;
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 {
6049 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
6050 result = (wxString *) &_result_ref;
6051 }
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 {
6057 #if wxUSE_UNICODE
6058 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6059 #else
6060 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6061 #endif
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066 }
6067
6068
6069 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj = NULL;
6071 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6072 int arg2 ;
6073 PyObject * obj0 = 0 ;
6074 PyObject * obj1 = 0 ;
6075 char *kwnames[] = {
6076 (char *) "self",(char *) "num", NULL
6077 };
6078
6079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
6080 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6081 if (SWIG_arg_fail(1)) SWIG_fail;
6082 {
6083 arg2 = static_cast<int >(SWIG_As_int(obj1));
6084 if (SWIG_arg_fail(2)) SWIG_fail;
6085 }
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 wxIconLocation_SetIndex(arg1,arg2);
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 Py_INCREF(Py_None); resultobj = Py_None;
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj = NULL;
6102 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6103 int result;
6104 PyObject * obj0 = 0 ;
6105 char *kwnames[] = {
6106 (char *) "self", NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
6110 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6111 if (SWIG_arg_fail(1)) SWIG_fail;
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 result = (int)wxIconLocation_GetIndex(arg1);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 {
6120 resultobj = SWIG_From_int(static_cast<int >(result));
6121 }
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
6129 PyObject *obj;
6130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6131 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
6132 Py_INCREF(obj);
6133 return Py_BuildValue((char *)"");
6134 }
6135 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
6136 PyObject *resultobj = NULL;
6137 wxIconBundle *result;
6138 char *kwnames[] = {
6139 NULL
6140 };
6141
6142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (wxIconBundle *)new wxIconBundle();
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj = NULL;
6159 wxString *arg1 = 0 ;
6160 long arg2 ;
6161 wxIconBundle *result;
6162 bool temp1 = false ;
6163 PyObject * obj0 = 0 ;
6164 PyObject * obj1 = 0 ;
6165 char *kwnames[] = {
6166 (char *) "file",(char *) "type", NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
6170 {
6171 arg1 = wxString_in_helper(obj0);
6172 if (arg1 == NULL) SWIG_fail;
6173 temp1 = true;
6174 }
6175 {
6176 arg2 = static_cast<long >(SWIG_As_long(obj1));
6177 if (SWIG_arg_fail(2)) SWIG_fail;
6178 }
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
6182
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6187 {
6188 if (temp1)
6189 delete arg1;
6190 }
6191 return resultobj;
6192 fail:
6193 {
6194 if (temp1)
6195 delete arg1;
6196 }
6197 return NULL;
6198 }
6199
6200
6201 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj = NULL;
6203 wxIcon *arg1 = 0 ;
6204 wxIconBundle *result;
6205 PyObject * obj0 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "icon", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
6211 {
6212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6213 if (SWIG_arg_fail(1)) SWIG_fail;
6214 if (arg1 == NULL) {
6215 SWIG_null_ref("wxIcon");
6216 }
6217 if (SWIG_arg_fail(1)) SWIG_fail;
6218 }
6219 {
6220 PyThreadState* __tstate = wxPyBeginAllowThreads();
6221 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
6222
6223 wxPyEndAllowThreads(__tstate);
6224 if (PyErr_Occurred()) SWIG_fail;
6225 }
6226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6227 return resultobj;
6228 fail:
6229 return NULL;
6230 }
6231
6232
6233 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
6234 PyObject *resultobj = NULL;
6235 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6236 PyObject * obj0 = 0 ;
6237 char *kwnames[] = {
6238 (char *) "self", NULL
6239 };
6240
6241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
6242 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6243 if (SWIG_arg_fail(1)) SWIG_fail;
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 delete arg1;
6247
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 Py_INCREF(Py_None); resultobj = Py_None;
6252 return resultobj;
6253 fail:
6254 return NULL;
6255 }
6256
6257
6258 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj = NULL;
6260 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6261 wxIcon *arg2 = 0 ;
6262 PyObject * obj0 = 0 ;
6263 PyObject * obj1 = 0 ;
6264 char *kwnames[] = {
6265 (char *) "self",(char *) "icon", NULL
6266 };
6267
6268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
6269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6270 if (SWIG_arg_fail(1)) SWIG_fail;
6271 {
6272 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6273 if (SWIG_arg_fail(2)) SWIG_fail;
6274 if (arg2 == NULL) {
6275 SWIG_null_ref("wxIcon");
6276 }
6277 if (SWIG_arg_fail(2)) SWIG_fail;
6278 }
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 (arg1)->AddIcon((wxIcon const &)*arg2);
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 Py_INCREF(Py_None); resultobj = Py_None;
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj = NULL;
6295 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6296 wxString *arg2 = 0 ;
6297 long arg3 ;
6298 bool temp2 = false ;
6299 PyObject * obj0 = 0 ;
6300 PyObject * obj1 = 0 ;
6301 PyObject * obj2 = 0 ;
6302 char *kwnames[] = {
6303 (char *) "self",(char *) "file",(char *) "type", NULL
6304 };
6305
6306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6307 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6308 if (SWIG_arg_fail(1)) SWIG_fail;
6309 {
6310 arg2 = wxString_in_helper(obj1);
6311 if (arg2 == NULL) SWIG_fail;
6312 temp2 = true;
6313 }
6314 {
6315 arg3 = static_cast<long >(SWIG_As_long(obj2));
6316 if (SWIG_arg_fail(3)) SWIG_fail;
6317 }
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->AddIcon((wxString const &)*arg2,arg3);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 {
6327 if (temp2)
6328 delete arg2;
6329 }
6330 return resultobj;
6331 fail:
6332 {
6333 if (temp2)
6334 delete arg2;
6335 }
6336 return NULL;
6337 }
6338
6339
6340 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6341 PyObject *resultobj = NULL;
6342 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6343 wxSize *arg2 = 0 ;
6344 wxIcon *result;
6345 wxSize temp2 ;
6346 PyObject * obj0 = 0 ;
6347 PyObject * obj1 = 0 ;
6348 char *kwnames[] = {
6349 (char *) "self",(char *) "size", NULL
6350 };
6351
6352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
6353 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6354 if (SWIG_arg_fail(1)) SWIG_fail;
6355 {
6356 arg2 = &temp2;
6357 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6358 }
6359 {
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 {
6362 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
6363 result = (wxIcon *) &_result_ref;
6364 }
6365
6366 wxPyEndAllowThreads(__tstate);
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 {
6370 wxIcon* resultptr = new wxIcon(*result);
6371 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
6372 }
6373 return resultobj;
6374 fail:
6375 return NULL;
6376 }
6377
6378
6379 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
6380 PyObject *obj;
6381 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6382 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
6383 Py_INCREF(obj);
6384 return Py_BuildValue((char *)"");
6385 }
6386 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6387 PyObject *resultobj = NULL;
6388 wxString *arg1 = 0 ;
6389 long arg2 ;
6390 int arg3 = (int) 0 ;
6391 int arg4 = (int) 0 ;
6392 wxCursor *result;
6393 bool temp1 = false ;
6394 PyObject * obj0 = 0 ;
6395 PyObject * obj1 = 0 ;
6396 PyObject * obj2 = 0 ;
6397 PyObject * obj3 = 0 ;
6398 char *kwnames[] = {
6399 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
6400 };
6401
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6403 {
6404 arg1 = wxString_in_helper(obj0);
6405 if (arg1 == NULL) SWIG_fail;
6406 temp1 = true;
6407 }
6408 {
6409 arg2 = static_cast<long >(SWIG_As_long(obj1));
6410 if (SWIG_arg_fail(2)) SWIG_fail;
6411 }
6412 if (obj2) {
6413 {
6414 arg3 = static_cast<int >(SWIG_As_int(obj2));
6415 if (SWIG_arg_fail(3)) SWIG_fail;
6416 }
6417 }
6418 if (obj3) {
6419 {
6420 arg4 = static_cast<int >(SWIG_As_int(obj3));
6421 if (SWIG_arg_fail(4)) SWIG_fail;
6422 }
6423 }
6424 {
6425 if (!wxPyCheckForApp()) SWIG_fail;
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6433 {
6434 if (temp1)
6435 delete arg1;
6436 }
6437 return resultobj;
6438 fail:
6439 {
6440 if (temp1)
6441 delete arg1;
6442 }
6443 return NULL;
6444 }
6445
6446
6447 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6448 PyObject *resultobj = NULL;
6449 wxCursor *arg1 = (wxCursor *) 0 ;
6450 PyObject * obj0 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6456 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6457 if (SWIG_arg_fail(1)) SWIG_fail;
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 delete arg1;
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 Py_INCREF(Py_None); resultobj = Py_None;
6466 return resultobj;
6467 fail:
6468 return NULL;
6469 }
6470
6471
6472 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj = NULL;
6474 int arg1 ;
6475 wxCursor *result;
6476 PyObject * obj0 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "id", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
6482 {
6483 arg1 = static_cast<int >(SWIG_As_int(obj0));
6484 if (SWIG_arg_fail(1)) SWIG_fail;
6485 }
6486 {
6487 if (!wxPyCheckForApp()) SWIG_fail;
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 result = (wxCursor *)new wxCursor(arg1);
6490
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
6502 PyObject *resultobj = NULL;
6503 wxImage *arg1 = 0 ;
6504 wxCursor *result;
6505 PyObject * obj0 = 0 ;
6506 char *kwnames[] = {
6507 (char *) "image", NULL
6508 };
6509
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
6511 {
6512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6513 if (SWIG_arg_fail(1)) SWIG_fail;
6514 if (arg1 == NULL) {
6515 SWIG_null_ref("wxImage");
6516 }
6517 if (SWIG_arg_fail(1)) SWIG_fail;
6518 }
6519 {
6520 if (!wxPyCheckForApp()) SWIG_fail;
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6528 return resultobj;
6529 fail:
6530 return NULL;
6531 }
6532
6533
6534 static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
6535 PyObject *resultobj = NULL;
6536 wxCursor *arg1 = (wxCursor *) 0 ;
6537 long result;
6538 PyObject * obj0 = 0 ;
6539 char *kwnames[] = {
6540 (char *) "self", NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
6544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6545 if (SWIG_arg_fail(1)) SWIG_fail;
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 result = (long)(arg1)->GetHandle();
6549
6550 wxPyEndAllowThreads(__tstate);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 {
6554 resultobj = SWIG_From_long(static_cast<long >(result));
6555 }
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = NULL;
6564 wxCursor *arg1 = (wxCursor *) 0 ;
6565 long arg2 ;
6566 PyObject * obj0 = 0 ;
6567 PyObject * obj1 = 0 ;
6568 char *kwnames[] = {
6569 (char *) "self",(char *) "handle", NULL
6570 };
6571
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
6573 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6574 if (SWIG_arg_fail(1)) SWIG_fail;
6575 {
6576 arg2 = static_cast<long >(SWIG_As_long(obj1));
6577 if (SWIG_arg_fail(2)) SWIG_fail;
6578 }
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 wxCursor_SetHandle(arg1,arg2);
6582
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 Py_INCREF(Py_None); resultobj = Py_None;
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj = NULL;
6595 wxCursor *arg1 = (wxCursor *) 0 ;
6596 bool result;
6597 PyObject * obj0 = 0 ;
6598 char *kwnames[] = {
6599 (char *) "self", NULL
6600 };
6601
6602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6604 if (SWIG_arg_fail(1)) SWIG_fail;
6605 {
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 result = (bool)(arg1)->Ok();
6608
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 {
6613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6614 }
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj = NULL;
6623 wxCursor *arg1 = (wxCursor *) 0 ;
6624 int result;
6625 PyObject * obj0 = 0 ;
6626 char *kwnames[] = {
6627 (char *) "self", NULL
6628 };
6629
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
6631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6632 if (SWIG_arg_fail(1)) SWIG_fail;
6633 {
6634 PyThreadState* __tstate = wxPyBeginAllowThreads();
6635 result = (int)(arg1)->GetWidth();
6636
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 {
6641 resultobj = SWIG_From_int(static_cast<int >(result));
6642 }
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6650 PyObject *resultobj = NULL;
6651 wxCursor *arg1 = (wxCursor *) 0 ;
6652 int result;
6653 PyObject * obj0 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
6659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6660 if (SWIG_arg_fail(1)) SWIG_fail;
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (int)(arg1)->GetHeight();
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 {
6669 resultobj = SWIG_From_int(static_cast<int >(result));
6670 }
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj = NULL;
6679 wxCursor *arg1 = (wxCursor *) 0 ;
6680 int result;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
6687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6688 if (SWIG_arg_fail(1)) SWIG_fail;
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 result = (int)(arg1)->GetDepth();
6692
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 {
6697 resultobj = SWIG_From_int(static_cast<int >(result));
6698 }
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = NULL;
6707 wxCursor *arg1 = (wxCursor *) 0 ;
6708 int arg2 ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "w", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
6716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6717 if (SWIG_arg_fail(1)) SWIG_fail;
6718 {
6719 arg2 = static_cast<int >(SWIG_As_int(obj1));
6720 if (SWIG_arg_fail(2)) SWIG_fail;
6721 }
6722 {
6723 PyThreadState* __tstate = wxPyBeginAllowThreads();
6724 (arg1)->SetWidth(arg2);
6725
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 Py_INCREF(Py_None); resultobj = Py_None;
6730 return resultobj;
6731 fail:
6732 return NULL;
6733 }
6734
6735
6736 static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6737 PyObject *resultobj = NULL;
6738 wxCursor *arg1 = (wxCursor *) 0 ;
6739 int arg2 ;
6740 PyObject * obj0 = 0 ;
6741 PyObject * obj1 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self",(char *) "h", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
6747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6748 if (SWIG_arg_fail(1)) SWIG_fail;
6749 {
6750 arg2 = static_cast<int >(SWIG_As_int(obj1));
6751 if (SWIG_arg_fail(2)) SWIG_fail;
6752 }
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 (arg1)->SetHeight(arg2);
6756
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 Py_INCREF(Py_None); resultobj = Py_None;
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
6768 PyObject *resultobj = NULL;
6769 wxCursor *arg1 = (wxCursor *) 0 ;
6770 int arg2 ;
6771 PyObject * obj0 = 0 ;
6772 PyObject * obj1 = 0 ;
6773 char *kwnames[] = {
6774 (char *) "self",(char *) "d", NULL
6775 };
6776
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
6778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6779 if (SWIG_arg_fail(1)) SWIG_fail;
6780 {
6781 arg2 = static_cast<int >(SWIG_As_int(obj1));
6782 if (SWIG_arg_fail(2)) SWIG_fail;
6783 }
6784 {
6785 PyThreadState* __tstate = wxPyBeginAllowThreads();
6786 (arg1)->SetDepth(arg2);
6787
6788 wxPyEndAllowThreads(__tstate);
6789 if (PyErr_Occurred()) SWIG_fail;
6790 }
6791 Py_INCREF(Py_None); resultobj = Py_None;
6792 return resultobj;
6793 fail:
6794 return NULL;
6795 }
6796
6797
6798 static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
6799 PyObject *resultobj = NULL;
6800 wxCursor *arg1 = (wxCursor *) 0 ;
6801 wxSize *arg2 = 0 ;
6802 wxSize temp2 ;
6803 PyObject * obj0 = 0 ;
6804 PyObject * obj1 = 0 ;
6805 char *kwnames[] = {
6806 (char *) "self",(char *) "size", NULL
6807 };
6808
6809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
6810 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6811 if (SWIG_arg_fail(1)) SWIG_fail;
6812 {
6813 arg2 = &temp2;
6814 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6815 }
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 (arg1)->SetSize((wxSize const &)*arg2);
6819
6820 wxPyEndAllowThreads(__tstate);
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 Py_INCREF(Py_None); resultobj = Py_None;
6824 return resultobj;
6825 fail:
6826 return NULL;
6827 }
6828
6829
6830 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6831 PyObject *obj;
6832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6833 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6834 Py_INCREF(obj);
6835 return Py_BuildValue((char *)"");
6836 }
6837 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6838 PyObject *resultobj = NULL;
6839 int arg1 = (int) 0 ;
6840 int arg2 = (int) 0 ;
6841 int arg3 = (int) 0 ;
6842 int arg4 = (int) 0 ;
6843 wxRegion *result;
6844 PyObject * obj0 = 0 ;
6845 PyObject * obj1 = 0 ;
6846 PyObject * obj2 = 0 ;
6847 PyObject * obj3 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6853 if (obj0) {
6854 {
6855 arg1 = static_cast<int >(SWIG_As_int(obj0));
6856 if (SWIG_arg_fail(1)) SWIG_fail;
6857 }
6858 }
6859 if (obj1) {
6860 {
6861 arg2 = static_cast<int >(SWIG_As_int(obj1));
6862 if (SWIG_arg_fail(2)) SWIG_fail;
6863 }
6864 }
6865 if (obj2) {
6866 {
6867 arg3 = static_cast<int >(SWIG_As_int(obj2));
6868 if (SWIG_arg_fail(3)) SWIG_fail;
6869 }
6870 }
6871 if (obj3) {
6872 {
6873 arg4 = static_cast<int >(SWIG_As_int(obj3));
6874 if (SWIG_arg_fail(4)) SWIG_fail;
6875 }
6876 }
6877 {
6878 if (!wxPyCheckForApp()) SWIG_fail;
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = NULL;
6894 wxBitmap *arg1 = 0 ;
6895 wxRegion *result;
6896 PyObject * obj0 = 0 ;
6897 char *kwnames[] = {
6898 (char *) "bmp", NULL
6899 };
6900
6901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6902 {
6903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6904 if (SWIG_arg_fail(1)) SWIG_fail;
6905 if (arg1 == NULL) {
6906 SWIG_null_ref("wxBitmap");
6907 }
6908 if (SWIG_arg_fail(1)) SWIG_fail;
6909 }
6910 {
6911 if (!wxPyCheckForApp()) SWIG_fail;
6912 PyThreadState* __tstate = wxPyBeginAllowThreads();
6913 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
6914
6915 wxPyEndAllowThreads(__tstate);
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6919 return resultobj;
6920 fail:
6921 return NULL;
6922 }
6923
6924
6925 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
6926 PyObject *resultobj = NULL;
6927 wxBitmap *arg1 = 0 ;
6928 wxColour *arg2 = 0 ;
6929 int arg3 = (int) 0 ;
6930 wxRegion *result;
6931 wxColour temp2 ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 PyObject * obj2 = 0 ;
6935 char *kwnames[] = {
6936 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6937 };
6938
6939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6940 {
6941 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6942 if (SWIG_arg_fail(1)) SWIG_fail;
6943 if (arg1 == NULL) {
6944 SWIG_null_ref("wxBitmap");
6945 }
6946 if (SWIG_arg_fail(1)) SWIG_fail;
6947 }
6948 {
6949 arg2 = &temp2;
6950 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6951 }
6952 if (obj2) {
6953 {
6954 arg3 = static_cast<int >(SWIG_As_int(obj2));
6955 if (SWIG_arg_fail(3)) SWIG_fail;
6956 }
6957 }
6958 {
6959 if (!wxPyCheckForApp()) SWIG_fail;
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6967 return resultobj;
6968 fail:
6969 return NULL;
6970 }
6971
6972
6973 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj = NULL;
6975 int arg1 ;
6976 wxPoint *arg2 = (wxPoint *) 0 ;
6977 int arg3 = (int) wxWINDING_RULE ;
6978 wxRegion *result;
6979 PyObject * obj0 = 0 ;
6980 PyObject * obj1 = 0 ;
6981 char *kwnames[] = {
6982 (char *) "points",(char *) "fillStyle", NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
6986 {
6987 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6988 if (arg2 == NULL) SWIG_fail;
6989 }
6990 if (obj1) {
6991 {
6992 arg3 = static_cast<int >(SWIG_As_int(obj1));
6993 if (SWIG_arg_fail(3)) SWIG_fail;
6994 }
6995 }
6996 {
6997 if (!wxPyCheckForApp()) SWIG_fail;
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7000
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
7005 {
7006 if (arg2) delete [] arg2;
7007 }
7008 return resultobj;
7009 fail:
7010 {
7011 if (arg2) delete [] arg2;
7012 }
7013 return NULL;
7014 }
7015
7016
7017 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = NULL;
7019 wxRegion *arg1 = (wxRegion *) 0 ;
7020 PyObject * obj0 = 0 ;
7021 char *kwnames[] = {
7022 (char *) "self", NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
7026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7027 if (SWIG_arg_fail(1)) SWIG_fail;
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 delete arg1;
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 Py_INCREF(Py_None); resultobj = Py_None;
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = NULL;
7044 wxRegion *arg1 = (wxRegion *) 0 ;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "self", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
7051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7052 if (SWIG_arg_fail(1)) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 (arg1)->Clear();
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 Py_INCREF(Py_None); resultobj = Py_None;
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj = NULL;
7069 wxRegion *arg1 = (wxRegion *) 0 ;
7070 int arg2 ;
7071 int arg3 ;
7072 bool result;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 PyObject * obj2 = 0 ;
7076 char *kwnames[] = {
7077 (char *) "self",(char *) "x",(char *) "y", NULL
7078 };
7079
7080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
7081 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7082 if (SWIG_arg_fail(1)) SWIG_fail;
7083 {
7084 arg2 = static_cast<int >(SWIG_As_int(obj1));
7085 if (SWIG_arg_fail(2)) SWIG_fail;
7086 }
7087 {
7088 arg3 = static_cast<int >(SWIG_As_int(obj2));
7089 if (SWIG_arg_fail(3)) SWIG_fail;
7090 }
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = (bool)(arg1)->Offset(arg2,arg3);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 {
7099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7100 }
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
7108 PyObject *resultobj = NULL;
7109 wxRegion *arg1 = (wxRegion *) 0 ;
7110 int arg2 ;
7111 int arg3 ;
7112 wxRegionContain result;
7113 PyObject * obj0 = 0 ;
7114 PyObject * obj1 = 0 ;
7115 PyObject * obj2 = 0 ;
7116 char *kwnames[] = {
7117 (char *) "self",(char *) "x",(char *) "y", NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
7121 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7122 if (SWIG_arg_fail(1)) SWIG_fail;
7123 {
7124 arg2 = static_cast<int >(SWIG_As_int(obj1));
7125 if (SWIG_arg_fail(2)) SWIG_fail;
7126 }
7127 {
7128 arg3 = static_cast<int >(SWIG_As_int(obj2));
7129 if (SWIG_arg_fail(3)) SWIG_fail;
7130 }
7131 {
7132 PyThreadState* __tstate = wxPyBeginAllowThreads();
7133 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
7134
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 resultobj = SWIG_From_int((result));
7139 return resultobj;
7140 fail:
7141 return NULL;
7142 }
7143
7144
7145 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj = NULL;
7147 wxRegion *arg1 = (wxRegion *) 0 ;
7148 wxPoint *arg2 = 0 ;
7149 wxRegionContain result;
7150 wxPoint temp2 ;
7151 PyObject * obj0 = 0 ;
7152 PyObject * obj1 = 0 ;
7153 char *kwnames[] = {
7154 (char *) "self",(char *) "pt", NULL
7155 };
7156
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
7158 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7159 if (SWIG_arg_fail(1)) SWIG_fail;
7160 {
7161 arg2 = &temp2;
7162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7163 }
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
7167
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 resultobj = SWIG_From_int((result));
7172 return resultobj;
7173 fail:
7174 return NULL;
7175 }
7176
7177
7178 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj = NULL;
7180 wxRegion *arg1 = (wxRegion *) 0 ;
7181 wxRect *arg2 = 0 ;
7182 wxRegionContain result;
7183 wxRect temp2 ;
7184 PyObject * obj0 = 0 ;
7185 PyObject * obj1 = 0 ;
7186 char *kwnames[] = {
7187 (char *) "self",(char *) "rect", NULL
7188 };
7189
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
7191 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7192 if (SWIG_arg_fail(1)) SWIG_fail;
7193 {
7194 arg2 = &temp2;
7195 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7196 }
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 resultobj = SWIG_From_int((result));
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj = NULL;
7213 wxRegion *arg1 = (wxRegion *) 0 ;
7214 int arg2 ;
7215 int arg3 ;
7216 int arg4 ;
7217 int arg5 ;
7218 wxRegionContain result;
7219 PyObject * obj0 = 0 ;
7220 PyObject * obj1 = 0 ;
7221 PyObject * obj2 = 0 ;
7222 PyObject * obj3 = 0 ;
7223 PyObject * obj4 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7229 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7230 if (SWIG_arg_fail(1)) SWIG_fail;
7231 {
7232 arg2 = static_cast<int >(SWIG_As_int(obj1));
7233 if (SWIG_arg_fail(2)) SWIG_fail;
7234 }
7235 {
7236 arg3 = static_cast<int >(SWIG_As_int(obj2));
7237 if (SWIG_arg_fail(3)) SWIG_fail;
7238 }
7239 {
7240 arg4 = static_cast<int >(SWIG_As_int(obj3));
7241 if (SWIG_arg_fail(4)) SWIG_fail;
7242 }
7243 {
7244 arg5 = static_cast<int >(SWIG_As_int(obj4));
7245 if (SWIG_arg_fail(5)) SWIG_fail;
7246 }
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_From_int((result));
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj = NULL;
7263 wxRegion *arg1 = (wxRegion *) 0 ;
7264 wxRect result;
7265 PyObject * obj0 = 0 ;
7266 char *kwnames[] = {
7267 (char *) "self", NULL
7268 };
7269
7270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
7271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7272 if (SWIG_arg_fail(1)) SWIG_fail;
7273 {
7274 PyThreadState* __tstate = wxPyBeginAllowThreads();
7275 result = (arg1)->GetBox();
7276
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 {
7281 wxRect * resultptr;
7282 resultptr = new wxRect(static_cast<wxRect & >(result));
7283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7284 }
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj = NULL;
7293 wxRegion *arg1 = (wxRegion *) 0 ;
7294 int arg2 ;
7295 int arg3 ;
7296 int arg4 ;
7297 int arg5 ;
7298 bool result;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 PyObject * obj2 = 0 ;
7302 PyObject * obj3 = 0 ;
7303 PyObject * obj4 = 0 ;
7304 char *kwnames[] = {
7305 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7309 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7310 if (SWIG_arg_fail(1)) SWIG_fail;
7311 {
7312 arg2 = static_cast<int >(SWIG_As_int(obj1));
7313 if (SWIG_arg_fail(2)) SWIG_fail;
7314 }
7315 {
7316 arg3 = static_cast<int >(SWIG_As_int(obj2));
7317 if (SWIG_arg_fail(3)) SWIG_fail;
7318 }
7319 {
7320 arg4 = static_cast<int >(SWIG_As_int(obj3));
7321 if (SWIG_arg_fail(4)) SWIG_fail;
7322 }
7323 {
7324 arg5 = static_cast<int >(SWIG_As_int(obj4));
7325 if (SWIG_arg_fail(5)) SWIG_fail;
7326 }
7327 {
7328 PyThreadState* __tstate = wxPyBeginAllowThreads();
7329 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
7330
7331 wxPyEndAllowThreads(__tstate);
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 {
7335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7336 }
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
7344 PyObject *resultobj = NULL;
7345 wxRegion *arg1 = (wxRegion *) 0 ;
7346 wxRect *arg2 = 0 ;
7347 bool result;
7348 wxRect temp2 ;
7349 PyObject * obj0 = 0 ;
7350 PyObject * obj1 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "self",(char *) "rect", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
7356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7357 if (SWIG_arg_fail(1)) SWIG_fail;
7358 {
7359 arg2 = &temp2;
7360 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7361 }
7362 {
7363 PyThreadState* __tstate = wxPyBeginAllowThreads();
7364 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
7365
7366 wxPyEndAllowThreads(__tstate);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 {
7370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7371 }
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj = NULL;
7380 wxRegion *arg1 = (wxRegion *) 0 ;
7381 wxRegion *arg2 = 0 ;
7382 bool result;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 char *kwnames[] = {
7386 (char *) "self",(char *) "region", NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
7390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7391 if (SWIG_arg_fail(1)) SWIG_fail;
7392 {
7393 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7394 if (SWIG_arg_fail(2)) SWIG_fail;
7395 if (arg2 == NULL) {
7396 SWIG_null_ref("wxRegion");
7397 }
7398 if (SWIG_arg_fail(2)) SWIG_fail;
7399 }
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 {
7408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7409 }
7410 return resultobj;
7411 fail:
7412 return NULL;
7413 }
7414
7415
7416 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
7417 PyObject *resultobj = NULL;
7418 wxRegion *arg1 = (wxRegion *) 0 ;
7419 bool result;
7420 PyObject * obj0 = 0 ;
7421 char *kwnames[] = {
7422 (char *) "self", NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
7426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7427 if (SWIG_arg_fail(1)) SWIG_fail;
7428 {
7429 PyThreadState* __tstate = wxPyBeginAllowThreads();
7430 result = (bool)(arg1)->IsEmpty();
7431
7432 wxPyEndAllowThreads(__tstate);
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 {
7436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7437 }
7438 return resultobj;
7439 fail:
7440 return NULL;
7441 }
7442
7443
7444 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
7445 PyObject *resultobj = NULL;
7446 wxRegion *arg1 = (wxRegion *) 0 ;
7447 int arg2 ;
7448 int arg3 ;
7449 int arg4 ;
7450 int arg5 ;
7451 bool result;
7452 PyObject * obj0 = 0 ;
7453 PyObject * obj1 = 0 ;
7454 PyObject * obj2 = 0 ;
7455 PyObject * obj3 = 0 ;
7456 PyObject * obj4 = 0 ;
7457 char *kwnames[] = {
7458 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7459 };
7460
7461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7462 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7463 if (SWIG_arg_fail(1)) SWIG_fail;
7464 {
7465 arg2 = static_cast<int >(SWIG_As_int(obj1));
7466 if (SWIG_arg_fail(2)) SWIG_fail;
7467 }
7468 {
7469 arg3 = static_cast<int >(SWIG_As_int(obj2));
7470 if (SWIG_arg_fail(3)) SWIG_fail;
7471 }
7472 {
7473 arg4 = static_cast<int >(SWIG_As_int(obj3));
7474 if (SWIG_arg_fail(4)) SWIG_fail;
7475 }
7476 {
7477 arg5 = static_cast<int >(SWIG_As_int(obj4));
7478 if (SWIG_arg_fail(5)) SWIG_fail;
7479 }
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 {
7488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7489 }
7490 return resultobj;
7491 fail:
7492 return NULL;
7493 }
7494
7495
7496 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj = NULL;
7498 wxRegion *arg1 = (wxRegion *) 0 ;
7499 wxRect *arg2 = 0 ;
7500 bool result;
7501 wxRect temp2 ;
7502 PyObject * obj0 = 0 ;
7503 PyObject * obj1 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "rect", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
7509 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7510 if (SWIG_arg_fail(1)) SWIG_fail;
7511 {
7512 arg2 = &temp2;
7513 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7514 }
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 result = (bool)(arg1)->Union((wxRect const &)*arg2);
7518
7519 wxPyEndAllowThreads(__tstate);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 {
7523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7524 }
7525 return resultobj;
7526 fail:
7527 return NULL;
7528 }
7529
7530
7531 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7532 PyObject *resultobj = NULL;
7533 wxRegion *arg1 = (wxRegion *) 0 ;
7534 wxRegion *arg2 = 0 ;
7535 bool result;
7536 PyObject * obj0 = 0 ;
7537 PyObject * obj1 = 0 ;
7538 char *kwnames[] = {
7539 (char *) "self",(char *) "region", NULL
7540 };
7541
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
7543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7544 if (SWIG_arg_fail(1)) SWIG_fail;
7545 {
7546 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7547 if (SWIG_arg_fail(2)) SWIG_fail;
7548 if (arg2 == NULL) {
7549 SWIG_null_ref("wxRegion");
7550 }
7551 if (SWIG_arg_fail(2)) SWIG_fail;
7552 }
7553 {
7554 PyThreadState* __tstate = wxPyBeginAllowThreads();
7555 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
7556
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 {
7561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7562 }
7563 return resultobj;
7564 fail:
7565 return NULL;
7566 }
7567
7568
7569 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
7570 PyObject *resultobj = NULL;
7571 wxRegion *arg1 = (wxRegion *) 0 ;
7572 int arg2 ;
7573 int arg3 ;
7574 int arg4 ;
7575 int arg5 ;
7576 bool result;
7577 PyObject * obj0 = 0 ;
7578 PyObject * obj1 = 0 ;
7579 PyObject * obj2 = 0 ;
7580 PyObject * obj3 = 0 ;
7581 PyObject * obj4 = 0 ;
7582 char *kwnames[] = {
7583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7584 };
7585
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7587 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7588 if (SWIG_arg_fail(1)) SWIG_fail;
7589 {
7590 arg2 = static_cast<int >(SWIG_As_int(obj1));
7591 if (SWIG_arg_fail(2)) SWIG_fail;
7592 }
7593 {
7594 arg3 = static_cast<int >(SWIG_As_int(obj2));
7595 if (SWIG_arg_fail(3)) SWIG_fail;
7596 }
7597 {
7598 arg4 = static_cast<int >(SWIG_As_int(obj3));
7599 if (SWIG_arg_fail(4)) SWIG_fail;
7600 }
7601 {
7602 arg5 = static_cast<int >(SWIG_As_int(obj4));
7603 if (SWIG_arg_fail(5)) SWIG_fail;
7604 }
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7614 }
7615 return resultobj;
7616 fail:
7617 return NULL;
7618 }
7619
7620
7621 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
7622 PyObject *resultobj = NULL;
7623 wxRegion *arg1 = (wxRegion *) 0 ;
7624 wxRect *arg2 = 0 ;
7625 bool result;
7626 wxRect temp2 ;
7627 PyObject * obj0 = 0 ;
7628 PyObject * obj1 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "self",(char *) "rect", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
7634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7635 if (SWIG_arg_fail(1)) SWIG_fail;
7636 {
7637 arg2 = &temp2;
7638 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7639 }
7640 {
7641 PyThreadState* __tstate = wxPyBeginAllowThreads();
7642 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
7643
7644 wxPyEndAllowThreads(__tstate);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 {
7648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7649 }
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj = NULL;
7658 wxRegion *arg1 = (wxRegion *) 0 ;
7659 wxRegion *arg2 = 0 ;
7660 bool result;
7661 PyObject * obj0 = 0 ;
7662 PyObject * obj1 = 0 ;
7663 char *kwnames[] = {
7664 (char *) "self",(char *) "region", NULL
7665 };
7666
7667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
7668 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7669 if (SWIG_arg_fail(1)) SWIG_fail;
7670 {
7671 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7672 if (SWIG_arg_fail(2)) SWIG_fail;
7673 if (arg2 == NULL) {
7674 SWIG_null_ref("wxRegion");
7675 }
7676 if (SWIG_arg_fail(2)) SWIG_fail;
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
7681
7682 wxPyEndAllowThreads(__tstate);
7683 if (PyErr_Occurred()) SWIG_fail;
7684 }
7685 {
7686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7687 }
7688 return resultobj;
7689 fail:
7690 return NULL;
7691 }
7692
7693
7694 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
7695 PyObject *resultobj = NULL;
7696 wxRegion *arg1 = (wxRegion *) 0 ;
7697 int arg2 ;
7698 int arg3 ;
7699 int arg4 ;
7700 int arg5 ;
7701 bool result;
7702 PyObject * obj0 = 0 ;
7703 PyObject * obj1 = 0 ;
7704 PyObject * obj2 = 0 ;
7705 PyObject * obj3 = 0 ;
7706 PyObject * obj4 = 0 ;
7707 char *kwnames[] = {
7708 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7709 };
7710
7711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7712 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7713 if (SWIG_arg_fail(1)) SWIG_fail;
7714 {
7715 arg2 = static_cast<int >(SWIG_As_int(obj1));
7716 if (SWIG_arg_fail(2)) SWIG_fail;
7717 }
7718 {
7719 arg3 = static_cast<int >(SWIG_As_int(obj2));
7720 if (SWIG_arg_fail(3)) SWIG_fail;
7721 }
7722 {
7723 arg4 = static_cast<int >(SWIG_As_int(obj3));
7724 if (SWIG_arg_fail(4)) SWIG_fail;
7725 }
7726 {
7727 arg5 = static_cast<int >(SWIG_As_int(obj4));
7728 if (SWIG_arg_fail(5)) SWIG_fail;
7729 }
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
7733
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 {
7738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7739 }
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj = NULL;
7748 wxRegion *arg1 = (wxRegion *) 0 ;
7749 wxRect *arg2 = 0 ;
7750 bool result;
7751 wxRect temp2 ;
7752 PyObject * obj0 = 0 ;
7753 PyObject * obj1 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self",(char *) "rect", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7759 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7760 if (SWIG_arg_fail(1)) SWIG_fail;
7761 {
7762 arg2 = &temp2;
7763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7764 }
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 {
7773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7774 }
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj = NULL;
7783 wxRegion *arg1 = (wxRegion *) 0 ;
7784 wxRegion *arg2 = 0 ;
7785 bool result;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self",(char *) "region", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7794 if (SWIG_arg_fail(1)) SWIG_fail;
7795 {
7796 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7797 if (SWIG_arg_fail(2)) SWIG_fail;
7798 if (arg2 == NULL) {
7799 SWIG_null_ref("wxRegion");
7800 }
7801 if (SWIG_arg_fail(2)) SWIG_fail;
7802 }
7803 {
7804 PyThreadState* __tstate = wxPyBeginAllowThreads();
7805 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
7806
7807 wxPyEndAllowThreads(__tstate);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 {
7811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7812 }
7813 return resultobj;
7814 fail:
7815 return NULL;
7816 }
7817
7818
7819 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7820 PyObject *resultobj = NULL;
7821 wxRegion *arg1 = (wxRegion *) 0 ;
7822 SwigValueWrapper<wxBitmap > result;
7823 PyObject * obj0 = 0 ;
7824 char *kwnames[] = {
7825 (char *) "self", NULL
7826 };
7827
7828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7830 if (SWIG_arg_fail(1)) SWIG_fail;
7831 {
7832 PyThreadState* __tstate = wxPyBeginAllowThreads();
7833 result = (arg1)->ConvertToBitmap();
7834
7835 wxPyEndAllowThreads(__tstate);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 wxBitmap * resultptr;
7840 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
7841 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7842 }
7843 return resultobj;
7844 fail:
7845 return NULL;
7846 }
7847
7848
7849 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7850 PyObject *resultobj = NULL;
7851 wxRegion *arg1 = (wxRegion *) 0 ;
7852 wxBitmap *arg2 = 0 ;
7853 bool result;
7854 PyObject * obj0 = 0 ;
7855 PyObject * obj1 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "self",(char *) "bmp", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7862 if (SWIG_arg_fail(1)) SWIG_fail;
7863 {
7864 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7865 if (SWIG_arg_fail(2)) SWIG_fail;
7866 if (arg2 == NULL) {
7867 SWIG_null_ref("wxBitmap");
7868 }
7869 if (SWIG_arg_fail(2)) SWIG_fail;
7870 }
7871 {
7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
7873 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
7874
7875 wxPyEndAllowThreads(__tstate);
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 {
7879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7880 }
7881 return resultobj;
7882 fail:
7883 return NULL;
7884 }
7885
7886
7887 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
7888 PyObject *resultobj = NULL;
7889 wxRegion *arg1 = (wxRegion *) 0 ;
7890 wxBitmap *arg2 = 0 ;
7891 wxColour *arg3 = 0 ;
7892 int arg4 = (int) 0 ;
7893 bool result;
7894 wxColour temp3 ;
7895 PyObject * obj0 = 0 ;
7896 PyObject * obj1 = 0 ;
7897 PyObject * obj2 = 0 ;
7898 PyObject * obj3 = 0 ;
7899 char *kwnames[] = {
7900 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7901 };
7902
7903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7904 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7905 if (SWIG_arg_fail(1)) SWIG_fail;
7906 {
7907 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7908 if (SWIG_arg_fail(2)) SWIG_fail;
7909 if (arg2 == NULL) {
7910 SWIG_null_ref("wxBitmap");
7911 }
7912 if (SWIG_arg_fail(2)) SWIG_fail;
7913 }
7914 {
7915 arg3 = &temp3;
7916 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7917 }
7918 if (obj3) {
7919 {
7920 arg4 = static_cast<int >(SWIG_As_int(obj3));
7921 if (SWIG_arg_fail(4)) SWIG_fail;
7922 }
7923 }
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 {
7932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7933 }
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
7941 PyObject *obj;
7942 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7943 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7944 Py_INCREF(obj);
7945 return Py_BuildValue((char *)"");
7946 }
7947 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj = NULL;
7949 wxRegion *arg1 = 0 ;
7950 wxRegionIterator *result;
7951 PyObject * obj0 = 0 ;
7952 char *kwnames[] = {
7953 (char *) "region", NULL
7954 };
7955
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
7957 {
7958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7959 if (SWIG_arg_fail(1)) SWIG_fail;
7960 if (arg1 == NULL) {
7961 SWIG_null_ref("wxRegion");
7962 }
7963 if (SWIG_arg_fail(1)) SWIG_fail;
7964 }
7965 {
7966 if (!wxPyCheckForApp()) SWIG_fail;
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj = NULL;
7982 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7983 PyObject * obj0 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7989 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7990 if (SWIG_arg_fail(1)) SWIG_fail;
7991 {
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 delete arg1;
7994
7995 wxPyEndAllowThreads(__tstate);
7996 if (PyErr_Occurred()) SWIG_fail;
7997 }
7998 Py_INCREF(Py_None); resultobj = Py_None;
7999 return resultobj;
8000 fail:
8001 return NULL;
8002 }
8003
8004
8005 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
8006 PyObject *resultobj = NULL;
8007 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8008 int result;
8009 PyObject * obj0 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
8015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8016 if (SWIG_arg_fail(1)) SWIG_fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 result = (int)(arg1)->GetX();
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 {
8025 resultobj = SWIG_From_int(static_cast<int >(result));
8026 }
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
8034 PyObject *resultobj = NULL;
8035 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8036 int result;
8037 PyObject * obj0 = 0 ;
8038 char *kwnames[] = {
8039 (char *) "self", NULL
8040 };
8041
8042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
8043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8044 if (SWIG_arg_fail(1)) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (int)(arg1)->GetY();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 {
8053 resultobj = SWIG_From_int(static_cast<int >(result));
8054 }
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj = NULL;
8063 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8064 int result;
8065 PyObject * obj0 = 0 ;
8066 char *kwnames[] = {
8067 (char *) "self", NULL
8068 };
8069
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
8071 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8072 if (SWIG_arg_fail(1)) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (int)(arg1)->GetW();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081 resultobj = SWIG_From_int(static_cast<int >(result));
8082 }
8083 return resultobj;
8084 fail:
8085 return NULL;
8086 }
8087
8088
8089 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj = NULL;
8091 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8092 int result;
8093 PyObject * obj0 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "self", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
8099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8100 if (SWIG_arg_fail(1)) SWIG_fail;
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (int)(arg1)->GetWidth();
8104
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 {
8109 resultobj = SWIG_From_int(static_cast<int >(result));
8110 }
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj = NULL;
8119 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8120 int result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
8127 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8128 if (SWIG_arg_fail(1)) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = (int)(arg1)->GetH();
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 {
8137 resultobj = SWIG_From_int(static_cast<int >(result));
8138 }
8139 return resultobj;
8140 fail:
8141 return NULL;
8142 }
8143
8144
8145 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj = NULL;
8147 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8148 int result;
8149 PyObject * obj0 = 0 ;
8150 char *kwnames[] = {
8151 (char *) "self", NULL
8152 };
8153
8154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
8155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8156 if (SWIG_arg_fail(1)) SWIG_fail;
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 result = (int)(arg1)->GetHeight();
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 {
8165 resultobj = SWIG_From_int(static_cast<int >(result));
8166 }
8167 return resultobj;
8168 fail:
8169 return NULL;
8170 }
8171
8172
8173 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
8174 PyObject *resultobj = NULL;
8175 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8176 wxRect result;
8177 PyObject * obj0 = 0 ;
8178 char *kwnames[] = {
8179 (char *) "self", NULL
8180 };
8181
8182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
8183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8184 if (SWIG_arg_fail(1)) SWIG_fail;
8185 {
8186 PyThreadState* __tstate = wxPyBeginAllowThreads();
8187 result = (arg1)->GetRect();
8188
8189 wxPyEndAllowThreads(__tstate);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 {
8193 wxRect * resultptr;
8194 resultptr = new wxRect(static_cast<wxRect & >(result));
8195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
8196 }
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj = NULL;
8205 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8206 bool result;
8207 PyObject * obj0 = 0 ;
8208 char *kwnames[] = {
8209 (char *) "self", NULL
8210 };
8211
8212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
8213 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8214 if (SWIG_arg_fail(1)) SWIG_fail;
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (bool)(arg1)->HaveRects();
8218
8219 wxPyEndAllowThreads(__tstate);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 {
8223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8224 }
8225 return resultobj;
8226 fail:
8227 return NULL;
8228 }
8229
8230
8231 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
8232 PyObject *resultobj = NULL;
8233 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8234 PyObject * obj0 = 0 ;
8235 char *kwnames[] = {
8236 (char *) "self", NULL
8237 };
8238
8239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
8240 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8241 if (SWIG_arg_fail(1)) SWIG_fail;
8242 {
8243 PyThreadState* __tstate = wxPyBeginAllowThreads();
8244 (arg1)->Reset();
8245
8246 wxPyEndAllowThreads(__tstate);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 Py_INCREF(Py_None); resultobj = Py_None;
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj = NULL;
8258 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8259 PyObject * obj0 = 0 ;
8260 char *kwnames[] = {
8261 (char *) "self", NULL
8262 };
8263
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
8265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8266 if (SWIG_arg_fail(1)) SWIG_fail;
8267 {
8268 PyThreadState* __tstate = wxPyBeginAllowThreads();
8269 wxRegionIterator_Next(arg1);
8270
8271 wxPyEndAllowThreads(__tstate);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 Py_INCREF(Py_None); resultobj = Py_None;
8275 return resultobj;
8276 fail:
8277 return NULL;
8278 }
8279
8280
8281 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
8282 PyObject *resultobj = NULL;
8283 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8284 bool result;
8285 PyObject * obj0 = 0 ;
8286 char *kwnames[] = {
8287 (char *) "self", NULL
8288 };
8289
8290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
8291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8292 if (SWIG_arg_fail(1)) SWIG_fail;
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 result = (bool)wxRegionIterator___nonzero__(arg1);
8296
8297 wxPyEndAllowThreads(__tstate);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 {
8301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8302 }
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
8310 PyObject *obj;
8311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8312 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
8313 Py_INCREF(obj);
8314 return Py_BuildValue((char *)"");
8315 }
8316 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8317 PyObject *resultobj = NULL;
8318 wxNativeFontInfo *result;
8319 char *kwnames[] = {
8320 NULL
8321 };
8322
8323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
8324 {
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 result = (wxNativeFontInfo *)new wxNativeFontInfo();
8327
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
8332 return resultobj;
8333 fail:
8334 return NULL;
8335 }
8336
8337
8338 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8339 PyObject *resultobj = NULL;
8340 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8341 PyObject * obj0 = 0 ;
8342 char *kwnames[] = {
8343 (char *) "self", NULL
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
8347 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8348 if (SWIG_arg_fail(1)) SWIG_fail;
8349 {
8350 PyThreadState* __tstate = wxPyBeginAllowThreads();
8351 delete arg1;
8352
8353 wxPyEndAllowThreads(__tstate);
8354 if (PyErr_Occurred()) SWIG_fail;
8355 }
8356 Py_INCREF(Py_None); resultobj = Py_None;
8357 return resultobj;
8358 fail:
8359 return NULL;
8360 }
8361
8362
8363 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
8364 PyObject *resultobj = NULL;
8365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8366 PyObject * obj0 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "self", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
8372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8373 if (SWIG_arg_fail(1)) SWIG_fail;
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 (arg1)->Init();
8377
8378 wxPyEndAllowThreads(__tstate);
8379 if (PyErr_Occurred()) SWIG_fail;
8380 }
8381 Py_INCREF(Py_None); resultobj = Py_None;
8382 return resultobj;
8383 fail:
8384 return NULL;
8385 }
8386
8387
8388 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
8389 PyObject *resultobj = NULL;
8390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8391 wxFont *arg2 = 0 ;
8392 PyObject * obj0 = 0 ;
8393 PyObject * obj1 = 0 ;
8394 char *kwnames[] = {
8395 (char *) "self",(char *) "font", NULL
8396 };
8397
8398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
8399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8400 if (SWIG_arg_fail(1)) SWIG_fail;
8401 {
8402 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
8403 if (SWIG_arg_fail(2)) SWIG_fail;
8404 if (arg2 == NULL) {
8405 SWIG_null_ref("wxFont");
8406 }
8407 if (SWIG_arg_fail(2)) SWIG_fail;
8408 }
8409 {
8410 PyThreadState* __tstate = wxPyBeginAllowThreads();
8411 (arg1)->InitFromFont((wxFont const &)*arg2);
8412
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 Py_INCREF(Py_None); resultobj = Py_None;
8417 return resultobj;
8418 fail:
8419 return NULL;
8420 }
8421
8422
8423 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8424 PyObject *resultobj = NULL;
8425 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8426 int result;
8427 PyObject * obj0 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
8433 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8434 if (SWIG_arg_fail(1)) SWIG_fail;
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
8438
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 {
8443 resultobj = SWIG_From_int(static_cast<int >(result));
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj = NULL;
8453 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8454 wxSize result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail;
8461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8462 if (SWIG_arg_fail(1)) SWIG_fail;
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
8471 wxSize * resultptr;
8472 resultptr = new wxSize(static_cast<wxSize & >(result));
8473 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8474 }
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj = NULL;
8483 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8484 wxFontStyle result;
8485 PyObject * obj0 = 0 ;
8486 char *kwnames[] = {
8487 (char *) "self", NULL
8488 };
8489
8490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
8491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8492 if (SWIG_arg_fail(1)) SWIG_fail;
8493 {
8494 PyThreadState* __tstate = wxPyBeginAllowThreads();
8495 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
8496
8497 wxPyEndAllowThreads(__tstate);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 resultobj = SWIG_From_int((result));
8501 return resultobj;
8502 fail:
8503 return NULL;
8504 }
8505
8506
8507 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8508 PyObject *resultobj = NULL;
8509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8510 wxFontWeight result;
8511 PyObject * obj0 = 0 ;
8512 char *kwnames[] = {
8513 (char *) "self", NULL
8514 };
8515
8516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
8517 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8518 if (SWIG_arg_fail(1)) SWIG_fail;
8519 {
8520 PyThreadState* __tstate = wxPyBeginAllowThreads();
8521 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
8522
8523 wxPyEndAllowThreads(__tstate);
8524 if (PyErr_Occurred()) SWIG_fail;
8525 }
8526 resultobj = SWIG_From_int((result));
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj = NULL;
8535 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8536 bool result;
8537 PyObject * obj0 = 0 ;
8538 char *kwnames[] = {
8539 (char *) "self", NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
8543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8544 if (SWIG_arg_fail(1)) SWIG_fail;
8545 {
8546 PyThreadState* __tstate = wxPyBeginAllowThreads();
8547 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
8548
8549 wxPyEndAllowThreads(__tstate);
8550 if (PyErr_Occurred()) SWIG_fail;
8551 }
8552 {
8553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8554 }
8555 return resultobj;
8556 fail:
8557 return NULL;
8558 }
8559
8560
8561 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj = NULL;
8563 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8564 wxString result;
8565 PyObject * obj0 = 0 ;
8566 char *kwnames[] = {
8567 (char *) "self", NULL
8568 };
8569
8570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
8571 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8572 if (SWIG_arg_fail(1)) SWIG_fail;
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 {
8581 #if wxUSE_UNICODE
8582 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8583 #else
8584 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8585 #endif
8586 }
8587 return resultobj;
8588 fail:
8589 return NULL;
8590 }
8591
8592
8593 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8594 PyObject *resultobj = NULL;
8595 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8596 wxFontFamily result;
8597 PyObject * obj0 = 0 ;
8598 char *kwnames[] = {
8599 (char *) "self", NULL
8600 };
8601
8602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
8603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8604 if (SWIG_arg_fail(1)) SWIG_fail;
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
8608
8609 wxPyEndAllowThreads(__tstate);
8610 if (PyErr_Occurred()) SWIG_fail;
8611 }
8612 resultobj = SWIG_From_int((result));
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj = NULL;
8621 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8622 wxFontEncoding result;
8623 PyObject * obj0 = 0 ;
8624 char *kwnames[] = {
8625 (char *) "self", NULL
8626 };
8627
8628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
8629 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8630 if (SWIG_arg_fail(1)) SWIG_fail;
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 resultobj = SWIG_From_int((result));
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj = NULL;
8647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8648 int arg2 ;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 char *kwnames[] = {
8652 (char *) "self",(char *) "pointsize", NULL
8653 };
8654
8655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8656 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8657 if (SWIG_arg_fail(1)) SWIG_fail;
8658 {
8659 arg2 = static_cast<int >(SWIG_As_int(obj1));
8660 if (SWIG_arg_fail(2)) SWIG_fail;
8661 }
8662 {
8663 PyThreadState* __tstate = wxPyBeginAllowThreads();
8664 (arg1)->SetPointSize(arg2);
8665
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 Py_INCREF(Py_None); resultobj = Py_None;
8670 return resultobj;
8671 fail:
8672 return NULL;
8673 }
8674
8675
8676 static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8677 PyObject *resultobj = NULL;
8678 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8679 wxSize *arg2 = 0 ;
8680 wxSize temp2 ;
8681 PyObject * obj0 = 0 ;
8682 PyObject * obj1 = 0 ;
8683 char *kwnames[] = {
8684 (char *) "self",(char *) "pixelSize", NULL
8685 };
8686
8687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8689 if (SWIG_arg_fail(1)) SWIG_fail;
8690 {
8691 arg2 = &temp2;
8692 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8693 }
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->SetPixelSize((wxSize const &)*arg2);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 Py_INCREF(Py_None); resultobj = Py_None;
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj = NULL;
8710 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8711 wxFontStyle arg2 ;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 char *kwnames[] = {
8715 (char *) "self",(char *) "style", NULL
8716 };
8717
8718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8720 if (SWIG_arg_fail(1)) SWIG_fail;
8721 {
8722 arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1));
8723 if (SWIG_arg_fail(2)) SWIG_fail;
8724 }
8725 {
8726 PyThreadState* __tstate = wxPyBeginAllowThreads();
8727 (arg1)->SetStyle(arg2);
8728
8729 wxPyEndAllowThreads(__tstate);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 Py_INCREF(Py_None); resultobj = Py_None;
8733 return resultobj;
8734 fail:
8735 return NULL;
8736 }
8737
8738
8739 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8740 PyObject *resultobj = NULL;
8741 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8742 wxFontWeight arg2 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 char *kwnames[] = {
8746 (char *) "self",(char *) "weight", NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8750 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8751 if (SWIG_arg_fail(1)) SWIG_fail;
8752 {
8753 arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1));
8754 if (SWIG_arg_fail(2)) SWIG_fail;
8755 }
8756 {
8757 PyThreadState* __tstate = wxPyBeginAllowThreads();
8758 (arg1)->SetWeight(arg2);
8759
8760 wxPyEndAllowThreads(__tstate);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 Py_INCREF(Py_None); resultobj = Py_None;
8764 return resultobj;
8765 fail:
8766 return NULL;
8767 }
8768
8769
8770 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8771 PyObject *resultobj = NULL;
8772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8773 bool arg2 ;
8774 PyObject * obj0 = 0 ;
8775 PyObject * obj1 = 0 ;
8776 char *kwnames[] = {
8777 (char *) "self",(char *) "underlined", NULL
8778 };
8779
8780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8781 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8782 if (SWIG_arg_fail(1)) SWIG_fail;
8783 {
8784 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
8785 if (SWIG_arg_fail(2)) SWIG_fail;
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 (arg1)->SetUnderlined(arg2);
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 Py_INCREF(Py_None); resultobj = Py_None;
8795 return resultobj;
8796 fail:
8797 return NULL;
8798 }
8799
8800
8801 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj = NULL;
8803 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8804 wxString arg2 ;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self",(char *) "facename", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8812 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8813 if (SWIG_arg_fail(1)) SWIG_fail;
8814 {
8815 wxString* sptr = wxString_in_helper(obj1);
8816 if (sptr == NULL) SWIG_fail;
8817 arg2 = *sptr;
8818 delete sptr;
8819 }
8820 {
8821 PyThreadState* __tstate = wxPyBeginAllowThreads();
8822 (arg1)->SetFaceName(arg2);
8823
8824 wxPyEndAllowThreads(__tstate);
8825 if (PyErr_Occurred()) SWIG_fail;
8826 }
8827 Py_INCREF(Py_None); resultobj = Py_None;
8828 return resultobj;
8829 fail:
8830 return NULL;
8831 }
8832
8833
8834 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8835 PyObject *resultobj = NULL;
8836 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8837 wxFontFamily arg2 ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 char *kwnames[] = {
8841 (char *) "self",(char *) "family", NULL
8842 };
8843
8844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8845 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8846 if (SWIG_arg_fail(1)) SWIG_fail;
8847 {
8848 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
8849 if (SWIG_arg_fail(2)) SWIG_fail;
8850 }
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 (arg1)->SetFamily(arg2);
8854
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 Py_INCREF(Py_None); resultobj = Py_None;
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj = NULL;
8867 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8868 wxFontEncoding arg2 ;
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self",(char *) "encoding", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8876 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8877 if (SWIG_arg_fail(1)) SWIG_fail;
8878 {
8879 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8880 if (SWIG_arg_fail(2)) SWIG_fail;
8881 }
8882 {
8883 PyThreadState* __tstate = wxPyBeginAllowThreads();
8884 (arg1)->SetEncoding(arg2);
8885
8886 wxPyEndAllowThreads(__tstate);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 Py_INCREF(Py_None); resultobj = Py_None;
8890 return resultobj;
8891 fail:
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj = NULL;
8898 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8899 wxString *arg2 = 0 ;
8900 bool result;
8901 bool temp2 = false ;
8902 PyObject * obj0 = 0 ;
8903 PyObject * obj1 = 0 ;
8904 char *kwnames[] = {
8905 (char *) "self",(char *) "s", NULL
8906 };
8907
8908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8910 if (SWIG_arg_fail(1)) SWIG_fail;
8911 {
8912 arg2 = wxString_in_helper(obj1);
8913 if (arg2 == NULL) SWIG_fail;
8914 temp2 = true;
8915 }
8916 {
8917 PyThreadState* __tstate = wxPyBeginAllowThreads();
8918 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8919
8920 wxPyEndAllowThreads(__tstate);
8921 if (PyErr_Occurred()) SWIG_fail;
8922 }
8923 {
8924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8925 }
8926 {
8927 if (temp2)
8928 delete arg2;
8929 }
8930 return resultobj;
8931 fail:
8932 {
8933 if (temp2)
8934 delete arg2;
8935 }
8936 return NULL;
8937 }
8938
8939
8940 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj = NULL;
8942 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8943 wxString result;
8944 PyObject * obj0 = 0 ;
8945 char *kwnames[] = {
8946 (char *) "self", NULL
8947 };
8948
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8951 if (SWIG_arg_fail(1)) SWIG_fail;
8952 {
8953 PyThreadState* __tstate = wxPyBeginAllowThreads();
8954 result = ((wxNativeFontInfo const *)arg1)->ToString();
8955
8956 wxPyEndAllowThreads(__tstate);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 }
8959 {
8960 #if wxUSE_UNICODE
8961 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8962 #else
8963 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8964 #endif
8965 }
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj = NULL;
8974 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8975 wxString result;
8976 PyObject * obj0 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "self", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8983 if (SWIG_arg_fail(1)) SWIG_fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = wxNativeFontInfo___str__(arg1);
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 {
8992 #if wxUSE_UNICODE
8993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8994 #else
8995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8996 #endif
8997 }
8998 return resultobj;
8999 fail:
9000 return NULL;
9001 }
9002
9003
9004 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj = NULL;
9006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9007 wxString *arg2 = 0 ;
9008 bool result;
9009 bool temp2 = false ;
9010 PyObject * obj0 = 0 ;
9011 PyObject * obj1 = 0 ;
9012 char *kwnames[] = {
9013 (char *) "self",(char *) "s", NULL
9014 };
9015
9016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
9017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9018 if (SWIG_arg_fail(1)) SWIG_fail;
9019 {
9020 arg2 = wxString_in_helper(obj1);
9021 if (arg2 == NULL) SWIG_fail;
9022 temp2 = true;
9023 }
9024 {
9025 PyThreadState* __tstate = wxPyBeginAllowThreads();
9026 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
9027
9028 wxPyEndAllowThreads(__tstate);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 {
9032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9033 }
9034 {
9035 if (temp2)
9036 delete arg2;
9037 }
9038 return resultobj;
9039 fail:
9040 {
9041 if (temp2)
9042 delete arg2;
9043 }
9044 return NULL;
9045 }
9046
9047
9048 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
9049 PyObject *resultobj = NULL;
9050 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9051 wxString result;
9052 PyObject * obj0 = 0 ;
9053 char *kwnames[] = {
9054 (char *) "self", NULL
9055 };
9056
9057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
9058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9059 if (SWIG_arg_fail(1)) SWIG_fail;
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 {
9068 #if wxUSE_UNICODE
9069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9070 #else
9071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9072 #endif
9073 }
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
9081 PyObject *obj;
9082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9083 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
9084 Py_INCREF(obj);
9085 return Py_BuildValue((char *)"");
9086 }
9087 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj = NULL;
9089 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9090 wxString *arg2 = (wxString *) 0 ;
9091 bool temp2 = false ;
9092 PyObject * obj0 = 0 ;
9093 PyObject * obj1 = 0 ;
9094 char *kwnames[] = {
9095 (char *) "self",(char *) "facename", NULL
9096 };
9097
9098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
9099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9100 if (SWIG_arg_fail(1)) SWIG_fail;
9101 {
9102 arg2 = wxString_in_helper(obj1);
9103 if (arg2 == NULL) SWIG_fail;
9104 temp2 = true;
9105 }
9106 if (arg1) (arg1)->facename = *arg2;
9107
9108 Py_INCREF(Py_None); resultobj = Py_None;
9109 {
9110 if (temp2)
9111 delete arg2;
9112 }
9113 return resultobj;
9114 fail:
9115 {
9116 if (temp2)
9117 delete arg2;
9118 }
9119 return NULL;
9120 }
9121
9122
9123 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj = NULL;
9125 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9126 wxString *result;
9127 PyObject * obj0 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
9133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9134 if (SWIG_arg_fail(1)) SWIG_fail;
9135 result = (wxString *)& ((arg1)->facename);
9136
9137 {
9138 #if wxUSE_UNICODE
9139 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9140 #else
9141 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9142 #endif
9143 }
9144 return resultobj;
9145 fail:
9146 return NULL;
9147 }
9148
9149
9150 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
9151 PyObject *resultobj = NULL;
9152 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9153 wxFontEncoding arg2 ;
9154 PyObject * obj0 = 0 ;
9155 PyObject * obj1 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self",(char *) "encoding", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
9161 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9162 if (SWIG_arg_fail(1)) SWIG_fail;
9163 {
9164 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9165 if (SWIG_arg_fail(2)) SWIG_fail;
9166 }
9167 if (arg1) (arg1)->encoding = arg2;
9168
9169 Py_INCREF(Py_None); resultobj = Py_None;
9170 return resultobj;
9171 fail:
9172 return NULL;
9173 }
9174
9175
9176 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
9177 PyObject *resultobj = NULL;
9178 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9179 wxFontEncoding result;
9180 PyObject * obj0 = 0 ;
9181 char *kwnames[] = {
9182 (char *) "self", NULL
9183 };
9184
9185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
9186 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9187 if (SWIG_arg_fail(1)) SWIG_fail;
9188 result = (wxFontEncoding) ((arg1)->encoding);
9189
9190 resultobj = SWIG_From_int((result));
9191 return resultobj;
9192 fail:
9193 return NULL;
9194 }
9195
9196
9197 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9198 PyObject *resultobj = NULL;
9199 wxNativeEncodingInfo *result;
9200 char *kwnames[] = {
9201 NULL
9202 };
9203
9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
9208
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj = NULL;
9221 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9222 PyObject * obj0 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "self", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
9228 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9229 if (SWIG_arg_fail(1)) SWIG_fail;
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 delete arg1;
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 Py_INCREF(Py_None); resultobj = Py_None;
9238 return resultobj;
9239 fail:
9240 return NULL;
9241 }
9242
9243
9244 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj = NULL;
9246 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9247 wxString *arg2 = 0 ;
9248 bool result;
9249 bool temp2 = false ;
9250 PyObject * obj0 = 0 ;
9251 PyObject * obj1 = 0 ;
9252 char *kwnames[] = {
9253 (char *) "self",(char *) "s", NULL
9254 };
9255
9256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
9257 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9258 if (SWIG_arg_fail(1)) SWIG_fail;
9259 {
9260 arg2 = wxString_in_helper(obj1);
9261 if (arg2 == NULL) SWIG_fail;
9262 temp2 = true;
9263 }
9264 {
9265 PyThreadState* __tstate = wxPyBeginAllowThreads();
9266 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9267
9268 wxPyEndAllowThreads(__tstate);
9269 if (PyErr_Occurred()) SWIG_fail;
9270 }
9271 {
9272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9273 }
9274 {
9275 if (temp2)
9276 delete arg2;
9277 }
9278 return resultobj;
9279 fail:
9280 {
9281 if (temp2)
9282 delete arg2;
9283 }
9284 return NULL;
9285 }
9286
9287
9288 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj = NULL;
9290 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9291 wxString result;
9292 PyObject * obj0 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
9298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9299 if (SWIG_arg_fail(1)) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 {
9308 #if wxUSE_UNICODE
9309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9310 #else
9311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9312 #endif
9313 }
9314 return resultobj;
9315 fail:
9316 return NULL;
9317 }
9318
9319
9320 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
9321 PyObject *obj;
9322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9323 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
9324 Py_INCREF(obj);
9325 return Py_BuildValue((char *)"");
9326 }
9327 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj = NULL;
9329 wxFontEncoding arg1 ;
9330 wxNativeEncodingInfo *result;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "encoding", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
9337 {
9338 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9339 if (SWIG_arg_fail(1)) SWIG_fail;
9340 }
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9356 PyObject *resultobj = NULL;
9357 wxNativeEncodingInfo *arg1 = 0 ;
9358 bool result;
9359 PyObject * obj0 = 0 ;
9360 char *kwnames[] = {
9361 (char *) "info", NULL
9362 };
9363
9364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
9365 {
9366 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9367 if (SWIG_arg_fail(1)) SWIG_fail;
9368 if (arg1 == NULL) {
9369 SWIG_null_ref("wxNativeEncodingInfo");
9370 }
9371 if (SWIG_arg_fail(1)) SWIG_fail;
9372 }
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
9376
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 {
9381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9382 }
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj = NULL;
9391 wxFontMapper *result;
9392 char *kwnames[] = {
9393 NULL
9394 };
9395
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (wxFontMapper *)new wxFontMapper();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj = NULL;
9413 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9414 PyObject * obj0 = 0 ;
9415 char *kwnames[] = {
9416 (char *) "self", NULL
9417 };
9418
9419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
9420 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9421 if (SWIG_arg_fail(1)) SWIG_fail;
9422 {
9423 PyThreadState* __tstate = wxPyBeginAllowThreads();
9424 delete arg1;
9425
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 Py_INCREF(Py_None); resultobj = Py_None;
9430 return resultobj;
9431 fail:
9432 return NULL;
9433 }
9434
9435
9436 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj = NULL;
9438 wxFontMapper *result;
9439 char *kwnames[] = {
9440 NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (wxFontMapper *)wxFontMapper::Get();
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
9452 return resultobj;
9453 fail:
9454 return NULL;
9455 }
9456
9457
9458 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
9459 PyObject *resultobj = NULL;
9460 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9461 wxFontMapper *result;
9462 PyObject * obj0 = 0 ;
9463 char *kwnames[] = {
9464 (char *) "mapper", NULL
9465 };
9466
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
9468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9469 if (SWIG_arg_fail(1)) SWIG_fail;
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 result = (wxFontMapper *)wxFontMapper::Set(arg1);
9473
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = NULL;
9486 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9487 wxString *arg2 = 0 ;
9488 bool arg3 = (bool) true ;
9489 wxFontEncoding result;
9490 bool temp2 = false ;
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 PyObject * obj2 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self",(char *) "charset",(char *) "interactive", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
9499 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9500 if (SWIG_arg_fail(1)) SWIG_fail;
9501 {
9502 arg2 = wxString_in_helper(obj1);
9503 if (arg2 == NULL) SWIG_fail;
9504 temp2 = true;
9505 }
9506 if (obj2) {
9507 {
9508 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9509 if (SWIG_arg_fail(3)) SWIG_fail;
9510 }
9511 }
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
9515
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 resultobj = SWIG_From_int((result));
9520 {
9521 if (temp2)
9522 delete arg2;
9523 }
9524 return resultobj;
9525 fail:
9526 {
9527 if (temp2)
9528 delete arg2;
9529 }
9530 return NULL;
9531 }
9532
9533
9534 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj = NULL;
9536 size_t result;
9537 char *kwnames[] = {
9538 NULL
9539 };
9540
9541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 {
9550 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
9551 }
9552 return resultobj;
9553 fail:
9554 return NULL;
9555 }
9556
9557
9558 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9559 PyObject *resultobj = NULL;
9560 size_t arg1 ;
9561 wxFontEncoding result;
9562 PyObject * obj0 = 0 ;
9563 char *kwnames[] = {
9564 (char *) "n", NULL
9565 };
9566
9567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
9568 {
9569 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
9570 if (SWIG_arg_fail(1)) SWIG_fail;
9571 }
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 resultobj = SWIG_From_int((result));
9580 return resultobj;
9581 fail:
9582 return NULL;
9583 }
9584
9585
9586 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9587 PyObject *resultobj = NULL;
9588 wxFontEncoding arg1 ;
9589 wxString result;
9590 PyObject * obj0 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "encoding", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
9596 {
9597 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9598 if (SWIG_arg_fail(1)) SWIG_fail;
9599 }
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = wxFontMapper::GetEncodingName(arg1);
9603
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 {
9608 #if wxUSE_UNICODE
9609 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9610 #else
9611 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9612 #endif
9613 }
9614 return resultobj;
9615 fail:
9616 return NULL;
9617 }
9618
9619
9620 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = NULL;
9622 wxFontEncoding arg1 ;
9623 wxString result;
9624 PyObject * obj0 = 0 ;
9625 char *kwnames[] = {
9626 (char *) "encoding", NULL
9627 };
9628
9629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
9630 {
9631 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9632 if (SWIG_arg_fail(1)) SWIG_fail;
9633 }
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = wxFontMapper::GetEncodingDescription(arg1);
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) SWIG_fail;
9640 }
9641 {
9642 #if wxUSE_UNICODE
9643 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9644 #else
9645 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9646 #endif
9647 }
9648 return resultobj;
9649 fail:
9650 return NULL;
9651 }
9652
9653
9654 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
9655 PyObject *resultobj = NULL;
9656 wxString *arg1 = 0 ;
9657 wxFontEncoding result;
9658 bool temp1 = false ;
9659 PyObject * obj0 = 0 ;
9660 char *kwnames[] = {
9661 (char *) "name", NULL
9662 };
9663
9664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
9665 {
9666 arg1 = wxString_in_helper(obj0);
9667 if (arg1 == NULL) SWIG_fail;
9668 temp1 = true;
9669 }
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
9673
9674 wxPyEndAllowThreads(__tstate);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
9677 resultobj = SWIG_From_int((result));
9678 {
9679 if (temp1)
9680 delete arg1;
9681 }
9682 return resultobj;
9683 fail:
9684 {
9685 if (temp1)
9686 delete arg1;
9687 }
9688 return NULL;
9689 }
9690
9691
9692 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj = NULL;
9694 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9695 wxString *arg2 = 0 ;
9696 bool temp2 = false ;
9697 PyObject * obj0 = 0 ;
9698 PyObject * obj1 = 0 ;
9699 char *kwnames[] = {
9700 (char *) "self",(char *) "prefix", NULL
9701 };
9702
9703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
9704 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9705 if (SWIG_arg_fail(1)) SWIG_fail;
9706 {
9707 arg2 = wxString_in_helper(obj1);
9708 if (arg2 == NULL) SWIG_fail;
9709 temp2 = true;
9710 }
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 (arg1)->SetConfigPath((wxString const &)*arg2);
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 Py_INCREF(Py_None); resultobj = Py_None;
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return resultobj;
9724 fail:
9725 {
9726 if (temp2)
9727 delete arg2;
9728 }
9729 return NULL;
9730 }
9731
9732
9733 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj = NULL;
9735 wxString result;
9736 char *kwnames[] = {
9737 NULL
9738 };
9739
9740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9743 result = wxFontMapper::GetDefaultConfigPath();
9744
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 #if wxUSE_UNICODE
9750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9751 #else
9752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9753 #endif
9754 }
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj = NULL;
9763 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9764 wxFontEncoding arg2 ;
9765 wxString const &arg3_defvalue = wxPyEmptyString ;
9766 wxString *arg3 = (wxString *) &arg3_defvalue ;
9767 bool arg4 = (bool) true ;
9768 PyObject *result;
9769 bool temp3 = false ;
9770 PyObject * obj0 = 0 ;
9771 PyObject * obj1 = 0 ;
9772 PyObject * obj2 = 0 ;
9773 PyObject * obj3 = 0 ;
9774 char *kwnames[] = {
9775 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
9776 };
9777
9778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9779 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9780 if (SWIG_arg_fail(1)) SWIG_fail;
9781 {
9782 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9783 if (SWIG_arg_fail(2)) SWIG_fail;
9784 }
9785 if (obj2) {
9786 {
9787 arg3 = wxString_in_helper(obj2);
9788 if (arg3 == NULL) SWIG_fail;
9789 temp3 = true;
9790 }
9791 }
9792 if (obj3) {
9793 {
9794 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
9795 if (SWIG_arg_fail(4)) SWIG_fail;
9796 }
9797 }
9798 {
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) SWIG_fail;
9804 }
9805 resultobj = result;
9806 {
9807 if (temp3)
9808 delete arg3;
9809 }
9810 return resultobj;
9811 fail:
9812 {
9813 if (temp3)
9814 delete arg3;
9815 }
9816 return NULL;
9817 }
9818
9819
9820 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj = NULL;
9822 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9823 wxFontEncoding arg2 ;
9824 wxString const &arg3_defvalue = wxPyEmptyString ;
9825 wxString *arg3 = (wxString *) &arg3_defvalue ;
9826 bool result;
9827 bool temp3 = false ;
9828 PyObject * obj0 = 0 ;
9829 PyObject * obj1 = 0 ;
9830 PyObject * obj2 = 0 ;
9831 char *kwnames[] = {
9832 (char *) "self",(char *) "encoding",(char *) "facename", NULL
9833 };
9834
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9837 if (SWIG_arg_fail(1)) SWIG_fail;
9838 {
9839 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9840 if (SWIG_arg_fail(2)) SWIG_fail;
9841 }
9842 if (obj2) {
9843 {
9844 arg3 = wxString_in_helper(obj2);
9845 if (arg3 == NULL) SWIG_fail;
9846 temp3 = true;
9847 }
9848 }
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 {
9857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9858 }
9859 {
9860 if (temp3)
9861 delete arg3;
9862 }
9863 return resultobj;
9864 fail:
9865 {
9866 if (temp3)
9867 delete arg3;
9868 }
9869 return NULL;
9870 }
9871
9872
9873 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
9874 PyObject *resultobj = NULL;
9875 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9876 wxWindow *arg2 = (wxWindow *) 0 ;
9877 PyObject * obj0 = 0 ;
9878 PyObject * obj1 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self",(char *) "parent", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9885 if (SWIG_arg_fail(1)) SWIG_fail;
9886 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9887 if (SWIG_arg_fail(2)) SWIG_fail;
9888 {
9889 PyThreadState* __tstate = wxPyBeginAllowThreads();
9890 (arg1)->SetDialogParent(arg2);
9891
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 Py_INCREF(Py_None); resultobj = Py_None;
9896 return resultobj;
9897 fail:
9898 return NULL;
9899 }
9900
9901
9902 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
9903 PyObject *resultobj = NULL;
9904 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9905 wxString *arg2 = 0 ;
9906 bool temp2 = false ;
9907 PyObject * obj0 = 0 ;
9908 PyObject * obj1 = 0 ;
9909 char *kwnames[] = {
9910 (char *) "self",(char *) "title", NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9915 if (SWIG_arg_fail(1)) SWIG_fail;
9916 {
9917 arg2 = wxString_in_helper(obj1);
9918 if (arg2 == NULL) SWIG_fail;
9919 temp2 = true;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 (arg1)->SetDialogTitle((wxString const &)*arg2);
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
9928 Py_INCREF(Py_None); resultobj = Py_None;
9929 {
9930 if (temp2)
9931 delete arg2;
9932 }
9933 return resultobj;
9934 fail:
9935 {
9936 if (temp2)
9937 delete arg2;
9938 }
9939 return NULL;
9940 }
9941
9942
9943 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9944 PyObject *obj;
9945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9946 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9947 Py_INCREF(obj);
9948 return Py_BuildValue((char *)"");
9949 }
9950 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj = NULL;
9952 int arg1 ;
9953 int arg2 ;
9954 int arg3 ;
9955 int arg4 ;
9956 bool arg5 = (bool) false ;
9957 wxString const &arg6_defvalue = wxPyEmptyString ;
9958 wxString *arg6 = (wxString *) &arg6_defvalue ;
9959 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9960 wxFont *result;
9961 bool temp6 = false ;
9962 PyObject * obj0 = 0 ;
9963 PyObject * obj1 = 0 ;
9964 PyObject * obj2 = 0 ;
9965 PyObject * obj3 = 0 ;
9966 PyObject * obj4 = 0 ;
9967 PyObject * obj5 = 0 ;
9968 PyObject * obj6 = 0 ;
9969 char *kwnames[] = {
9970 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
9971 };
9972
9973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9974 {
9975 arg1 = static_cast<int >(SWIG_As_int(obj0));
9976 if (SWIG_arg_fail(1)) SWIG_fail;
9977 }
9978 {
9979 arg2 = static_cast<int >(SWIG_As_int(obj1));
9980 if (SWIG_arg_fail(2)) SWIG_fail;
9981 }
9982 {
9983 arg3 = static_cast<int >(SWIG_As_int(obj2));
9984 if (SWIG_arg_fail(3)) SWIG_fail;
9985 }
9986 {
9987 arg4 = static_cast<int >(SWIG_As_int(obj3));
9988 if (SWIG_arg_fail(4)) SWIG_fail;
9989 }
9990 if (obj4) {
9991 {
9992 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9993 if (SWIG_arg_fail(5)) SWIG_fail;
9994 }
9995 }
9996 if (obj5) {
9997 {
9998 arg6 = wxString_in_helper(obj5);
9999 if (arg6 == NULL) SWIG_fail;
10000 temp6 = true;
10001 }
10002 }
10003 if (obj6) {
10004 {
10005 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
10006 if (SWIG_arg_fail(7)) SWIG_fail;
10007 }
10008 }
10009 {
10010 if (!wxPyCheckForApp()) SWIG_fail;
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
10013
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10018 {
10019 if (temp6)
10020 delete arg6;
10021 }
10022 return resultobj;
10023 fail:
10024 {
10025 if (temp6)
10026 delete arg6;
10027 }
10028 return NULL;
10029 }
10030
10031
10032 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj = NULL;
10034 wxFont *arg1 = (wxFont *) 0 ;
10035 PyObject * obj0 = 0 ;
10036 char *kwnames[] = {
10037 (char *) "self", NULL
10038 };
10039
10040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
10041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10042 if (SWIG_arg_fail(1)) SWIG_fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 delete arg1;
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 Py_INCREF(Py_None); resultobj = Py_None;
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = NULL;
10059 wxNativeFontInfo *arg1 = 0 ;
10060 wxFont *result;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "info", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
10067 {
10068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10069 if (SWIG_arg_fail(1)) SWIG_fail;
10070 if (arg1 == NULL) {
10071 SWIG_null_ref("wxNativeFontInfo");
10072 }
10073 if (SWIG_arg_fail(1)) SWIG_fail;
10074 }
10075 {
10076 if (!wxPyCheckForApp()) SWIG_fail;
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
10091 PyObject *resultobj = NULL;
10092 wxString *arg1 = 0 ;
10093 wxFont *result;
10094 bool temp1 = false ;
10095 PyObject * obj0 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "info", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
10101 {
10102 arg1 = wxString_in_helper(obj0);
10103 if (arg1 == NULL) SWIG_fail;
10104 temp1 = true;
10105 }
10106 {
10107 if (!wxPyCheckForApp()) SWIG_fail;
10108 PyThreadState* __tstate = wxPyBeginAllowThreads();
10109 result = (wxFont *)new_wxFont((wxString const &)*arg1);
10110
10111 wxPyEndAllowThreads(__tstate);
10112 if (PyErr_Occurred()) SWIG_fail;
10113 }
10114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10115 {
10116 if (temp1)
10117 delete arg1;
10118 }
10119 return resultobj;
10120 fail:
10121 {
10122 if (temp1)
10123 delete arg1;
10124 }
10125 return NULL;
10126 }
10127
10128
10129 static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
10130 PyObject *resultobj = NULL;
10131 int arg1 ;
10132 wxFontFamily arg2 ;
10133 int arg3 = (int) wxFONTFLAG_DEFAULT ;
10134 wxString const &arg4_defvalue = wxPyEmptyString ;
10135 wxString *arg4 = (wxString *) &arg4_defvalue ;
10136 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10137 wxFont *result;
10138 bool temp4 = false ;
10139 PyObject * obj0 = 0 ;
10140 PyObject * obj1 = 0 ;
10141 PyObject * obj2 = 0 ;
10142 PyObject * obj3 = 0 ;
10143 PyObject * obj4 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10149 {
10150 arg1 = static_cast<int >(SWIG_As_int(obj0));
10151 if (SWIG_arg_fail(1)) SWIG_fail;
10152 }
10153 {
10154 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
10155 if (SWIG_arg_fail(2)) SWIG_fail;
10156 }
10157 if (obj2) {
10158 {
10159 arg3 = static_cast<int >(SWIG_As_int(obj2));
10160 if (SWIG_arg_fail(3)) SWIG_fail;
10161 }
10162 }
10163 if (obj3) {
10164 {
10165 arg4 = wxString_in_helper(obj3);
10166 if (arg4 == NULL) SWIG_fail;
10167 temp4 = true;
10168 }
10169 }
10170 if (obj4) {
10171 {
10172 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
10173 if (SWIG_arg_fail(5)) SWIG_fail;
10174 }
10175 }
10176 {
10177 if (!wxPyCheckForApp()) SWIG_fail;
10178 PyThreadState* __tstate = wxPyBeginAllowThreads();
10179 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
10180
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10185 {
10186 if (temp4)
10187 delete arg4;
10188 }
10189 return resultobj;
10190 fail:
10191 {
10192 if (temp4)
10193 delete arg4;
10194 }
10195 return NULL;
10196 }
10197
10198
10199 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj = NULL;
10201 wxSize *arg1 = 0 ;
10202 int arg2 ;
10203 int arg3 ;
10204 int arg4 ;
10205 bool arg5 = (bool) false ;
10206 wxString const &arg6_defvalue = wxEmptyString ;
10207 wxString *arg6 = (wxString *) &arg6_defvalue ;
10208 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10209 wxFont *result;
10210 wxSize temp1 ;
10211 bool temp6 = false ;
10212 PyObject * obj0 = 0 ;
10213 PyObject * obj1 = 0 ;
10214 PyObject * obj2 = 0 ;
10215 PyObject * obj3 = 0 ;
10216 PyObject * obj4 = 0 ;
10217 PyObject * obj5 = 0 ;
10218 PyObject * obj6 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10224 {
10225 arg1 = &temp1;
10226 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10227 }
10228 {
10229 arg2 = static_cast<int >(SWIG_As_int(obj1));
10230 if (SWIG_arg_fail(2)) SWIG_fail;
10231 }
10232 {
10233 arg3 = static_cast<int >(SWIG_As_int(obj2));
10234 if (SWIG_arg_fail(3)) SWIG_fail;
10235 }
10236 {
10237 arg4 = static_cast<int >(SWIG_As_int(obj3));
10238 if (SWIG_arg_fail(4)) SWIG_fail;
10239 }
10240 if (obj4) {
10241 {
10242 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
10243 if (SWIG_arg_fail(5)) SWIG_fail;
10244 }
10245 }
10246 if (obj5) {
10247 {
10248 arg6 = wxString_in_helper(obj5);
10249 if (arg6 == NULL) SWIG_fail;
10250 temp6 = true;
10251 }
10252 }
10253 if (obj6) {
10254 {
10255 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
10256 if (SWIG_arg_fail(7)) SWIG_fail;
10257 }
10258 }
10259 {
10260 if (!wxPyCheckForApp()) SWIG_fail;
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10268 {
10269 if (temp6)
10270 delete arg6;
10271 }
10272 return resultobj;
10273 fail:
10274 {
10275 if (temp6)
10276 delete arg6;
10277 }
10278 return NULL;
10279 }
10280
10281
10282 static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj = NULL;
10284 wxSize *arg1 = 0 ;
10285 wxFontFamily arg2 ;
10286 int arg3 = (int) wxFONTFLAG_DEFAULT ;
10287 wxString const &arg4_defvalue = wxEmptyString ;
10288 wxString *arg4 = (wxString *) &arg4_defvalue ;
10289 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10290 wxFont *result;
10291 wxSize temp1 ;
10292 bool temp4 = false ;
10293 PyObject * obj0 = 0 ;
10294 PyObject * obj1 = 0 ;
10295 PyObject * obj2 = 0 ;
10296 PyObject * obj3 = 0 ;
10297 PyObject * obj4 = 0 ;
10298 char *kwnames[] = {
10299 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
10300 };
10301
10302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10303 {
10304 arg1 = &temp1;
10305 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10306 }
10307 {
10308 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
10309 if (SWIG_arg_fail(2)) SWIG_fail;
10310 }
10311 if (obj2) {
10312 {
10313 arg3 = static_cast<int >(SWIG_As_int(obj2));
10314 if (SWIG_arg_fail(3)) SWIG_fail;
10315 }
10316 }
10317 if (obj3) {
10318 {
10319 arg4 = wxString_in_helper(obj3);
10320 if (arg4 == NULL) SWIG_fail;
10321 temp4 = true;
10322 }
10323 }
10324 if (obj4) {
10325 {
10326 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
10327 if (SWIG_arg_fail(5)) SWIG_fail;
10328 }
10329 }
10330 {
10331 if (!wxPyCheckForApp()) SWIG_fail;
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10339 {
10340 if (temp4)
10341 delete arg4;
10342 }
10343 return resultobj;
10344 fail:
10345 {
10346 if (temp4)
10347 delete arg4;
10348 }
10349 return NULL;
10350 }
10351
10352
10353 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
10354 PyObject *resultobj = NULL;
10355 wxFont *arg1 = (wxFont *) 0 ;
10356 bool result;
10357 PyObject * obj0 = 0 ;
10358 char *kwnames[] = {
10359 (char *) "self", NULL
10360 };
10361
10362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
10363 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10364 if (SWIG_arg_fail(1)) SWIG_fail;
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (bool)((wxFont const *)arg1)->Ok();
10368
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 {
10373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10374 }
10375 return resultobj;
10376 fail:
10377 return NULL;
10378 }
10379
10380
10381 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
10382 PyObject *resultobj = NULL;
10383 wxFont *arg1 = (wxFont *) 0 ;
10384 wxFont *arg2 = (wxFont *) 0 ;
10385 bool result;
10386 PyObject * obj0 = 0 ;
10387 PyObject * obj1 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self",(char *) "other", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
10393 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10394 if (SWIG_arg_fail(1)) SWIG_fail;
10395 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10396 if (SWIG_arg_fail(2)) SWIG_fail;
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10406 }
10407 return resultobj;
10408 fail:
10409 return NULL;
10410 }
10411
10412
10413 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
10414 PyObject *resultobj = NULL;
10415 wxFont *arg1 = (wxFont *) 0 ;
10416 wxFont *arg2 = (wxFont *) 0 ;
10417 bool result;
10418 PyObject * obj0 = 0 ;
10419 PyObject * obj1 = 0 ;
10420 char *kwnames[] = {
10421 (char *) "self",(char *) "other", NULL
10422 };
10423
10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
10425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10426 if (SWIG_arg_fail(1)) SWIG_fail;
10427 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10428 if (SWIG_arg_fail(2)) SWIG_fail;
10429 {
10430 PyThreadState* __tstate = wxPyBeginAllowThreads();
10431 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
10432
10433 wxPyEndAllowThreads(__tstate);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
10436 {
10437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10438 }
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj = NULL;
10447 wxFont *arg1 = (wxFont *) 0 ;
10448 int result;
10449 PyObject * obj0 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self", NULL
10452 };
10453
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
10455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10456 if (SWIG_arg_fail(1)) SWIG_fail;
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (int)((wxFont const *)arg1)->GetPointSize();
10460
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 {
10465 resultobj = SWIG_From_int(static_cast<int >(result));
10466 }
10467 return resultobj;
10468 fail:
10469 return NULL;
10470 }
10471
10472
10473 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10474 PyObject *resultobj = NULL;
10475 wxFont *arg1 = (wxFont *) 0 ;
10476 wxSize result;
10477 PyObject * obj0 = 0 ;
10478 char *kwnames[] = {
10479 (char *) "self", NULL
10480 };
10481
10482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
10483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10484 if (SWIG_arg_fail(1)) SWIG_fail;
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 result = ((wxFont const *)arg1)->GetPixelSize();
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 {
10493 wxSize * resultptr;
10494 resultptr = new wxSize(static_cast<wxSize & >(result));
10495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10496 }
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj = NULL;
10505 wxFont *arg1 = (wxFont *) 0 ;
10506 bool result;
10507 PyObject * obj0 = 0 ;
10508 char *kwnames[] = {
10509 (char *) "self", NULL
10510 };
10511
10512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
10513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10514 if (SWIG_arg_fail(1)) SWIG_fail;
10515 {
10516 PyThreadState* __tstate = wxPyBeginAllowThreads();
10517 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
10518
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 {
10523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10524 }
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj = NULL;
10533 wxFont *arg1 = (wxFont *) 0 ;
10534 int result;
10535 PyObject * obj0 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
10541 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10542 if (SWIG_arg_fail(1)) SWIG_fail;
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 result = (int)((wxFont const *)arg1)->GetFamily();
10546
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 {
10551 resultobj = SWIG_From_int(static_cast<int >(result));
10552 }
10553 return resultobj;
10554 fail:
10555 return NULL;
10556 }
10557
10558
10559 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj = NULL;
10561 wxFont *arg1 = (wxFont *) 0 ;
10562 int result;
10563 PyObject * obj0 = 0 ;
10564 char *kwnames[] = {
10565 (char *) "self", NULL
10566 };
10567
10568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
10569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10570 if (SWIG_arg_fail(1)) SWIG_fail;
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 result = (int)((wxFont const *)arg1)->GetStyle();
10574
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 {
10579 resultobj = SWIG_From_int(static_cast<int >(result));
10580 }
10581 return resultobj;
10582 fail:
10583 return NULL;
10584 }
10585
10586
10587 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj = NULL;
10589 wxFont *arg1 = (wxFont *) 0 ;
10590 int result;
10591 PyObject * obj0 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
10597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10598 if (SWIG_arg_fail(1)) SWIG_fail;
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 result = (int)((wxFont const *)arg1)->GetWeight();
10602
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 {
10607 resultobj = SWIG_From_int(static_cast<int >(result));
10608 }
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj = NULL;
10617 wxFont *arg1 = (wxFont *) 0 ;
10618 bool result;
10619 PyObject * obj0 = 0 ;
10620 char *kwnames[] = {
10621 (char *) "self", NULL
10622 };
10623
10624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
10625 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10626 if (SWIG_arg_fail(1)) SWIG_fail;
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (bool)((wxFont const *)arg1)->GetUnderlined();
10630
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 {
10635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10636 }
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj = NULL;
10645 wxFont *arg1 = (wxFont *) 0 ;
10646 wxString result;
10647 PyObject * obj0 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
10653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10654 if (SWIG_arg_fail(1)) SWIG_fail;
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = ((wxFont const *)arg1)->GetFaceName();
10658
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 {
10663 #if wxUSE_UNICODE
10664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10665 #else
10666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10667 #endif
10668 }
10669 return resultobj;
10670 fail:
10671 return NULL;
10672 }
10673
10674
10675 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj = NULL;
10677 wxFont *arg1 = (wxFont *) 0 ;
10678 wxFontEncoding result;
10679 PyObject * obj0 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
10685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10686 if (SWIG_arg_fail(1)) SWIG_fail;
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
10690
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_From_int((result));
10695 return resultobj;
10696 fail:
10697 return NULL;
10698 }
10699
10700
10701 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = NULL;
10703 wxFont *arg1 = (wxFont *) 0 ;
10704 wxNativeFontInfo *result;
10705 PyObject * obj0 = 0 ;
10706 char *kwnames[] = {
10707 (char *) "self", NULL
10708 };
10709
10710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
10711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10712 if (SWIG_arg_fail(1)) SWIG_fail;
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
10721 return resultobj;
10722 fail:
10723 return NULL;
10724 }
10725
10726
10727 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj = NULL;
10729 wxFont *arg1 = (wxFont *) 0 ;
10730 bool result;
10731 PyObject * obj0 = 0 ;
10732 char *kwnames[] = {
10733 (char *) "self", NULL
10734 };
10735
10736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
10737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10738 if (SWIG_arg_fail(1)) SWIG_fail;
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
10742
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 {
10747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10748 }
10749 return resultobj;
10750 fail:
10751 return NULL;
10752 }
10753
10754
10755 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj = NULL;
10757 wxFont *arg1 = (wxFont *) 0 ;
10758 wxString result;
10759 PyObject * obj0 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10766 if (SWIG_arg_fail(1)) SWIG_fail;
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
10770
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 {
10775 #if wxUSE_UNICODE
10776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10777 #else
10778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10779 #endif
10780 }
10781 return resultobj;
10782 fail:
10783 return NULL;
10784 }
10785
10786
10787 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj = NULL;
10789 wxFont *arg1 = (wxFont *) 0 ;
10790 wxString result;
10791 PyObject * obj0 = 0 ;
10792 char *kwnames[] = {
10793 (char *) "self", NULL
10794 };
10795
10796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10798 if (SWIG_arg_fail(1)) SWIG_fail;
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
10802
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 {
10807 #if wxUSE_UNICODE
10808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10809 #else
10810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10811 #endif
10812 }
10813 return resultobj;
10814 fail:
10815 return NULL;
10816 }
10817
10818
10819 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10820 PyObject *resultobj = NULL;
10821 wxFont *arg1 = (wxFont *) 0 ;
10822 int arg2 ;
10823 PyObject * obj0 = 0 ;
10824 PyObject * obj1 = 0 ;
10825 char *kwnames[] = {
10826 (char *) "self",(char *) "pointSize", NULL
10827 };
10828
10829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10831 if (SWIG_arg_fail(1)) SWIG_fail;
10832 {
10833 arg2 = static_cast<int >(SWIG_As_int(obj1));
10834 if (SWIG_arg_fail(2)) SWIG_fail;
10835 }
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->SetPointSize(arg2);
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 Py_INCREF(Py_None); resultobj = Py_None;
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj = NULL;
10852 wxFont *arg1 = (wxFont *) 0 ;
10853 wxSize *arg2 = 0 ;
10854 wxSize temp2 ;
10855 PyObject * obj0 = 0 ;
10856 PyObject * obj1 = 0 ;
10857 char *kwnames[] = {
10858 (char *) "self",(char *) "pixelSize", NULL
10859 };
10860
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10862 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10863 if (SWIG_arg_fail(1)) SWIG_fail;
10864 {
10865 arg2 = &temp2;
10866 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10867 }
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 (arg1)->SetPixelSize((wxSize const &)*arg2);
10871
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 Py_INCREF(Py_None); resultobj = Py_None;
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj = NULL;
10884 wxFont *arg1 = (wxFont *) 0 ;
10885 int arg2 ;
10886 PyObject * obj0 = 0 ;
10887 PyObject * obj1 = 0 ;
10888 char *kwnames[] = {
10889 (char *) "self",(char *) "family", NULL
10890 };
10891
10892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10894 if (SWIG_arg_fail(1)) SWIG_fail;
10895 {
10896 arg2 = static_cast<int >(SWIG_As_int(obj1));
10897 if (SWIG_arg_fail(2)) SWIG_fail;
10898 }
10899 {
10900 PyThreadState* __tstate = wxPyBeginAllowThreads();
10901 (arg1)->SetFamily(arg2);
10902
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 Py_INCREF(Py_None); resultobj = Py_None;
10907 return resultobj;
10908 fail:
10909 return NULL;
10910 }
10911
10912
10913 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10914 PyObject *resultobj = NULL;
10915 wxFont *arg1 = (wxFont *) 0 ;
10916 int arg2 ;
10917 PyObject * obj0 = 0 ;
10918 PyObject * obj1 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self",(char *) "style", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10925 if (SWIG_arg_fail(1)) SWIG_fail;
10926 {
10927 arg2 = static_cast<int >(SWIG_As_int(obj1));
10928 if (SWIG_arg_fail(2)) SWIG_fail;
10929 }
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->SetStyle(arg2);
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 Py_INCREF(Py_None); resultobj = Py_None;
10938 return resultobj;
10939 fail:
10940 return NULL;
10941 }
10942
10943
10944 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj = NULL;
10946 wxFont *arg1 = (wxFont *) 0 ;
10947 int arg2 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char *kwnames[] = {
10951 (char *) "self",(char *) "weight", NULL
10952 };
10953
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10955 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10956 if (SWIG_arg_fail(1)) SWIG_fail;
10957 {
10958 arg2 = static_cast<int >(SWIG_As_int(obj1));
10959 if (SWIG_arg_fail(2)) SWIG_fail;
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 (arg1)->SetWeight(arg2);
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 Py_INCREF(Py_None); resultobj = Py_None;
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj = NULL;
10977 wxFont *arg1 = (wxFont *) 0 ;
10978 wxString *arg2 = 0 ;
10979 bool temp2 = false ;
10980 PyObject * obj0 = 0 ;
10981 PyObject * obj1 = 0 ;
10982 char *kwnames[] = {
10983 (char *) "self",(char *) "faceName", NULL
10984 };
10985
10986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10987 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10988 if (SWIG_arg_fail(1)) SWIG_fail;
10989 {
10990 arg2 = wxString_in_helper(obj1);
10991 if (arg2 == NULL) SWIG_fail;
10992 temp2 = true;
10993 }
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 (arg1)->SetFaceName((wxString const &)*arg2);
10997
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 Py_INCREF(Py_None); resultobj = Py_None;
11002 {
11003 if (temp2)
11004 delete arg2;
11005 }
11006 return resultobj;
11007 fail:
11008 {
11009 if (temp2)
11010 delete arg2;
11011 }
11012 return NULL;
11013 }
11014
11015
11016 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = NULL;
11018 wxFont *arg1 = (wxFont *) 0 ;
11019 bool arg2 ;
11020 PyObject * obj0 = 0 ;
11021 PyObject * obj1 = 0 ;
11022 char *kwnames[] = {
11023 (char *) "self",(char *) "underlined", NULL
11024 };
11025
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
11027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11028 if (SWIG_arg_fail(1)) SWIG_fail;
11029 {
11030 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
11031 if (SWIG_arg_fail(2)) SWIG_fail;
11032 }
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 (arg1)->SetUnderlined(arg2);
11036
11037 wxPyEndAllowThreads(__tstate);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 Py_INCREF(Py_None); resultobj = Py_None;
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj = NULL;
11049 wxFont *arg1 = (wxFont *) 0 ;
11050 wxFontEncoding arg2 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "encoding", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
11058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11059 if (SWIG_arg_fail(1)) SWIG_fail;
11060 {
11061 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
11062 if (SWIG_arg_fail(2)) SWIG_fail;
11063 }
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 (arg1)->SetEncoding(arg2);
11067
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 Py_INCREF(Py_None); resultobj = Py_None;
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj = NULL;
11080 wxFont *arg1 = (wxFont *) 0 ;
11081 wxNativeFontInfo *arg2 = 0 ;
11082 PyObject * obj0 = 0 ;
11083 PyObject * obj1 = 0 ;
11084 char *kwnames[] = {
11085 (char *) "self",(char *) "info", NULL
11086 };
11087
11088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
11089 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11090 if (SWIG_arg_fail(1)) SWIG_fail;
11091 {
11092 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
11093 if (SWIG_arg_fail(2)) SWIG_fail;
11094 if (arg2 == NULL) {
11095 SWIG_null_ref("wxNativeFontInfo");
11096 }
11097 if (SWIG_arg_fail(2)) SWIG_fail;
11098 }
11099 {
11100 PyThreadState* __tstate = wxPyBeginAllowThreads();
11101 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
11102
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 Py_INCREF(Py_None); resultobj = Py_None;
11107 return resultobj;
11108 fail:
11109 return NULL;
11110 }
11111
11112
11113 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
11114 PyObject *resultobj = NULL;
11115 wxFont *arg1 = (wxFont *) 0 ;
11116 wxString *arg2 = 0 ;
11117 bool temp2 = false ;
11118 PyObject * obj0 = 0 ;
11119 PyObject * obj1 = 0 ;
11120 char *kwnames[] = {
11121 (char *) "self",(char *) "info", NULL
11122 };
11123
11124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
11125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11126 if (SWIG_arg_fail(1)) SWIG_fail;
11127 {
11128 arg2 = wxString_in_helper(obj1);
11129 if (arg2 == NULL) SWIG_fail;
11130 temp2 = true;
11131 }
11132 {
11133 PyThreadState* __tstate = wxPyBeginAllowThreads();
11134 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
11135
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 Py_INCREF(Py_None); resultobj = Py_None;
11140 {
11141 if (temp2)
11142 delete arg2;
11143 }
11144 return resultobj;
11145 fail:
11146 {
11147 if (temp2)
11148 delete arg2;
11149 }
11150 return NULL;
11151 }
11152
11153
11154 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj = NULL;
11156 wxFont *arg1 = (wxFont *) 0 ;
11157 wxString *arg2 = 0 ;
11158 bool temp2 = false ;
11159 PyObject * obj0 = 0 ;
11160 PyObject * obj1 = 0 ;
11161 char *kwnames[] = {
11162 (char *) "self",(char *) "info", NULL
11163 };
11164
11165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
11166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11167 if (SWIG_arg_fail(1)) SWIG_fail;
11168 {
11169 arg2 = wxString_in_helper(obj1);
11170 if (arg2 == NULL) SWIG_fail;
11171 temp2 = true;
11172 }
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 Py_INCREF(Py_None); resultobj = Py_None;
11181 {
11182 if (temp2)
11183 delete arg2;
11184 }
11185 return resultobj;
11186 fail:
11187 {
11188 if (temp2)
11189 delete arg2;
11190 }
11191 return NULL;
11192 }
11193
11194
11195 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj = NULL;
11197 wxFont *arg1 = (wxFont *) 0 ;
11198 wxString result;
11199 PyObject * obj0 = 0 ;
11200 char *kwnames[] = {
11201 (char *) "self", NULL
11202 };
11203
11204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
11205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11206 if (SWIG_arg_fail(1)) SWIG_fail;
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 result = ((wxFont const *)arg1)->GetFamilyString();
11210
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 {
11215 #if wxUSE_UNICODE
11216 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11217 #else
11218 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11219 #endif
11220 }
11221 return resultobj;
11222 fail:
11223 return NULL;
11224 }
11225
11226
11227 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
11228 PyObject *resultobj = NULL;
11229 wxFont *arg1 = (wxFont *) 0 ;
11230 wxString result;
11231 PyObject * obj0 = 0 ;
11232 char *kwnames[] = {
11233 (char *) "self", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
11237 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11238 if (SWIG_arg_fail(1)) SWIG_fail;
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 result = ((wxFont const *)arg1)->GetStyleString();
11242
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 }
11246 {
11247 #if wxUSE_UNICODE
11248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11249 #else
11250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11251 #endif
11252 }
11253 return resultobj;
11254 fail:
11255 return NULL;
11256 }
11257
11258
11259 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
11260 PyObject *resultobj = NULL;
11261 wxFont *arg1 = (wxFont *) 0 ;
11262 wxString result;
11263 PyObject * obj0 = 0 ;
11264 char *kwnames[] = {
11265 (char *) "self", NULL
11266 };
11267
11268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
11269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11270 if (SWIG_arg_fail(1)) SWIG_fail;
11271 {
11272 PyThreadState* __tstate = wxPyBeginAllowThreads();
11273 result = ((wxFont const *)arg1)->GetWeightString();
11274
11275 wxPyEndAllowThreads(__tstate);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 }
11278 {
11279 #if wxUSE_UNICODE
11280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11281 #else
11282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11283 #endif
11284 }
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj = NULL;
11293 wxFont *arg1 = (wxFont *) 0 ;
11294 bool arg2 = (bool) true ;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "self",(char *) "no", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
11302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11303 if (SWIG_arg_fail(1)) SWIG_fail;
11304 if (obj1) {
11305 {
11306 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
11307 if (SWIG_arg_fail(2)) SWIG_fail;
11308 }
11309 }
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 (arg1)->SetNoAntiAliasing(arg2);
11313
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 Py_INCREF(Py_None); resultobj = Py_None;
11318 return resultobj;
11319 fail:
11320 return NULL;
11321 }
11322
11323
11324 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
11325 PyObject *resultobj = NULL;
11326 wxFont *arg1 = (wxFont *) 0 ;
11327 bool result;
11328 PyObject * obj0 = 0 ;
11329 char *kwnames[] = {
11330 (char *) "self", NULL
11331 };
11332
11333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
11334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11335 if (SWIG_arg_fail(1)) SWIG_fail;
11336 {
11337 PyThreadState* __tstate = wxPyBeginAllowThreads();
11338 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
11339
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 {
11344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11345 }
11346 return resultobj;
11347 fail:
11348 return NULL;
11349 }
11350
11351
11352 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj = NULL;
11354 wxFontEncoding result;
11355 char *kwnames[] = {
11356 NULL
11357 };
11358
11359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
11360 {
11361 if (!wxPyCheckForApp()) SWIG_fail;
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
11364
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 resultobj = SWIG_From_int((result));
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11376 PyObject *resultobj = NULL;
11377 wxFontEncoding arg1 ;
11378 PyObject * obj0 = 0 ;
11379 char *kwnames[] = {
11380 (char *) "encoding", NULL
11381 };
11382
11383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
11384 {
11385 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
11386 if (SWIG_arg_fail(1)) SWIG_fail;
11387 }
11388 {
11389 if (!wxPyCheckForApp()) SWIG_fail;
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 wxFont::SetDefaultEncoding(arg1);
11392
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 Py_INCREF(Py_None); resultobj = Py_None;
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
11404 PyObject *obj;
11405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11406 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
11407 Py_INCREF(obj);
11408 return Py_BuildValue((char *)"");
11409 }
11410 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
11411 PyObject *resultobj = NULL;
11412 wxPyFontEnumerator *result;
11413 char *kwnames[] = {
11414 NULL
11415 };
11416
11417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
11418 {
11419 if (!wxPyCheckForApp()) SWIG_fail;
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj = NULL;
11435 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11436 PyObject * obj0 = 0 ;
11437 char *kwnames[] = {
11438 (char *) "self", NULL
11439 };
11440
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
11442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11443 if (SWIG_arg_fail(1)) SWIG_fail;
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 delete arg1;
11447
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 Py_INCREF(Py_None); resultobj = Py_None;
11452 return resultobj;
11453 fail:
11454 return NULL;
11455 }
11456
11457
11458 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11459 PyObject *resultobj = NULL;
11460 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11461 PyObject *arg2 = (PyObject *) 0 ;
11462 PyObject *arg3 = (PyObject *) 0 ;
11463 bool arg4 ;
11464 PyObject * obj0 = 0 ;
11465 PyObject * obj1 = 0 ;
11466 PyObject * obj2 = 0 ;
11467 PyObject * obj3 = 0 ;
11468 char *kwnames[] = {
11469 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
11470 };
11471
11472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11474 if (SWIG_arg_fail(1)) SWIG_fail;
11475 arg2 = obj1;
11476 arg3 = obj2;
11477 {
11478 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
11479 if (SWIG_arg_fail(4)) SWIG_fail;
11480 }
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 Py_INCREF(Py_None); resultobj = Py_None;
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj = NULL;
11497 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11498 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
11499 bool arg3 = (bool) false ;
11500 bool result;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 PyObject * obj2 = 0 ;
11504 char *kwnames[] = {
11505 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
11506 };
11507
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
11509 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11510 if (SWIG_arg_fail(1)) SWIG_fail;
11511 if (obj1) {
11512 {
11513 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
11514 if (SWIG_arg_fail(2)) SWIG_fail;
11515 }
11516 }
11517 if (obj2) {
11518 {
11519 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
11520 if (SWIG_arg_fail(3)) SWIG_fail;
11521 }
11522 }
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
11526
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 {
11531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11532 }
11533 return resultobj;
11534 fail:
11535 return NULL;
11536 }
11537
11538
11539 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
11540 PyObject *resultobj = NULL;
11541 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11542 wxString const &arg2_defvalue = wxPyEmptyString ;
11543 wxString *arg2 = (wxString *) &arg2_defvalue ;
11544 bool result;
11545 bool temp2 = false ;
11546 PyObject * obj0 = 0 ;
11547 PyObject * obj1 = 0 ;
11548 char *kwnames[] = {
11549 (char *) "self",(char *) "facename", NULL
11550 };
11551
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
11553 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11554 if (SWIG_arg_fail(1)) SWIG_fail;
11555 if (obj1) {
11556 {
11557 arg2 = wxString_in_helper(obj1);
11558 if (arg2 == NULL) SWIG_fail;
11559 temp2 = true;
11560 }
11561 }
11562 {
11563 PyThreadState* __tstate = wxPyBeginAllowThreads();
11564 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
11565
11566 wxPyEndAllowThreads(__tstate);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 {
11570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11571 }
11572 {
11573 if (temp2)
11574 delete arg2;
11575 }
11576 return resultobj;
11577 fail:
11578 {
11579 if (temp2)
11580 delete arg2;
11581 }
11582 return NULL;
11583 }
11584
11585
11586 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
11587 PyObject *resultobj = NULL;
11588 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11589 PyObject *result;
11590 PyObject * obj0 = 0 ;
11591 char *kwnames[] = {
11592 (char *) "self", NULL
11593 };
11594
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
11596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11597 if (SWIG_arg_fail(1)) SWIG_fail;
11598 {
11599 PyThreadState* __tstate = wxPyBeginAllowThreads();
11600 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
11601
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 resultobj = result;
11606 return resultobj;
11607 fail:
11608 return NULL;
11609 }
11610
11611
11612 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11613 PyObject *resultobj = NULL;
11614 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11615 PyObject *result;
11616 PyObject * obj0 = 0 ;
11617 char *kwnames[] = {
11618 (char *) "self", NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
11622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11623 if (SWIG_arg_fail(1)) SWIG_fail;
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 resultobj = result;
11632 return resultobj;
11633 fail:
11634 return NULL;
11635 }
11636
11637
11638 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
11639 PyObject *obj;
11640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11641 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
11642 Py_INCREF(obj);
11643 return Py_BuildValue((char *)"");
11644 }
11645 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
11646 PyObject *resultobj = NULL;
11647 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11648 int arg2 ;
11649 PyObject * obj0 = 0 ;
11650 PyObject * obj1 = 0 ;
11651 char *kwnames[] = {
11652 (char *) "self",(char *) "Language", NULL
11653 };
11654
11655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
11656 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11657 if (SWIG_arg_fail(1)) SWIG_fail;
11658 {
11659 arg2 = static_cast<int >(SWIG_As_int(obj1));
11660 if (SWIG_arg_fail(2)) SWIG_fail;
11661 }
11662 if (arg1) (arg1)->Language = arg2;
11663
11664 Py_INCREF(Py_None); resultobj = Py_None;
11665 return resultobj;
11666 fail:
11667 return NULL;
11668 }
11669
11670
11671 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj = NULL;
11673 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11674 int result;
11675 PyObject * obj0 = 0 ;
11676 char *kwnames[] = {
11677 (char *) "self", NULL
11678 };
11679
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
11681 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11682 if (SWIG_arg_fail(1)) SWIG_fail;
11683 result = (int) ((arg1)->Language);
11684
11685 {
11686 resultobj = SWIG_From_int(static_cast<int >(result));
11687 }
11688 return resultobj;
11689 fail:
11690 return NULL;
11691 }
11692
11693
11694 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
11695 PyObject *resultobj = NULL;
11696 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11697 wxString *arg2 = (wxString *) 0 ;
11698 bool temp2 = false ;
11699 PyObject * obj0 = 0 ;
11700 PyObject * obj1 = 0 ;
11701 char *kwnames[] = {
11702 (char *) "self",(char *) "CanonicalName", NULL
11703 };
11704
11705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
11706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11707 if (SWIG_arg_fail(1)) SWIG_fail;
11708 {
11709 arg2 = wxString_in_helper(obj1);
11710 if (arg2 == NULL) SWIG_fail;
11711 temp2 = true;
11712 }
11713 if (arg1) (arg1)->CanonicalName = *arg2;
11714
11715 Py_INCREF(Py_None); resultobj = Py_None;
11716 {
11717 if (temp2)
11718 delete arg2;
11719 }
11720 return resultobj;
11721 fail:
11722 {
11723 if (temp2)
11724 delete arg2;
11725 }
11726 return NULL;
11727 }
11728
11729
11730 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
11731 PyObject *resultobj = NULL;
11732 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11733 wxString *result;
11734 PyObject * obj0 = 0 ;
11735 char *kwnames[] = {
11736 (char *) "self", NULL
11737 };
11738
11739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
11740 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11741 if (SWIG_arg_fail(1)) SWIG_fail;
11742 result = (wxString *)& ((arg1)->CanonicalName);
11743
11744 {
11745 #if wxUSE_UNICODE
11746 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11747 #else
11748 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11749 #endif
11750 }
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
11758 PyObject *resultobj = NULL;
11759 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11760 wxString *arg2 = (wxString *) 0 ;
11761 bool temp2 = false ;
11762 PyObject * obj0 = 0 ;
11763 PyObject * obj1 = 0 ;
11764 char *kwnames[] = {
11765 (char *) "self",(char *) "Description", NULL
11766 };
11767
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11769 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11770 if (SWIG_arg_fail(1)) SWIG_fail;
11771 {
11772 arg2 = wxString_in_helper(obj1);
11773 if (arg2 == NULL) SWIG_fail;
11774 temp2 = true;
11775 }
11776 if (arg1) (arg1)->Description = *arg2;
11777
11778 Py_INCREF(Py_None); resultobj = Py_None;
11779 {
11780 if (temp2)
11781 delete arg2;
11782 }
11783 return resultobj;
11784 fail:
11785 {
11786 if (temp2)
11787 delete arg2;
11788 }
11789 return NULL;
11790 }
11791
11792
11793 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj = NULL;
11795 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11796 wxString *result;
11797 PyObject * obj0 = 0 ;
11798 char *kwnames[] = {
11799 (char *) "self", NULL
11800 };
11801
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11803 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11804 if (SWIG_arg_fail(1)) SWIG_fail;
11805 result = (wxString *)& ((arg1)->Description);
11806
11807 {
11808 #if wxUSE_UNICODE
11809 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11810 #else
11811 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11812 #endif
11813 }
11814 return resultobj;
11815 fail:
11816 return NULL;
11817 }
11818
11819
11820 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11821 PyObject *obj;
11822 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11823 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11824 Py_INCREF(obj);
11825 return Py_BuildValue((char *)"");
11826 }
11827 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11828 PyObject *resultobj = NULL;
11829 int arg1 = (int) -1 ;
11830 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11831 wxLocale *result;
11832 PyObject * obj0 = 0 ;
11833 PyObject * obj1 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "language",(char *) "flags", NULL
11836 };
11837
11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11839 if (obj0) {
11840 {
11841 arg1 = static_cast<int >(SWIG_As_int(obj0));
11842 if (SWIG_arg_fail(1)) SWIG_fail;
11843 }
11844 }
11845 if (obj1) {
11846 {
11847 arg2 = static_cast<int >(SWIG_As_int(obj1));
11848 if (SWIG_arg_fail(2)) SWIG_fail;
11849 }
11850 }
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (wxLocale *)new_wxLocale(arg1,arg2);
11854
11855 wxPyEndAllowThreads(__tstate);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
11858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
11859 return resultobj;
11860 fail:
11861 return NULL;
11862 }
11863
11864
11865 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj = NULL;
11867 wxLocale *arg1 = (wxLocale *) 0 ;
11868 PyObject * obj0 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11875 if (SWIG_arg_fail(1)) SWIG_fail;
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 delete arg1;
11879
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 Py_INCREF(Py_None); resultobj = Py_None;
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj = NULL;
11892 wxLocale *arg1 = (wxLocale *) 0 ;
11893 wxString *arg2 = 0 ;
11894 wxString const &arg3_defvalue = wxPyEmptyString ;
11895 wxString *arg3 = (wxString *) &arg3_defvalue ;
11896 wxString const &arg4_defvalue = wxPyEmptyString ;
11897 wxString *arg4 = (wxString *) &arg4_defvalue ;
11898 bool arg5 = (bool) true ;
11899 bool arg6 = (bool) false ;
11900 bool result;
11901 bool temp2 = false ;
11902 bool temp3 = false ;
11903 bool temp4 = false ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 PyObject * obj3 = 0 ;
11908 PyObject * obj4 = 0 ;
11909 PyObject * obj5 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11916 if (SWIG_arg_fail(1)) SWIG_fail;
11917 {
11918 arg2 = wxString_in_helper(obj1);
11919 if (arg2 == NULL) SWIG_fail;
11920 temp2 = true;
11921 }
11922 if (obj2) {
11923 {
11924 arg3 = wxString_in_helper(obj2);
11925 if (arg3 == NULL) SWIG_fail;
11926 temp3 = true;
11927 }
11928 }
11929 if (obj3) {
11930 {
11931 arg4 = wxString_in_helper(obj3);
11932 if (arg4 == NULL) SWIG_fail;
11933 temp4 = true;
11934 }
11935 }
11936 if (obj4) {
11937 {
11938 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
11939 if (SWIG_arg_fail(5)) SWIG_fail;
11940 }
11941 }
11942 if (obj5) {
11943 {
11944 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
11945 if (SWIG_arg_fail(6)) SWIG_fail;
11946 }
11947 }
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
11951
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11957 }
11958 {
11959 if (temp2)
11960 delete arg2;
11961 }
11962 {
11963 if (temp3)
11964 delete arg3;
11965 }
11966 {
11967 if (temp4)
11968 delete arg4;
11969 }
11970 return resultobj;
11971 fail:
11972 {
11973 if (temp2)
11974 delete arg2;
11975 }
11976 {
11977 if (temp3)
11978 delete arg3;
11979 }
11980 {
11981 if (temp4)
11982 delete arg4;
11983 }
11984 return NULL;
11985 }
11986
11987
11988 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj = NULL;
11990 wxLocale *arg1 = (wxLocale *) 0 ;
11991 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11992 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11993 bool result;
11994 PyObject * obj0 = 0 ;
11995 PyObject * obj1 = 0 ;
11996 PyObject * obj2 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "language",(char *) "flags", NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
12002 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12003 if (SWIG_arg_fail(1)) SWIG_fail;
12004 if (obj1) {
12005 {
12006 arg2 = static_cast<int >(SWIG_As_int(obj1));
12007 if (SWIG_arg_fail(2)) SWIG_fail;
12008 }
12009 }
12010 if (obj2) {
12011 {
12012 arg3 = static_cast<int >(SWIG_As_int(obj2));
12013 if (SWIG_arg_fail(3)) SWIG_fail;
12014 }
12015 }
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
12019
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 {
12024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12025 }
12026 return resultobj;
12027 fail:
12028 return NULL;
12029 }
12030
12031
12032 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj = NULL;
12034 int result;
12035 char *kwnames[] = {
12036 NULL
12037 };
12038
12039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 result = (int)wxLocale::GetSystemLanguage();
12043
12044 wxPyEndAllowThreads(__tstate);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 {
12048 resultobj = SWIG_From_int(static_cast<int >(result));
12049 }
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj = NULL;
12058 wxFontEncoding result;
12059 char *kwnames[] = {
12060 NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
12067
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 resultobj = SWIG_From_int((result));
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj = NULL;
12080 wxString result;
12081 char *kwnames[] = {
12082 NULL
12083 };
12084
12085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = wxLocale::GetSystemEncodingName();
12089
12090 wxPyEndAllowThreads(__tstate);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 }
12093 {
12094 #if wxUSE_UNICODE
12095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12096 #else
12097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12098 #endif
12099 }
12100 return resultobj;
12101 fail:
12102 return NULL;
12103 }
12104
12105
12106 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj = NULL;
12108 wxLocale *arg1 = (wxLocale *) 0 ;
12109 bool result;
12110 PyObject * obj0 = 0 ;
12111 char *kwnames[] = {
12112 (char *) "self", NULL
12113 };
12114
12115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
12116 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12117 if (SWIG_arg_fail(1)) SWIG_fail;
12118 {
12119 PyThreadState* __tstate = wxPyBeginAllowThreads();
12120 result = (bool)((wxLocale const *)arg1)->IsOk();
12121
12122 wxPyEndAllowThreads(__tstate);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 {
12126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12127 }
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj = NULL;
12136 wxLocale *arg1 = (wxLocale *) 0 ;
12137 wxString result;
12138 PyObject * obj0 = 0 ;
12139 char *kwnames[] = {
12140 (char *) "self", NULL
12141 };
12142
12143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
12144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12145 if (SWIG_arg_fail(1)) SWIG_fail;
12146 {
12147 PyThreadState* __tstate = wxPyBeginAllowThreads();
12148 result = ((wxLocale const *)arg1)->GetLocale();
12149
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 #if wxUSE_UNICODE
12155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12156 #else
12157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12158 #endif
12159 }
12160 return resultobj;
12161 fail:
12162 return NULL;
12163 }
12164
12165
12166 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12167 PyObject *resultobj = NULL;
12168 wxLocale *arg1 = (wxLocale *) 0 ;
12169 int result;
12170 PyObject * obj0 = 0 ;
12171 char *kwnames[] = {
12172 (char *) "self", NULL
12173 };
12174
12175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
12176 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12177 if (SWIG_arg_fail(1)) SWIG_fail;
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (int)((wxLocale const *)arg1)->GetLanguage();
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 {
12186 resultobj = SWIG_From_int(static_cast<int >(result));
12187 }
12188 return resultobj;
12189 fail:
12190 return NULL;
12191 }
12192
12193
12194 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
12195 PyObject *resultobj = NULL;
12196 wxLocale *arg1 = (wxLocale *) 0 ;
12197 wxString result;
12198 PyObject * obj0 = 0 ;
12199 char *kwnames[] = {
12200 (char *) "self", NULL
12201 };
12202
12203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
12204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12205 if (SWIG_arg_fail(1)) SWIG_fail;
12206 {
12207 PyThreadState* __tstate = wxPyBeginAllowThreads();
12208 result = ((wxLocale const *)arg1)->GetSysName();
12209
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 {
12214 #if wxUSE_UNICODE
12215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12216 #else
12217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12218 #endif
12219 }
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj = NULL;
12228 wxLocale *arg1 = (wxLocale *) 0 ;
12229 wxString result;
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
12236 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12237 if (SWIG_arg_fail(1)) SWIG_fail;
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 result = ((wxLocale const *)arg1)->GetCanonicalName();
12241
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 {
12246 #if wxUSE_UNICODE
12247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12248 #else
12249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12250 #endif
12251 }
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = NULL;
12260 wxString *arg1 = 0 ;
12261 bool temp1 = false ;
12262 PyObject * obj0 = 0 ;
12263 char *kwnames[] = {
12264 (char *) "prefix", NULL
12265 };
12266
12267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
12268 {
12269 arg1 = wxString_in_helper(obj0);
12270 if (arg1 == NULL) SWIG_fail;
12271 temp1 = true;
12272 }
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
12276
12277 wxPyEndAllowThreads(__tstate);
12278 if (PyErr_Occurred()) SWIG_fail;
12279 }
12280 Py_INCREF(Py_None); resultobj = Py_None;
12281 {
12282 if (temp1)
12283 delete arg1;
12284 }
12285 return resultobj;
12286 fail:
12287 {
12288 if (temp1)
12289 delete arg1;
12290 }
12291 return NULL;
12292 }
12293
12294
12295 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
12296 PyObject *resultobj = NULL;
12297 wxLocale *arg1 = (wxLocale *) 0 ;
12298 wxString *arg2 = 0 ;
12299 bool result;
12300 bool temp2 = false ;
12301 PyObject * obj0 = 0 ;
12302 PyObject * obj1 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self",(char *) "szDomain", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
12308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12309 if (SWIG_arg_fail(1)) SWIG_fail;
12310 {
12311 arg2 = wxString_in_helper(obj1);
12312 if (arg2 == NULL) SWIG_fail;
12313 temp2 = true;
12314 }
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 {
12323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12324 }
12325 {
12326 if (temp2)
12327 delete arg2;
12328 }
12329 return resultobj;
12330 fail:
12331 {
12332 if (temp2)
12333 delete arg2;
12334 }
12335 return NULL;
12336 }
12337
12338
12339 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
12340 PyObject *resultobj = NULL;
12341 wxLocale *arg1 = (wxLocale *) 0 ;
12342 wxString *arg2 = 0 ;
12343 bool result;
12344 bool temp2 = false ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 char *kwnames[] = {
12348 (char *) "self",(char *) "szDomain", NULL
12349 };
12350
12351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
12352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12353 if (SWIG_arg_fail(1)) SWIG_fail;
12354 {
12355 arg2 = wxString_in_helper(obj1);
12356 if (arg2 == NULL) SWIG_fail;
12357 temp2 = true;
12358 }
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 {
12367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12368 }
12369 {
12370 if (temp2)
12371 delete arg2;
12372 }
12373 return resultobj;
12374 fail:
12375 {
12376 if (temp2)
12377 delete arg2;
12378 }
12379 return NULL;
12380 }
12381
12382
12383 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj = NULL;
12385 int arg1 ;
12386 wxLanguageInfo *result;
12387 PyObject * obj0 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "lang", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
12393 {
12394 arg1 = static_cast<int >(SWIG_As_int(obj0));
12395 if (SWIG_arg_fail(1)) SWIG_fail;
12396 }
12397 {
12398 PyThreadState* __tstate = wxPyBeginAllowThreads();
12399 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
12400
12401 wxPyEndAllowThreads(__tstate);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
12405 return resultobj;
12406 fail:
12407 return NULL;
12408 }
12409
12410
12411 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
12412 PyObject *resultobj = NULL;
12413 int arg1 ;
12414 wxString result;
12415 PyObject * obj0 = 0 ;
12416 char *kwnames[] = {
12417 (char *) "lang", NULL
12418 };
12419
12420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
12421 {
12422 arg1 = static_cast<int >(SWIG_As_int(obj0));
12423 if (SWIG_arg_fail(1)) SWIG_fail;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = wxLocale::GetLanguageName(arg1);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 {
12433 #if wxUSE_UNICODE
12434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12435 #else
12436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12437 #endif
12438 }
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj = NULL;
12447 wxString *arg1 = 0 ;
12448 wxLanguageInfo *result;
12449 bool temp1 = false ;
12450 PyObject * obj0 = 0 ;
12451 char *kwnames[] = {
12452 (char *) "locale", NULL
12453 };
12454
12455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
12456 {
12457 arg1 = wxString_in_helper(obj0);
12458 if (arg1 == NULL) SWIG_fail;
12459 temp1 = true;
12460 }
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
12469 {
12470 if (temp1)
12471 delete arg1;
12472 }
12473 return resultobj;
12474 fail:
12475 {
12476 if (temp1)
12477 delete arg1;
12478 }
12479 return NULL;
12480 }
12481
12482
12483 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12484 PyObject *resultobj = NULL;
12485 wxLanguageInfo *arg1 = 0 ;
12486 PyObject * obj0 = 0 ;
12487 char *kwnames[] = {
12488 (char *) "info", NULL
12489 };
12490
12491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
12492 {
12493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
12494 if (SWIG_arg_fail(1)) SWIG_fail;
12495 if (arg1 == NULL) {
12496 SWIG_null_ref("wxLanguageInfo");
12497 }
12498 if (SWIG_arg_fail(1)) SWIG_fail;
12499 }
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
12503
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 Py_INCREF(Py_None); resultobj = Py_None;
12508 return resultobj;
12509 fail:
12510 return NULL;
12511 }
12512
12513
12514 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12515 PyObject *resultobj = NULL;
12516 wxLocale *arg1 = (wxLocale *) 0 ;
12517 wxString *arg2 = 0 ;
12518 wxString const &arg3_defvalue = wxPyEmptyString ;
12519 wxString *arg3 = (wxString *) &arg3_defvalue ;
12520 wxString result;
12521 bool temp2 = false ;
12522 bool temp3 = false ;
12523 PyObject * obj0 = 0 ;
12524 PyObject * obj1 = 0 ;
12525 PyObject * obj2 = 0 ;
12526 char *kwnames[] = {
12527 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
12528 };
12529
12530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12531 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12532 if (SWIG_arg_fail(1)) SWIG_fail;
12533 {
12534 arg2 = wxString_in_helper(obj1);
12535 if (arg2 == NULL) SWIG_fail;
12536 temp2 = true;
12537 }
12538 if (obj2) {
12539 {
12540 arg3 = wxString_in_helper(obj2);
12541 if (arg3 == NULL) SWIG_fail;
12542 temp3 = true;
12543 }
12544 }
12545 {
12546 PyThreadState* __tstate = wxPyBeginAllowThreads();
12547 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
12548
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 {
12553 #if wxUSE_UNICODE
12554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12555 #else
12556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12557 #endif
12558 }
12559 {
12560 if (temp2)
12561 delete arg2;
12562 }
12563 {
12564 if (temp3)
12565 delete arg3;
12566 }
12567 return resultobj;
12568 fail:
12569 {
12570 if (temp2)
12571 delete arg2;
12572 }
12573 {
12574 if (temp3)
12575 delete arg3;
12576 }
12577 return NULL;
12578 }
12579
12580
12581 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
12582 PyObject *resultobj = NULL;
12583 wxLocale *arg1 = (wxLocale *) 0 ;
12584 wxString *result;
12585 PyObject * obj0 = 0 ;
12586 char *kwnames[] = {
12587 (char *) "self", NULL
12588 };
12589
12590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
12591 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12592 if (SWIG_arg_fail(1)) SWIG_fail;
12593 {
12594 PyThreadState* __tstate = wxPyBeginAllowThreads();
12595 {
12596 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
12597 result = (wxString *) &_result_ref;
12598 }
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 {
12604 #if wxUSE_UNICODE
12605 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12606 #else
12607 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12608 #endif
12609 }
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
12617 PyObject *obj;
12618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12619 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
12620 Py_INCREF(obj);
12621 return Py_BuildValue((char *)"");
12622 }
12623 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj = NULL;
12625 wxLocale *result;
12626 char *kwnames[] = {
12627 NULL
12628 };
12629
12630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (wxLocale *)wxGetLocale();
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
12646 PyObject *resultobj = NULL;
12647 wxString *arg1 = 0 ;
12648 wxString result;
12649 bool temp1 = false ;
12650 PyObject * obj0 = 0 ;
12651
12652 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
12653 {
12654 arg1 = wxString_in_helper(obj0);
12655 if (arg1 == NULL) SWIG_fail;
12656 temp1 = true;
12657 }
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = wxGetTranslation((wxString const &)*arg1);
12661
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 {
12666 #if wxUSE_UNICODE
12667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12668 #else
12669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12670 #endif
12671 }
12672 {
12673 if (temp1)
12674 delete arg1;
12675 }
12676 return resultobj;
12677 fail:
12678 {
12679 if (temp1)
12680 delete arg1;
12681 }
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
12687 PyObject *resultobj = NULL;
12688 wxString *arg1 = 0 ;
12689 wxString *arg2 = 0 ;
12690 size_t arg3 ;
12691 wxString result;
12692 bool temp1 = false ;
12693 bool temp2 = false ;
12694 PyObject * obj0 = 0 ;
12695 PyObject * obj1 = 0 ;
12696 PyObject * obj2 = 0 ;
12697
12698 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
12699 {
12700 arg1 = wxString_in_helper(obj0);
12701 if (arg1 == NULL) SWIG_fail;
12702 temp1 = true;
12703 }
12704 {
12705 arg2 = wxString_in_helper(obj1);
12706 if (arg2 == NULL) SWIG_fail;
12707 temp2 = true;
12708 }
12709 {
12710 arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2));
12711 if (SWIG_arg_fail(3)) SWIG_fail;
12712 }
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 {
12721 #if wxUSE_UNICODE
12722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12723 #else
12724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12725 #endif
12726 }
12727 {
12728 if (temp1)
12729 delete arg1;
12730 }
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 return resultobj;
12736 fail:
12737 {
12738 if (temp1)
12739 delete arg1;
12740 }
12741 {
12742 if (temp2)
12743 delete arg2;
12744 }
12745 return NULL;
12746 }
12747
12748
12749 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12750 int argc;
12751 PyObject *argv[4];
12752 int ii;
12753
12754 argc = PyObject_Length(args);
12755 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12756 argv[ii] = PyTuple_GetItem(args,ii);
12757 }
12758 if (argc == 1) {
12759 int _v;
12760 {
12761 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12762 }
12763 if (_v) {
12764 return _wrap_GetTranslation__SWIG_0(self,args);
12765 }
12766 }
12767 if (argc == 3) {
12768 int _v;
12769 {
12770 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12771 }
12772 if (_v) {
12773 {
12774 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12775 }
12776 if (_v) {
12777 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12778 if (_v) {
12779 return _wrap_GetTranslation__SWIG_1(self,args);
12780 }
12781 }
12782 }
12783 }
12784
12785 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
12786 return NULL;
12787 }
12788
12789
12790 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = NULL;
12792 wxEncodingConverter *result;
12793 char *kwnames[] = {
12794 NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (wxEncodingConverter *)new wxEncodingConverter();
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = NULL;
12814 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12815 PyObject * obj0 = 0 ;
12816 char *kwnames[] = {
12817 (char *) "self", NULL
12818 };
12819
12820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12821 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12822 if (SWIG_arg_fail(1)) SWIG_fail;
12823 {
12824 PyThreadState* __tstate = wxPyBeginAllowThreads();
12825 delete arg1;
12826
12827 wxPyEndAllowThreads(__tstate);
12828 if (PyErr_Occurred()) SWIG_fail;
12829 }
12830 Py_INCREF(Py_None); resultobj = Py_None;
12831 return resultobj;
12832 fail:
12833 return NULL;
12834 }
12835
12836
12837 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
12838 PyObject *resultobj = NULL;
12839 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12840 wxFontEncoding arg2 ;
12841 wxFontEncoding arg3 ;
12842 int arg4 = (int) wxCONVERT_STRICT ;
12843 bool result;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 PyObject * obj2 = 0 ;
12847 PyObject * obj3 = 0 ;
12848 char *kwnames[] = {
12849 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
12850 };
12851
12852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12853 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12854 if (SWIG_arg_fail(1)) SWIG_fail;
12855 {
12856 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12857 if (SWIG_arg_fail(2)) SWIG_fail;
12858 }
12859 {
12860 arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2));
12861 if (SWIG_arg_fail(3)) SWIG_fail;
12862 }
12863 if (obj3) {
12864 {
12865 arg4 = static_cast<int >(SWIG_As_int(obj3));
12866 if (SWIG_arg_fail(4)) SWIG_fail;
12867 }
12868 }
12869 {
12870 PyThreadState* __tstate = wxPyBeginAllowThreads();
12871 result = (bool)(arg1)->Init(arg2,arg3,arg4);
12872
12873 wxPyEndAllowThreads(__tstate);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 {
12877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12878 }
12879 return resultobj;
12880 fail:
12881 return NULL;
12882 }
12883
12884
12885 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
12886 PyObject *resultobj = NULL;
12887 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12888 wxString *arg2 = 0 ;
12889 wxString result;
12890 bool temp2 = false ;
12891 PyObject * obj0 = 0 ;
12892 PyObject * obj1 = 0 ;
12893 char *kwnames[] = {
12894 (char *) "self",(char *) "input", NULL
12895 };
12896
12897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12898 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12899 if (SWIG_arg_fail(1)) SWIG_fail;
12900 {
12901 arg2 = wxString_in_helper(obj1);
12902 if (arg2 == NULL) SWIG_fail;
12903 temp2 = true;
12904 }
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (arg1)->Convert((wxString const &)*arg2);
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 {
12913 #if wxUSE_UNICODE
12914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12915 #else
12916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12917 #endif
12918 }
12919 {
12920 if (temp2)
12921 delete arg2;
12922 }
12923 return resultobj;
12924 fail:
12925 {
12926 if (temp2)
12927 delete arg2;
12928 }
12929 return NULL;
12930 }
12931
12932
12933 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12934 PyObject *resultobj = NULL;
12935 wxFontEncoding arg1 ;
12936 int arg2 = (int) wxPLATFORM_CURRENT ;
12937 wxFontEncodingArray result;
12938 PyObject * obj0 = 0 ;
12939 PyObject * obj1 = 0 ;
12940 char *kwnames[] = {
12941 (char *) "enc",(char *) "platform", NULL
12942 };
12943
12944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
12945 {
12946 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12947 if (SWIG_arg_fail(1)) SWIG_fail;
12948 }
12949 if (obj1) {
12950 {
12951 arg2 = static_cast<int >(SWIG_As_int(obj1));
12952 if (SWIG_arg_fail(2)) SWIG_fail;
12953 }
12954 }
12955 {
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 {
12963 resultobj = PyList_New(0);
12964 for (size_t i=0; i < (&result)->GetCount(); i++) {
12965 PyObject* number = PyInt_FromLong((&result)->Item(i));
12966 PyList_Append(resultobj, number);
12967 Py_DECREF(number);
12968 }
12969 }
12970 return resultobj;
12971 fail:
12972 return NULL;
12973 }
12974
12975
12976 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12977 PyObject *resultobj = NULL;
12978 wxFontEncoding arg1 ;
12979 wxFontEncodingArray result;
12980 PyObject * obj0 = 0 ;
12981 char *kwnames[] = {
12982 (char *) "enc", NULL
12983 };
12984
12985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12986 {
12987 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12988 if (SWIG_arg_fail(1)) SWIG_fail;
12989 }
12990 {
12991 PyThreadState* __tstate = wxPyBeginAllowThreads();
12992 result = wxEncodingConverter::GetAllEquivalents(arg1);
12993
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 {
12998 resultobj = PyList_New(0);
12999 for (size_t i=0; i < (&result)->GetCount(); i++) {
13000 PyObject* number = PyInt_FromLong((&result)->Item(i));
13001 PyList_Append(resultobj, number);
13002 Py_DECREF(number);
13003 }
13004 }
13005 return resultobj;
13006 fail:
13007 return NULL;
13008 }
13009
13010
13011 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj = NULL;
13013 wxFontEncoding arg1 ;
13014 wxFontEncoding arg2 ;
13015 bool result;
13016 PyObject * obj0 = 0 ;
13017 PyObject * obj1 = 0 ;
13018 char *kwnames[] = {
13019 (char *) "encIn",(char *) "encOut", NULL
13020 };
13021
13022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
13023 {
13024 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
13025 if (SWIG_arg_fail(1)) SWIG_fail;
13026 }
13027 {
13028 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
13029 if (SWIG_arg_fail(2)) SWIG_fail;
13030 }
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13040 }
13041 return resultobj;
13042 fail:
13043 return NULL;
13044 }
13045
13046
13047 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
13048 PyObject *obj;
13049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13050 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
13051 Py_INCREF(obj);
13052 return Py_BuildValue((char *)"");
13053 }
13054 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj = NULL;
13056 wxDC *arg1 = (wxDC *) 0 ;
13057 PyObject * obj0 = 0 ;
13058 char *kwnames[] = {
13059 (char *) "self", NULL
13060 };
13061
13062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
13063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13064 if (SWIG_arg_fail(1)) SWIG_fail;
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 delete arg1;
13068
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 Py_INCREF(Py_None); resultobj = Py_None;
13073 return resultobj;
13074 fail:
13075 return NULL;
13076 }
13077
13078
13079 static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj = NULL;
13081 wxDC *arg1 = (wxDC *) 0 ;
13082 PyObject * obj0 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
13088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13089 if (SWIG_arg_fail(1)) SWIG_fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 (arg1)->BeginDrawing();
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 Py_INCREF(Py_None); resultobj = Py_None;
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj = NULL;
13106 wxDC *arg1 = (wxDC *) 0 ;
13107 PyObject * obj0 = 0 ;
13108 char *kwnames[] = {
13109 (char *) "self", NULL
13110 };
13111
13112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
13113 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13114 if (SWIG_arg_fail(1)) SWIG_fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 (arg1)->EndDrawing();
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 Py_INCREF(Py_None); resultobj = Py_None;
13123 return resultobj;
13124 fail:
13125 return NULL;
13126 }
13127
13128
13129 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj = NULL;
13131 wxDC *arg1 = (wxDC *) 0 ;
13132 int arg2 ;
13133 int arg3 ;
13134 wxColour *arg4 = 0 ;
13135 int arg5 = (int) wxFLOOD_SURFACE ;
13136 bool result;
13137 wxColour temp4 ;
13138 PyObject * obj0 = 0 ;
13139 PyObject * obj1 = 0 ;
13140 PyObject * obj2 = 0 ;
13141 PyObject * obj3 = 0 ;
13142 PyObject * obj4 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13149 if (SWIG_arg_fail(1)) SWIG_fail;
13150 {
13151 arg2 = static_cast<int >(SWIG_As_int(obj1));
13152 if (SWIG_arg_fail(2)) SWIG_fail;
13153 }
13154 {
13155 arg3 = static_cast<int >(SWIG_As_int(obj2));
13156 if (SWIG_arg_fail(3)) SWIG_fail;
13157 }
13158 {
13159 arg4 = &temp4;
13160 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
13161 }
13162 if (obj4) {
13163 {
13164 arg5 = static_cast<int >(SWIG_As_int(obj4));
13165 if (SWIG_arg_fail(5)) SWIG_fail;
13166 }
13167 }
13168 {
13169 PyThreadState* __tstate = wxPyBeginAllowThreads();
13170 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
13171
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 {
13176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13177 }
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj = NULL;
13186 wxDC *arg1 = (wxDC *) 0 ;
13187 wxPoint *arg2 = 0 ;
13188 wxColour *arg3 = 0 ;
13189 int arg4 = (int) wxFLOOD_SURFACE ;
13190 bool result;
13191 wxPoint temp2 ;
13192 wxColour temp3 ;
13193 PyObject * obj0 = 0 ;
13194 PyObject * obj1 = 0 ;
13195 PyObject * obj2 = 0 ;
13196 PyObject * obj3 = 0 ;
13197 char *kwnames[] = {
13198 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
13199 };
13200
13201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13202 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13203 if (SWIG_arg_fail(1)) SWIG_fail;
13204 {
13205 arg2 = &temp2;
13206 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13207 }
13208 {
13209 arg3 = &temp3;
13210 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13211 }
13212 if (obj3) {
13213 {
13214 arg4 = static_cast<int >(SWIG_As_int(obj3));
13215 if (SWIG_arg_fail(4)) SWIG_fail;
13216 }
13217 }
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
13221
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 {
13226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13227 }
13228 return resultobj;
13229 fail:
13230 return NULL;
13231 }
13232
13233
13234 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
13235 PyObject *resultobj = NULL;
13236 wxDC *arg1 = (wxDC *) 0 ;
13237 int arg2 ;
13238 int arg3 ;
13239 wxColour result;
13240 PyObject * obj0 = 0 ;
13241 PyObject * obj1 = 0 ;
13242 PyObject * obj2 = 0 ;
13243 char *kwnames[] = {
13244 (char *) "self",(char *) "x",(char *) "y", NULL
13245 };
13246
13247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
13248 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13249 if (SWIG_arg_fail(1)) SWIG_fail;
13250 {
13251 arg2 = static_cast<int >(SWIG_As_int(obj1));
13252 if (SWIG_arg_fail(2)) SWIG_fail;
13253 }
13254 {
13255 arg3 = static_cast<int >(SWIG_As_int(obj2));
13256 if (SWIG_arg_fail(3)) SWIG_fail;
13257 }
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = wxDC_GetPixel(arg1,arg2,arg3);
13261
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 {
13266 wxColour * resultptr;
13267 resultptr = new wxColour(static_cast<wxColour & >(result));
13268 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13269 }
13270 return resultobj;
13271 fail:
13272 return NULL;
13273 }
13274
13275
13276 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13277 PyObject *resultobj = NULL;
13278 wxDC *arg1 = (wxDC *) 0 ;
13279 wxPoint *arg2 = 0 ;
13280 wxColour result;
13281 wxPoint temp2 ;
13282 PyObject * obj0 = 0 ;
13283 PyObject * obj1 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self",(char *) "pt", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 {
13303 wxColour * resultptr;
13304 resultptr = new wxColour(static_cast<wxColour & >(result));
13305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13306 }
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_DC_DrawLine(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 PyObject * obj0 = 0 ;
13321 PyObject * obj1 = 0 ;
13322 PyObject * obj2 = 0 ;
13323 PyObject * obj3 = 0 ;
13324 PyObject * obj4 = 0 ;
13325 char *kwnames[] = {
13326 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
13327 };
13328
13329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13330 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13331 if (SWIG_arg_fail(1)) SWIG_fail;
13332 {
13333 arg2 = static_cast<int >(SWIG_As_int(obj1));
13334 if (SWIG_arg_fail(2)) SWIG_fail;
13335 }
13336 {
13337 arg3 = static_cast<int >(SWIG_As_int(obj2));
13338 if (SWIG_arg_fail(3)) SWIG_fail;
13339 }
13340 {
13341 arg4 = static_cast<int >(SWIG_As_int(obj3));
13342 if (SWIG_arg_fail(4)) SWIG_fail;
13343 }
13344 {
13345 arg5 = static_cast<int >(SWIG_As_int(obj4));
13346 if (SWIG_arg_fail(5)) SWIG_fail;
13347 }
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
13351
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 Py_INCREF(Py_None); resultobj = Py_None;
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = NULL;
13364 wxDC *arg1 = (wxDC *) 0 ;
13365 wxPoint *arg2 = 0 ;
13366 wxPoint *arg3 = 0 ;
13367 wxPoint temp2 ;
13368 wxPoint temp3 ;
13369 PyObject * obj0 = 0 ;
13370 PyObject * obj1 = 0 ;
13371 PyObject * obj2 = 0 ;
13372 char *kwnames[] = {
13373 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
13374 };
13375
13376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13377 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13378 if (SWIG_arg_fail(1)) SWIG_fail;
13379 {
13380 arg2 = &temp2;
13381 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13382 }
13383 {
13384 arg3 = &temp3;
13385 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13386 }
13387 {
13388 PyThreadState* __tstate = wxPyBeginAllowThreads();
13389 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
13390
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 Py_INCREF(Py_None); resultobj = Py_None;
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj = NULL;
13403 wxDC *arg1 = (wxDC *) 0 ;
13404 int arg2 ;
13405 int arg3 ;
13406 PyObject * obj0 = 0 ;
13407 PyObject * obj1 = 0 ;
13408 PyObject * obj2 = 0 ;
13409 char *kwnames[] = {
13410 (char *) "self",(char *) "x",(char *) "y", NULL
13411 };
13412
13413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
13414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13415 if (SWIG_arg_fail(1)) SWIG_fail;
13416 {
13417 arg2 = static_cast<int >(SWIG_As_int(obj1));
13418 if (SWIG_arg_fail(2)) SWIG_fail;
13419 }
13420 {
13421 arg3 = static_cast<int >(SWIG_As_int(obj2));
13422 if (SWIG_arg_fail(3)) SWIG_fail;
13423 }
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 (arg1)->CrossHair(arg2,arg3);
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 Py_INCREF(Py_None); resultobj = Py_None;
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj = NULL;
13440 wxDC *arg1 = (wxDC *) 0 ;
13441 wxPoint *arg2 = 0 ;
13442 wxPoint temp2 ;
13443 PyObject * obj0 = 0 ;
13444 PyObject * obj1 = 0 ;
13445 char *kwnames[] = {
13446 (char *) "self",(char *) "pt", NULL
13447 };
13448
13449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
13450 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13451 if (SWIG_arg_fail(1)) SWIG_fail;
13452 {
13453 arg2 = &temp2;
13454 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13455 }
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 (arg1)->CrossHair((wxPoint const &)*arg2);
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 Py_INCREF(Py_None); resultobj = Py_None;
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj = NULL;
13472 wxDC *arg1 = (wxDC *) 0 ;
13473 int arg2 ;
13474 int arg3 ;
13475 int arg4 ;
13476 int arg5 ;
13477 int arg6 ;
13478 int arg7 ;
13479 PyObject * obj0 = 0 ;
13480 PyObject * obj1 = 0 ;
13481 PyObject * obj2 = 0 ;
13482 PyObject * obj3 = 0 ;
13483 PyObject * obj4 = 0 ;
13484 PyObject * obj5 = 0 ;
13485 PyObject * obj6 = 0 ;
13486 char *kwnames[] = {
13487 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
13488 };
13489
13490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13492 if (SWIG_arg_fail(1)) SWIG_fail;
13493 {
13494 arg2 = static_cast<int >(SWIG_As_int(obj1));
13495 if (SWIG_arg_fail(2)) SWIG_fail;
13496 }
13497 {
13498 arg3 = static_cast<int >(SWIG_As_int(obj2));
13499 if (SWIG_arg_fail(3)) SWIG_fail;
13500 }
13501 {
13502 arg4 = static_cast<int >(SWIG_As_int(obj3));
13503 if (SWIG_arg_fail(4)) SWIG_fail;
13504 }
13505 {
13506 arg5 = static_cast<int >(SWIG_As_int(obj4));
13507 if (SWIG_arg_fail(5)) SWIG_fail;
13508 }
13509 {
13510 arg6 = static_cast<int >(SWIG_As_int(obj5));
13511 if (SWIG_arg_fail(6)) SWIG_fail;
13512 }
13513 {
13514 arg7 = static_cast<int >(SWIG_As_int(obj6));
13515 if (SWIG_arg_fail(7)) SWIG_fail;
13516 }
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 Py_INCREF(Py_None); resultobj = Py_None;
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj = NULL;
13533 wxDC *arg1 = (wxDC *) 0 ;
13534 wxPoint *arg2 = 0 ;
13535 wxPoint *arg3 = 0 ;
13536 wxPoint *arg4 = 0 ;
13537 wxPoint temp2 ;
13538 wxPoint temp3 ;
13539 wxPoint temp4 ;
13540 PyObject * obj0 = 0 ;
13541 PyObject * obj1 = 0 ;
13542 PyObject * obj2 = 0 ;
13543 PyObject * obj3 = 0 ;
13544 char *kwnames[] = {
13545 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
13546 };
13547
13548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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 = &temp2;
13553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13554 }
13555 {
13556 arg3 = &temp3;
13557 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13558 }
13559 {
13560 arg4 = &temp4;
13561 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13562 }
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 Py_INCREF(Py_None); resultobj = Py_None;
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj = NULL;
13579 wxDC *arg1 = (wxDC *) 0 ;
13580 int arg2 ;
13581 int arg3 ;
13582 int arg4 ;
13583 int arg5 ;
13584 PyObject * obj0 = 0 ;
13585 PyObject * obj1 = 0 ;
13586 PyObject * obj2 = 0 ;
13587 PyObject * obj3 = 0 ;
13588 PyObject * obj4 = 0 ;
13589 char *kwnames[] = {
13590 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13591 };
13592
13593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13594 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13595 if (SWIG_arg_fail(1)) SWIG_fail;
13596 {
13597 arg2 = static_cast<int >(SWIG_As_int(obj1));
13598 if (SWIG_arg_fail(2)) SWIG_fail;
13599 }
13600 {
13601 arg3 = static_cast<int >(SWIG_As_int(obj2));
13602 if (SWIG_arg_fail(3)) SWIG_fail;
13603 }
13604 {
13605 arg4 = static_cast<int >(SWIG_As_int(obj3));
13606 if (SWIG_arg_fail(4)) SWIG_fail;
13607 }
13608 {
13609 arg5 = static_cast<int >(SWIG_As_int(obj4));
13610 if (SWIG_arg_fail(5)) SWIG_fail;
13611 }
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
13615
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 Py_INCREF(Py_None); resultobj = Py_None;
13620 return resultobj;
13621 fail:
13622 return NULL;
13623 }
13624
13625
13626 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
13627 PyObject *resultobj = NULL;
13628 wxDC *arg1 = (wxDC *) 0 ;
13629 wxRect *arg2 = 0 ;
13630 wxRect temp2 ;
13631 PyObject * obj0 = 0 ;
13632 PyObject * obj1 = 0 ;
13633 char *kwnames[] = {
13634 (char *) "self",(char *) "rect", NULL
13635 };
13636
13637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
13638 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13639 if (SWIG_arg_fail(1)) SWIG_fail;
13640 {
13641 arg2 = &temp2;
13642 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13643 }
13644 {
13645 PyThreadState* __tstate = wxPyBeginAllowThreads();
13646 (arg1)->DrawCheckMark((wxRect const &)*arg2);
13647
13648 wxPyEndAllowThreads(__tstate);
13649 if (PyErr_Occurred()) SWIG_fail;
13650 }
13651 Py_INCREF(Py_None); resultobj = Py_None;
13652 return resultobj;
13653 fail:
13654 return NULL;
13655 }
13656
13657
13658 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
13659 PyObject *resultobj = NULL;
13660 wxDC *arg1 = (wxDC *) 0 ;
13661 int arg2 ;
13662 int arg3 ;
13663 int arg4 ;
13664 int arg5 ;
13665 double arg6 ;
13666 double arg7 ;
13667 PyObject * obj0 = 0 ;
13668 PyObject * obj1 = 0 ;
13669 PyObject * obj2 = 0 ;
13670 PyObject * obj3 = 0 ;
13671 PyObject * obj4 = 0 ;
13672 PyObject * obj5 = 0 ;
13673 PyObject * obj6 = 0 ;
13674 char *kwnames[] = {
13675 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
13676 };
13677
13678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13679 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13680 if (SWIG_arg_fail(1)) SWIG_fail;
13681 {
13682 arg2 = static_cast<int >(SWIG_As_int(obj1));
13683 if (SWIG_arg_fail(2)) SWIG_fail;
13684 }
13685 {
13686 arg3 = static_cast<int >(SWIG_As_int(obj2));
13687 if (SWIG_arg_fail(3)) SWIG_fail;
13688 }
13689 {
13690 arg4 = static_cast<int >(SWIG_As_int(obj3));
13691 if (SWIG_arg_fail(4)) SWIG_fail;
13692 }
13693 {
13694 arg5 = static_cast<int >(SWIG_As_int(obj4));
13695 if (SWIG_arg_fail(5)) SWIG_fail;
13696 }
13697 {
13698 arg6 = static_cast<double >(SWIG_As_double(obj5));
13699 if (SWIG_arg_fail(6)) SWIG_fail;
13700 }
13701 {
13702 arg7 = static_cast<double >(SWIG_As_double(obj6));
13703 if (SWIG_arg_fail(7)) SWIG_fail;
13704 }
13705 {
13706 PyThreadState* __tstate = wxPyBeginAllowThreads();
13707 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
13708
13709 wxPyEndAllowThreads(__tstate);
13710 if (PyErr_Occurred()) SWIG_fail;
13711 }
13712 Py_INCREF(Py_None); resultobj = Py_None;
13713 return resultobj;
13714 fail:
13715 return NULL;
13716 }
13717
13718
13719 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13720 PyObject *resultobj = NULL;
13721 wxDC *arg1 = (wxDC *) 0 ;
13722 wxPoint *arg2 = 0 ;
13723 wxSize *arg3 = 0 ;
13724 double arg4 ;
13725 double arg5 ;
13726 wxPoint temp2 ;
13727 wxSize temp3 ;
13728 PyObject * obj0 = 0 ;
13729 PyObject * obj1 = 0 ;
13730 PyObject * obj2 = 0 ;
13731 PyObject * obj3 = 0 ;
13732 PyObject * obj4 = 0 ;
13733 char *kwnames[] = {
13734 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
13735 };
13736
13737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13739 if (SWIG_arg_fail(1)) SWIG_fail;
13740 {
13741 arg2 = &temp2;
13742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13743 }
13744 {
13745 arg3 = &temp3;
13746 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13747 }
13748 {
13749 arg4 = static_cast<double >(SWIG_As_double(obj3));
13750 if (SWIG_arg_fail(4)) SWIG_fail;
13751 }
13752 {
13753 arg5 = static_cast<double >(SWIG_As_double(obj4));
13754 if (SWIG_arg_fail(5)) SWIG_fail;
13755 }
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
13759
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 Py_INCREF(Py_None); resultobj = Py_None;
13764 return resultobj;
13765 fail:
13766 return NULL;
13767 }
13768
13769
13770 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj = NULL;
13772 wxDC *arg1 = (wxDC *) 0 ;
13773 int arg2 ;
13774 int arg3 ;
13775 PyObject * obj0 = 0 ;
13776 PyObject * obj1 = 0 ;
13777 PyObject * obj2 = 0 ;
13778 char *kwnames[] = {
13779 (char *) "self",(char *) "x",(char *) "y", NULL
13780 };
13781
13782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13783 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13784 if (SWIG_arg_fail(1)) SWIG_fail;
13785 {
13786 arg2 = static_cast<int >(SWIG_As_int(obj1));
13787 if (SWIG_arg_fail(2)) SWIG_fail;
13788 }
13789 {
13790 arg3 = static_cast<int >(SWIG_As_int(obj2));
13791 if (SWIG_arg_fail(3)) SWIG_fail;
13792 }
13793 {
13794 PyThreadState* __tstate = wxPyBeginAllowThreads();
13795 (arg1)->DrawPoint(arg2,arg3);
13796
13797 wxPyEndAllowThreads(__tstate);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 Py_INCREF(Py_None); resultobj = Py_None;
13801 return resultobj;
13802 fail:
13803 return NULL;
13804 }
13805
13806
13807 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13808 PyObject *resultobj = NULL;
13809 wxDC *arg1 = (wxDC *) 0 ;
13810 wxPoint *arg2 = 0 ;
13811 wxPoint temp2 ;
13812 PyObject * obj0 = 0 ;
13813 PyObject * obj1 = 0 ;
13814 char *kwnames[] = {
13815 (char *) "self",(char *) "pt", NULL
13816 };
13817
13818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13819 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13820 if (SWIG_arg_fail(1)) SWIG_fail;
13821 {
13822 arg2 = &temp2;
13823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13824 }
13825 {
13826 PyThreadState* __tstate = wxPyBeginAllowThreads();
13827 (arg1)->DrawPoint((wxPoint const &)*arg2);
13828
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 Py_INCREF(Py_None); resultobj = Py_None;
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13840 PyObject *resultobj = NULL;
13841 wxDC *arg1 = (wxDC *) 0 ;
13842 int arg2 ;
13843 int arg3 ;
13844 int arg4 ;
13845 int arg5 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 PyObject * obj2 = 0 ;
13849 PyObject * obj3 = 0 ;
13850 PyObject * obj4 = 0 ;
13851 char *kwnames[] = {
13852 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13853 };
13854
13855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13857 if (SWIG_arg_fail(1)) SWIG_fail;
13858 {
13859 arg2 = static_cast<int >(SWIG_As_int(obj1));
13860 if (SWIG_arg_fail(2)) SWIG_fail;
13861 }
13862 {
13863 arg3 = static_cast<int >(SWIG_As_int(obj2));
13864 if (SWIG_arg_fail(3)) SWIG_fail;
13865 }
13866 {
13867 arg4 = static_cast<int >(SWIG_As_int(obj3));
13868 if (SWIG_arg_fail(4)) SWIG_fail;
13869 }
13870 {
13871 arg5 = static_cast<int >(SWIG_As_int(obj4));
13872 if (SWIG_arg_fail(5)) SWIG_fail;
13873 }
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
13877
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 Py_INCREF(Py_None); resultobj = Py_None;
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj = NULL;
13890 wxDC *arg1 = (wxDC *) 0 ;
13891 wxRect *arg2 = 0 ;
13892 wxRect temp2 ;
13893 PyObject * obj0 = 0 ;
13894 PyObject * obj1 = 0 ;
13895 char *kwnames[] = {
13896 (char *) "self",(char *) "rect", NULL
13897 };
13898
13899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13900 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13901 if (SWIG_arg_fail(1)) SWIG_fail;
13902 {
13903 arg2 = &temp2;
13904 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13905 }
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
13908 (arg1)->DrawRectangle((wxRect const &)*arg2);
13909
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 Py_INCREF(Py_None); resultobj = Py_None;
13914 return resultobj;
13915 fail:
13916 return NULL;
13917 }
13918
13919
13920 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13921 PyObject *resultobj = NULL;
13922 wxDC *arg1 = (wxDC *) 0 ;
13923 wxPoint *arg2 = 0 ;
13924 wxSize *arg3 = 0 ;
13925 wxPoint temp2 ;
13926 wxSize temp3 ;
13927 PyObject * obj0 = 0 ;
13928 PyObject * obj1 = 0 ;
13929 PyObject * obj2 = 0 ;
13930 char *kwnames[] = {
13931 (char *) "self",(char *) "pt",(char *) "sz", NULL
13932 };
13933
13934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13935 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13936 if (SWIG_arg_fail(1)) SWIG_fail;
13937 {
13938 arg2 = &temp2;
13939 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13940 }
13941 {
13942 arg3 = &temp3;
13943 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13944 }
13945 {
13946 PyThreadState* __tstate = wxPyBeginAllowThreads();
13947 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
13948
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 Py_INCREF(Py_None); resultobj = Py_None;
13953 return resultobj;
13954 fail:
13955 return NULL;
13956 }
13957
13958
13959 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13960 PyObject *resultobj = NULL;
13961 wxDC *arg1 = (wxDC *) 0 ;
13962 int arg2 ;
13963 int arg3 ;
13964 int arg4 ;
13965 int arg5 ;
13966 double arg6 ;
13967 PyObject * obj0 = 0 ;
13968 PyObject * obj1 = 0 ;
13969 PyObject * obj2 = 0 ;
13970 PyObject * obj3 = 0 ;
13971 PyObject * obj4 = 0 ;
13972 PyObject * obj5 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13979 if (SWIG_arg_fail(1)) SWIG_fail;
13980 {
13981 arg2 = static_cast<int >(SWIG_As_int(obj1));
13982 if (SWIG_arg_fail(2)) SWIG_fail;
13983 }
13984 {
13985 arg3 = static_cast<int >(SWIG_As_int(obj2));
13986 if (SWIG_arg_fail(3)) SWIG_fail;
13987 }
13988 {
13989 arg4 = static_cast<int >(SWIG_As_int(obj3));
13990 if (SWIG_arg_fail(4)) SWIG_fail;
13991 }
13992 {
13993 arg5 = static_cast<int >(SWIG_As_int(obj4));
13994 if (SWIG_arg_fail(5)) SWIG_fail;
13995 }
13996 {
13997 arg6 = static_cast<double >(SWIG_As_double(obj5));
13998 if (SWIG_arg_fail(6)) SWIG_fail;
13999 }
14000 {
14001 PyThreadState* __tstate = wxPyBeginAllowThreads();
14002 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
14003
14004 wxPyEndAllowThreads(__tstate);
14005 if (PyErr_Occurred()) SWIG_fail;
14006 }
14007 Py_INCREF(Py_None); resultobj = Py_None;
14008 return resultobj;
14009 fail:
14010 return NULL;
14011 }
14012
14013
14014 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj = NULL;
14016 wxDC *arg1 = (wxDC *) 0 ;
14017 wxRect *arg2 = 0 ;
14018 double arg3 ;
14019 wxRect temp2 ;
14020 PyObject * obj0 = 0 ;
14021 PyObject * obj1 = 0 ;
14022 PyObject * obj2 = 0 ;
14023 char *kwnames[] = {
14024 (char *) "self",(char *) "r",(char *) "radius", NULL
14025 };
14026
14027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
14028 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14029 if (SWIG_arg_fail(1)) SWIG_fail;
14030 {
14031 arg2 = &temp2;
14032 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14033 }
14034 {
14035 arg3 = static_cast<double >(SWIG_As_double(obj2));
14036 if (SWIG_arg_fail(3)) SWIG_fail;
14037 }
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 Py_INCREF(Py_None); resultobj = Py_None;
14046 return resultobj;
14047 fail:
14048 return NULL;
14049 }
14050
14051
14052 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14053 PyObject *resultobj = NULL;
14054 wxDC *arg1 = (wxDC *) 0 ;
14055 wxPoint *arg2 = 0 ;
14056 wxSize *arg3 = 0 ;
14057 double arg4 ;
14058 wxPoint temp2 ;
14059 wxSize temp3 ;
14060 PyObject * obj0 = 0 ;
14061 PyObject * obj1 = 0 ;
14062 PyObject * obj2 = 0 ;
14063 PyObject * obj3 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
14066 };
14067
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14069 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14070 if (SWIG_arg_fail(1)) SWIG_fail;
14071 {
14072 arg2 = &temp2;
14073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14074 }
14075 {
14076 arg3 = &temp3;
14077 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14078 }
14079 {
14080 arg4 = static_cast<double >(SWIG_As_double(obj3));
14081 if (SWIG_arg_fail(4)) SWIG_fail;
14082 }
14083 {
14084 PyThreadState* __tstate = wxPyBeginAllowThreads();
14085 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
14086
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 Py_INCREF(Py_None); resultobj = Py_None;
14091 return resultobj;
14092 fail:
14093 return NULL;
14094 }
14095
14096
14097 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
14098 PyObject *resultobj = NULL;
14099 wxDC *arg1 = (wxDC *) 0 ;
14100 int arg2 ;
14101 int arg3 ;
14102 int arg4 ;
14103 PyObject * obj0 = 0 ;
14104 PyObject * obj1 = 0 ;
14105 PyObject * obj2 = 0 ;
14106 PyObject * obj3 = 0 ;
14107 char *kwnames[] = {
14108 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
14109 };
14110
14111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14113 if (SWIG_arg_fail(1)) SWIG_fail;
14114 {
14115 arg2 = static_cast<int >(SWIG_As_int(obj1));
14116 if (SWIG_arg_fail(2)) SWIG_fail;
14117 }
14118 {
14119 arg3 = static_cast<int >(SWIG_As_int(obj2));
14120 if (SWIG_arg_fail(3)) SWIG_fail;
14121 }
14122 {
14123 arg4 = static_cast<int >(SWIG_As_int(obj3));
14124 if (SWIG_arg_fail(4)) SWIG_fail;
14125 }
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 (arg1)->DrawCircle(arg2,arg3,arg4);
14129
14130 wxPyEndAllowThreads(__tstate);
14131 if (PyErr_Occurred()) SWIG_fail;
14132 }
14133 Py_INCREF(Py_None); resultobj = Py_None;
14134 return resultobj;
14135 fail:
14136 return NULL;
14137 }
14138
14139
14140 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
14141 PyObject *resultobj = NULL;
14142 wxDC *arg1 = (wxDC *) 0 ;
14143 wxPoint *arg2 = 0 ;
14144 int arg3 ;
14145 wxPoint temp2 ;
14146 PyObject * obj0 = 0 ;
14147 PyObject * obj1 = 0 ;
14148 PyObject * obj2 = 0 ;
14149 char *kwnames[] = {
14150 (char *) "self",(char *) "pt",(char *) "radius", NULL
14151 };
14152
14153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14155 if (SWIG_arg_fail(1)) SWIG_fail;
14156 {
14157 arg2 = &temp2;
14158 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14159 }
14160 {
14161 arg3 = static_cast<int >(SWIG_As_int(obj2));
14162 if (SWIG_arg_fail(3)) SWIG_fail;
14163 }
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj = NULL;
14180 wxDC *arg1 = (wxDC *) 0 ;
14181 int arg2 ;
14182 int arg3 ;
14183 int arg4 ;
14184 int arg5 ;
14185 PyObject * obj0 = 0 ;
14186 PyObject * obj1 = 0 ;
14187 PyObject * obj2 = 0 ;
14188 PyObject * obj3 = 0 ;
14189 PyObject * obj4 = 0 ;
14190 char *kwnames[] = {
14191 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14192 };
14193
14194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14195 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14196 if (SWIG_arg_fail(1)) SWIG_fail;
14197 {
14198 arg2 = static_cast<int >(SWIG_As_int(obj1));
14199 if (SWIG_arg_fail(2)) SWIG_fail;
14200 }
14201 {
14202 arg3 = static_cast<int >(SWIG_As_int(obj2));
14203 if (SWIG_arg_fail(3)) SWIG_fail;
14204 }
14205 {
14206 arg4 = static_cast<int >(SWIG_As_int(obj3));
14207 if (SWIG_arg_fail(4)) SWIG_fail;
14208 }
14209 {
14210 arg5 = static_cast<int >(SWIG_As_int(obj4));
14211 if (SWIG_arg_fail(5)) SWIG_fail;
14212 }
14213 {
14214 PyThreadState* __tstate = wxPyBeginAllowThreads();
14215 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
14216
14217 wxPyEndAllowThreads(__tstate);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 }
14220 Py_INCREF(Py_None); resultobj = Py_None;
14221 return resultobj;
14222 fail:
14223 return NULL;
14224 }
14225
14226
14227 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
14228 PyObject *resultobj = NULL;
14229 wxDC *arg1 = (wxDC *) 0 ;
14230 wxRect *arg2 = 0 ;
14231 wxRect temp2 ;
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 char *kwnames[] = {
14235 (char *) "self",(char *) "rect", NULL
14236 };
14237
14238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
14239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14240 if (SWIG_arg_fail(1)) SWIG_fail;
14241 {
14242 arg2 = &temp2;
14243 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14244 }
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 (arg1)->DrawEllipse((wxRect const &)*arg2);
14248
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 Py_INCREF(Py_None); resultobj = Py_None;
14253 return resultobj;
14254 fail:
14255 return NULL;
14256 }
14257
14258
14259 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14260 PyObject *resultobj = NULL;
14261 wxDC *arg1 = (wxDC *) 0 ;
14262 wxPoint *arg2 = 0 ;
14263 wxSize *arg3 = 0 ;
14264 wxPoint temp2 ;
14265 wxSize temp3 ;
14266 PyObject * obj0 = 0 ;
14267 PyObject * obj1 = 0 ;
14268 PyObject * obj2 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self",(char *) "pt",(char *) "sz", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14274 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14275 if (SWIG_arg_fail(1)) SWIG_fail;
14276 {
14277 arg2 = &temp2;
14278 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14279 }
14280 {
14281 arg3 = &temp3;
14282 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14283 }
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
14287
14288 wxPyEndAllowThreads(__tstate);
14289 if (PyErr_Occurred()) SWIG_fail;
14290 }
14291 Py_INCREF(Py_None); resultobj = Py_None;
14292 return resultobj;
14293 fail:
14294 return NULL;
14295 }
14296
14297
14298 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14299 PyObject *resultobj = NULL;
14300 wxDC *arg1 = (wxDC *) 0 ;
14301 wxIcon *arg2 = 0 ;
14302 int arg3 ;
14303 int arg4 ;
14304 PyObject * obj0 = 0 ;
14305 PyObject * obj1 = 0 ;
14306 PyObject * obj2 = 0 ;
14307 PyObject * obj3 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14313 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14314 if (SWIG_arg_fail(1)) SWIG_fail;
14315 {
14316 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14317 if (SWIG_arg_fail(2)) SWIG_fail;
14318 if (arg2 == NULL) {
14319 SWIG_null_ref("wxIcon");
14320 }
14321 if (SWIG_arg_fail(2)) SWIG_fail;
14322 }
14323 {
14324 arg3 = static_cast<int >(SWIG_As_int(obj2));
14325 if (SWIG_arg_fail(3)) SWIG_fail;
14326 }
14327 {
14328 arg4 = static_cast<int >(SWIG_As_int(obj3));
14329 if (SWIG_arg_fail(4)) SWIG_fail;
14330 }
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
14334
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 Py_INCREF(Py_None); resultobj = Py_None;
14339 return resultobj;
14340 fail:
14341 return NULL;
14342 }
14343
14344
14345 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj = NULL;
14347 wxDC *arg1 = (wxDC *) 0 ;
14348 wxIcon *arg2 = 0 ;
14349 wxPoint *arg3 = 0 ;
14350 wxPoint temp3 ;
14351 PyObject * obj0 = 0 ;
14352 PyObject * obj1 = 0 ;
14353 PyObject * obj2 = 0 ;
14354 char *kwnames[] = {
14355 (char *) "self",(char *) "icon",(char *) "pt", NULL
14356 };
14357
14358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14359 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14360 if (SWIG_arg_fail(1)) SWIG_fail;
14361 {
14362 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14363 if (SWIG_arg_fail(2)) SWIG_fail;
14364 if (arg2 == NULL) {
14365 SWIG_null_ref("wxIcon");
14366 }
14367 if (SWIG_arg_fail(2)) SWIG_fail;
14368 }
14369 {
14370 arg3 = &temp3;
14371 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14372 }
14373 {
14374 PyThreadState* __tstate = wxPyBeginAllowThreads();
14375 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
14376
14377 wxPyEndAllowThreads(__tstate);
14378 if (PyErr_Occurred()) SWIG_fail;
14379 }
14380 Py_INCREF(Py_None); resultobj = Py_None;
14381 return resultobj;
14382 fail:
14383 return NULL;
14384 }
14385
14386
14387 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj = NULL;
14389 wxDC *arg1 = (wxDC *) 0 ;
14390 wxBitmap *arg2 = 0 ;
14391 int arg3 ;
14392 int arg4 ;
14393 bool arg5 = (bool) false ;
14394 PyObject * obj0 = 0 ;
14395 PyObject * obj1 = 0 ;
14396 PyObject * obj2 = 0 ;
14397 PyObject * obj3 = 0 ;
14398 PyObject * obj4 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14405 if (SWIG_arg_fail(1)) SWIG_fail;
14406 {
14407 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14408 if (SWIG_arg_fail(2)) SWIG_fail;
14409 if (arg2 == NULL) {
14410 SWIG_null_ref("wxBitmap");
14411 }
14412 if (SWIG_arg_fail(2)) SWIG_fail;
14413 }
14414 {
14415 arg3 = static_cast<int >(SWIG_As_int(obj2));
14416 if (SWIG_arg_fail(3)) SWIG_fail;
14417 }
14418 {
14419 arg4 = static_cast<int >(SWIG_As_int(obj3));
14420 if (SWIG_arg_fail(4)) SWIG_fail;
14421 }
14422 if (obj4) {
14423 {
14424 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
14425 if (SWIG_arg_fail(5)) SWIG_fail;
14426 }
14427 }
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 Py_INCREF(Py_None); resultobj = Py_None;
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj = NULL;
14444 wxDC *arg1 = (wxDC *) 0 ;
14445 wxBitmap *arg2 = 0 ;
14446 wxPoint *arg3 = 0 ;
14447 bool arg4 = (bool) false ;
14448 wxPoint temp3 ;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 PyObject * obj2 = 0 ;
14452 PyObject * obj3 = 0 ;
14453 char *kwnames[] = {
14454 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
14455 };
14456
14457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14459 if (SWIG_arg_fail(1)) SWIG_fail;
14460 {
14461 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14462 if (SWIG_arg_fail(2)) SWIG_fail;
14463 if (arg2 == NULL) {
14464 SWIG_null_ref("wxBitmap");
14465 }
14466 if (SWIG_arg_fail(2)) SWIG_fail;
14467 }
14468 {
14469 arg3 = &temp3;
14470 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14471 }
14472 if (obj3) {
14473 {
14474 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
14475 if (SWIG_arg_fail(4)) SWIG_fail;
14476 }
14477 }
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
14481
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 Py_INCREF(Py_None); resultobj = Py_None;
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
14493 PyObject *resultobj = NULL;
14494 wxDC *arg1 = (wxDC *) 0 ;
14495 wxString *arg2 = 0 ;
14496 int arg3 ;
14497 int arg4 ;
14498 bool temp2 = false ;
14499 PyObject * obj0 = 0 ;
14500 PyObject * obj1 = 0 ;
14501 PyObject * obj2 = 0 ;
14502 PyObject * obj3 = 0 ;
14503 char *kwnames[] = {
14504 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
14505 };
14506
14507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14508 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14509 if (SWIG_arg_fail(1)) SWIG_fail;
14510 {
14511 arg2 = wxString_in_helper(obj1);
14512 if (arg2 == NULL) SWIG_fail;
14513 temp2 = true;
14514 }
14515 {
14516 arg3 = static_cast<int >(SWIG_As_int(obj2));
14517 if (SWIG_arg_fail(3)) SWIG_fail;
14518 }
14519 {
14520 arg4 = static_cast<int >(SWIG_As_int(obj3));
14521 if (SWIG_arg_fail(4)) SWIG_fail;
14522 }
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
14526
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 Py_INCREF(Py_None); resultobj = Py_None;
14531 {
14532 if (temp2)
14533 delete arg2;
14534 }
14535 return resultobj;
14536 fail:
14537 {
14538 if (temp2)
14539 delete arg2;
14540 }
14541 return NULL;
14542 }
14543
14544
14545 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14546 PyObject *resultobj = NULL;
14547 wxDC *arg1 = (wxDC *) 0 ;
14548 wxString *arg2 = 0 ;
14549 wxPoint *arg3 = 0 ;
14550 bool temp2 = false ;
14551 wxPoint temp3 ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 PyObject * obj2 = 0 ;
14555 char *kwnames[] = {
14556 (char *) "self",(char *) "text",(char *) "pt", NULL
14557 };
14558
14559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14560 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14561 if (SWIG_arg_fail(1)) SWIG_fail;
14562 {
14563 arg2 = wxString_in_helper(obj1);
14564 if (arg2 == NULL) SWIG_fail;
14565 temp2 = true;
14566 }
14567 {
14568 arg3 = &temp3;
14569 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14570 }
14571 {
14572 PyThreadState* __tstate = wxPyBeginAllowThreads();
14573 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
14574
14575 wxPyEndAllowThreads(__tstate);
14576 if (PyErr_Occurred()) SWIG_fail;
14577 }
14578 Py_INCREF(Py_None); resultobj = Py_None;
14579 {
14580 if (temp2)
14581 delete arg2;
14582 }
14583 return resultobj;
14584 fail:
14585 {
14586 if (temp2)
14587 delete arg2;
14588 }
14589 return NULL;
14590 }
14591
14592
14593 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj = NULL;
14595 wxDC *arg1 = (wxDC *) 0 ;
14596 wxString *arg2 = 0 ;
14597 int arg3 ;
14598 int arg4 ;
14599 double arg5 ;
14600 bool temp2 = false ;
14601 PyObject * obj0 = 0 ;
14602 PyObject * obj1 = 0 ;
14603 PyObject * obj2 = 0 ;
14604 PyObject * obj3 = 0 ;
14605 PyObject * obj4 = 0 ;
14606 char *kwnames[] = {
14607 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
14608 };
14609
14610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14611 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14612 if (SWIG_arg_fail(1)) SWIG_fail;
14613 {
14614 arg2 = wxString_in_helper(obj1);
14615 if (arg2 == NULL) SWIG_fail;
14616 temp2 = true;
14617 }
14618 {
14619 arg3 = static_cast<int >(SWIG_As_int(obj2));
14620 if (SWIG_arg_fail(3)) SWIG_fail;
14621 }
14622 {
14623 arg4 = static_cast<int >(SWIG_As_int(obj3));
14624 if (SWIG_arg_fail(4)) SWIG_fail;
14625 }
14626 {
14627 arg5 = static_cast<double >(SWIG_As_double(obj4));
14628 if (SWIG_arg_fail(5)) SWIG_fail;
14629 }
14630 {
14631 PyThreadState* __tstate = wxPyBeginAllowThreads();
14632 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
14633
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 Py_INCREF(Py_None); resultobj = Py_None;
14638 {
14639 if (temp2)
14640 delete arg2;
14641 }
14642 return resultobj;
14643 fail:
14644 {
14645 if (temp2)
14646 delete arg2;
14647 }
14648 return NULL;
14649 }
14650
14651
14652 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14653 PyObject *resultobj = NULL;
14654 wxDC *arg1 = (wxDC *) 0 ;
14655 wxString *arg2 = 0 ;
14656 wxPoint *arg3 = 0 ;
14657 double arg4 ;
14658 bool temp2 = false ;
14659 wxPoint temp3 ;
14660 PyObject * obj0 = 0 ;
14661 PyObject * obj1 = 0 ;
14662 PyObject * obj2 = 0 ;
14663 PyObject * obj3 = 0 ;
14664 char *kwnames[] = {
14665 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
14666 };
14667
14668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14669 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14670 if (SWIG_arg_fail(1)) SWIG_fail;
14671 {
14672 arg2 = wxString_in_helper(obj1);
14673 if (arg2 == NULL) SWIG_fail;
14674 temp2 = true;
14675 }
14676 {
14677 arg3 = &temp3;
14678 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14679 }
14680 {
14681 arg4 = static_cast<double >(SWIG_As_double(obj3));
14682 if (SWIG_arg_fail(4)) SWIG_fail;
14683 }
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 Py_INCREF(Py_None); resultobj = Py_None;
14692 {
14693 if (temp2)
14694 delete arg2;
14695 }
14696 return resultobj;
14697 fail:
14698 {
14699 if (temp2)
14700 delete arg2;
14701 }
14702 return NULL;
14703 }
14704
14705
14706 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
14707 PyObject *resultobj = NULL;
14708 wxDC *arg1 = (wxDC *) 0 ;
14709 int arg2 ;
14710 int arg3 ;
14711 int arg4 ;
14712 int arg5 ;
14713 wxDC *arg6 = (wxDC *) 0 ;
14714 int arg7 ;
14715 int arg8 ;
14716 int arg9 = (int) wxCOPY ;
14717 bool arg10 = (bool) false ;
14718 int arg11 = (int) -1 ;
14719 int arg12 = (int) -1 ;
14720 bool result;
14721 PyObject * obj0 = 0 ;
14722 PyObject * obj1 = 0 ;
14723 PyObject * obj2 = 0 ;
14724 PyObject * obj3 = 0 ;
14725 PyObject * obj4 = 0 ;
14726 PyObject * obj5 = 0 ;
14727 PyObject * obj6 = 0 ;
14728 PyObject * obj7 = 0 ;
14729 PyObject * obj8 = 0 ;
14730 PyObject * obj9 = 0 ;
14731 PyObject * obj10 = 0 ;
14732 PyObject * obj11 = 0 ;
14733 char *kwnames[] = {
14734 (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
14735 };
14736
14737 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;
14738 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14739 if (SWIG_arg_fail(1)) SWIG_fail;
14740 {
14741 arg2 = static_cast<int >(SWIG_As_int(obj1));
14742 if (SWIG_arg_fail(2)) SWIG_fail;
14743 }
14744 {
14745 arg3 = static_cast<int >(SWIG_As_int(obj2));
14746 if (SWIG_arg_fail(3)) SWIG_fail;
14747 }
14748 {
14749 arg4 = static_cast<int >(SWIG_As_int(obj3));
14750 if (SWIG_arg_fail(4)) SWIG_fail;
14751 }
14752 {
14753 arg5 = static_cast<int >(SWIG_As_int(obj4));
14754 if (SWIG_arg_fail(5)) SWIG_fail;
14755 }
14756 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14757 if (SWIG_arg_fail(6)) SWIG_fail;
14758 {
14759 arg7 = static_cast<int >(SWIG_As_int(obj6));
14760 if (SWIG_arg_fail(7)) SWIG_fail;
14761 }
14762 {
14763 arg8 = static_cast<int >(SWIG_As_int(obj7));
14764 if (SWIG_arg_fail(8)) SWIG_fail;
14765 }
14766 if (obj8) {
14767 {
14768 arg9 = static_cast<int >(SWIG_As_int(obj8));
14769 if (SWIG_arg_fail(9)) SWIG_fail;
14770 }
14771 }
14772 if (obj9) {
14773 {
14774 arg10 = static_cast<bool >(SWIG_As_bool(obj9));
14775 if (SWIG_arg_fail(10)) SWIG_fail;
14776 }
14777 }
14778 if (obj10) {
14779 {
14780 arg11 = static_cast<int >(SWIG_As_int(obj10));
14781 if (SWIG_arg_fail(11)) SWIG_fail;
14782 }
14783 }
14784 if (obj11) {
14785 {
14786 arg12 = static_cast<int >(SWIG_As_int(obj11));
14787 if (SWIG_arg_fail(12)) SWIG_fail;
14788 }
14789 }
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14793
14794 wxPyEndAllowThreads(__tstate);
14795 if (PyErr_Occurred()) SWIG_fail;
14796 }
14797 {
14798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14799 }
14800 return resultobj;
14801 fail:
14802 return NULL;
14803 }
14804
14805
14806 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14807 PyObject *resultobj = NULL;
14808 wxDC *arg1 = (wxDC *) 0 ;
14809 wxPoint *arg2 = 0 ;
14810 wxSize *arg3 = 0 ;
14811 wxDC *arg4 = (wxDC *) 0 ;
14812 wxPoint *arg5 = 0 ;
14813 int arg6 = (int) wxCOPY ;
14814 bool arg7 = (bool) false ;
14815 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14816 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14817 bool result;
14818 wxPoint temp2 ;
14819 wxSize temp3 ;
14820 wxPoint temp5 ;
14821 wxPoint temp8 ;
14822 PyObject * obj0 = 0 ;
14823 PyObject * obj1 = 0 ;
14824 PyObject * obj2 = 0 ;
14825 PyObject * obj3 = 0 ;
14826 PyObject * obj4 = 0 ;
14827 PyObject * obj5 = 0 ;
14828 PyObject * obj6 = 0 ;
14829 PyObject * obj7 = 0 ;
14830 char *kwnames[] = {
14831 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
14832 };
14833
14834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14836 if (SWIG_arg_fail(1)) SWIG_fail;
14837 {
14838 arg2 = &temp2;
14839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14840 }
14841 {
14842 arg3 = &temp3;
14843 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14844 }
14845 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14846 if (SWIG_arg_fail(4)) SWIG_fail;
14847 {
14848 arg5 = &temp5;
14849 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14850 }
14851 if (obj5) {
14852 {
14853 arg6 = static_cast<int >(SWIG_As_int(obj5));
14854 if (SWIG_arg_fail(6)) SWIG_fail;
14855 }
14856 }
14857 if (obj6) {
14858 {
14859 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
14860 if (SWIG_arg_fail(7)) SWIG_fail;
14861 }
14862 }
14863 if (obj7) {
14864 {
14865 arg8 = &temp8;
14866 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14867 }
14868 }
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
14872
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 {
14877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14878 }
14879 return resultobj;
14880 fail:
14881 return NULL;
14882 }
14883
14884
14885 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj = NULL;
14887 wxDC *arg1 = (wxDC *) 0 ;
14888 int arg2 ;
14889 int arg3 ;
14890 int arg4 ;
14891 int arg5 ;
14892 PyObject * obj0 = 0 ;
14893 PyObject * obj1 = 0 ;
14894 PyObject * obj2 = 0 ;
14895 PyObject * obj3 = 0 ;
14896 PyObject * obj4 = 0 ;
14897 char *kwnames[] = {
14898 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14903 if (SWIG_arg_fail(1)) SWIG_fail;
14904 {
14905 arg2 = static_cast<int >(SWIG_As_int(obj1));
14906 if (SWIG_arg_fail(2)) SWIG_fail;
14907 }
14908 {
14909 arg3 = static_cast<int >(SWIG_As_int(obj2));
14910 if (SWIG_arg_fail(3)) SWIG_fail;
14911 }
14912 {
14913 arg4 = static_cast<int >(SWIG_As_int(obj3));
14914 if (SWIG_arg_fail(4)) SWIG_fail;
14915 }
14916 {
14917 arg5 = static_cast<int >(SWIG_As_int(obj4));
14918 if (SWIG_arg_fail(5)) SWIG_fail;
14919 }
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
14923
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 Py_INCREF(Py_None); resultobj = Py_None;
14928 return resultobj;
14929 fail:
14930 return NULL;
14931 }
14932
14933
14934 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14935 PyObject *resultobj = NULL;
14936 wxDC *arg1 = (wxDC *) 0 ;
14937 wxPoint *arg2 = 0 ;
14938 wxSize *arg3 = 0 ;
14939 wxPoint temp2 ;
14940 wxSize temp3 ;
14941 PyObject * obj0 = 0 ;
14942 PyObject * obj1 = 0 ;
14943 PyObject * obj2 = 0 ;
14944 char *kwnames[] = {
14945 (char *) "self",(char *) "pt",(char *) "sz", NULL
14946 };
14947
14948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14949 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14950 if (SWIG_arg_fail(1)) SWIG_fail;
14951 {
14952 arg2 = &temp2;
14953 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14954 }
14955 {
14956 arg3 = &temp3;
14957 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14958 }
14959 {
14960 PyThreadState* __tstate = wxPyBeginAllowThreads();
14961 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
14962
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 Py_INCREF(Py_None); resultobj = Py_None;
14967 return resultobj;
14968 fail:
14969 return NULL;
14970 }
14971
14972
14973 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj = NULL;
14975 wxDC *arg1 = (wxDC *) 0 ;
14976 wxRegion *arg2 = 0 ;
14977 PyObject * obj0 = 0 ;
14978 PyObject * obj1 = 0 ;
14979 char *kwnames[] = {
14980 (char *) "self",(char *) "region", NULL
14981 };
14982
14983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
14984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14985 if (SWIG_arg_fail(1)) SWIG_fail;
14986 {
14987 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
14988 if (SWIG_arg_fail(2)) SWIG_fail;
14989 if (arg2 == NULL) {
14990 SWIG_null_ref("wxRegion");
14991 }
14992 if (SWIG_arg_fail(2)) SWIG_fail;
14993 }
14994 {
14995 PyThreadState* __tstate = wxPyBeginAllowThreads();
14996 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
14997
14998 wxPyEndAllowThreads(__tstate);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 Py_INCREF(Py_None); resultobj = Py_None;
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15009 PyObject *resultobj = NULL;
15010 wxDC *arg1 = (wxDC *) 0 ;
15011 wxRect *arg2 = 0 ;
15012 wxRect temp2 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 char *kwnames[] = {
15016 (char *) "self",(char *) "rect", NULL
15017 };
15018
15019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
15020 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15021 if (SWIG_arg_fail(1)) SWIG_fail;
15022 {
15023 arg2 = &temp2;
15024 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15025 }
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 (arg1)->SetClippingRegion((wxRect const &)*arg2);
15029
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 Py_INCREF(Py_None); resultobj = Py_None;
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj = NULL;
15042 wxDC *arg1 = (wxDC *) 0 ;
15043 int arg2 ;
15044 wxPoint *arg3 = (wxPoint *) 0 ;
15045 int arg4 = (int) 0 ;
15046 int arg5 = (int) 0 ;
15047 PyObject * obj0 = 0 ;
15048 PyObject * obj1 = 0 ;
15049 PyObject * obj2 = 0 ;
15050 PyObject * obj3 = 0 ;
15051 char *kwnames[] = {
15052 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
15053 };
15054
15055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15056 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15057 if (SWIG_arg_fail(1)) SWIG_fail;
15058 {
15059 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15060 if (arg3 == NULL) SWIG_fail;
15061 }
15062 if (obj2) {
15063 {
15064 arg4 = static_cast<int >(SWIG_As_int(obj2));
15065 if (SWIG_arg_fail(4)) SWIG_fail;
15066 }
15067 }
15068 if (obj3) {
15069 {
15070 arg5 = static_cast<int >(SWIG_As_int(obj3));
15071 if (SWIG_arg_fail(5)) SWIG_fail;
15072 }
15073 }
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
15077
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 Py_INCREF(Py_None); resultobj = Py_None;
15082 {
15083 if (arg3) delete [] arg3;
15084 }
15085 return resultobj;
15086 fail:
15087 {
15088 if (arg3) delete [] arg3;
15089 }
15090 return NULL;
15091 }
15092
15093
15094 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
15095 PyObject *resultobj = NULL;
15096 wxDC *arg1 = (wxDC *) 0 ;
15097 int arg2 ;
15098 wxPoint *arg3 = (wxPoint *) 0 ;
15099 int arg4 = (int) 0 ;
15100 int arg5 = (int) 0 ;
15101 int arg6 = (int) wxODDEVEN_RULE ;
15102 PyObject * obj0 = 0 ;
15103 PyObject * obj1 = 0 ;
15104 PyObject * obj2 = 0 ;
15105 PyObject * obj3 = 0 ;
15106 PyObject * obj4 = 0 ;
15107 char *kwnames[] = {
15108 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
15109 };
15110
15111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15113 if (SWIG_arg_fail(1)) SWIG_fail;
15114 {
15115 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15116 if (arg3 == NULL) SWIG_fail;
15117 }
15118 if (obj2) {
15119 {
15120 arg4 = static_cast<int >(SWIG_As_int(obj2));
15121 if (SWIG_arg_fail(4)) SWIG_fail;
15122 }
15123 }
15124 if (obj3) {
15125 {
15126 arg5 = static_cast<int >(SWIG_As_int(obj3));
15127 if (SWIG_arg_fail(5)) SWIG_fail;
15128 }
15129 }
15130 if (obj4) {
15131 {
15132 arg6 = static_cast<int >(SWIG_As_int(obj4));
15133 if (SWIG_arg_fail(6)) SWIG_fail;
15134 }
15135 }
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 Py_INCREF(Py_None); resultobj = Py_None;
15144 {
15145 if (arg3) delete [] arg3;
15146 }
15147 return resultobj;
15148 fail:
15149 {
15150 if (arg3) delete [] arg3;
15151 }
15152 return NULL;
15153 }
15154
15155
15156 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15157 PyObject *resultobj = NULL;
15158 wxDC *arg1 = (wxDC *) 0 ;
15159 wxString *arg2 = 0 ;
15160 wxRect *arg3 = 0 ;
15161 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
15162 int arg5 = (int) -1 ;
15163 bool temp2 = false ;
15164 wxRect temp3 ;
15165 PyObject * obj0 = 0 ;
15166 PyObject * obj1 = 0 ;
15167 PyObject * obj2 = 0 ;
15168 PyObject * obj3 = 0 ;
15169 PyObject * obj4 = 0 ;
15170 char *kwnames[] = {
15171 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
15172 };
15173
15174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15175 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15176 if (SWIG_arg_fail(1)) SWIG_fail;
15177 {
15178 arg2 = wxString_in_helper(obj1);
15179 if (arg2 == NULL) SWIG_fail;
15180 temp2 = true;
15181 }
15182 {
15183 arg3 = &temp3;
15184 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15185 }
15186 if (obj3) {
15187 {
15188 arg4 = static_cast<int >(SWIG_As_int(obj3));
15189 if (SWIG_arg_fail(4)) SWIG_fail;
15190 }
15191 }
15192 if (obj4) {
15193 {
15194 arg5 = static_cast<int >(SWIG_As_int(obj4));
15195 if (SWIG_arg_fail(5)) SWIG_fail;
15196 }
15197 }
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 Py_INCREF(Py_None); resultobj = Py_None;
15206 {
15207 if (temp2)
15208 delete arg2;
15209 }
15210 return resultobj;
15211 fail:
15212 {
15213 if (temp2)
15214 delete arg2;
15215 }
15216 return NULL;
15217 }
15218
15219
15220 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15221 PyObject *resultobj = NULL;
15222 wxDC *arg1 = (wxDC *) 0 ;
15223 wxString *arg2 = 0 ;
15224 wxBitmap *arg3 = 0 ;
15225 wxRect *arg4 = 0 ;
15226 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
15227 int arg6 = (int) -1 ;
15228 wxRect result;
15229 bool temp2 = false ;
15230 wxRect temp4 ;
15231 PyObject * obj0 = 0 ;
15232 PyObject * obj1 = 0 ;
15233 PyObject * obj2 = 0 ;
15234 PyObject * obj3 = 0 ;
15235 PyObject * obj4 = 0 ;
15236 PyObject * obj5 = 0 ;
15237 char *kwnames[] = {
15238 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
15239 };
15240
15241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15242 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15243 if (SWIG_arg_fail(1)) SWIG_fail;
15244 {
15245 arg2 = wxString_in_helper(obj1);
15246 if (arg2 == NULL) SWIG_fail;
15247 temp2 = true;
15248 }
15249 {
15250 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
15251 if (SWIG_arg_fail(3)) SWIG_fail;
15252 if (arg3 == NULL) {
15253 SWIG_null_ref("wxBitmap");
15254 }
15255 if (SWIG_arg_fail(3)) SWIG_fail;
15256 }
15257 {
15258 arg4 = &temp4;
15259 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
15260 }
15261 if (obj4) {
15262 {
15263 arg5 = static_cast<int >(SWIG_As_int(obj4));
15264 if (SWIG_arg_fail(5)) SWIG_fail;
15265 }
15266 }
15267 if (obj5) {
15268 {
15269 arg6 = static_cast<int >(SWIG_As_int(obj5));
15270 if (SWIG_arg_fail(6)) SWIG_fail;
15271 }
15272 }
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
15276
15277 wxPyEndAllowThreads(__tstate);
15278 if (PyErr_Occurred()) SWIG_fail;
15279 }
15280 {
15281 wxRect * resultptr;
15282 resultptr = new wxRect(static_cast<wxRect & >(result));
15283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15284 }
15285 {
15286 if (temp2)
15287 delete arg2;
15288 }
15289 return resultobj;
15290 fail:
15291 {
15292 if (temp2)
15293 delete arg2;
15294 }
15295 return NULL;
15296 }
15297
15298
15299 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj = NULL;
15301 wxDC *arg1 = (wxDC *) 0 ;
15302 int arg2 ;
15303 wxPoint *arg3 = (wxPoint *) 0 ;
15304 PyObject * obj0 = 0 ;
15305 PyObject * obj1 = 0 ;
15306 char *kwnames[] = {
15307 (char *) "self",(char *) "points", NULL
15308 };
15309
15310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15311 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15312 if (SWIG_arg_fail(1)) SWIG_fail;
15313 {
15314 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15315 if (arg3 == NULL) SWIG_fail;
15316 }
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 (arg1)->DrawSpline(arg2,arg3);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 Py_INCREF(Py_None); resultobj = Py_None;
15325 {
15326 if (arg3) delete [] arg3;
15327 }
15328 return resultobj;
15329 fail:
15330 {
15331 if (arg3) delete [] arg3;
15332 }
15333 return NULL;
15334 }
15335
15336
15337 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
15338 PyObject *resultobj = NULL;
15339 wxDC *arg1 = (wxDC *) 0 ;
15340 PyObject * obj0 = 0 ;
15341 char *kwnames[] = {
15342 (char *) "self", NULL
15343 };
15344
15345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15347 if (SWIG_arg_fail(1)) SWIG_fail;
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 (arg1)->Clear();
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 Py_INCREF(Py_None); resultobj = Py_None;
15356 return resultobj;
15357 fail:
15358 return NULL;
15359 }
15360
15361
15362 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
15363 PyObject *resultobj = NULL;
15364 wxDC *arg1 = (wxDC *) 0 ;
15365 wxString *arg2 = 0 ;
15366 bool result;
15367 bool temp2 = false ;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 char *kwnames[] = {
15371 (char *) "self",(char *) "message", NULL
15372 };
15373
15374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15376 if (SWIG_arg_fail(1)) SWIG_fail;
15377 {
15378 arg2 = wxString_in_helper(obj1);
15379 if (arg2 == NULL) SWIG_fail;
15380 temp2 = true;
15381 }
15382 {
15383 PyThreadState* __tstate = wxPyBeginAllowThreads();
15384 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
15385
15386 wxPyEndAllowThreads(__tstate);
15387 if (PyErr_Occurred()) SWIG_fail;
15388 }
15389 {
15390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15391 }
15392 {
15393 if (temp2)
15394 delete arg2;
15395 }
15396 return resultobj;
15397 fail:
15398 {
15399 if (temp2)
15400 delete arg2;
15401 }
15402 return NULL;
15403 }
15404
15405
15406 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
15407 PyObject *resultobj = NULL;
15408 wxDC *arg1 = (wxDC *) 0 ;
15409 PyObject * obj0 = 0 ;
15410 char *kwnames[] = {
15411 (char *) "self", NULL
15412 };
15413
15414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15416 if (SWIG_arg_fail(1)) SWIG_fail;
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 (arg1)->EndDoc();
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 Py_INCREF(Py_None); resultobj = Py_None;
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj = NULL;
15433 wxDC *arg1 = (wxDC *) 0 ;
15434 PyObject * obj0 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "self", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15440 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15441 if (SWIG_arg_fail(1)) SWIG_fail;
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 (arg1)->StartPage();
15445
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 Py_INCREF(Py_None); resultobj = Py_None;
15450 return resultobj;
15451 fail:
15452 return NULL;
15453 }
15454
15455
15456 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj = NULL;
15458 wxDC *arg1 = (wxDC *) 0 ;
15459 PyObject * obj0 = 0 ;
15460 char *kwnames[] = {
15461 (char *) "self", NULL
15462 };
15463
15464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15466 if (SWIG_arg_fail(1)) SWIG_fail;
15467 {
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 (arg1)->EndPage();
15470
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 Py_INCREF(Py_None); resultobj = Py_None;
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj = NULL;
15483 wxDC *arg1 = (wxDC *) 0 ;
15484 wxFont *arg2 = 0 ;
15485 PyObject * obj0 = 0 ;
15486 PyObject * obj1 = 0 ;
15487 char *kwnames[] = {
15488 (char *) "self",(char *) "font", NULL
15489 };
15490
15491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15493 if (SWIG_arg_fail(1)) SWIG_fail;
15494 {
15495 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15496 if (SWIG_arg_fail(2)) SWIG_fail;
15497 if (arg2 == NULL) {
15498 SWIG_null_ref("wxFont");
15499 }
15500 if (SWIG_arg_fail(2)) SWIG_fail;
15501 }
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 (arg1)->SetFont((wxFont const &)*arg2);
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 Py_INCREF(Py_None); resultobj = Py_None;
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = NULL;
15518 wxDC *arg1 = (wxDC *) 0 ;
15519 wxPen *arg2 = 0 ;
15520 PyObject * obj0 = 0 ;
15521 PyObject * obj1 = 0 ;
15522 char *kwnames[] = {
15523 (char *) "self",(char *) "pen", NULL
15524 };
15525
15526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15528 if (SWIG_arg_fail(1)) SWIG_fail;
15529 {
15530 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
15531 if (SWIG_arg_fail(2)) SWIG_fail;
15532 if (arg2 == NULL) {
15533 SWIG_null_ref("wxPen");
15534 }
15535 if (SWIG_arg_fail(2)) SWIG_fail;
15536 }
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 (arg1)->SetPen((wxPen const &)*arg2);
15540
15541 wxPyEndAllowThreads(__tstate);
15542 if (PyErr_Occurred()) SWIG_fail;
15543 }
15544 Py_INCREF(Py_None); resultobj = Py_None;
15545 return resultobj;
15546 fail:
15547 return NULL;
15548 }
15549
15550
15551 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj = NULL;
15553 wxDC *arg1 = (wxDC *) 0 ;
15554 wxBrush *arg2 = 0 ;
15555 PyObject * obj0 = 0 ;
15556 PyObject * obj1 = 0 ;
15557 char *kwnames[] = {
15558 (char *) "self",(char *) "brush", NULL
15559 };
15560
15561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15562 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15563 if (SWIG_arg_fail(1)) SWIG_fail;
15564 {
15565 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15566 if (SWIG_arg_fail(2)) SWIG_fail;
15567 if (arg2 == NULL) {
15568 SWIG_null_ref("wxBrush");
15569 }
15570 if (SWIG_arg_fail(2)) SWIG_fail;
15571 }
15572 {
15573 PyThreadState* __tstate = wxPyBeginAllowThreads();
15574 (arg1)->SetBrush((wxBrush const &)*arg2);
15575
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 Py_INCREF(Py_None); resultobj = Py_None;
15580 return resultobj;
15581 fail:
15582 return NULL;
15583 }
15584
15585
15586 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15587 PyObject *resultobj = NULL;
15588 wxDC *arg1 = (wxDC *) 0 ;
15589 wxBrush *arg2 = 0 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char *kwnames[] = {
15593 (char *) "self",(char *) "brush", NULL
15594 };
15595
15596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15598 if (SWIG_arg_fail(1)) SWIG_fail;
15599 {
15600 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15601 if (SWIG_arg_fail(2)) SWIG_fail;
15602 if (arg2 == NULL) {
15603 SWIG_null_ref("wxBrush");
15604 }
15605 if (SWIG_arg_fail(2)) SWIG_fail;
15606 }
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 (arg1)->SetBackground((wxBrush const &)*arg2);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 Py_INCREF(Py_None); resultobj = Py_None;
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj = NULL;
15623 wxDC *arg1 = (wxDC *) 0 ;
15624 int arg2 ;
15625 PyObject * obj0 = 0 ;
15626 PyObject * obj1 = 0 ;
15627 char *kwnames[] = {
15628 (char *) "self",(char *) "mode", NULL
15629 };
15630
15631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15633 if (SWIG_arg_fail(1)) SWIG_fail;
15634 {
15635 arg2 = static_cast<int >(SWIG_As_int(obj1));
15636 if (SWIG_arg_fail(2)) SWIG_fail;
15637 }
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 (arg1)->SetBackgroundMode(arg2);
15641
15642 wxPyEndAllowThreads(__tstate);
15643 if (PyErr_Occurred()) SWIG_fail;
15644 }
15645 Py_INCREF(Py_None); resultobj = Py_None;
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj = NULL;
15654 wxDC *arg1 = (wxDC *) 0 ;
15655 wxPalette *arg2 = 0 ;
15656 PyObject * obj0 = 0 ;
15657 PyObject * obj1 = 0 ;
15658 char *kwnames[] = {
15659 (char *) "self",(char *) "palette", NULL
15660 };
15661
15662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15664 if (SWIG_arg_fail(1)) SWIG_fail;
15665 {
15666 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
15667 if (SWIG_arg_fail(2)) SWIG_fail;
15668 if (arg2 == NULL) {
15669 SWIG_null_ref("wxPalette");
15670 }
15671 if (SWIG_arg_fail(2)) SWIG_fail;
15672 }
15673 {
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 (arg1)->SetPalette((wxPalette const &)*arg2);
15676
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 Py_INCREF(Py_None); resultobj = Py_None;
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj = NULL;
15689 wxDC *arg1 = (wxDC *) 0 ;
15690 PyObject * obj0 = 0 ;
15691 char *kwnames[] = {
15692 (char *) "self", NULL
15693 };
15694
15695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15696 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15697 if (SWIG_arg_fail(1)) SWIG_fail;
15698 {
15699 PyThreadState* __tstate = wxPyBeginAllowThreads();
15700 (arg1)->DestroyClippingRegion();
15701
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 Py_INCREF(Py_None); resultobj = Py_None;
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj = NULL;
15714 wxDC *arg1 = (wxDC *) 0 ;
15715 int *arg2 = (int *) 0 ;
15716 int *arg3 = (int *) 0 ;
15717 int *arg4 = (int *) 0 ;
15718 int *arg5 = (int *) 0 ;
15719 int temp2 ;
15720 int res2 = 0 ;
15721 int temp3 ;
15722 int res3 = 0 ;
15723 int temp4 ;
15724 int res4 = 0 ;
15725 int temp5 ;
15726 int res5 = 0 ;
15727 PyObject * obj0 = 0 ;
15728 char *kwnames[] = {
15729 (char *) "self", NULL
15730 };
15731
15732 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15733 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15734 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15735 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15738 if (SWIG_arg_fail(1)) SWIG_fail;
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
15742
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 Py_INCREF(Py_None); resultobj = Py_None;
15747 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15748 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15749 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15750 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15751 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15752 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15753 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15754 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15762 PyObject *resultobj = NULL;
15763 wxDC *arg1 = (wxDC *) 0 ;
15764 wxRect result;
15765 PyObject * obj0 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15771 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15772 if (SWIG_arg_fail(1)) SWIG_fail;
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 result = wxDC_GetClippingRect(arg1);
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781 wxRect * resultptr;
15782 resultptr = new wxRect(static_cast<wxRect & >(result));
15783 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15784 }
15785 return resultobj;
15786 fail:
15787 return NULL;
15788 }
15789
15790
15791 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = NULL;
15793 wxDC *arg1 = (wxDC *) 0 ;
15794 int result;
15795 PyObject * obj0 = 0 ;
15796 char *kwnames[] = {
15797 (char *) "self", NULL
15798 };
15799
15800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15802 if (SWIG_arg_fail(1)) SWIG_fail;
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 result = (int)((wxDC const *)arg1)->GetCharHeight();
15806
15807 wxPyEndAllowThreads(__tstate);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 {
15811 resultobj = SWIG_From_int(static_cast<int >(result));
15812 }
15813 return resultobj;
15814 fail:
15815 return NULL;
15816 }
15817
15818
15819 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj = NULL;
15821 wxDC *arg1 = (wxDC *) 0 ;
15822 int result;
15823 PyObject * obj0 = 0 ;
15824 char *kwnames[] = {
15825 (char *) "self", NULL
15826 };
15827
15828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15830 if (SWIG_arg_fail(1)) SWIG_fail;
15831 {
15832 PyThreadState* __tstate = wxPyBeginAllowThreads();
15833 result = (int)((wxDC const *)arg1)->GetCharWidth();
15834
15835 wxPyEndAllowThreads(__tstate);
15836 if (PyErr_Occurred()) SWIG_fail;
15837 }
15838 {
15839 resultobj = SWIG_From_int(static_cast<int >(result));
15840 }
15841 return resultobj;
15842 fail:
15843 return NULL;
15844 }
15845
15846
15847 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj = NULL;
15849 wxDC *arg1 = (wxDC *) 0 ;
15850 wxString *arg2 = 0 ;
15851 int *arg3 = (int *) 0 ;
15852 int *arg4 = (int *) 0 ;
15853 bool temp2 = false ;
15854 int temp3 ;
15855 int res3 = 0 ;
15856 int temp4 ;
15857 int res4 = 0 ;
15858 PyObject * obj0 = 0 ;
15859 PyObject * obj1 = 0 ;
15860 char *kwnames[] = {
15861 (char *) "self",(char *) "string", NULL
15862 };
15863
15864 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15865 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15867 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15868 if (SWIG_arg_fail(1)) SWIG_fail;
15869 {
15870 arg2 = wxString_in_helper(obj1);
15871 if (arg2 == NULL) SWIG_fail;
15872 temp2 = true;
15873 }
15874 {
15875 PyThreadState* __tstate = wxPyBeginAllowThreads();
15876 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
15877
15878 wxPyEndAllowThreads(__tstate);
15879 if (PyErr_Occurred()) SWIG_fail;
15880 }
15881 Py_INCREF(Py_None); resultobj = Py_None;
15882 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15883 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15884 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15885 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15886 {
15887 if (temp2)
15888 delete arg2;
15889 }
15890 return resultobj;
15891 fail:
15892 {
15893 if (temp2)
15894 delete arg2;
15895 }
15896 return NULL;
15897 }
15898
15899
15900 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15901 PyObject *resultobj = NULL;
15902 wxDC *arg1 = (wxDC *) 0 ;
15903 wxString *arg2 = 0 ;
15904 int *arg3 = (int *) 0 ;
15905 int *arg4 = (int *) 0 ;
15906 int *arg5 = (int *) 0 ;
15907 int *arg6 = (int *) 0 ;
15908 wxFont *arg7 = (wxFont *) NULL ;
15909 bool temp2 = false ;
15910 int temp3 ;
15911 int res3 = 0 ;
15912 int temp4 ;
15913 int res4 = 0 ;
15914 int temp5 ;
15915 int res5 = 0 ;
15916 int temp6 ;
15917 int res6 = 0 ;
15918 PyObject * obj0 = 0 ;
15919 PyObject * obj1 = 0 ;
15920 PyObject * obj2 = 0 ;
15921 char *kwnames[] = {
15922 (char *) "self",(char *) "string",(char *) "font", NULL
15923 };
15924
15925 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15926 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15927 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15928 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15930 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15931 if (SWIG_arg_fail(1)) SWIG_fail;
15932 {
15933 arg2 = wxString_in_helper(obj1);
15934 if (arg2 == NULL) SWIG_fail;
15935 temp2 = true;
15936 }
15937 if (obj2) {
15938 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15939 if (SWIG_arg_fail(7)) SWIG_fail;
15940 }
15941 {
15942 PyThreadState* __tstate = wxPyBeginAllowThreads();
15943 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
15944
15945 wxPyEndAllowThreads(__tstate);
15946 if (PyErr_Occurred()) SWIG_fail;
15947 }
15948 Py_INCREF(Py_None); resultobj = Py_None;
15949 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15950 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15951 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15952 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15953 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15954 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15955 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
15956 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
15957 {
15958 if (temp2)
15959 delete arg2;
15960 }
15961 return resultobj;
15962 fail:
15963 {
15964 if (temp2)
15965 delete arg2;
15966 }
15967 return NULL;
15968 }
15969
15970
15971 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj = NULL;
15973 wxDC *arg1 = (wxDC *) 0 ;
15974 wxString *arg2 = 0 ;
15975 int *arg3 = (int *) 0 ;
15976 int *arg4 = (int *) 0 ;
15977 int *arg5 = (int *) 0 ;
15978 wxFont *arg6 = (wxFont *) NULL ;
15979 bool temp2 = false ;
15980 int temp3 ;
15981 int res3 = 0 ;
15982 int temp4 ;
15983 int res4 = 0 ;
15984 int temp5 ;
15985 int res5 = 0 ;
15986 PyObject * obj0 = 0 ;
15987 PyObject * obj1 = 0 ;
15988 PyObject * obj2 = 0 ;
15989 char *kwnames[] = {
15990 (char *) "self",(char *) "text",(char *) "font", NULL
15991 };
15992
15993 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15994 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15995 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15997 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15998 if (SWIG_arg_fail(1)) SWIG_fail;
15999 {
16000 arg2 = wxString_in_helper(obj1);
16001 if (arg2 == NULL) SWIG_fail;
16002 temp2 = true;
16003 }
16004 if (obj2) {
16005 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
16006 if (SWIG_arg_fail(6)) SWIG_fail;
16007 }
16008 {
16009 PyThreadState* __tstate = wxPyBeginAllowThreads();
16010 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
16011
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 Py_INCREF(Py_None); resultobj = Py_None;
16016 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16017 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16018 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16019 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16020 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
16021 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
16022 {
16023 if (temp2)
16024 delete arg2;
16025 }
16026 return resultobj;
16027 fail:
16028 {
16029 if (temp2)
16030 delete arg2;
16031 }
16032 return NULL;
16033 }
16034
16035
16036 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
16037 PyObject *resultobj = NULL;
16038 wxDC *arg1 = (wxDC *) 0 ;
16039 wxString *arg2 = 0 ;
16040 wxArrayInt result;
16041 bool temp2 = false ;
16042 PyObject * obj0 = 0 ;
16043 PyObject * obj1 = 0 ;
16044 char *kwnames[] = {
16045 (char *) "self",(char *) "text", NULL
16046 };
16047
16048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
16049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16050 if (SWIG_arg_fail(1)) SWIG_fail;
16051 {
16052 arg2 = wxString_in_helper(obj1);
16053 if (arg2 == NULL) SWIG_fail;
16054 temp2 = true;
16055 }
16056 {
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
16059
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064 resultobj = PyList_New(0);
16065 size_t idx;
16066 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
16067 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
16068 PyList_Append(resultobj, val);
16069 Py_DECREF(val);
16070 }
16071 }
16072 {
16073 if (temp2)
16074 delete arg2;
16075 }
16076 return resultobj;
16077 fail:
16078 {
16079 if (temp2)
16080 delete arg2;
16081 }
16082 return NULL;
16083 }
16084
16085
16086 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16087 PyObject *resultobj = NULL;
16088 wxDC *arg1 = (wxDC *) 0 ;
16089 wxSize result;
16090 PyObject * obj0 = 0 ;
16091 char *kwnames[] = {
16092 (char *) "self", NULL
16093 };
16094
16095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
16096 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16097 if (SWIG_arg_fail(1)) SWIG_fail;
16098 {
16099 PyThreadState* __tstate = wxPyBeginAllowThreads();
16100 result = (arg1)->GetSize();
16101
16102 wxPyEndAllowThreads(__tstate);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 }
16105 {
16106 wxSize * resultptr;
16107 resultptr = new wxSize(static_cast<wxSize & >(result));
16108 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16109 }
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj = NULL;
16118 wxDC *arg1 = (wxDC *) 0 ;
16119 int *arg2 = (int *) 0 ;
16120 int *arg3 = (int *) 0 ;
16121 int temp2 ;
16122 int res2 = 0 ;
16123 int temp3 ;
16124 int res3 = 0 ;
16125 PyObject * obj0 = 0 ;
16126 char *kwnames[] = {
16127 (char *) "self", NULL
16128 };
16129
16130 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16131 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
16133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16134 if (SWIG_arg_fail(1)) SWIG_fail;
16135 {
16136 PyThreadState* __tstate = wxPyBeginAllowThreads();
16137 (arg1)->GetSize(arg2,arg3);
16138
16139 wxPyEndAllowThreads(__tstate);
16140 if (PyErr_Occurred()) SWIG_fail;
16141 }
16142 Py_INCREF(Py_None); resultobj = Py_None;
16143 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16144 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16145 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16146 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16147 return resultobj;
16148 fail:
16149 return NULL;
16150 }
16151
16152
16153 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
16154 PyObject *resultobj = NULL;
16155 wxDC *arg1 = (wxDC *) 0 ;
16156 wxSize result;
16157 PyObject * obj0 = 0 ;
16158 char *kwnames[] = {
16159 (char *) "self", NULL
16160 };
16161
16162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
16163 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16164 if (SWIG_arg_fail(1)) SWIG_fail;
16165 {
16166 PyThreadState* __tstate = wxPyBeginAllowThreads();
16167 result = ((wxDC const *)arg1)->GetSizeMM();
16168
16169 wxPyEndAllowThreads(__tstate);
16170 if (PyErr_Occurred()) SWIG_fail;
16171 }
16172 {
16173 wxSize * resultptr;
16174 resultptr = new wxSize(static_cast<wxSize & >(result));
16175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16176 }
16177 return resultobj;
16178 fail:
16179 return NULL;
16180 }
16181
16182
16183 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16184 PyObject *resultobj = NULL;
16185 wxDC *arg1 = (wxDC *) 0 ;
16186 int *arg2 = (int *) 0 ;
16187 int *arg3 = (int *) 0 ;
16188 int temp2 ;
16189 int res2 = 0 ;
16190 int temp3 ;
16191 int res3 = 0 ;
16192 PyObject * obj0 = 0 ;
16193 char *kwnames[] = {
16194 (char *) "self", NULL
16195 };
16196
16197 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16198 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
16200 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16201 if (SWIG_arg_fail(1)) SWIG_fail;
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
16205
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 Py_INCREF(Py_None); resultobj = Py_None;
16210 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16211 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16212 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16213 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16214 return resultobj;
16215 fail:
16216 return NULL;
16217 }
16218
16219
16220 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj = NULL;
16222 wxDC *arg1 = (wxDC *) 0 ;
16223 int arg2 ;
16224 int result;
16225 PyObject * obj0 = 0 ;
16226 PyObject * obj1 = 0 ;
16227 char *kwnames[] = {
16228 (char *) "self",(char *) "x", NULL
16229 };
16230
16231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
16232 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16233 if (SWIG_arg_fail(1)) SWIG_fail;
16234 {
16235 arg2 = static_cast<int >(SWIG_As_int(obj1));
16236 if (SWIG_arg_fail(2)) SWIG_fail;
16237 }
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
16241
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 {
16246 resultobj = SWIG_From_int(static_cast<int >(result));
16247 }
16248 return resultobj;
16249 fail:
16250 return NULL;
16251 }
16252
16253
16254 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
16255 PyObject *resultobj = NULL;
16256 wxDC *arg1 = (wxDC *) 0 ;
16257 int arg2 ;
16258 int result;
16259 PyObject * obj0 = 0 ;
16260 PyObject * obj1 = 0 ;
16261 char *kwnames[] = {
16262 (char *) "self",(char *) "y", NULL
16263 };
16264
16265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
16266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16267 if (SWIG_arg_fail(1)) SWIG_fail;
16268 {
16269 arg2 = static_cast<int >(SWIG_As_int(obj1));
16270 if (SWIG_arg_fail(2)) SWIG_fail;
16271 }
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
16275
16276 wxPyEndAllowThreads(__tstate);
16277 if (PyErr_Occurred()) SWIG_fail;
16278 }
16279 {
16280 resultobj = SWIG_From_int(static_cast<int >(result));
16281 }
16282 return resultobj;
16283 fail:
16284 return NULL;
16285 }
16286
16287
16288 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj = NULL;
16290 wxDC *arg1 = (wxDC *) 0 ;
16291 int arg2 ;
16292 int result;
16293 PyObject * obj0 = 0 ;
16294 PyObject * obj1 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self",(char *) "x", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
16300 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16301 if (SWIG_arg_fail(1)) SWIG_fail;
16302 {
16303 arg2 = static_cast<int >(SWIG_As_int(obj1));
16304 if (SWIG_arg_fail(2)) SWIG_fail;
16305 }
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 {
16314 resultobj = SWIG_From_int(static_cast<int >(result));
16315 }
16316 return resultobj;
16317 fail:
16318 return NULL;
16319 }
16320
16321
16322 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj = NULL;
16324 wxDC *arg1 = (wxDC *) 0 ;
16325 int arg2 ;
16326 int result;
16327 PyObject * obj0 = 0 ;
16328 PyObject * obj1 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self",(char *) "y", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
16334 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16335 if (SWIG_arg_fail(1)) SWIG_fail;
16336 {
16337 arg2 = static_cast<int >(SWIG_As_int(obj1));
16338 if (SWIG_arg_fail(2)) SWIG_fail;
16339 }
16340 {
16341 PyThreadState* __tstate = wxPyBeginAllowThreads();
16342 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
16343
16344 wxPyEndAllowThreads(__tstate);
16345 if (PyErr_Occurred()) SWIG_fail;
16346 }
16347 {
16348 resultobj = SWIG_From_int(static_cast<int >(result));
16349 }
16350 return resultobj;
16351 fail:
16352 return NULL;
16353 }
16354
16355
16356 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
16357 PyObject *resultobj = NULL;
16358 wxDC *arg1 = (wxDC *) 0 ;
16359 int arg2 ;
16360 int result;
16361 PyObject * obj0 = 0 ;
16362 PyObject * obj1 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "self",(char *) "x", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
16368 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16369 if (SWIG_arg_fail(1)) SWIG_fail;
16370 {
16371 arg2 = static_cast<int >(SWIG_As_int(obj1));
16372 if (SWIG_arg_fail(2)) SWIG_fail;
16373 }
16374 {
16375 PyThreadState* __tstate = wxPyBeginAllowThreads();
16376 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
16377
16378 wxPyEndAllowThreads(__tstate);
16379 if (PyErr_Occurred()) SWIG_fail;
16380 }
16381 {
16382 resultobj = SWIG_From_int(static_cast<int >(result));
16383 }
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj = NULL;
16392 wxDC *arg1 = (wxDC *) 0 ;
16393 int arg2 ;
16394 int result;
16395 PyObject * obj0 = 0 ;
16396 PyObject * obj1 = 0 ;
16397 char *kwnames[] = {
16398 (char *) "self",(char *) "y", NULL
16399 };
16400
16401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
16402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16403 if (SWIG_arg_fail(1)) SWIG_fail;
16404 {
16405 arg2 = static_cast<int >(SWIG_As_int(obj1));
16406 if (SWIG_arg_fail(2)) SWIG_fail;
16407 }
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
16411
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 {
16416 resultobj = SWIG_From_int(static_cast<int >(result));
16417 }
16418 return resultobj;
16419 fail:
16420 return NULL;
16421 }
16422
16423
16424 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
16425 PyObject *resultobj = NULL;
16426 wxDC *arg1 = (wxDC *) 0 ;
16427 int arg2 ;
16428 int result;
16429 PyObject * obj0 = 0 ;
16430 PyObject * obj1 = 0 ;
16431 char *kwnames[] = {
16432 (char *) "self",(char *) "x", NULL
16433 };
16434
16435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
16436 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16437 if (SWIG_arg_fail(1)) SWIG_fail;
16438 {
16439 arg2 = static_cast<int >(SWIG_As_int(obj1));
16440 if (SWIG_arg_fail(2)) SWIG_fail;
16441 }
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
16445
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 {
16450 resultobj = SWIG_From_int(static_cast<int >(result));
16451 }
16452 return resultobj;
16453 fail:
16454 return NULL;
16455 }
16456
16457
16458 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj = NULL;
16460 wxDC *arg1 = (wxDC *) 0 ;
16461 int arg2 ;
16462 int result;
16463 PyObject * obj0 = 0 ;
16464 PyObject * obj1 = 0 ;
16465 char *kwnames[] = {
16466 (char *) "self",(char *) "y", NULL
16467 };
16468
16469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
16470 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16471 if (SWIG_arg_fail(1)) SWIG_fail;
16472 {
16473 arg2 = static_cast<int >(SWIG_As_int(obj1));
16474 if (SWIG_arg_fail(2)) SWIG_fail;
16475 }
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
16479
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 {
16484 resultobj = SWIG_From_int(static_cast<int >(result));
16485 }
16486 return resultobj;
16487 fail:
16488 return NULL;
16489 }
16490
16491
16492 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj = NULL;
16494 wxDC *arg1 = (wxDC *) 0 ;
16495 bool result;
16496 PyObject * obj0 = 0 ;
16497 char *kwnames[] = {
16498 (char *) "self", NULL
16499 };
16500
16501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
16502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16503 if (SWIG_arg_fail(1)) SWIG_fail;
16504 {
16505 PyThreadState* __tstate = wxPyBeginAllowThreads();
16506 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
16507
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 {
16512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16513 }
16514 return resultobj;
16515 fail:
16516 return NULL;
16517 }
16518
16519
16520 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj = NULL;
16522 wxDC *arg1 = (wxDC *) 0 ;
16523 bool result;
16524 PyObject * obj0 = 0 ;
16525 char *kwnames[] = {
16526 (char *) "self", NULL
16527 };
16528
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
16530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16531 if (SWIG_arg_fail(1)) SWIG_fail;
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 {
16540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16541 }
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj = NULL;
16550 wxDC *arg1 = (wxDC *) 0 ;
16551 int result;
16552 PyObject * obj0 = 0 ;
16553 char *kwnames[] = {
16554 (char *) "self", NULL
16555 };
16556
16557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
16558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16559 if (SWIG_arg_fail(1)) SWIG_fail;
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 result = (int)((wxDC const *)arg1)->GetDepth();
16563
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 resultobj = SWIG_From_int(static_cast<int >(result));
16569 }
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj = NULL;
16578 wxDC *arg1 = (wxDC *) 0 ;
16579 wxSize result;
16580 PyObject * obj0 = 0 ;
16581 char *kwnames[] = {
16582 (char *) "self", NULL
16583 };
16584
16585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
16586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16587 if (SWIG_arg_fail(1)) SWIG_fail;
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 result = ((wxDC const *)arg1)->GetPPI();
16591
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 {
16596 wxSize * resultptr;
16597 resultptr = new wxSize(static_cast<wxSize & >(result));
16598 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16599 }
16600 return resultobj;
16601 fail:
16602 return NULL;
16603 }
16604
16605
16606 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
16607 PyObject *resultobj = NULL;
16608 wxDC *arg1 = (wxDC *) 0 ;
16609 bool result;
16610 PyObject * obj0 = 0 ;
16611 char *kwnames[] = {
16612 (char *) "self", NULL
16613 };
16614
16615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
16616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16617 if (SWIG_arg_fail(1)) SWIG_fail;
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 result = (bool)((wxDC const *)arg1)->Ok();
16621
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 {
16626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16627 }
16628 return resultobj;
16629 fail:
16630 return NULL;
16631 }
16632
16633
16634 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
16635 PyObject *resultobj = NULL;
16636 wxDC *arg1 = (wxDC *) 0 ;
16637 int result;
16638 PyObject * obj0 = 0 ;
16639 char *kwnames[] = {
16640 (char *) "self", NULL
16641 };
16642
16643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
16644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16645 if (SWIG_arg_fail(1)) SWIG_fail;
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
16649
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 {
16654 resultobj = SWIG_From_int(static_cast<int >(result));
16655 }
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj = NULL;
16664 wxDC *arg1 = (wxDC *) 0 ;
16665 wxBrush *result;
16666 PyObject * obj0 = 0 ;
16667 char *kwnames[] = {
16668 (char *) "self", NULL
16669 };
16670
16671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
16672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16673 if (SWIG_arg_fail(1)) SWIG_fail;
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 {
16677 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
16678 result = (wxBrush *) &_result_ref;
16679 }
16680
16681 wxPyEndAllowThreads(__tstate);
16682 if (PyErr_Occurred()) SWIG_fail;
16683 }
16684 {
16685 wxBrush* resultptr = new wxBrush(*result);
16686 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16687 }
16688 return resultobj;
16689 fail:
16690 return NULL;
16691 }
16692
16693
16694 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
16695 PyObject *resultobj = NULL;
16696 wxDC *arg1 = (wxDC *) 0 ;
16697 wxBrush *result;
16698 PyObject * obj0 = 0 ;
16699 char *kwnames[] = {
16700 (char *) "self", NULL
16701 };
16702
16703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
16704 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16705 if (SWIG_arg_fail(1)) SWIG_fail;
16706 {
16707 PyThreadState* __tstate = wxPyBeginAllowThreads();
16708 {
16709 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
16710 result = (wxBrush *) &_result_ref;
16711 }
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 {
16717 wxBrush* resultptr = new wxBrush(*result);
16718 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16719 }
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj = NULL;
16728 wxDC *arg1 = (wxDC *) 0 ;
16729 wxFont *result;
16730 PyObject * obj0 = 0 ;
16731 char *kwnames[] = {
16732 (char *) "self", NULL
16733 };
16734
16735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
16736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16737 if (SWIG_arg_fail(1)) SWIG_fail;
16738 {
16739 PyThreadState* __tstate = wxPyBeginAllowThreads();
16740 {
16741 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
16742 result = (wxFont *) &_result_ref;
16743 }
16744
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 wxFont* resultptr = new wxFont(*result);
16750 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16751 }
16752 return resultobj;
16753 fail:
16754 return NULL;
16755 }
16756
16757
16758 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj = NULL;
16760 wxDC *arg1 = (wxDC *) 0 ;
16761 wxPen *result;
16762 PyObject * obj0 = 0 ;
16763 char *kwnames[] = {
16764 (char *) "self", NULL
16765 };
16766
16767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16769 if (SWIG_arg_fail(1)) SWIG_fail;
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 {
16773 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16774 result = (wxPen *) &_result_ref;
16775 }
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 {
16781 wxPen* resultptr = new wxPen(*result);
16782 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
16783 }
16784 return resultobj;
16785 fail:
16786 return NULL;
16787 }
16788
16789
16790 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16791 PyObject *resultobj = NULL;
16792 wxDC *arg1 = (wxDC *) 0 ;
16793 wxColour *result;
16794 PyObject * obj0 = 0 ;
16795 char *kwnames[] = {
16796 (char *) "self", NULL
16797 };
16798
16799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16801 if (SWIG_arg_fail(1)) SWIG_fail;
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 {
16805 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16806 result = (wxColour *) &_result_ref;
16807 }
16808
16809 wxPyEndAllowThreads(__tstate);
16810 if (PyErr_Occurred()) SWIG_fail;
16811 }
16812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16813 return resultobj;
16814 fail:
16815 return NULL;
16816 }
16817
16818
16819 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16820 PyObject *resultobj = NULL;
16821 wxDC *arg1 = (wxDC *) 0 ;
16822 wxColour *result;
16823 PyObject * obj0 = 0 ;
16824 char *kwnames[] = {
16825 (char *) "self", NULL
16826 };
16827
16828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16830 if (SWIG_arg_fail(1)) SWIG_fail;
16831 {
16832 PyThreadState* __tstate = wxPyBeginAllowThreads();
16833 {
16834 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16835 result = (wxColour *) &_result_ref;
16836 }
16837
16838 wxPyEndAllowThreads(__tstate);
16839 if (PyErr_Occurred()) SWIG_fail;
16840 }
16841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16842 return resultobj;
16843 fail:
16844 return NULL;
16845 }
16846
16847
16848 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16849 PyObject *resultobj = NULL;
16850 wxDC *arg1 = (wxDC *) 0 ;
16851 wxColour *arg2 = 0 ;
16852 wxColour temp2 ;
16853 PyObject * obj0 = 0 ;
16854 PyObject * obj1 = 0 ;
16855 char *kwnames[] = {
16856 (char *) "self",(char *) "colour", NULL
16857 };
16858
16859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16861 if (SWIG_arg_fail(1)) SWIG_fail;
16862 {
16863 arg2 = &temp2;
16864 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16865 }
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 (arg1)->SetTextForeground((wxColour const &)*arg2);
16869
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 Py_INCREF(Py_None); resultobj = Py_None;
16874 return resultobj;
16875 fail:
16876 return NULL;
16877 }
16878
16879
16880 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj = NULL;
16882 wxDC *arg1 = (wxDC *) 0 ;
16883 wxColour *arg2 = 0 ;
16884 wxColour temp2 ;
16885 PyObject * obj0 = 0 ;
16886 PyObject * obj1 = 0 ;
16887 char *kwnames[] = {
16888 (char *) "self",(char *) "colour", NULL
16889 };
16890
16891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16893 if (SWIG_arg_fail(1)) SWIG_fail;
16894 {
16895 arg2 = &temp2;
16896 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16897 }
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 (arg1)->SetTextBackground((wxColour const &)*arg2);
16901
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 Py_INCREF(Py_None); resultobj = Py_None;
16906 return resultobj;
16907 fail:
16908 return NULL;
16909 }
16910
16911
16912 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj = NULL;
16914 wxDC *arg1 = (wxDC *) 0 ;
16915 int result;
16916 PyObject * obj0 = 0 ;
16917 char *kwnames[] = {
16918 (char *) "self", NULL
16919 };
16920
16921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16923 if (SWIG_arg_fail(1)) SWIG_fail;
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = (int)((wxDC const *)arg1)->GetMapMode();
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 {
16932 resultobj = SWIG_From_int(static_cast<int >(result));
16933 }
16934 return resultobj;
16935 fail:
16936 return NULL;
16937 }
16938
16939
16940 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16941 PyObject *resultobj = NULL;
16942 wxDC *arg1 = (wxDC *) 0 ;
16943 int arg2 ;
16944 PyObject * obj0 = 0 ;
16945 PyObject * obj1 = 0 ;
16946 char *kwnames[] = {
16947 (char *) "self",(char *) "mode", NULL
16948 };
16949
16950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
16951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16952 if (SWIG_arg_fail(1)) SWIG_fail;
16953 {
16954 arg2 = static_cast<int >(SWIG_As_int(obj1));
16955 if (SWIG_arg_fail(2)) SWIG_fail;
16956 }
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 (arg1)->SetMapMode(arg2);
16960
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 Py_INCREF(Py_None); resultobj = Py_None;
16965 return resultobj;
16966 fail:
16967 return NULL;
16968 }
16969
16970
16971 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
16972 PyObject *resultobj = NULL;
16973 wxDC *arg1 = (wxDC *) 0 ;
16974 double *arg2 = (double *) 0 ;
16975 double *arg3 = (double *) 0 ;
16976 double temp2 ;
16977 int res2 = 0 ;
16978 double temp3 ;
16979 int res3 = 0 ;
16980 PyObject * obj0 = 0 ;
16981 char *kwnames[] = {
16982 (char *) "self", NULL
16983 };
16984
16985 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16986 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
16988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16989 if (SWIG_arg_fail(1)) SWIG_fail;
16990 {
16991 PyThreadState* __tstate = wxPyBeginAllowThreads();
16992 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
16993
16994 wxPyEndAllowThreads(__tstate);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 Py_INCREF(Py_None); resultobj = Py_None;
16998 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16999 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
17000 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17001 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj = NULL;
17010 wxDC *arg1 = (wxDC *) 0 ;
17011 double arg2 ;
17012 double arg3 ;
17013 PyObject * obj0 = 0 ;
17014 PyObject * obj1 = 0 ;
17015 PyObject * obj2 = 0 ;
17016 char *kwnames[] = {
17017 (char *) "self",(char *) "x",(char *) "y", NULL
17018 };
17019
17020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
17021 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17022 if (SWIG_arg_fail(1)) SWIG_fail;
17023 {
17024 arg2 = static_cast<double >(SWIG_As_double(obj1));
17025 if (SWIG_arg_fail(2)) SWIG_fail;
17026 }
17027 {
17028 arg3 = static_cast<double >(SWIG_As_double(obj2));
17029 if (SWIG_arg_fail(3)) SWIG_fail;
17030 }
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 (arg1)->SetUserScale(arg2,arg3);
17034
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 Py_INCREF(Py_None); resultobj = Py_None;
17039 return resultobj;
17040 fail:
17041 return NULL;
17042 }
17043
17044
17045 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj = NULL;
17047 wxDC *arg1 = (wxDC *) 0 ;
17048 double *arg2 = (double *) 0 ;
17049 double *arg3 = (double *) 0 ;
17050 double temp2 ;
17051 int res2 = 0 ;
17052 double temp3 ;
17053 int res3 = 0 ;
17054 PyObject * obj0 = 0 ;
17055 char *kwnames[] = {
17056 (char *) "self", NULL
17057 };
17058
17059 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17060 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
17062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17063 if (SWIG_arg_fail(1)) SWIG_fail;
17064 {
17065 PyThreadState* __tstate = wxPyBeginAllowThreads();
17066 (arg1)->GetLogicalScale(arg2,arg3);
17067
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 Py_INCREF(Py_None); resultobj = Py_None;
17072 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17073 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
17074 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17075 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
17076 return resultobj;
17077 fail:
17078 return NULL;
17079 }
17080
17081
17082 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
17083 PyObject *resultobj = NULL;
17084 wxDC *arg1 = (wxDC *) 0 ;
17085 double arg2 ;
17086 double arg3 ;
17087 PyObject * obj0 = 0 ;
17088 PyObject * obj1 = 0 ;
17089 PyObject * obj2 = 0 ;
17090 char *kwnames[] = {
17091 (char *) "self",(char *) "x",(char *) "y", NULL
17092 };
17093
17094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
17095 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17096 if (SWIG_arg_fail(1)) SWIG_fail;
17097 {
17098 arg2 = static_cast<double >(SWIG_As_double(obj1));
17099 if (SWIG_arg_fail(2)) SWIG_fail;
17100 }
17101 {
17102 arg3 = static_cast<double >(SWIG_As_double(obj2));
17103 if (SWIG_arg_fail(3)) SWIG_fail;
17104 }
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 (arg1)->SetLogicalScale(arg2,arg3);
17108
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 Py_INCREF(Py_None); resultobj = Py_None;
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj = NULL;
17121 wxDC *arg1 = (wxDC *) 0 ;
17122 wxPoint result;
17123 PyObject * obj0 = 0 ;
17124 char *kwnames[] = {
17125 (char *) "self", NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
17129 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17130 if (SWIG_arg_fail(1)) SWIG_fail;
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = ((wxDC const *)arg1)->GetLogicalOrigin();
17134
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 {
17139 wxPoint * resultptr;
17140 resultptr = new wxPoint(static_cast<wxPoint & >(result));
17141 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17142 }
17143 return resultobj;
17144 fail:
17145 return NULL;
17146 }
17147
17148
17149 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj = NULL;
17151 wxDC *arg1 = (wxDC *) 0 ;
17152 int *arg2 = (int *) 0 ;
17153 int *arg3 = (int *) 0 ;
17154 int temp2 ;
17155 int res2 = 0 ;
17156 int temp3 ;
17157 int res3 = 0 ;
17158 PyObject * obj0 = 0 ;
17159 char *kwnames[] = {
17160 (char *) "self", NULL
17161 };
17162
17163 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17164 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
17166 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17167 if (SWIG_arg_fail(1)) SWIG_fail;
17168 {
17169 PyThreadState* __tstate = wxPyBeginAllowThreads();
17170 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
17171
17172 wxPyEndAllowThreads(__tstate);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 Py_INCREF(Py_None); resultobj = Py_None;
17176 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17177 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17178 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17179 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17180 return resultobj;
17181 fail:
17182 return NULL;
17183 }
17184
17185
17186 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17187 PyObject *resultobj = NULL;
17188 wxDC *arg1 = (wxDC *) 0 ;
17189 int arg2 ;
17190 int arg3 ;
17191 PyObject * obj0 = 0 ;
17192 PyObject * obj1 = 0 ;
17193 PyObject * obj2 = 0 ;
17194 char *kwnames[] = {
17195 (char *) "self",(char *) "x",(char *) "y", NULL
17196 };
17197
17198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17200 if (SWIG_arg_fail(1)) SWIG_fail;
17201 {
17202 arg2 = static_cast<int >(SWIG_As_int(obj1));
17203 if (SWIG_arg_fail(2)) SWIG_fail;
17204 }
17205 {
17206 arg3 = static_cast<int >(SWIG_As_int(obj2));
17207 if (SWIG_arg_fail(3)) SWIG_fail;
17208 }
17209 {
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 (arg1)->SetLogicalOrigin(arg2,arg3);
17212
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 Py_INCREF(Py_None); resultobj = Py_None;
17217 return resultobj;
17218 fail:
17219 return NULL;
17220 }
17221
17222
17223 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17224 PyObject *resultobj = NULL;
17225 wxDC *arg1 = (wxDC *) 0 ;
17226 wxPoint *arg2 = 0 ;
17227 wxPoint temp2 ;
17228 PyObject * obj0 = 0 ;
17229 PyObject * obj1 = 0 ;
17230 char *kwnames[] = {
17231 (char *) "self",(char *) "point", NULL
17232 };
17233
17234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17236 if (SWIG_arg_fail(1)) SWIG_fail;
17237 {
17238 arg2 = &temp2;
17239 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17240 }
17241 {
17242 PyThreadState* __tstate = wxPyBeginAllowThreads();
17243 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
17244
17245 wxPyEndAllowThreads(__tstate);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 }
17248 Py_INCREF(Py_None); resultobj = Py_None;
17249 return resultobj;
17250 fail:
17251 return NULL;
17252 }
17253
17254
17255 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj = NULL;
17257 wxDC *arg1 = (wxDC *) 0 ;
17258 wxPoint result;
17259 PyObject * obj0 = 0 ;
17260 char *kwnames[] = {
17261 (char *) "self", NULL
17262 };
17263
17264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
17265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17266 if (SWIG_arg_fail(1)) SWIG_fail;
17267 {
17268 PyThreadState* __tstate = wxPyBeginAllowThreads();
17269 result = ((wxDC const *)arg1)->GetDeviceOrigin();
17270
17271 wxPyEndAllowThreads(__tstate);
17272 if (PyErr_Occurred()) SWIG_fail;
17273 }
17274 {
17275 wxPoint * resultptr;
17276 resultptr = new wxPoint(static_cast<wxPoint & >(result));
17277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17278 }
17279 return resultobj;
17280 fail:
17281 return NULL;
17282 }
17283
17284
17285 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj = NULL;
17287 wxDC *arg1 = (wxDC *) 0 ;
17288 int *arg2 = (int *) 0 ;
17289 int *arg3 = (int *) 0 ;
17290 int temp2 ;
17291 int res2 = 0 ;
17292 int temp3 ;
17293 int res3 = 0 ;
17294 PyObject * obj0 = 0 ;
17295 char *kwnames[] = {
17296 (char *) "self", NULL
17297 };
17298
17299 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17300 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
17302 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17303 if (SWIG_arg_fail(1)) SWIG_fail;
17304 {
17305 PyThreadState* __tstate = wxPyBeginAllowThreads();
17306 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
17307
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 Py_INCREF(Py_None); resultobj = Py_None;
17312 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17313 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17314 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17315 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17316 return resultobj;
17317 fail:
17318 return NULL;
17319 }
17320
17321
17322 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17323 PyObject *resultobj = NULL;
17324 wxDC *arg1 = (wxDC *) 0 ;
17325 int arg2 ;
17326 int arg3 ;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 PyObject * obj2 = 0 ;
17330 char *kwnames[] = {
17331 (char *) "self",(char *) "x",(char *) "y", NULL
17332 };
17333
17334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17335 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17336 if (SWIG_arg_fail(1)) SWIG_fail;
17337 {
17338 arg2 = static_cast<int >(SWIG_As_int(obj1));
17339 if (SWIG_arg_fail(2)) SWIG_fail;
17340 }
17341 {
17342 arg3 = static_cast<int >(SWIG_As_int(obj2));
17343 if (SWIG_arg_fail(3)) SWIG_fail;
17344 }
17345 {
17346 PyThreadState* __tstate = wxPyBeginAllowThreads();
17347 (arg1)->SetDeviceOrigin(arg2,arg3);
17348
17349 wxPyEndAllowThreads(__tstate);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 Py_INCREF(Py_None); resultobj = Py_None;
17353 return resultobj;
17354 fail:
17355 return NULL;
17356 }
17357
17358
17359 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17360 PyObject *resultobj = NULL;
17361 wxDC *arg1 = (wxDC *) 0 ;
17362 wxPoint *arg2 = 0 ;
17363 wxPoint temp2 ;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "self",(char *) "point", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17372 if (SWIG_arg_fail(1)) SWIG_fail;
17373 {
17374 arg2 = &temp2;
17375 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17376 }
17377 {
17378 PyThreadState* __tstate = wxPyBeginAllowThreads();
17379 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
17380
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 Py_INCREF(Py_None); resultobj = Py_None;
17385 return resultobj;
17386 fail:
17387 return NULL;
17388 }
17389
17390
17391 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
17392 PyObject *resultobj = NULL;
17393 wxDC *arg1 = (wxDC *) 0 ;
17394 bool arg2 ;
17395 bool arg3 ;
17396 PyObject * obj0 = 0 ;
17397 PyObject * obj1 = 0 ;
17398 PyObject * obj2 = 0 ;
17399 char *kwnames[] = {
17400 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
17401 };
17402
17403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
17404 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17405 if (SWIG_arg_fail(1)) SWIG_fail;
17406 {
17407 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17408 if (SWIG_arg_fail(2)) SWIG_fail;
17409 }
17410 {
17411 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
17412 if (SWIG_arg_fail(3)) SWIG_fail;
17413 }
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 (arg1)->SetAxisOrientation(arg2,arg3);
17417
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 Py_INCREF(Py_None); resultobj = Py_None;
17422 return resultobj;
17423 fail:
17424 return NULL;
17425 }
17426
17427
17428 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj = NULL;
17430 wxDC *arg1 = (wxDC *) 0 ;
17431 int result;
17432 PyObject * obj0 = 0 ;
17433 char *kwnames[] = {
17434 (char *) "self", NULL
17435 };
17436
17437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
17438 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17439 if (SWIG_arg_fail(1)) SWIG_fail;
17440 {
17441 PyThreadState* __tstate = wxPyBeginAllowThreads();
17442 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
17443
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 {
17448 resultobj = SWIG_From_int(static_cast<int >(result));
17449 }
17450 return resultobj;
17451 fail:
17452 return NULL;
17453 }
17454
17455
17456 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj = NULL;
17458 wxDC *arg1 = (wxDC *) 0 ;
17459 int arg2 ;
17460 PyObject * obj0 = 0 ;
17461 PyObject * obj1 = 0 ;
17462 char *kwnames[] = {
17463 (char *) "self",(char *) "function", NULL
17464 };
17465
17466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
17467 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17468 if (SWIG_arg_fail(1)) SWIG_fail;
17469 {
17470 arg2 = static_cast<int >(SWIG_As_int(obj1));
17471 if (SWIG_arg_fail(2)) SWIG_fail;
17472 }
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 (arg1)->SetLogicalFunction(arg2);
17476
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 Py_INCREF(Py_None); resultobj = Py_None;
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj = NULL;
17489 wxDC *arg1 = (wxDC *) 0 ;
17490 PyObject * obj0 = 0 ;
17491 char *kwnames[] = {
17492 (char *) "self", NULL
17493 };
17494
17495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail;
17496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17497 if (SWIG_arg_fail(1)) SWIG_fail;
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 (arg1)->ComputeScaleAndOrigin();
17501
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 Py_INCREF(Py_None); resultobj = Py_None;
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj = NULL;
17514 wxDC *arg1 = (wxDC *) 0 ;
17515 int arg2 ;
17516 int arg3 ;
17517 PyObject * obj0 = 0 ;
17518 PyObject * obj1 = 0 ;
17519 PyObject * obj2 = 0 ;
17520 char *kwnames[] = {
17521 (char *) "self",(char *) "x",(char *) "y", NULL
17522 };
17523
17524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
17525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17526 if (SWIG_arg_fail(1)) SWIG_fail;
17527 {
17528 arg2 = static_cast<int >(SWIG_As_int(obj1));
17529 if (SWIG_arg_fail(2)) SWIG_fail;
17530 }
17531 {
17532 arg3 = static_cast<int >(SWIG_As_int(obj2));
17533 if (SWIG_arg_fail(3)) SWIG_fail;
17534 }
17535 {
17536 PyThreadState* __tstate = wxPyBeginAllowThreads();
17537 (arg1)->CalcBoundingBox(arg2,arg3);
17538
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 Py_INCREF(Py_None); resultobj = Py_None;
17543 return resultobj;
17544 fail:
17545 return NULL;
17546 }
17547
17548
17549 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17550 PyObject *resultobj = NULL;
17551 wxDC *arg1 = (wxDC *) 0 ;
17552 wxPoint *arg2 = 0 ;
17553 wxPoint temp2 ;
17554 PyObject * obj0 = 0 ;
17555 PyObject * obj1 = 0 ;
17556 char *kwnames[] = {
17557 (char *) "self",(char *) "point", NULL
17558 };
17559
17560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
17561 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17562 if (SWIG_arg_fail(1)) SWIG_fail;
17563 {
17564 arg2 = &temp2;
17565 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17566 }
17567 {
17568 PyThreadState* __tstate = wxPyBeginAllowThreads();
17569 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
17570
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 Py_INCREF(Py_None); resultobj = Py_None;
17575 return resultobj;
17576 fail:
17577 return NULL;
17578 }
17579
17580
17581 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj = NULL;
17583 wxDC *arg1 = (wxDC *) 0 ;
17584 PyObject * obj0 = 0 ;
17585 char *kwnames[] = {
17586 (char *) "self", NULL
17587 };
17588
17589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
17590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17591 if (SWIG_arg_fail(1)) SWIG_fail;
17592 {
17593 PyThreadState* __tstate = wxPyBeginAllowThreads();
17594 (arg1)->ResetBoundingBox();
17595
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 Py_INCREF(Py_None); resultobj = Py_None;
17600 return resultobj;
17601 fail:
17602 return NULL;
17603 }
17604
17605
17606 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = NULL;
17608 wxDC *arg1 = (wxDC *) 0 ;
17609 int result;
17610 PyObject * obj0 = 0 ;
17611 char *kwnames[] = {
17612 (char *) "self", NULL
17613 };
17614
17615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
17616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17617 if (SWIG_arg_fail(1)) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (int)((wxDC const *)arg1)->MinX();
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 {
17626 resultobj = SWIG_From_int(static_cast<int >(result));
17627 }
17628 return resultobj;
17629 fail:
17630 return NULL;
17631 }
17632
17633
17634 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
17635 PyObject *resultobj = NULL;
17636 wxDC *arg1 = (wxDC *) 0 ;
17637 int result;
17638 PyObject * obj0 = 0 ;
17639 char *kwnames[] = {
17640 (char *) "self", NULL
17641 };
17642
17643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
17644 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17645 if (SWIG_arg_fail(1)) SWIG_fail;
17646 {
17647 PyThreadState* __tstate = wxPyBeginAllowThreads();
17648 result = (int)((wxDC const *)arg1)->MaxX();
17649
17650 wxPyEndAllowThreads(__tstate);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 }
17653 {
17654 resultobj = SWIG_From_int(static_cast<int >(result));
17655 }
17656 return resultobj;
17657 fail:
17658 return NULL;
17659 }
17660
17661
17662 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
17663 PyObject *resultobj = NULL;
17664 wxDC *arg1 = (wxDC *) 0 ;
17665 int result;
17666 PyObject * obj0 = 0 ;
17667 char *kwnames[] = {
17668 (char *) "self", NULL
17669 };
17670
17671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
17672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17673 if (SWIG_arg_fail(1)) SWIG_fail;
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
17676 result = (int)((wxDC const *)arg1)->MinY();
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 {
17682 resultobj = SWIG_From_int(static_cast<int >(result));
17683 }
17684 return resultobj;
17685 fail:
17686 return NULL;
17687 }
17688
17689
17690 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj = NULL;
17692 wxDC *arg1 = (wxDC *) 0 ;
17693 int result;
17694 PyObject * obj0 = 0 ;
17695 char *kwnames[] = {
17696 (char *) "self", NULL
17697 };
17698
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
17700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17701 if (SWIG_arg_fail(1)) SWIG_fail;
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 result = (int)((wxDC const *)arg1)->MaxY();
17705
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 {
17710 resultobj = SWIG_From_int(static_cast<int >(result));
17711 }
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17719 PyObject *resultobj = NULL;
17720 wxDC *arg1 = (wxDC *) 0 ;
17721 int *arg2 = (int *) 0 ;
17722 int *arg3 = (int *) 0 ;
17723 int *arg4 = (int *) 0 ;
17724 int *arg5 = (int *) 0 ;
17725 int temp2 ;
17726 int res2 = 0 ;
17727 int temp3 ;
17728 int res3 = 0 ;
17729 int temp4 ;
17730 int res4 = 0 ;
17731 int temp5 ;
17732 int res5 = 0 ;
17733 PyObject * obj0 = 0 ;
17734 char *kwnames[] = {
17735 (char *) "self", NULL
17736 };
17737
17738 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17739 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17740 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17741 arg5 = &temp5; res5 = SWIG_NEWOBJ;
17742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
17743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17744 if (SWIG_arg_fail(1)) SWIG_fail;
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 Py_INCREF(Py_None); resultobj = Py_None;
17753 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17754 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17755 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17756 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17757 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17758 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17759 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17760 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
17761 return resultobj;
17762 fail:
17763 return NULL;
17764 }
17765
17766
17767 static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj = NULL;
17769 wxDC *arg1 = (wxDC *) 0 ;
17770 long result;
17771 PyObject * obj0 = 0 ;
17772 char *kwnames[] = {
17773 (char *) "self", NULL
17774 };
17775
17776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
17777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17778 if (SWIG_arg_fail(1)) SWIG_fail;
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 result = (long)(arg1)->GetHDC();
17782
17783 wxPyEndAllowThreads(__tstate);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 {
17787 resultobj = SWIG_From_long(static_cast<long >(result));
17788 }
17789 return resultobj;
17790 fail:
17791 return NULL;
17792 }
17793
17794
17795 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
17796 PyObject *resultobj = NULL;
17797 wxDC *arg1 = (wxDC *) 0 ;
17798 PyObject *arg2 = (PyObject *) 0 ;
17799 PyObject *arg3 = (PyObject *) 0 ;
17800 PyObject *arg4 = (PyObject *) 0 ;
17801 PyObject *result;
17802 PyObject * obj0 = 0 ;
17803 PyObject * obj1 = 0 ;
17804 PyObject * obj2 = 0 ;
17805 PyObject * obj3 = 0 ;
17806 char *kwnames[] = {
17807 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17808 };
17809
17810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17812 if (SWIG_arg_fail(1)) SWIG_fail;
17813 arg2 = obj1;
17814 arg3 = obj2;
17815 arg4 = obj3;
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
17819
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 resultobj = result;
17824 return resultobj;
17825 fail:
17826 return NULL;
17827 }
17828
17829
17830 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj = NULL;
17832 wxDC *arg1 = (wxDC *) 0 ;
17833 PyObject *arg2 = (PyObject *) 0 ;
17834 PyObject *arg3 = (PyObject *) 0 ;
17835 PyObject *arg4 = (PyObject *) 0 ;
17836 PyObject *result;
17837 PyObject * obj0 = 0 ;
17838 PyObject * obj1 = 0 ;
17839 PyObject * obj2 = 0 ;
17840 PyObject * obj3 = 0 ;
17841 char *kwnames[] = {
17842 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17843 };
17844
17845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17846 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17847 if (SWIG_arg_fail(1)) SWIG_fail;
17848 arg2 = obj1;
17849 arg3 = obj2;
17850 arg4 = obj3;
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
17854
17855 wxPyEndAllowThreads(__tstate);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 resultobj = result;
17859 return resultobj;
17860 fail:
17861 return NULL;
17862 }
17863
17864
17865 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
17866 PyObject *resultobj = NULL;
17867 wxDC *arg1 = (wxDC *) 0 ;
17868 PyObject *arg2 = (PyObject *) 0 ;
17869 PyObject *arg3 = (PyObject *) 0 ;
17870 PyObject *arg4 = (PyObject *) 0 ;
17871 PyObject *result;
17872 PyObject * obj0 = 0 ;
17873 PyObject * obj1 = 0 ;
17874 PyObject * obj2 = 0 ;
17875 PyObject * obj3 = 0 ;
17876 char *kwnames[] = {
17877 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17878 };
17879
17880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17881 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17882 if (SWIG_arg_fail(1)) SWIG_fail;
17883 arg2 = obj1;
17884 arg3 = obj2;
17885 arg4 = obj3;
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
17889
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = result;
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
17901 PyObject *resultobj = NULL;
17902 wxDC *arg1 = (wxDC *) 0 ;
17903 PyObject *arg2 = (PyObject *) 0 ;
17904 PyObject *arg3 = (PyObject *) 0 ;
17905 PyObject *arg4 = (PyObject *) 0 ;
17906 PyObject *result;
17907 PyObject * obj0 = 0 ;
17908 PyObject * obj1 = 0 ;
17909 PyObject * obj2 = 0 ;
17910 PyObject * obj3 = 0 ;
17911 char *kwnames[] = {
17912 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17913 };
17914
17915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17917 if (SWIG_arg_fail(1)) SWIG_fail;
17918 arg2 = obj1;
17919 arg3 = obj2;
17920 arg4 = obj3;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 resultobj = result;
17929 return resultobj;
17930 fail:
17931 return NULL;
17932 }
17933
17934
17935 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
17936 PyObject *resultobj = NULL;
17937 wxDC *arg1 = (wxDC *) 0 ;
17938 PyObject *arg2 = (PyObject *) 0 ;
17939 PyObject *arg3 = (PyObject *) 0 ;
17940 PyObject *arg4 = (PyObject *) 0 ;
17941 PyObject *result;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 PyObject * obj2 = 0 ;
17945 PyObject * obj3 = 0 ;
17946 char *kwnames[] = {
17947 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17948 };
17949
17950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17952 if (SWIG_arg_fail(1)) SWIG_fail;
17953 arg2 = obj1;
17954 arg3 = obj2;
17955 arg4 = obj3;
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
17959
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = result;
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj = NULL;
17972 wxDC *arg1 = (wxDC *) 0 ;
17973 PyObject *arg2 = (PyObject *) 0 ;
17974 PyObject *arg3 = (PyObject *) 0 ;
17975 PyObject *arg4 = (PyObject *) 0 ;
17976 PyObject *arg5 = (PyObject *) 0 ;
17977 PyObject *result;
17978 PyObject * obj0 = 0 ;
17979 PyObject * obj1 = 0 ;
17980 PyObject * obj2 = 0 ;
17981 PyObject * obj3 = 0 ;
17982 PyObject * obj4 = 0 ;
17983 char *kwnames[] = {
17984 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
17985 };
17986
17987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17989 if (SWIG_arg_fail(1)) SWIG_fail;
17990 arg2 = obj1;
17991 arg3 = obj2;
17992 arg4 = obj3;
17993 arg5 = obj4;
17994 {
17995 PyThreadState* __tstate = wxPyBeginAllowThreads();
17996 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
17997
17998 wxPyEndAllowThreads(__tstate);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 }
18001 resultobj = result;
18002 return resultobj;
18003 fail:
18004 return NULL;
18005 }
18006
18007
18008 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
18009 PyObject *obj;
18010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18011 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
18012 Py_INCREF(obj);
18013 return Py_BuildValue((char *)"");
18014 }
18015 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
18016 PyObject *resultobj = NULL;
18017 wxMemoryDC *result;
18018 char *kwnames[] = {
18019 NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
18023 {
18024 if (!wxPyCheckForApp()) SWIG_fail;
18025 PyThreadState* __tstate = wxPyBeginAllowThreads();
18026 result = (wxMemoryDC *)new wxMemoryDC();
18027
18028 wxPyEndAllowThreads(__tstate);
18029 if (PyErr_Occurred()) SWIG_fail;
18030 }
18031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
18032 return resultobj;
18033 fail:
18034 return NULL;
18035 }
18036
18037
18038 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
18039 PyObject *resultobj = NULL;
18040 wxDC *arg1 = (wxDC *) 0 ;
18041 wxMemoryDC *result;
18042 PyObject * obj0 = 0 ;
18043 char *kwnames[] = {
18044 (char *) "oldDC", NULL
18045 };
18046
18047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
18048 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18049 if (SWIG_arg_fail(1)) SWIG_fail;
18050 {
18051 if (!wxPyCheckForApp()) SWIG_fail;
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 result = (wxMemoryDC *)new wxMemoryDC(arg1);
18054
18055 wxPyEndAllowThreads(__tstate);
18056 if (PyErr_Occurred()) SWIG_fail;
18057 }
18058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
18059 return resultobj;
18060 fail:
18061 return NULL;
18062 }
18063
18064
18065 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
18066 PyObject *resultobj = NULL;
18067 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
18068 wxBitmap *arg2 = 0 ;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 char *kwnames[] = {
18072 (char *) "self",(char *) "bitmap", NULL
18073 };
18074
18075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
18076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
18077 if (SWIG_arg_fail(1)) SWIG_fail;
18078 {
18079 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18080 if (SWIG_arg_fail(2)) SWIG_fail;
18081 if (arg2 == NULL) {
18082 SWIG_null_ref("wxBitmap");
18083 }
18084 if (SWIG_arg_fail(2)) SWIG_fail;
18085 }
18086 {
18087 PyThreadState* __tstate = wxPyBeginAllowThreads();
18088 (arg1)->SelectObject((wxBitmap const &)*arg2);
18089
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 Py_INCREF(Py_None); resultobj = Py_None;
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
18101 PyObject *obj;
18102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18103 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
18104 Py_INCREF(obj);
18105 return Py_BuildValue((char *)"");
18106 }
18107 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
18108 PyObject *resultobj = NULL;
18109 wxDC *arg1 = (wxDC *) 0 ;
18110 wxBitmap const &arg2_defvalue = wxNullBitmap ;
18111 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
18112 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18113 wxBufferedDC *result;
18114 PyObject * obj0 = 0 ;
18115 PyObject * obj1 = 0 ;
18116 PyObject * obj2 = 0 ;
18117
18118 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
18119 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18120 if (SWIG_arg_fail(1)) SWIG_fail;
18121 if (obj1) {
18122 {
18123 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18124 if (SWIG_arg_fail(2)) SWIG_fail;
18125 if (arg2 == NULL) {
18126 SWIG_null_ref("wxBitmap");
18127 }
18128 if (SWIG_arg_fail(2)) SWIG_fail;
18129 }
18130 }
18131 if (obj2) {
18132 {
18133 arg3 = static_cast<int >(SWIG_As_int(obj2));
18134 if (SWIG_arg_fail(3)) SWIG_fail;
18135 }
18136 }
18137 {
18138 if (!wxPyCheckForApp()) SWIG_fail;
18139 PyThreadState* __tstate = wxPyBeginAllowThreads();
18140 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
18141
18142 wxPyEndAllowThreads(__tstate);
18143 if (PyErr_Occurred()) SWIG_fail;
18144 }
18145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
18146 return resultobj;
18147 fail:
18148 return NULL;
18149 }
18150
18151
18152 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
18153 PyObject *resultobj = NULL;
18154 wxDC *arg1 = (wxDC *) 0 ;
18155 wxSize *arg2 = 0 ;
18156 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18157 wxBufferedDC *result;
18158 wxSize temp2 ;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 PyObject * obj2 = 0 ;
18162
18163 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
18164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18165 if (SWIG_arg_fail(1)) SWIG_fail;
18166 {
18167 arg2 = &temp2;
18168 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18169 }
18170 if (obj2) {
18171 {
18172 arg3 = static_cast<int >(SWIG_As_int(obj2));
18173 if (SWIG_arg_fail(3)) SWIG_fail;
18174 }
18175 }
18176 {
18177 if (!wxPyCheckForApp()) SWIG_fail;
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
18180
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
18192 int argc;
18193 PyObject *argv[4];
18194 int ii;
18195
18196 argc = PyObject_Length(args);
18197 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
18198 argv[ii] = PyTuple_GetItem(args,ii);
18199 }
18200 if ((argc >= 1) && (argc <= 3)) {
18201 int _v;
18202 {
18203 void *ptr;
18204 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18205 _v = 0;
18206 PyErr_Clear();
18207 } else {
18208 _v = 1;
18209 }
18210 }
18211 if (_v) {
18212 if (argc <= 1) {
18213 return _wrap_new_BufferedDC__SWIG_0(self,args);
18214 }
18215 {
18216 void *ptr = 0;
18217 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
18218 _v = 0;
18219 PyErr_Clear();
18220 } else {
18221 _v = (ptr != 0);
18222 }
18223 }
18224 if (_v) {
18225 if (argc <= 2) {
18226 return _wrap_new_BufferedDC__SWIG_0(self,args);
18227 }
18228 _v = SWIG_Check_int(argv[2]);
18229 if (_v) {
18230 return _wrap_new_BufferedDC__SWIG_0(self,args);
18231 }
18232 }
18233 }
18234 }
18235 if ((argc >= 2) && (argc <= 3)) {
18236 int _v;
18237 {
18238 void *ptr;
18239 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18240 _v = 0;
18241 PyErr_Clear();
18242 } else {
18243 _v = 1;
18244 }
18245 }
18246 if (_v) {
18247 {
18248 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
18249 }
18250 if (_v) {
18251 if (argc <= 2) {
18252 return _wrap_new_BufferedDC__SWIG_1(self,args);
18253 }
18254 _v = SWIG_Check_int(argv[2]);
18255 if (_v) {
18256 return _wrap_new_BufferedDC__SWIG_1(self,args);
18257 }
18258 }
18259 }
18260 }
18261
18262 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
18263 return NULL;
18264 }
18265
18266
18267 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj = NULL;
18269 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
18270 PyObject * obj0 = 0 ;
18271 char *kwnames[] = {
18272 (char *) "self", NULL
18273 };
18274
18275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
18276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18277 if (SWIG_arg_fail(1)) SWIG_fail;
18278 {
18279 PyThreadState* __tstate = wxPyBeginAllowThreads();
18280 delete arg1;
18281
18282 wxPyEndAllowThreads(__tstate);
18283 if (PyErr_Occurred()) SWIG_fail;
18284 }
18285 Py_INCREF(Py_None); resultobj = Py_None;
18286 return resultobj;
18287 fail:
18288 return NULL;
18289 }
18290
18291
18292 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
18293 PyObject *resultobj = NULL;
18294 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
18295 PyObject * obj0 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "self", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
18301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18302 if (SWIG_arg_fail(1)) SWIG_fail;
18303 {
18304 PyThreadState* __tstate = wxPyBeginAllowThreads();
18305 (arg1)->UnMask();
18306
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 Py_INCREF(Py_None); resultobj = Py_None;
18311 return resultobj;
18312 fail:
18313 return NULL;
18314 }
18315
18316
18317 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
18318 PyObject *obj;
18319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18320 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
18321 Py_INCREF(obj);
18322 return Py_BuildValue((char *)"");
18323 }
18324 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
18325 PyObject *resultobj = NULL;
18326 wxWindow *arg1 = (wxWindow *) 0 ;
18327 wxBitmap const &arg2_defvalue = wxNullBitmap ;
18328 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
18329 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18330 wxBufferedPaintDC *result;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 PyObject * obj2 = 0 ;
18334 char *kwnames[] = {
18335 (char *) "window",(char *) "buffer",(char *) "style", NULL
18336 };
18337
18338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
18339 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18340 if (SWIG_arg_fail(1)) SWIG_fail;
18341 if (obj1) {
18342 {
18343 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18344 if (SWIG_arg_fail(2)) SWIG_fail;
18345 if (arg2 == NULL) {
18346 SWIG_null_ref("wxBitmap");
18347 }
18348 if (SWIG_arg_fail(2)) SWIG_fail;
18349 }
18350 }
18351 if (obj2) {
18352 {
18353 arg3 = static_cast<int >(SWIG_As_int(obj2));
18354 if (SWIG_arg_fail(3)) SWIG_fail;
18355 }
18356 }
18357 {
18358 if (!wxPyCheckForApp()) SWIG_fail;
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
18361
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
18366 return resultobj;
18367 fail:
18368 return NULL;
18369 }
18370
18371
18372 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
18373 PyObject *obj;
18374 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18375 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
18376 Py_INCREF(obj);
18377 return Py_BuildValue((char *)"");
18378 }
18379 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj = NULL;
18381 wxScreenDC *result;
18382 char *kwnames[] = {
18383 NULL
18384 };
18385
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
18387 {
18388 if (!wxPyCheckForApp()) SWIG_fail;
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 result = (wxScreenDC *)new wxScreenDC();
18391
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj = NULL;
18404 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18405 wxWindow *arg2 = (wxWindow *) 0 ;
18406 bool result;
18407 PyObject * obj0 = 0 ;
18408 PyObject * obj1 = 0 ;
18409 char *kwnames[] = {
18410 (char *) "self",(char *) "window", NULL
18411 };
18412
18413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
18414 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18415 if (SWIG_arg_fail(1)) SWIG_fail;
18416 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18417 if (SWIG_arg_fail(2)) SWIG_fail;
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 result = (bool)(arg1)->StartDrawingOnTop(arg2);
18421
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 {
18426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18427 }
18428 return resultobj;
18429 fail:
18430 return NULL;
18431 }
18432
18433
18434 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj = NULL;
18436 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18437 wxRect *arg2 = (wxRect *) NULL ;
18438 bool result;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 char *kwnames[] = {
18442 (char *) "self",(char *) "rect", NULL
18443 };
18444
18445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
18446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18447 if (SWIG_arg_fail(1)) SWIG_fail;
18448 if (obj1) {
18449 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
18450 if (SWIG_arg_fail(2)) SWIG_fail;
18451 }
18452 {
18453 PyThreadState* __tstate = wxPyBeginAllowThreads();
18454 result = (bool)(arg1)->StartDrawingOnTop(arg2);
18455
18456 wxPyEndAllowThreads(__tstate);
18457 if (PyErr_Occurred()) SWIG_fail;
18458 }
18459 {
18460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18461 }
18462 return resultobj;
18463 fail:
18464 return NULL;
18465 }
18466
18467
18468 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
18469 PyObject *resultobj = NULL;
18470 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18471 bool result;
18472 PyObject * obj0 = 0 ;
18473 char *kwnames[] = {
18474 (char *) "self", NULL
18475 };
18476
18477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
18478 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18479 if (SWIG_arg_fail(1)) SWIG_fail;
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (bool)(arg1)->EndDrawingOnTop();
18483
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 {
18488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18489 }
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
18497 PyObject *obj;
18498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18499 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
18500 Py_INCREF(obj);
18501 return Py_BuildValue((char *)"");
18502 }
18503 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = NULL;
18505 wxWindow *arg1 = (wxWindow *) 0 ;
18506 wxClientDC *result;
18507 PyObject * obj0 = 0 ;
18508 char *kwnames[] = {
18509 (char *) "win", NULL
18510 };
18511
18512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
18513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18514 if (SWIG_arg_fail(1)) SWIG_fail;
18515 {
18516 if (!wxPyCheckForApp()) SWIG_fail;
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (wxClientDC *)new wxClientDC(arg1);
18519
18520 wxPyEndAllowThreads(__tstate);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
18524 return resultobj;
18525 fail:
18526 return NULL;
18527 }
18528
18529
18530 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
18531 PyObject *obj;
18532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18533 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
18534 Py_INCREF(obj);
18535 return Py_BuildValue((char *)"");
18536 }
18537 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
18538 PyObject *resultobj = NULL;
18539 wxWindow *arg1 = (wxWindow *) 0 ;
18540 wxPaintDC *result;
18541 PyObject * obj0 = 0 ;
18542 char *kwnames[] = {
18543 (char *) "win", NULL
18544 };
18545
18546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
18547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18548 if (SWIG_arg_fail(1)) SWIG_fail;
18549 {
18550 if (!wxPyCheckForApp()) SWIG_fail;
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 result = (wxPaintDC *)new wxPaintDC(arg1);
18553
18554 wxPyEndAllowThreads(__tstate);
18555 if (PyErr_Occurred()) SWIG_fail;
18556 }
18557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
18558 return resultobj;
18559 fail:
18560 return NULL;
18561 }
18562
18563
18564 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
18565 PyObject *obj;
18566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18567 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
18568 Py_INCREF(obj);
18569 return Py_BuildValue((char *)"");
18570 }
18571 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
18572 PyObject *resultobj = NULL;
18573 wxWindow *arg1 = (wxWindow *) 0 ;
18574 wxWindowDC *result;
18575 PyObject * obj0 = 0 ;
18576 char *kwnames[] = {
18577 (char *) "win", NULL
18578 };
18579
18580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
18581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18582 if (SWIG_arg_fail(1)) SWIG_fail;
18583 {
18584 if (!wxPyCheckForApp()) SWIG_fail;
18585 PyThreadState* __tstate = wxPyBeginAllowThreads();
18586 result = (wxWindowDC *)new wxWindowDC(arg1);
18587
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
18592 return resultobj;
18593 fail:
18594 return NULL;
18595 }
18596
18597
18598 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
18599 PyObject *obj;
18600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18601 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
18602 Py_INCREF(obj);
18603 return Py_BuildValue((char *)"");
18604 }
18605 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj = NULL;
18607 wxDC *arg1 = 0 ;
18608 bool arg2 ;
18609 wxMirrorDC *result;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 char *kwnames[] = {
18613 (char *) "dc",(char *) "mirror", NULL
18614 };
18615
18616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
18617 {
18618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18619 if (SWIG_arg_fail(1)) SWIG_fail;
18620 if (arg1 == NULL) {
18621 SWIG_null_ref("wxDC");
18622 }
18623 if (SWIG_arg_fail(1)) SWIG_fail;
18624 }
18625 {
18626 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18627 if (SWIG_arg_fail(2)) SWIG_fail;
18628 }
18629 {
18630 if (!wxPyCheckForApp()) SWIG_fail;
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
18633
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
18638 return resultobj;
18639 fail:
18640 return NULL;
18641 }
18642
18643
18644 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
18645 PyObject *obj;
18646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18647 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
18648 Py_INCREF(obj);
18649 return Py_BuildValue((char *)"");
18650 }
18651 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
18652 PyObject *resultobj = NULL;
18653 wxPrintData *arg1 = 0 ;
18654 wxPostScriptDC *result;
18655 PyObject * obj0 = 0 ;
18656 char *kwnames[] = {
18657 (char *) "printData", NULL
18658 };
18659
18660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
18661 {
18662 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18663 if (SWIG_arg_fail(1)) SWIG_fail;
18664 if (arg1 == NULL) {
18665 SWIG_null_ref("wxPrintData");
18666 }
18667 if (SWIG_arg_fail(1)) SWIG_fail;
18668 }
18669 {
18670 if (!wxPyCheckForApp()) SWIG_fail;
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
18673
18674 wxPyEndAllowThreads(__tstate);
18675 if (PyErr_Occurred()) SWIG_fail;
18676 }
18677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
18678 return resultobj;
18679 fail:
18680 return NULL;
18681 }
18682
18683
18684 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18685 PyObject *resultobj = NULL;
18686 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18687 wxPrintData *result;
18688 PyObject * obj0 = 0 ;
18689 char *kwnames[] = {
18690 (char *) "self", NULL
18691 };
18692
18693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
18694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18695 if (SWIG_arg_fail(1)) SWIG_fail;
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 {
18699 wxPrintData &_result_ref = (arg1)->GetPrintData();
18700 result = (wxPrintData *) &_result_ref;
18701 }
18702
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
18707 return resultobj;
18708 fail:
18709 return NULL;
18710 }
18711
18712
18713 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18714 PyObject *resultobj = NULL;
18715 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18716 wxPrintData *arg2 = 0 ;
18717 PyObject * obj0 = 0 ;
18718 PyObject * obj1 = 0 ;
18719 char *kwnames[] = {
18720 (char *) "self",(char *) "data", NULL
18721 };
18722
18723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
18724 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18725 if (SWIG_arg_fail(1)) SWIG_fail;
18726 {
18727 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18728 if (SWIG_arg_fail(2)) SWIG_fail;
18729 if (arg2 == NULL) {
18730 SWIG_null_ref("wxPrintData");
18731 }
18732 if (SWIG_arg_fail(2)) SWIG_fail;
18733 }
18734 {
18735 PyThreadState* __tstate = wxPyBeginAllowThreads();
18736 (arg1)->SetPrintData((wxPrintData const &)*arg2);
18737
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 Py_INCREF(Py_None); resultobj = Py_None;
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = NULL;
18750 int arg1 ;
18751 PyObject * obj0 = 0 ;
18752 char *kwnames[] = {
18753 (char *) "ppi", NULL
18754 };
18755
18756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
18757 {
18758 arg1 = static_cast<int >(SWIG_As_int(obj0));
18759 if (SWIG_arg_fail(1)) SWIG_fail;
18760 }
18761 {
18762 PyThreadState* __tstate = wxPyBeginAllowThreads();
18763 wxPostScriptDC::SetResolution(arg1);
18764
18765 wxPyEndAllowThreads(__tstate);
18766 if (PyErr_Occurred()) SWIG_fail;
18767 }
18768 Py_INCREF(Py_None); resultobj = Py_None;
18769 return resultobj;
18770 fail:
18771 return NULL;
18772 }
18773
18774
18775 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18776 PyObject *resultobj = NULL;
18777 int result;
18778 char *kwnames[] = {
18779 NULL
18780 };
18781
18782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
18783 {
18784 PyThreadState* __tstate = wxPyBeginAllowThreads();
18785 result = (int)wxPostScriptDC::GetResolution();
18786
18787 wxPyEndAllowThreads(__tstate);
18788 if (PyErr_Occurred()) SWIG_fail;
18789 }
18790 {
18791 resultobj = SWIG_From_int(static_cast<int >(result));
18792 }
18793 return resultobj;
18794 fail:
18795 return NULL;
18796 }
18797
18798
18799 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18800 PyObject *obj;
18801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18802 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18803 Py_INCREF(obj);
18804 return Py_BuildValue((char *)"");
18805 }
18806 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18807 PyObject *resultobj = NULL;
18808 wxString const &arg1_defvalue = wxPyEmptyString ;
18809 wxString *arg1 = (wxString *) &arg1_defvalue ;
18810 wxMetaFile *result;
18811 bool temp1 = false ;
18812 PyObject * obj0 = 0 ;
18813 char *kwnames[] = {
18814 (char *) "filename", NULL
18815 };
18816
18817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18818 if (obj0) {
18819 {
18820 arg1 = wxString_in_helper(obj0);
18821 if (arg1 == NULL) SWIG_fail;
18822 temp1 = true;
18823 }
18824 }
18825 {
18826 if (!wxPyCheckForApp()) SWIG_fail;
18827 PyThreadState* __tstate = wxPyBeginAllowThreads();
18828 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
18829
18830 wxPyEndAllowThreads(__tstate);
18831 if (PyErr_Occurred()) SWIG_fail;
18832 }
18833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18834 {
18835 if (temp1)
18836 delete arg1;
18837 }
18838 return resultobj;
18839 fail:
18840 {
18841 if (temp1)
18842 delete arg1;
18843 }
18844 return NULL;
18845 }
18846
18847
18848 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18849 PyObject *resultobj = NULL;
18850 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18851 PyObject * obj0 = 0 ;
18852 char *kwnames[] = {
18853 (char *) "self", NULL
18854 };
18855
18856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
18857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18858 if (SWIG_arg_fail(1)) SWIG_fail;
18859 {
18860 PyThreadState* __tstate = wxPyBeginAllowThreads();
18861 delete arg1;
18862
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 Py_INCREF(Py_None); resultobj = Py_None;
18867 return resultobj;
18868 fail:
18869 return NULL;
18870 }
18871
18872
18873 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
18874 PyObject *resultobj = NULL;
18875 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18876 bool result;
18877 PyObject * obj0 = 0 ;
18878 char *kwnames[] = {
18879 (char *) "self", NULL
18880 };
18881
18882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
18883 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18884 if (SWIG_arg_fail(1)) SWIG_fail;
18885 {
18886 PyThreadState* __tstate = wxPyBeginAllowThreads();
18887 result = (bool)(arg1)->Ok();
18888
18889 wxPyEndAllowThreads(__tstate);
18890 if (PyErr_Occurred()) SWIG_fail;
18891 }
18892 {
18893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18894 }
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj = NULL;
18903 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18904 int arg2 = (int) 0 ;
18905 int arg3 = (int) 0 ;
18906 bool result;
18907 PyObject * obj0 = 0 ;
18908 PyObject * obj1 = 0 ;
18909 PyObject * obj2 = 0 ;
18910 char *kwnames[] = {
18911 (char *) "self",(char *) "width",(char *) "height", NULL
18912 };
18913
18914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
18915 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18916 if (SWIG_arg_fail(1)) SWIG_fail;
18917 if (obj1) {
18918 {
18919 arg2 = static_cast<int >(SWIG_As_int(obj1));
18920 if (SWIG_arg_fail(2)) SWIG_fail;
18921 }
18922 }
18923 if (obj2) {
18924 {
18925 arg3 = static_cast<int >(SWIG_As_int(obj2));
18926 if (SWIG_arg_fail(3)) SWIG_fail;
18927 }
18928 }
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 result = (bool)(arg1)->SetClipboard(arg2,arg3);
18932
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 {
18937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18938 }
18939 return resultobj;
18940 fail:
18941 return NULL;
18942 }
18943
18944
18945 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
18946 PyObject *resultobj = NULL;
18947 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18948 wxSize result;
18949 PyObject * obj0 = 0 ;
18950 char *kwnames[] = {
18951 (char *) "self", NULL
18952 };
18953
18954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
18955 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18956 if (SWIG_arg_fail(1)) SWIG_fail;
18957 {
18958 PyThreadState* __tstate = wxPyBeginAllowThreads();
18959 result = (arg1)->GetSize();
18960
18961 wxPyEndAllowThreads(__tstate);
18962 if (PyErr_Occurred()) SWIG_fail;
18963 }
18964 {
18965 wxSize * resultptr;
18966 resultptr = new wxSize(static_cast<wxSize & >(result));
18967 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18968 }
18969 return resultobj;
18970 fail:
18971 return NULL;
18972 }
18973
18974
18975 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
18976 PyObject *resultobj = NULL;
18977 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18978 int result;
18979 PyObject * obj0 = 0 ;
18980 char *kwnames[] = {
18981 (char *) "self", NULL
18982 };
18983
18984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
18985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18986 if (SWIG_arg_fail(1)) SWIG_fail;
18987 {
18988 PyThreadState* __tstate = wxPyBeginAllowThreads();
18989 result = (int)(arg1)->GetWidth();
18990
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 {
18995 resultobj = SWIG_From_int(static_cast<int >(result));
18996 }
18997 return resultobj;
18998 fail:
18999 return NULL;
19000 }
19001
19002
19003 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
19004 PyObject *resultobj = NULL;
19005 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19006 int result;
19007 PyObject * obj0 = 0 ;
19008 char *kwnames[] = {
19009 (char *) "self", NULL
19010 };
19011
19012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
19013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19014 if (SWIG_arg_fail(1)) SWIG_fail;
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 result = (int)(arg1)->GetHeight();
19018
19019 wxPyEndAllowThreads(__tstate);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 {
19023 resultobj = SWIG_From_int(static_cast<int >(result));
19024 }
19025 return resultobj;
19026 fail:
19027 return NULL;
19028 }
19029
19030
19031 static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
19032 PyObject *resultobj = NULL;
19033 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19034 wxString *result;
19035 PyObject * obj0 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
19041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19042 if (SWIG_arg_fail(1)) SWIG_fail;
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 {
19046 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
19047 result = (wxString *) &_result_ref;
19048 }
19049
19050 wxPyEndAllowThreads(__tstate);
19051 if (PyErr_Occurred()) SWIG_fail;
19052 }
19053 {
19054 #if wxUSE_UNICODE
19055 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19056 #else
19057 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19058 #endif
19059 }
19060 return resultobj;
19061 fail:
19062 return NULL;
19063 }
19064
19065
19066 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
19067 PyObject *obj;
19068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19069 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
19070 Py_INCREF(obj);
19071 return Py_BuildValue((char *)"");
19072 }
19073 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
19074 PyObject *resultobj = NULL;
19075 wxString const &arg1_defvalue = wxPyEmptyString ;
19076 wxString *arg1 = (wxString *) &arg1_defvalue ;
19077 int arg2 = (int) 0 ;
19078 int arg3 = (int) 0 ;
19079 wxString const &arg4_defvalue = wxPyEmptyString ;
19080 wxString *arg4 = (wxString *) &arg4_defvalue ;
19081 wxMetaFileDC *result;
19082 bool temp1 = false ;
19083 bool temp4 = false ;
19084 PyObject * obj0 = 0 ;
19085 PyObject * obj1 = 0 ;
19086 PyObject * obj2 = 0 ;
19087 PyObject * obj3 = 0 ;
19088 char *kwnames[] = {
19089 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
19090 };
19091
19092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19093 if (obj0) {
19094 {
19095 arg1 = wxString_in_helper(obj0);
19096 if (arg1 == NULL) SWIG_fail;
19097 temp1 = true;
19098 }
19099 }
19100 if (obj1) {
19101 {
19102 arg2 = static_cast<int >(SWIG_As_int(obj1));
19103 if (SWIG_arg_fail(2)) SWIG_fail;
19104 }
19105 }
19106 if (obj2) {
19107 {
19108 arg3 = static_cast<int >(SWIG_As_int(obj2));
19109 if (SWIG_arg_fail(3)) SWIG_fail;
19110 }
19111 }
19112 if (obj3) {
19113 {
19114 arg4 = wxString_in_helper(obj3);
19115 if (arg4 == NULL) SWIG_fail;
19116 temp4 = true;
19117 }
19118 }
19119 {
19120 if (!wxPyCheckForApp()) SWIG_fail;
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
19123
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
19128 {
19129 if (temp1)
19130 delete arg1;
19131 }
19132 {
19133 if (temp4)
19134 delete arg4;
19135 }
19136 return resultobj;
19137 fail:
19138 {
19139 if (temp1)
19140 delete arg1;
19141 }
19142 {
19143 if (temp4)
19144 delete arg4;
19145 }
19146 return NULL;
19147 }
19148
19149
19150 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj = NULL;
19152 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
19153 wxMetaFile *result;
19154 PyObject * obj0 = 0 ;
19155 char *kwnames[] = {
19156 (char *) "self", NULL
19157 };
19158
19159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
19160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_EXCEPTION | 0);
19161 if (SWIG_arg_fail(1)) SWIG_fail;
19162 {
19163 PyThreadState* __tstate = wxPyBeginAllowThreads();
19164 result = (wxMetaFile *)(arg1)->Close();
19165
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
19170 return resultobj;
19171 fail:
19172 return NULL;
19173 }
19174
19175
19176 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
19177 PyObject *obj;
19178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19179 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
19180 Py_INCREF(obj);
19181 return Py_BuildValue((char *)"");
19182 }
19183 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
19184 PyObject *resultobj = NULL;
19185 wxPrintData *arg1 = 0 ;
19186 wxPrinterDC *result;
19187 PyObject * obj0 = 0 ;
19188 char *kwnames[] = {
19189 (char *) "printData", NULL
19190 };
19191
19192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
19193 {
19194 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
19195 if (SWIG_arg_fail(1)) SWIG_fail;
19196 if (arg1 == NULL) {
19197 SWIG_null_ref("wxPrintData");
19198 }
19199 if (SWIG_arg_fail(1)) SWIG_fail;
19200 }
19201 {
19202 if (!wxPyCheckForApp()) SWIG_fail;
19203 PyThreadState* __tstate = wxPyBeginAllowThreads();
19204 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
19205
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
19210 return resultobj;
19211 fail:
19212 return NULL;
19213 }
19214
19215
19216 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
19217 PyObject *obj;
19218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19219 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
19220 Py_INCREF(obj);
19221 return Py_BuildValue((char *)"");
19222 }
19223 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = NULL;
19225 int arg1 ;
19226 int arg2 ;
19227 int arg3 = (int) true ;
19228 int arg4 = (int) 1 ;
19229 wxImageList *result;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 PyObject * obj2 = 0 ;
19233 PyObject * obj3 = 0 ;
19234 char *kwnames[] = {
19235 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
19236 };
19237
19238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19239 {
19240 arg1 = static_cast<int >(SWIG_As_int(obj0));
19241 if (SWIG_arg_fail(1)) SWIG_fail;
19242 }
19243 {
19244 arg2 = static_cast<int >(SWIG_As_int(obj1));
19245 if (SWIG_arg_fail(2)) SWIG_fail;
19246 }
19247 if (obj2) {
19248 {
19249 arg3 = static_cast<int >(SWIG_As_int(obj2));
19250 if (SWIG_arg_fail(3)) SWIG_fail;
19251 }
19252 }
19253 if (obj3) {
19254 {
19255 arg4 = static_cast<int >(SWIG_As_int(obj3));
19256 if (SWIG_arg_fail(4)) SWIG_fail;
19257 }
19258 }
19259 {
19260 if (!wxPyCheckForApp()) SWIG_fail;
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
19263
19264 wxPyEndAllowThreads(__tstate);
19265 if (PyErr_Occurred()) SWIG_fail;
19266 }
19267 {
19268 resultobj = wxPyMake_wxObject(result, (bool)1);
19269 }
19270 return resultobj;
19271 fail:
19272 return NULL;
19273 }
19274
19275
19276 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19277 PyObject *resultobj = NULL;
19278 wxImageList *arg1 = (wxImageList *) 0 ;
19279 PyObject * obj0 = 0 ;
19280 char *kwnames[] = {
19281 (char *) "self", NULL
19282 };
19283
19284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
19285 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19286 if (SWIG_arg_fail(1)) SWIG_fail;
19287 {
19288 PyThreadState* __tstate = wxPyBeginAllowThreads();
19289 delete arg1;
19290
19291 wxPyEndAllowThreads(__tstate);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 }
19294 Py_INCREF(Py_None); resultobj = Py_None;
19295 return resultobj;
19296 fail:
19297 return NULL;
19298 }
19299
19300
19301 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
19302 PyObject *resultobj = NULL;
19303 wxImageList *arg1 = (wxImageList *) 0 ;
19304 wxBitmap *arg2 = 0 ;
19305 wxBitmap const &arg3_defvalue = wxNullBitmap ;
19306 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
19307 int result;
19308 PyObject * obj0 = 0 ;
19309 PyObject * obj1 = 0 ;
19310 PyObject * obj2 = 0 ;
19311 char *kwnames[] = {
19312 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
19313 };
19314
19315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
19316 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19317 if (SWIG_arg_fail(1)) SWIG_fail;
19318 {
19319 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19320 if (SWIG_arg_fail(2)) SWIG_fail;
19321 if (arg2 == NULL) {
19322 SWIG_null_ref("wxBitmap");
19323 }
19324 if (SWIG_arg_fail(2)) SWIG_fail;
19325 }
19326 if (obj2) {
19327 {
19328 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19329 if (SWIG_arg_fail(3)) SWIG_fail;
19330 if (arg3 == NULL) {
19331 SWIG_null_ref("wxBitmap");
19332 }
19333 if (SWIG_arg_fail(3)) SWIG_fail;
19334 }
19335 }
19336 {
19337 PyThreadState* __tstate = wxPyBeginAllowThreads();
19338 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
19339
19340 wxPyEndAllowThreads(__tstate);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 {
19344 resultobj = SWIG_From_int(static_cast<int >(result));
19345 }
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
19353 PyObject *resultobj = NULL;
19354 wxImageList *arg1 = (wxImageList *) 0 ;
19355 wxBitmap *arg2 = 0 ;
19356 wxColour *arg3 = 0 ;
19357 int result;
19358 wxColour temp3 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 PyObject * obj2 = 0 ;
19362 char *kwnames[] = {
19363 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
19364 };
19365
19366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
19367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19368 if (SWIG_arg_fail(1)) SWIG_fail;
19369 {
19370 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19371 if (SWIG_arg_fail(2)) SWIG_fail;
19372 if (arg2 == NULL) {
19373 SWIG_null_ref("wxBitmap");
19374 }
19375 if (SWIG_arg_fail(2)) SWIG_fail;
19376 }
19377 {
19378 arg3 = &temp3;
19379 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19380 }
19381 {
19382 PyThreadState* __tstate = wxPyBeginAllowThreads();
19383 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
19384
19385 wxPyEndAllowThreads(__tstate);
19386 if (PyErr_Occurred()) SWIG_fail;
19387 }
19388 {
19389 resultobj = SWIG_From_int(static_cast<int >(result));
19390 }
19391 return resultobj;
19392 fail:
19393 return NULL;
19394 }
19395
19396
19397 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj = NULL;
19399 wxImageList *arg1 = (wxImageList *) 0 ;
19400 wxIcon *arg2 = 0 ;
19401 int result;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 char *kwnames[] = {
19405 (char *) "self",(char *) "icon", NULL
19406 };
19407
19408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
19409 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19410 if (SWIG_arg_fail(1)) SWIG_fail;
19411 {
19412 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
19413 if (SWIG_arg_fail(2)) SWIG_fail;
19414 if (arg2 == NULL) {
19415 SWIG_null_ref("wxIcon");
19416 }
19417 if (SWIG_arg_fail(2)) SWIG_fail;
19418 }
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (int)(arg1)->Add((wxIcon const &)*arg2);
19422
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
19426 {
19427 resultobj = SWIG_From_int(static_cast<int >(result));
19428 }
19429 return resultobj;
19430 fail:
19431 return NULL;
19432 }
19433
19434
19435 static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
19436 PyObject *resultobj = NULL;
19437 wxImageList *arg1 = (wxImageList *) 0 ;
19438 int arg2 ;
19439 SwigValueWrapper<wxBitmap > result;
19440 PyObject * obj0 = 0 ;
19441 PyObject * obj1 = 0 ;
19442 char *kwnames[] = {
19443 (char *) "self",(char *) "index", NULL
19444 };
19445
19446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
19447 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19448 if (SWIG_arg_fail(1)) SWIG_fail;
19449 {
19450 arg2 = static_cast<int >(SWIG_As_int(obj1));
19451 if (SWIG_arg_fail(2)) SWIG_fail;
19452 }
19453 {
19454 PyThreadState* __tstate = wxPyBeginAllowThreads();
19455 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
19456
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 {
19461 wxBitmap * resultptr;
19462 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
19463 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
19464 }
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj = NULL;
19473 wxImageList *arg1 = (wxImageList *) 0 ;
19474 int arg2 ;
19475 wxIcon result;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 char *kwnames[] = {
19479 (char *) "self",(char *) "index", NULL
19480 };
19481
19482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
19483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19484 if (SWIG_arg_fail(1)) SWIG_fail;
19485 {
19486 arg2 = static_cast<int >(SWIG_As_int(obj1));
19487 if (SWIG_arg_fail(2)) SWIG_fail;
19488 }
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 result = ((wxImageList const *)arg1)->GetIcon(arg2);
19492
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 {
19497 wxIcon * resultptr;
19498 resultptr = new wxIcon(static_cast<wxIcon & >(result));
19499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
19500 }
19501 return resultobj;
19502 fail:
19503 return NULL;
19504 }
19505
19506
19507 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
19508 PyObject *resultobj = NULL;
19509 wxImageList *arg1 = (wxImageList *) 0 ;
19510 int arg2 ;
19511 wxBitmap *arg3 = 0 ;
19512 wxBitmap const &arg4_defvalue = wxNullBitmap ;
19513 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
19514 bool result;
19515 PyObject * obj0 = 0 ;
19516 PyObject * obj1 = 0 ;
19517 PyObject * obj2 = 0 ;
19518 PyObject * obj3 = 0 ;
19519 char *kwnames[] = {
19520 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
19521 };
19522
19523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19524 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19525 if (SWIG_arg_fail(1)) SWIG_fail;
19526 {
19527 arg2 = static_cast<int >(SWIG_As_int(obj1));
19528 if (SWIG_arg_fail(2)) SWIG_fail;
19529 }
19530 {
19531 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19532 if (SWIG_arg_fail(3)) SWIG_fail;
19533 if (arg3 == NULL) {
19534 SWIG_null_ref("wxBitmap");
19535 }
19536 if (SWIG_arg_fail(3)) SWIG_fail;
19537 }
19538 if (obj3) {
19539 {
19540 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19541 if (SWIG_arg_fail(4)) SWIG_fail;
19542 if (arg4 == NULL) {
19543 SWIG_null_ref("wxBitmap");
19544 }
19545 if (SWIG_arg_fail(4)) SWIG_fail;
19546 }
19547 }
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 {
19556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19557 }
19558 return resultobj;
19559 fail:
19560 return NULL;
19561 }
19562
19563
19564 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj = NULL;
19566 wxImageList *arg1 = (wxImageList *) 0 ;
19567 int arg2 ;
19568 wxDC *arg3 = 0 ;
19569 int arg4 ;
19570 int arg5 ;
19571 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
19572 bool arg7 = (bool) (bool)false ;
19573 bool result;
19574 PyObject * obj0 = 0 ;
19575 PyObject * obj1 = 0 ;
19576 PyObject * obj2 = 0 ;
19577 PyObject * obj3 = 0 ;
19578 PyObject * obj4 = 0 ;
19579 PyObject * obj5 = 0 ;
19580 PyObject * obj6 = 0 ;
19581 char *kwnames[] = {
19582 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
19583 };
19584
19585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19587 if (SWIG_arg_fail(1)) SWIG_fail;
19588 {
19589 arg2 = static_cast<int >(SWIG_As_int(obj1));
19590 if (SWIG_arg_fail(2)) SWIG_fail;
19591 }
19592 {
19593 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
19594 if (SWIG_arg_fail(3)) SWIG_fail;
19595 if (arg3 == NULL) {
19596 SWIG_null_ref("wxDC");
19597 }
19598 if (SWIG_arg_fail(3)) SWIG_fail;
19599 }
19600 {
19601 arg4 = static_cast<int >(SWIG_As_int(obj3));
19602 if (SWIG_arg_fail(4)) SWIG_fail;
19603 }
19604 {
19605 arg5 = static_cast<int >(SWIG_As_int(obj4));
19606 if (SWIG_arg_fail(5)) SWIG_fail;
19607 }
19608 if (obj5) {
19609 {
19610 arg6 = static_cast<int >(SWIG_As_int(obj5));
19611 if (SWIG_arg_fail(6)) SWIG_fail;
19612 }
19613 }
19614 if (obj6) {
19615 {
19616 arg7 = static_cast<bool const >(SWIG_As_bool(obj6));
19617 if (SWIG_arg_fail(7)) SWIG_fail;
19618 }
19619 }
19620 {
19621 PyThreadState* __tstate = wxPyBeginAllowThreads();
19622 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
19623
19624 wxPyEndAllowThreads(__tstate);
19625 if (PyErr_Occurred()) SWIG_fail;
19626 }
19627 {
19628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19629 }
19630 return resultobj;
19631 fail:
19632 return NULL;
19633 }
19634
19635
19636 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
19637 PyObject *resultobj = NULL;
19638 wxImageList *arg1 = (wxImageList *) 0 ;
19639 int result;
19640 PyObject * obj0 = 0 ;
19641 char *kwnames[] = {
19642 (char *) "self", NULL
19643 };
19644
19645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
19646 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19647 if (SWIG_arg_fail(1)) SWIG_fail;
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 result = (int)(arg1)->GetImageCount();
19651
19652 wxPyEndAllowThreads(__tstate);
19653 if (PyErr_Occurred()) SWIG_fail;
19654 }
19655 {
19656 resultobj = SWIG_From_int(static_cast<int >(result));
19657 }
19658 return resultobj;
19659 fail:
19660 return NULL;
19661 }
19662
19663
19664 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj = NULL;
19666 wxImageList *arg1 = (wxImageList *) 0 ;
19667 int arg2 ;
19668 bool result;
19669 PyObject * obj0 = 0 ;
19670 PyObject * obj1 = 0 ;
19671 char *kwnames[] = {
19672 (char *) "self",(char *) "index", NULL
19673 };
19674
19675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
19676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19677 if (SWIG_arg_fail(1)) SWIG_fail;
19678 {
19679 arg2 = static_cast<int >(SWIG_As_int(obj1));
19680 if (SWIG_arg_fail(2)) SWIG_fail;
19681 }
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 result = (bool)(arg1)->Remove(arg2);
19685
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 {
19690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19691 }
19692 return resultobj;
19693 fail:
19694 return NULL;
19695 }
19696
19697
19698 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj = NULL;
19700 wxImageList *arg1 = (wxImageList *) 0 ;
19701 bool result;
19702 PyObject * obj0 = 0 ;
19703 char *kwnames[] = {
19704 (char *) "self", NULL
19705 };
19706
19707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
19708 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19709 if (SWIG_arg_fail(1)) SWIG_fail;
19710 {
19711 PyThreadState* __tstate = wxPyBeginAllowThreads();
19712 result = (bool)(arg1)->RemoveAll();
19713
19714 wxPyEndAllowThreads(__tstate);
19715 if (PyErr_Occurred()) SWIG_fail;
19716 }
19717 {
19718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19719 }
19720 return resultobj;
19721 fail:
19722 return NULL;
19723 }
19724
19725
19726 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19727 PyObject *resultobj = NULL;
19728 wxImageList *arg1 = (wxImageList *) 0 ;
19729 int arg2 ;
19730 int *arg3 = 0 ;
19731 int *arg4 = 0 ;
19732 int temp3 ;
19733 int res3 = 0 ;
19734 int temp4 ;
19735 int res4 = 0 ;
19736 PyObject * obj0 = 0 ;
19737 PyObject * obj1 = 0 ;
19738 char *kwnames[] = {
19739 (char *) "self",(char *) "index", NULL
19740 };
19741
19742 arg3 = &temp3; res3 = SWIG_NEWOBJ;
19743 arg4 = &temp4; res4 = SWIG_NEWOBJ;
19744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
19745 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19746 if (SWIG_arg_fail(1)) SWIG_fail;
19747 {
19748 arg2 = static_cast<int >(SWIG_As_int(obj1));
19749 if (SWIG_arg_fail(2)) SWIG_fail;
19750 }
19751 {
19752 PyThreadState* __tstate = wxPyBeginAllowThreads();
19753 (arg1)->GetSize(arg2,*arg3,*arg4);
19754
19755 wxPyEndAllowThreads(__tstate);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 }
19758 Py_INCREF(Py_None); resultobj = Py_None;
19759 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
19760 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
19761 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
19762 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
19770 PyObject *obj;
19771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19772 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
19773 Py_INCREF(obj);
19774 return Py_BuildValue((char *)"");
19775 }
19776 static int _wrap_NORMAL_FONT_set(PyObject *) {
19777 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
19778 return 1;
19779 }
19780
19781
19782 static PyObject *_wrap_NORMAL_FONT_get(void) {
19783 PyObject *pyobj = NULL;
19784
19785 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
19786 return pyobj;
19787 }
19788
19789
19790 static int _wrap_SMALL_FONT_set(PyObject *) {
19791 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
19792 return 1;
19793 }
19794
19795
19796 static PyObject *_wrap_SMALL_FONT_get(void) {
19797 PyObject *pyobj = NULL;
19798
19799 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
19800 return pyobj;
19801 }
19802
19803
19804 static int _wrap_ITALIC_FONT_set(PyObject *) {
19805 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
19806 return 1;
19807 }
19808
19809
19810 static PyObject *_wrap_ITALIC_FONT_get(void) {
19811 PyObject *pyobj = NULL;
19812
19813 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
19814 return pyobj;
19815 }
19816
19817
19818 static int _wrap_SWISS_FONT_set(PyObject *) {
19819 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
19820 return 1;
19821 }
19822
19823
19824 static PyObject *_wrap_SWISS_FONT_get(void) {
19825 PyObject *pyobj = NULL;
19826
19827 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
19828 return pyobj;
19829 }
19830
19831
19832 static int _wrap_RED_PEN_set(PyObject *) {
19833 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
19834 return 1;
19835 }
19836
19837
19838 static PyObject *_wrap_RED_PEN_get(void) {
19839 PyObject *pyobj = NULL;
19840
19841 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
19842 return pyobj;
19843 }
19844
19845
19846 static int _wrap_CYAN_PEN_set(PyObject *) {
19847 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
19848 return 1;
19849 }
19850
19851
19852 static PyObject *_wrap_CYAN_PEN_get(void) {
19853 PyObject *pyobj = NULL;
19854
19855 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
19856 return pyobj;
19857 }
19858
19859
19860 static int _wrap_GREEN_PEN_set(PyObject *) {
19861 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
19862 return 1;
19863 }
19864
19865
19866 static PyObject *_wrap_GREEN_PEN_get(void) {
19867 PyObject *pyobj = NULL;
19868
19869 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
19870 return pyobj;
19871 }
19872
19873
19874 static int _wrap_BLACK_PEN_set(PyObject *) {
19875 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
19876 return 1;
19877 }
19878
19879
19880 static PyObject *_wrap_BLACK_PEN_get(void) {
19881 PyObject *pyobj = NULL;
19882
19883 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
19884 return pyobj;
19885 }
19886
19887
19888 static int _wrap_WHITE_PEN_set(PyObject *) {
19889 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
19890 return 1;
19891 }
19892
19893
19894 static PyObject *_wrap_WHITE_PEN_get(void) {
19895 PyObject *pyobj = NULL;
19896
19897 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
19898 return pyobj;
19899 }
19900
19901
19902 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
19903 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
19904 return 1;
19905 }
19906
19907
19908 static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
19909 PyObject *pyobj = NULL;
19910
19911 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
19912 return pyobj;
19913 }
19914
19915
19916 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
19917 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
19918 return 1;
19919 }
19920
19921
19922 static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
19923 PyObject *pyobj = NULL;
19924
19925 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
19926 return pyobj;
19927 }
19928
19929
19930 static int _wrap_GREY_PEN_set(PyObject *) {
19931 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
19932 return 1;
19933 }
19934
19935
19936 static PyObject *_wrap_GREY_PEN_get(void) {
19937 PyObject *pyobj = NULL;
19938
19939 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
19940 return pyobj;
19941 }
19942
19943
19944 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
19945 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
19946 return 1;
19947 }
19948
19949
19950 static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
19951 PyObject *pyobj = NULL;
19952
19953 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19954 return pyobj;
19955 }
19956
19957
19958 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
19959 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
19960 return 1;
19961 }
19962
19963
19964 static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
19965 PyObject *pyobj = NULL;
19966
19967 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19968 return pyobj;
19969 }
19970
19971
19972 static int _wrap_BLUE_BRUSH_set(PyObject *) {
19973 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
19974 return 1;
19975 }
19976
19977
19978 static PyObject *_wrap_BLUE_BRUSH_get(void) {
19979 PyObject *pyobj = NULL;
19980
19981 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19982 return pyobj;
19983 }
19984
19985
19986 static int _wrap_GREEN_BRUSH_set(PyObject *) {
19987 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
19988 return 1;
19989 }
19990
19991
19992 static PyObject *_wrap_GREEN_BRUSH_get(void) {
19993 PyObject *pyobj = NULL;
19994
19995 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19996 return pyobj;
19997 }
19998
19999
20000 static int _wrap_WHITE_BRUSH_set(PyObject *) {
20001 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
20002 return 1;
20003 }
20004
20005
20006 static PyObject *_wrap_WHITE_BRUSH_get(void) {
20007 PyObject *pyobj = NULL;
20008
20009 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
20010 return pyobj;
20011 }
20012
20013
20014 static int _wrap_BLACK_BRUSH_set(PyObject *) {
20015 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
20016 return 1;
20017 }
20018
20019
20020 static PyObject *_wrap_BLACK_BRUSH_get(void) {
20021 PyObject *pyobj = NULL;
20022
20023 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
20024 return pyobj;
20025 }
20026
20027
20028 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
20029 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
20030 return 1;
20031 }
20032
20033
20034 static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
20035 PyObject *pyobj = NULL;
20036
20037 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
20038 return pyobj;
20039 }
20040
20041
20042 static int _wrap_CYAN_BRUSH_set(PyObject *) {
20043 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
20044 return 1;
20045 }
20046
20047
20048 static PyObject *_wrap_CYAN_BRUSH_get(void) {
20049 PyObject *pyobj = NULL;
20050
20051 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
20052 return pyobj;
20053 }
20054
20055
20056 static int _wrap_RED_BRUSH_set(PyObject *) {
20057 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
20058 return 1;
20059 }
20060
20061
20062 static PyObject *_wrap_RED_BRUSH_get(void) {
20063 PyObject *pyobj = NULL;
20064
20065 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
20066 return pyobj;
20067 }
20068
20069
20070 static int _wrap_GREY_BRUSH_set(PyObject *) {
20071 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
20072 return 1;
20073 }
20074
20075
20076 static PyObject *_wrap_GREY_BRUSH_get(void) {
20077 PyObject *pyobj = NULL;
20078
20079 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20080 return pyobj;
20081 }
20082
20083
20084 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
20085 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
20086 return 1;
20087 }
20088
20089
20090 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
20091 PyObject *pyobj = NULL;
20092
20093 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20094 return pyobj;
20095 }
20096
20097
20098 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
20099 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
20100 return 1;
20101 }
20102
20103
20104 static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
20105 PyObject *pyobj = NULL;
20106
20107 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20108 return pyobj;
20109 }
20110
20111
20112 static int _wrap_BLACK_set(PyObject *) {
20113 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
20114 return 1;
20115 }
20116
20117
20118 static PyObject *_wrap_BLACK_get(void) {
20119 PyObject *pyobj = NULL;
20120
20121 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
20122 return pyobj;
20123 }
20124
20125
20126 static int _wrap_WHITE_set(PyObject *) {
20127 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
20128 return 1;
20129 }
20130
20131
20132 static PyObject *_wrap_WHITE_get(void) {
20133 PyObject *pyobj = NULL;
20134
20135 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
20136 return pyobj;
20137 }
20138
20139
20140 static int _wrap_RED_set(PyObject *) {
20141 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
20142 return 1;
20143 }
20144
20145
20146 static PyObject *_wrap_RED_get(void) {
20147 PyObject *pyobj = NULL;
20148
20149 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
20150 return pyobj;
20151 }
20152
20153
20154 static int _wrap_BLUE_set(PyObject *) {
20155 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
20156 return 1;
20157 }
20158
20159
20160 static PyObject *_wrap_BLUE_get(void) {
20161 PyObject *pyobj = NULL;
20162
20163 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
20164 return pyobj;
20165 }
20166
20167
20168 static int _wrap_GREEN_set(PyObject *) {
20169 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
20170 return 1;
20171 }
20172
20173
20174 static PyObject *_wrap_GREEN_get(void) {
20175 PyObject *pyobj = NULL;
20176
20177 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
20178 return pyobj;
20179 }
20180
20181
20182 static int _wrap_CYAN_set(PyObject *) {
20183 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
20184 return 1;
20185 }
20186
20187
20188 static PyObject *_wrap_CYAN_get(void) {
20189 PyObject *pyobj = NULL;
20190
20191 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
20192 return pyobj;
20193 }
20194
20195
20196 static int _wrap_LIGHT_GREY_set(PyObject *) {
20197 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
20198 return 1;
20199 }
20200
20201
20202 static PyObject *_wrap_LIGHT_GREY_get(void) {
20203 PyObject *pyobj = NULL;
20204
20205 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
20206 return pyobj;
20207 }
20208
20209
20210 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
20211 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
20212 return 1;
20213 }
20214
20215
20216 static PyObject *_wrap_STANDARD_CURSOR_get(void) {
20217 PyObject *pyobj = NULL;
20218
20219 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
20220 return pyobj;
20221 }
20222
20223
20224 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
20225 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
20226 return 1;
20227 }
20228
20229
20230 static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
20231 PyObject *pyobj = NULL;
20232
20233 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20234 return pyobj;
20235 }
20236
20237
20238 static int _wrap_CROSS_CURSOR_set(PyObject *) {
20239 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
20240 return 1;
20241 }
20242
20243
20244 static PyObject *_wrap_CROSS_CURSOR_get(void) {
20245 PyObject *pyobj = NULL;
20246
20247 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20248 return pyobj;
20249 }
20250
20251
20252 static int _wrap_NullBitmap_set(PyObject *) {
20253 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
20254 return 1;
20255 }
20256
20257
20258 static PyObject *_wrap_NullBitmap_get(void) {
20259 PyObject *pyobj = NULL;
20260
20261 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
20262 return pyobj;
20263 }
20264
20265
20266 static int _wrap_NullIcon_set(PyObject *) {
20267 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
20268 return 1;
20269 }
20270
20271
20272 static PyObject *_wrap_NullIcon_get(void) {
20273 PyObject *pyobj = NULL;
20274
20275 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
20276 return pyobj;
20277 }
20278
20279
20280 static int _wrap_NullCursor_set(PyObject *) {
20281 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
20282 return 1;
20283 }
20284
20285
20286 static PyObject *_wrap_NullCursor_get(void) {
20287 PyObject *pyobj = NULL;
20288
20289 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
20290 return pyobj;
20291 }
20292
20293
20294 static int _wrap_NullPen_set(PyObject *) {
20295 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
20296 return 1;
20297 }
20298
20299
20300 static PyObject *_wrap_NullPen_get(void) {
20301 PyObject *pyobj = NULL;
20302
20303 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
20304 return pyobj;
20305 }
20306
20307
20308 static int _wrap_NullBrush_set(PyObject *) {
20309 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
20310 return 1;
20311 }
20312
20313
20314 static PyObject *_wrap_NullBrush_get(void) {
20315 PyObject *pyobj = NULL;
20316
20317 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
20318 return pyobj;
20319 }
20320
20321
20322 static int _wrap_NullPalette_set(PyObject *) {
20323 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
20324 return 1;
20325 }
20326
20327
20328 static PyObject *_wrap_NullPalette_get(void) {
20329 PyObject *pyobj = NULL;
20330
20331 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
20332 return pyobj;
20333 }
20334
20335
20336 static int _wrap_NullFont_set(PyObject *) {
20337 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
20338 return 1;
20339 }
20340
20341
20342 static PyObject *_wrap_NullFont_get(void) {
20343 PyObject *pyobj = NULL;
20344
20345 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
20346 return pyobj;
20347 }
20348
20349
20350 static int _wrap_NullColour_set(PyObject *) {
20351 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
20352 return 1;
20353 }
20354
20355
20356 static PyObject *_wrap_NullColour_get(void) {
20357 PyObject *pyobj = NULL;
20358
20359 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
20360 return pyobj;
20361 }
20362
20363
20364 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
20365 PyObject *resultobj = NULL;
20366 wxPenList *arg1 = (wxPenList *) 0 ;
20367 wxPen *arg2 = (wxPen *) 0 ;
20368 PyObject * obj0 = 0 ;
20369 PyObject * obj1 = 0 ;
20370 char *kwnames[] = {
20371 (char *) "self",(char *) "pen", NULL
20372 };
20373
20374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
20375 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20376 if (SWIG_arg_fail(1)) SWIG_fail;
20377 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20378 if (SWIG_arg_fail(2)) SWIG_fail;
20379 {
20380 PyThreadState* __tstate = wxPyBeginAllowThreads();
20381 (arg1)->AddPen(arg2);
20382
20383 wxPyEndAllowThreads(__tstate);
20384 if (PyErr_Occurred()) SWIG_fail;
20385 }
20386 Py_INCREF(Py_None); resultobj = Py_None;
20387 return resultobj;
20388 fail:
20389 return NULL;
20390 }
20391
20392
20393 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
20394 PyObject *resultobj = NULL;
20395 wxPenList *arg1 = (wxPenList *) 0 ;
20396 wxColour *arg2 = 0 ;
20397 int arg3 ;
20398 int arg4 ;
20399 wxPen *result;
20400 wxColour temp2 ;
20401 PyObject * obj0 = 0 ;
20402 PyObject * obj1 = 0 ;
20403 PyObject * obj2 = 0 ;
20404 PyObject * obj3 = 0 ;
20405 char *kwnames[] = {
20406 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
20407 };
20408
20409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20410 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20411 if (SWIG_arg_fail(1)) SWIG_fail;
20412 {
20413 arg2 = &temp2;
20414 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20415 }
20416 {
20417 arg3 = static_cast<int >(SWIG_As_int(obj2));
20418 if (SWIG_arg_fail(3)) SWIG_fail;
20419 }
20420 {
20421 arg4 = static_cast<int >(SWIG_As_int(obj3));
20422 if (SWIG_arg_fail(4)) SWIG_fail;
20423 }
20424 {
20425 PyThreadState* __tstate = wxPyBeginAllowThreads();
20426 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
20427
20428 wxPyEndAllowThreads(__tstate);
20429 if (PyErr_Occurred()) SWIG_fail;
20430 }
20431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
20432 return resultobj;
20433 fail:
20434 return NULL;
20435 }
20436
20437
20438 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
20439 PyObject *resultobj = NULL;
20440 wxPenList *arg1 = (wxPenList *) 0 ;
20441 wxPen *arg2 = (wxPen *) 0 ;
20442 PyObject * obj0 = 0 ;
20443 PyObject * obj1 = 0 ;
20444 char *kwnames[] = {
20445 (char *) "self",(char *) "pen", NULL
20446 };
20447
20448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
20449 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20450 if (SWIG_arg_fail(1)) SWIG_fail;
20451 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20452 if (SWIG_arg_fail(2)) SWIG_fail;
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 (arg1)->RemovePen(arg2);
20456
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 Py_INCREF(Py_None); resultobj = Py_None;
20461 return resultobj;
20462 fail:
20463 return NULL;
20464 }
20465
20466
20467 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20468 PyObject *resultobj = NULL;
20469 wxPenList *arg1 = (wxPenList *) 0 ;
20470 int result;
20471 PyObject * obj0 = 0 ;
20472 char *kwnames[] = {
20473 (char *) "self", NULL
20474 };
20475
20476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
20477 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20478 if (SWIG_arg_fail(1)) SWIG_fail;
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 result = (int)(arg1)->GetCount();
20482
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 {
20487 resultobj = SWIG_From_int(static_cast<int >(result));
20488 }
20489 return resultobj;
20490 fail:
20491 return NULL;
20492 }
20493
20494
20495 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
20496 PyObject *obj;
20497 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20498 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
20499 Py_INCREF(obj);
20500 return Py_BuildValue((char *)"");
20501 }
20502 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20503 PyObject *resultobj = NULL;
20504 wxBrushList *arg1 = (wxBrushList *) 0 ;
20505 wxBrush *arg2 = (wxBrush *) 0 ;
20506 PyObject * obj0 = 0 ;
20507 PyObject * obj1 = 0 ;
20508 char *kwnames[] = {
20509 (char *) "self",(char *) "brush", NULL
20510 };
20511
20512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
20513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20514 if (SWIG_arg_fail(1)) SWIG_fail;
20515 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20516 if (SWIG_arg_fail(2)) SWIG_fail;
20517 {
20518 PyThreadState* __tstate = wxPyBeginAllowThreads();
20519 (arg1)->AddBrush(arg2);
20520
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 Py_INCREF(Py_None); resultobj = Py_None;
20525 return resultobj;
20526 fail:
20527 return NULL;
20528 }
20529
20530
20531 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20532 PyObject *resultobj = NULL;
20533 wxBrushList *arg1 = (wxBrushList *) 0 ;
20534 wxColour *arg2 = 0 ;
20535 int arg3 = (int) wxSOLID ;
20536 wxBrush *result;
20537 wxColour temp2 ;
20538 PyObject * obj0 = 0 ;
20539 PyObject * obj1 = 0 ;
20540 PyObject * obj2 = 0 ;
20541 char *kwnames[] = {
20542 (char *) "self",(char *) "colour",(char *) "style", NULL
20543 };
20544
20545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
20546 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20547 if (SWIG_arg_fail(1)) SWIG_fail;
20548 {
20549 arg2 = &temp2;
20550 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20551 }
20552 if (obj2) {
20553 {
20554 arg3 = static_cast<int >(SWIG_As_int(obj2));
20555 if (SWIG_arg_fail(3)) SWIG_fail;
20556 }
20557 }
20558 {
20559 PyThreadState* __tstate = wxPyBeginAllowThreads();
20560 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
20561
20562 wxPyEndAllowThreads(__tstate);
20563 if (PyErr_Occurred()) SWIG_fail;
20564 }
20565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
20566 return resultobj;
20567 fail:
20568 return NULL;
20569 }
20570
20571
20572 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20573 PyObject *resultobj = NULL;
20574 wxBrushList *arg1 = (wxBrushList *) 0 ;
20575 wxBrush *arg2 = (wxBrush *) 0 ;
20576 PyObject * obj0 = 0 ;
20577 PyObject * obj1 = 0 ;
20578 char *kwnames[] = {
20579 (char *) "self",(char *) "brush", NULL
20580 };
20581
20582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
20583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20584 if (SWIG_arg_fail(1)) SWIG_fail;
20585 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20586 if (SWIG_arg_fail(2)) SWIG_fail;
20587 {
20588 PyThreadState* __tstate = wxPyBeginAllowThreads();
20589 (arg1)->RemoveBrush(arg2);
20590
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 Py_INCREF(Py_None); resultobj = Py_None;
20595 return resultobj;
20596 fail:
20597 return NULL;
20598 }
20599
20600
20601 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20602 PyObject *resultobj = NULL;
20603 wxBrushList *arg1 = (wxBrushList *) 0 ;
20604 int result;
20605 PyObject * obj0 = 0 ;
20606 char *kwnames[] = {
20607 (char *) "self", NULL
20608 };
20609
20610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
20611 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20612 if (SWIG_arg_fail(1)) SWIG_fail;
20613 {
20614 PyThreadState* __tstate = wxPyBeginAllowThreads();
20615 result = (int)(arg1)->GetCount();
20616
20617 wxPyEndAllowThreads(__tstate);
20618 if (PyErr_Occurred()) SWIG_fail;
20619 }
20620 {
20621 resultobj = SWIG_From_int(static_cast<int >(result));
20622 }
20623 return resultobj;
20624 fail:
20625 return NULL;
20626 }
20627
20628
20629 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
20630 PyObject *obj;
20631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20632 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
20633 Py_INCREF(obj);
20634 return Py_BuildValue((char *)"");
20635 }
20636 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
20637 PyObject *resultobj = NULL;
20638 wxColourDatabase *result;
20639 char *kwnames[] = {
20640 NULL
20641 };
20642
20643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
20644 {
20645 if (!wxPyCheckForApp()) SWIG_fail;
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = (wxColourDatabase *)new wxColourDatabase();
20648
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
20653 return resultobj;
20654 fail:
20655 return NULL;
20656 }
20657
20658
20659 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
20660 PyObject *resultobj = NULL;
20661 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20662 PyObject * obj0 = 0 ;
20663 char *kwnames[] = {
20664 (char *) "self", NULL
20665 };
20666
20667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
20668 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20669 if (SWIG_arg_fail(1)) SWIG_fail;
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 delete arg1;
20673
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 Py_INCREF(Py_None); resultobj = Py_None;
20678 return resultobj;
20679 fail:
20680 return NULL;
20681 }
20682
20683
20684 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
20685 PyObject *resultobj = NULL;
20686 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20687 wxString *arg2 = 0 ;
20688 wxColour result;
20689 bool temp2 = false ;
20690 PyObject * obj0 = 0 ;
20691 PyObject * obj1 = 0 ;
20692 char *kwnames[] = {
20693 (char *) "self",(char *) "name", NULL
20694 };
20695
20696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
20697 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20698 if (SWIG_arg_fail(1)) SWIG_fail;
20699 {
20700 arg2 = wxString_in_helper(obj1);
20701 if (arg2 == NULL) SWIG_fail;
20702 temp2 = true;
20703 }
20704 {
20705 PyThreadState* __tstate = wxPyBeginAllowThreads();
20706 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
20707
20708 wxPyEndAllowThreads(__tstate);
20709 if (PyErr_Occurred()) SWIG_fail;
20710 }
20711 {
20712 wxColour * resultptr;
20713 resultptr = new wxColour(static_cast<wxColour & >(result));
20714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20715 }
20716 {
20717 if (temp2)
20718 delete arg2;
20719 }
20720 return resultobj;
20721 fail:
20722 {
20723 if (temp2)
20724 delete arg2;
20725 }
20726 return NULL;
20727 }
20728
20729
20730 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj = NULL;
20732 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20733 wxColour *arg2 = 0 ;
20734 wxString result;
20735 wxColour temp2 ;
20736 PyObject * obj0 = 0 ;
20737 PyObject * obj1 = 0 ;
20738 char *kwnames[] = {
20739 (char *) "self",(char *) "colour", NULL
20740 };
20741
20742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
20743 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20744 if (SWIG_arg_fail(1)) SWIG_fail;
20745 {
20746 arg2 = &temp2;
20747 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20748 }
20749 {
20750 PyThreadState* __tstate = wxPyBeginAllowThreads();
20751 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
20752
20753 wxPyEndAllowThreads(__tstate);
20754 if (PyErr_Occurred()) SWIG_fail;
20755 }
20756 {
20757 #if wxUSE_UNICODE
20758 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20759 #else
20760 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20761 #endif
20762 }
20763 return resultobj;
20764 fail:
20765 return NULL;
20766 }
20767
20768
20769 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
20770 PyObject *resultobj = NULL;
20771 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20772 wxString *arg2 = 0 ;
20773 wxColour *arg3 = 0 ;
20774 bool temp2 = false ;
20775 wxColour temp3 ;
20776 PyObject * obj0 = 0 ;
20777 PyObject * obj1 = 0 ;
20778 PyObject * obj2 = 0 ;
20779 char *kwnames[] = {
20780 (char *) "self",(char *) "name",(char *) "colour", NULL
20781 };
20782
20783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
20784 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20785 if (SWIG_arg_fail(1)) SWIG_fail;
20786 {
20787 arg2 = wxString_in_helper(obj1);
20788 if (arg2 == NULL) SWIG_fail;
20789 temp2 = true;
20790 }
20791 {
20792 arg3 = &temp3;
20793 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20794 }
20795 {
20796 PyThreadState* __tstate = wxPyBeginAllowThreads();
20797 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
20798
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 Py_INCREF(Py_None); resultobj = Py_None;
20803 {
20804 if (temp2)
20805 delete arg2;
20806 }
20807 return resultobj;
20808 fail:
20809 {
20810 if (temp2)
20811 delete arg2;
20812 }
20813 return NULL;
20814 }
20815
20816
20817 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj = NULL;
20819 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20820 wxString *arg2 = 0 ;
20821 int arg3 ;
20822 int arg4 ;
20823 int arg5 ;
20824 bool temp2 = false ;
20825 PyObject * obj0 = 0 ;
20826 PyObject * obj1 = 0 ;
20827 PyObject * obj2 = 0 ;
20828 PyObject * obj3 = 0 ;
20829 PyObject * obj4 = 0 ;
20830 char *kwnames[] = {
20831 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
20832 };
20833
20834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20836 if (SWIG_arg_fail(1)) SWIG_fail;
20837 {
20838 arg2 = wxString_in_helper(obj1);
20839 if (arg2 == NULL) SWIG_fail;
20840 temp2 = true;
20841 }
20842 {
20843 arg3 = static_cast<int >(SWIG_As_int(obj2));
20844 if (SWIG_arg_fail(3)) SWIG_fail;
20845 }
20846 {
20847 arg4 = static_cast<int >(SWIG_As_int(obj3));
20848 if (SWIG_arg_fail(4)) SWIG_fail;
20849 }
20850 {
20851 arg5 = static_cast<int >(SWIG_As_int(obj4));
20852 if (SWIG_arg_fail(5)) SWIG_fail;
20853 }
20854 {
20855 PyThreadState* __tstate = wxPyBeginAllowThreads();
20856 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
20857
20858 wxPyEndAllowThreads(__tstate);
20859 if (PyErr_Occurred()) SWIG_fail;
20860 }
20861 Py_INCREF(Py_None); resultobj = Py_None;
20862 {
20863 if (temp2)
20864 delete arg2;
20865 }
20866 return resultobj;
20867 fail:
20868 {
20869 if (temp2)
20870 delete arg2;
20871 }
20872 return NULL;
20873 }
20874
20875
20876 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
20877 PyObject *obj;
20878 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20879 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
20880 Py_INCREF(obj);
20881 return Py_BuildValue((char *)"");
20882 }
20883 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
20884 PyObject *resultobj = NULL;
20885 wxFontList *arg1 = (wxFontList *) 0 ;
20886 wxFont *arg2 = (wxFont *) 0 ;
20887 PyObject * obj0 = 0 ;
20888 PyObject * obj1 = 0 ;
20889 char *kwnames[] = {
20890 (char *) "self",(char *) "font", NULL
20891 };
20892
20893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
20894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20895 if (SWIG_arg_fail(1)) SWIG_fail;
20896 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20897 if (SWIG_arg_fail(2)) SWIG_fail;
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
20900 (arg1)->AddFont(arg2);
20901
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 Py_INCREF(Py_None); resultobj = Py_None;
20906 return resultobj;
20907 fail:
20908 return NULL;
20909 }
20910
20911
20912 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
20913 PyObject *resultobj = NULL;
20914 wxFontList *arg1 = (wxFontList *) 0 ;
20915 int arg2 ;
20916 int arg3 ;
20917 int arg4 ;
20918 int arg5 ;
20919 bool arg6 = (bool) false ;
20920 wxString const &arg7_defvalue = wxPyEmptyString ;
20921 wxString *arg7 = (wxString *) &arg7_defvalue ;
20922 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
20923 wxFont *result;
20924 bool temp7 = false ;
20925 PyObject * obj0 = 0 ;
20926 PyObject * obj1 = 0 ;
20927 PyObject * obj2 = 0 ;
20928 PyObject * obj3 = 0 ;
20929 PyObject * obj4 = 0 ;
20930 PyObject * obj5 = 0 ;
20931 PyObject * obj6 = 0 ;
20932 PyObject * obj7 = 0 ;
20933 char *kwnames[] = {
20934 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
20935 };
20936
20937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20938 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20939 if (SWIG_arg_fail(1)) SWIG_fail;
20940 {
20941 arg2 = static_cast<int >(SWIG_As_int(obj1));
20942 if (SWIG_arg_fail(2)) SWIG_fail;
20943 }
20944 {
20945 arg3 = static_cast<int >(SWIG_As_int(obj2));
20946 if (SWIG_arg_fail(3)) SWIG_fail;
20947 }
20948 {
20949 arg4 = static_cast<int >(SWIG_As_int(obj3));
20950 if (SWIG_arg_fail(4)) SWIG_fail;
20951 }
20952 {
20953 arg5 = static_cast<int >(SWIG_As_int(obj4));
20954 if (SWIG_arg_fail(5)) SWIG_fail;
20955 }
20956 if (obj5) {
20957 {
20958 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
20959 if (SWIG_arg_fail(6)) SWIG_fail;
20960 }
20961 }
20962 if (obj6) {
20963 {
20964 arg7 = wxString_in_helper(obj6);
20965 if (arg7 == NULL) SWIG_fail;
20966 temp7 = true;
20967 }
20968 }
20969 if (obj7) {
20970 {
20971 arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7));
20972 if (SWIG_arg_fail(8)) SWIG_fail;
20973 }
20974 }
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
20978
20979 wxPyEndAllowThreads(__tstate);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
20983 {
20984 if (temp7)
20985 delete arg7;
20986 }
20987 return resultobj;
20988 fail:
20989 {
20990 if (temp7)
20991 delete arg7;
20992 }
20993 return NULL;
20994 }
20995
20996
20997 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = NULL;
20999 wxFontList *arg1 = (wxFontList *) 0 ;
21000 wxFont *arg2 = (wxFont *) 0 ;
21001 PyObject * obj0 = 0 ;
21002 PyObject * obj1 = 0 ;
21003 char *kwnames[] = {
21004 (char *) "self",(char *) "font", NULL
21005 };
21006
21007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
21008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
21009 if (SWIG_arg_fail(1)) SWIG_fail;
21010 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
21011 if (SWIG_arg_fail(2)) SWIG_fail;
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 (arg1)->RemoveFont(arg2);
21015
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 Py_INCREF(Py_None); resultobj = Py_None;
21020 return resultobj;
21021 fail:
21022 return NULL;
21023 }
21024
21025
21026 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
21027 PyObject *resultobj = NULL;
21028 wxFontList *arg1 = (wxFontList *) 0 ;
21029 int result;
21030 PyObject * obj0 = 0 ;
21031 char *kwnames[] = {
21032 (char *) "self", NULL
21033 };
21034
21035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
21036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
21037 if (SWIG_arg_fail(1)) SWIG_fail;
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 result = (int)(arg1)->GetCount();
21041
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 {
21046 resultobj = SWIG_From_int(static_cast<int >(result));
21047 }
21048 return resultobj;
21049 fail:
21050 return NULL;
21051 }
21052
21053
21054 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
21055 PyObject *obj;
21056 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21057 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
21058 Py_INCREF(obj);
21059 return Py_BuildValue((char *)"");
21060 }
21061 static int _wrap_TheFontList_set(PyObject *) {
21062 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
21063 return 1;
21064 }
21065
21066
21067 static PyObject *_wrap_TheFontList_get(void) {
21068 PyObject *pyobj = NULL;
21069
21070 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
21071 return pyobj;
21072 }
21073
21074
21075 static int _wrap_ThePenList_set(PyObject *) {
21076 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
21077 return 1;
21078 }
21079
21080
21081 static PyObject *_wrap_ThePenList_get(void) {
21082 PyObject *pyobj = NULL;
21083
21084 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
21085 return pyobj;
21086 }
21087
21088
21089 static int _wrap_TheBrushList_set(PyObject *) {
21090 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
21091 return 1;
21092 }
21093
21094
21095 static PyObject *_wrap_TheBrushList_get(void) {
21096 PyObject *pyobj = NULL;
21097
21098 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
21099 return pyobj;
21100 }
21101
21102
21103 static int _wrap_TheColourDatabase_set(PyObject *) {
21104 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
21105 return 1;
21106 }
21107
21108
21109 static PyObject *_wrap_TheColourDatabase_get(void) {
21110 PyObject *pyobj = NULL;
21111
21112 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
21113 return pyobj;
21114 }
21115
21116
21117 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
21118 PyObject *resultobj = NULL;
21119 wxEffects *result;
21120 char *kwnames[] = {
21121 NULL
21122 };
21123
21124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
21125 {
21126 PyThreadState* __tstate = wxPyBeginAllowThreads();
21127 result = (wxEffects *)new wxEffects();
21128
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
21133 return resultobj;
21134 fail:
21135 return NULL;
21136 }
21137
21138
21139 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj = NULL;
21141 wxEffects *arg1 = (wxEffects *) 0 ;
21142 wxColour result;
21143 PyObject * obj0 = 0 ;
21144 char *kwnames[] = {
21145 (char *) "self", NULL
21146 };
21147
21148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
21149 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21150 if (SWIG_arg_fail(1)) SWIG_fail;
21151 {
21152 PyThreadState* __tstate = wxPyBeginAllowThreads();
21153 result = ((wxEffects const *)arg1)->GetHighlightColour();
21154
21155 wxPyEndAllowThreads(__tstate);
21156 if (PyErr_Occurred()) SWIG_fail;
21157 }
21158 {
21159 wxColour * resultptr;
21160 resultptr = new wxColour(static_cast<wxColour & >(result));
21161 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21162 }
21163 return resultobj;
21164 fail:
21165 return NULL;
21166 }
21167
21168
21169 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21170 PyObject *resultobj = NULL;
21171 wxEffects *arg1 = (wxEffects *) 0 ;
21172 wxColour result;
21173 PyObject * obj0 = 0 ;
21174 char *kwnames[] = {
21175 (char *) "self", NULL
21176 };
21177
21178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
21179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21180 if (SWIG_arg_fail(1)) SWIG_fail;
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 result = ((wxEffects const *)arg1)->GetLightShadow();
21184
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 {
21189 wxColour * resultptr;
21190 resultptr = new wxColour(static_cast<wxColour & >(result));
21191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21192 }
21193 return resultobj;
21194 fail:
21195 return NULL;
21196 }
21197
21198
21199 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
21200 PyObject *resultobj = NULL;
21201 wxEffects *arg1 = (wxEffects *) 0 ;
21202 wxColour result;
21203 PyObject * obj0 = 0 ;
21204 char *kwnames[] = {
21205 (char *) "self", NULL
21206 };
21207
21208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
21209 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21210 if (SWIG_arg_fail(1)) SWIG_fail;
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 result = ((wxEffects const *)arg1)->GetFaceColour();
21214
21215 wxPyEndAllowThreads(__tstate);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 }
21218 {
21219 wxColour * resultptr;
21220 resultptr = new wxColour(static_cast<wxColour & >(result));
21221 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21222 }
21223 return resultobj;
21224 fail:
21225 return NULL;
21226 }
21227
21228
21229 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj = NULL;
21231 wxEffects *arg1 = (wxEffects *) 0 ;
21232 wxColour result;
21233 PyObject * obj0 = 0 ;
21234 char *kwnames[] = {
21235 (char *) "self", NULL
21236 };
21237
21238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
21239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21240 if (SWIG_arg_fail(1)) SWIG_fail;
21241 {
21242 PyThreadState* __tstate = wxPyBeginAllowThreads();
21243 result = ((wxEffects const *)arg1)->GetMediumShadow();
21244
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 {
21249 wxColour * resultptr;
21250 resultptr = new wxColour(static_cast<wxColour & >(result));
21251 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21252 }
21253 return resultobj;
21254 fail:
21255 return NULL;
21256 }
21257
21258
21259 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21260 PyObject *resultobj = NULL;
21261 wxEffects *arg1 = (wxEffects *) 0 ;
21262 wxColour result;
21263 PyObject * obj0 = 0 ;
21264 char *kwnames[] = {
21265 (char *) "self", NULL
21266 };
21267
21268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
21269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21270 if (SWIG_arg_fail(1)) SWIG_fail;
21271 {
21272 PyThreadState* __tstate = wxPyBeginAllowThreads();
21273 result = ((wxEffects const *)arg1)->GetDarkShadow();
21274
21275 wxPyEndAllowThreads(__tstate);
21276 if (PyErr_Occurred()) SWIG_fail;
21277 }
21278 {
21279 wxColour * resultptr;
21280 resultptr = new wxColour(static_cast<wxColour & >(result));
21281 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21282 }
21283 return resultobj;
21284 fail:
21285 return NULL;
21286 }
21287
21288
21289 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
21290 PyObject *resultobj = NULL;
21291 wxEffects *arg1 = (wxEffects *) 0 ;
21292 wxColour *arg2 = 0 ;
21293 wxColour temp2 ;
21294 PyObject * obj0 = 0 ;
21295 PyObject * obj1 = 0 ;
21296 char *kwnames[] = {
21297 (char *) "self",(char *) "c", NULL
21298 };
21299
21300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
21301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21302 if (SWIG_arg_fail(1)) SWIG_fail;
21303 {
21304 arg2 = &temp2;
21305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21306 }
21307 {
21308 PyThreadState* __tstate = wxPyBeginAllowThreads();
21309 (arg1)->SetHighlightColour((wxColour const &)*arg2);
21310
21311 wxPyEndAllowThreads(__tstate);
21312 if (PyErr_Occurred()) SWIG_fail;
21313 }
21314 Py_INCREF(Py_None); resultobj = Py_None;
21315 return resultobj;
21316 fail:
21317 return NULL;
21318 }
21319
21320
21321 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21322 PyObject *resultobj = NULL;
21323 wxEffects *arg1 = (wxEffects *) 0 ;
21324 wxColour *arg2 = 0 ;
21325 wxColour temp2 ;
21326 PyObject * obj0 = 0 ;
21327 PyObject * obj1 = 0 ;
21328 char *kwnames[] = {
21329 (char *) "self",(char *) "c", NULL
21330 };
21331
21332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
21333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21334 if (SWIG_arg_fail(1)) SWIG_fail;
21335 {
21336 arg2 = &temp2;
21337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21338 }
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 (arg1)->SetLightShadow((wxColour const &)*arg2);
21342
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 Py_INCREF(Py_None); resultobj = Py_None;
21347 return resultobj;
21348 fail:
21349 return NULL;
21350 }
21351
21352
21353 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
21354 PyObject *resultobj = NULL;
21355 wxEffects *arg1 = (wxEffects *) 0 ;
21356 wxColour *arg2 = 0 ;
21357 wxColour temp2 ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 char *kwnames[] = {
21361 (char *) "self",(char *) "c", NULL
21362 };
21363
21364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
21365 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21366 if (SWIG_arg_fail(1)) SWIG_fail;
21367 {
21368 arg2 = &temp2;
21369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21370 }
21371 {
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 (arg1)->SetFaceColour((wxColour const &)*arg2);
21374
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 Py_INCREF(Py_None); resultobj = Py_None;
21379 return resultobj;
21380 fail:
21381 return NULL;
21382 }
21383
21384
21385 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21386 PyObject *resultobj = NULL;
21387 wxEffects *arg1 = (wxEffects *) 0 ;
21388 wxColour *arg2 = 0 ;
21389 wxColour temp2 ;
21390 PyObject * obj0 = 0 ;
21391 PyObject * obj1 = 0 ;
21392 char *kwnames[] = {
21393 (char *) "self",(char *) "c", NULL
21394 };
21395
21396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
21397 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21398 if (SWIG_arg_fail(1)) SWIG_fail;
21399 {
21400 arg2 = &temp2;
21401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21402 }
21403 {
21404 PyThreadState* __tstate = wxPyBeginAllowThreads();
21405 (arg1)->SetMediumShadow((wxColour const &)*arg2);
21406
21407 wxPyEndAllowThreads(__tstate);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
21410 Py_INCREF(Py_None); resultobj = Py_None;
21411 return resultobj;
21412 fail:
21413 return NULL;
21414 }
21415
21416
21417 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21418 PyObject *resultobj = NULL;
21419 wxEffects *arg1 = (wxEffects *) 0 ;
21420 wxColour *arg2 = 0 ;
21421 wxColour temp2 ;
21422 PyObject * obj0 = 0 ;
21423 PyObject * obj1 = 0 ;
21424 char *kwnames[] = {
21425 (char *) "self",(char *) "c", NULL
21426 };
21427
21428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
21429 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21430 if (SWIG_arg_fail(1)) SWIG_fail;
21431 {
21432 arg2 = &temp2;
21433 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21434 }
21435 {
21436 PyThreadState* __tstate = wxPyBeginAllowThreads();
21437 (arg1)->SetDarkShadow((wxColour const &)*arg2);
21438
21439 wxPyEndAllowThreads(__tstate);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 }
21442 Py_INCREF(Py_None); resultobj = Py_None;
21443 return resultobj;
21444 fail:
21445 return NULL;
21446 }
21447
21448
21449 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21450 PyObject *resultobj = NULL;
21451 wxEffects *arg1 = (wxEffects *) 0 ;
21452 wxColour *arg2 = 0 ;
21453 wxColour *arg3 = 0 ;
21454 wxColour *arg4 = 0 ;
21455 wxColour *arg5 = 0 ;
21456 wxColour *arg6 = 0 ;
21457 wxColour temp2 ;
21458 wxColour temp3 ;
21459 wxColour temp4 ;
21460 wxColour temp5 ;
21461 wxColour temp6 ;
21462 PyObject * obj0 = 0 ;
21463 PyObject * obj1 = 0 ;
21464 PyObject * obj2 = 0 ;
21465 PyObject * obj3 = 0 ;
21466 PyObject * obj4 = 0 ;
21467 PyObject * obj5 = 0 ;
21468 char *kwnames[] = {
21469 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
21470 };
21471
21472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21473 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21474 if (SWIG_arg_fail(1)) SWIG_fail;
21475 {
21476 arg2 = &temp2;
21477 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21478 }
21479 {
21480 arg3 = &temp3;
21481 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21482 }
21483 {
21484 arg4 = &temp4;
21485 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
21486 }
21487 {
21488 arg5 = &temp5;
21489 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
21490 }
21491 {
21492 arg6 = &temp6;
21493 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
21494 }
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
21498
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 Py_INCREF(Py_None); resultobj = Py_None;
21503 return resultobj;
21504 fail:
21505 return NULL;
21506 }
21507
21508
21509 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
21510 PyObject *resultobj = NULL;
21511 wxEffects *arg1 = (wxEffects *) 0 ;
21512 wxDC *arg2 = 0 ;
21513 wxRect *arg3 = 0 ;
21514 int arg4 = (int) 1 ;
21515 wxRect temp3 ;
21516 PyObject * obj0 = 0 ;
21517 PyObject * obj1 = 0 ;
21518 PyObject * obj2 = 0 ;
21519 PyObject * obj3 = 0 ;
21520 char *kwnames[] = {
21521 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
21522 };
21523
21524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21525 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21526 if (SWIG_arg_fail(1)) SWIG_fail;
21527 {
21528 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21529 if (SWIG_arg_fail(2)) SWIG_fail;
21530 if (arg2 == NULL) {
21531 SWIG_null_ref("wxDC");
21532 }
21533 if (SWIG_arg_fail(2)) SWIG_fail;
21534 }
21535 {
21536 arg3 = &temp3;
21537 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21538 }
21539 if (obj3) {
21540 {
21541 arg4 = static_cast<int >(SWIG_As_int(obj3));
21542 if (SWIG_arg_fail(4)) SWIG_fail;
21543 }
21544 }
21545 {
21546 PyThreadState* __tstate = wxPyBeginAllowThreads();
21547 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
21548
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 Py_INCREF(Py_None); resultobj = Py_None;
21553 return resultobj;
21554 fail:
21555 return NULL;
21556 }
21557
21558
21559 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
21560 PyObject *resultobj = NULL;
21561 wxEffects *arg1 = (wxEffects *) 0 ;
21562 wxRect *arg2 = 0 ;
21563 wxDC *arg3 = 0 ;
21564 wxBitmap *arg4 = 0 ;
21565 bool result;
21566 wxRect temp2 ;
21567 PyObject * obj0 = 0 ;
21568 PyObject * obj1 = 0 ;
21569 PyObject * obj2 = 0 ;
21570 PyObject * obj3 = 0 ;
21571 char *kwnames[] = {
21572 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
21573 };
21574
21575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21576 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21577 if (SWIG_arg_fail(1)) SWIG_fail;
21578 {
21579 arg2 = &temp2;
21580 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21581 }
21582 {
21583 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21584 if (SWIG_arg_fail(3)) SWIG_fail;
21585 if (arg3 == NULL) {
21586 SWIG_null_ref("wxDC");
21587 }
21588 if (SWIG_arg_fail(3)) SWIG_fail;
21589 }
21590 {
21591 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
21592 if (SWIG_arg_fail(4)) SWIG_fail;
21593 if (arg4 == NULL) {
21594 SWIG_null_ref("wxBitmap");
21595 }
21596 if (SWIG_arg_fail(4)) SWIG_fail;
21597 }
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
21601
21602 wxPyEndAllowThreads(__tstate);
21603 if (PyErr_Occurred()) SWIG_fail;
21604 }
21605 {
21606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21607 }
21608 return resultobj;
21609 fail:
21610 return NULL;
21611 }
21612
21613
21614 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
21615 PyObject *obj;
21616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21617 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
21618 Py_INCREF(obj);
21619 return Py_BuildValue((char *)"");
21620 }
21621 static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21622 PyObject *resultobj = NULL;
21623 int arg1 ;
21624 int arg2 ;
21625 bool arg3 ;
21626 wxSplitterRenderParams *result;
21627 PyObject * obj0 = 0 ;
21628 PyObject * obj1 = 0 ;
21629 PyObject * obj2 = 0 ;
21630 char *kwnames[] = {
21631 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
21632 };
21633
21634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail;
21635 {
21636 arg1 = static_cast<int >(SWIG_As_int(obj0));
21637 if (SWIG_arg_fail(1)) SWIG_fail;
21638 }
21639 {
21640 arg2 = static_cast<int >(SWIG_As_int(obj1));
21641 if (SWIG_arg_fail(2)) SWIG_fail;
21642 }
21643 {
21644 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
21645 if (SWIG_arg_fail(3)) SWIG_fail;
21646 }
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
21650
21651 wxPyEndAllowThreads(__tstate);
21652 if (PyErr_Occurred()) SWIG_fail;
21653 }
21654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1);
21655 return resultobj;
21656 fail:
21657 return NULL;
21658 }
21659
21660
21661 static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21662 PyObject *resultobj = NULL;
21663 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21664 PyObject * obj0 = 0 ;
21665 char *kwnames[] = {
21666 (char *) "self", NULL
21667 };
21668
21669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail;
21670 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21671 if (SWIG_arg_fail(1)) SWIG_fail;
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 delete arg1;
21675
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 Py_INCREF(Py_None); resultobj = Py_None;
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = NULL;
21688 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21689 int result;
21690 PyObject * obj0 = 0 ;
21691 char *kwnames[] = {
21692 (char *) "self", NULL
21693 };
21694
21695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail;
21696 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21697 if (SWIG_arg_fail(1)) SWIG_fail;
21698 result = (int)(int) ((arg1)->widthSash);
21699
21700 {
21701 resultobj = SWIG_From_int(static_cast<int >(result));
21702 }
21703 return resultobj;
21704 fail:
21705 return NULL;
21706 }
21707
21708
21709 static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) {
21710 PyObject *resultobj = NULL;
21711 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21712 int result;
21713 PyObject * obj0 = 0 ;
21714 char *kwnames[] = {
21715 (char *) "self", NULL
21716 };
21717
21718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail;
21719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21720 if (SWIG_arg_fail(1)) SWIG_fail;
21721 result = (int)(int) ((arg1)->border);
21722
21723 {
21724 resultobj = SWIG_From_int(static_cast<int >(result));
21725 }
21726 return resultobj;
21727 fail:
21728 return NULL;
21729 }
21730
21731
21732 static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) {
21733 PyObject *resultobj = NULL;
21734 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21735 bool result;
21736 PyObject * obj0 = 0 ;
21737 char *kwnames[] = {
21738 (char *) "self", NULL
21739 };
21740
21741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail;
21742 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21743 if (SWIG_arg_fail(1)) SWIG_fail;
21744 result = (bool)(bool) ((arg1)->isHotSensitive);
21745
21746 {
21747 resultobj = SWIG_From_bool(static_cast<bool >(result));
21748 }
21749 return resultobj;
21750 fail:
21751 return NULL;
21752 }
21753
21754
21755 static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) {
21756 PyObject *obj;
21757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21758 SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj);
21759 Py_INCREF(obj);
21760 return Py_BuildValue((char *)"");
21761 }
21762 static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj = NULL;
21764 int arg1 ;
21765 int arg2 ;
21766 wxRendererVersion *result;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 char *kwnames[] = {
21770 (char *) "version_",(char *) "age_", NULL
21771 };
21772
21773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail;
21774 {
21775 arg1 = static_cast<int >(SWIG_As_int(obj0));
21776 if (SWIG_arg_fail(1)) SWIG_fail;
21777 }
21778 {
21779 arg2 = static_cast<int >(SWIG_As_int(obj1));
21780 if (SWIG_arg_fail(2)) SWIG_fail;
21781 }
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
21785
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1);
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj = NULL;
21798 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21799 PyObject * obj0 = 0 ;
21800 char *kwnames[] = {
21801 (char *) "self", NULL
21802 };
21803
21804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail;
21805 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21806 if (SWIG_arg_fail(1)) SWIG_fail;
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 delete arg1;
21810
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 Py_INCREF(Py_None); resultobj = Py_None;
21815 return resultobj;
21816 fail:
21817 return NULL;
21818 }
21819
21820
21821 static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) {
21822 PyObject *resultobj = NULL;
21823 wxRendererVersion *arg1 = 0 ;
21824 bool result;
21825 PyObject * obj0 = 0 ;
21826 char *kwnames[] = {
21827 (char *) "ver", NULL
21828 };
21829
21830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail;
21831 {
21832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21833 if (SWIG_arg_fail(1)) SWIG_fail;
21834 if (arg1 == NULL) {
21835 SWIG_null_ref("wxRendererVersion");
21836 }
21837 if (SWIG_arg_fail(1)) SWIG_fail;
21838 }
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
21842
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 {
21847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21848 }
21849 return resultobj;
21850 fail:
21851 return NULL;
21852 }
21853
21854
21855 static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) {
21856 PyObject *resultobj = NULL;
21857 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21858 int result;
21859 PyObject * obj0 = 0 ;
21860 char *kwnames[] = {
21861 (char *) "self", NULL
21862 };
21863
21864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail;
21865 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21866 if (SWIG_arg_fail(1)) SWIG_fail;
21867 result = (int)(int) ((arg1)->version);
21868
21869 {
21870 resultobj = SWIG_From_int(static_cast<int >(result));
21871 }
21872 return resultobj;
21873 fail:
21874 return NULL;
21875 }
21876
21877
21878 static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj = NULL;
21880 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21881 int result;
21882 PyObject * obj0 = 0 ;
21883 char *kwnames[] = {
21884 (char *) "self", NULL
21885 };
21886
21887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail;
21888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21889 if (SWIG_arg_fail(1)) SWIG_fail;
21890 result = (int)(int) ((arg1)->age);
21891
21892 {
21893 resultobj = SWIG_From_int(static_cast<int >(result));
21894 }
21895 return resultobj;
21896 fail:
21897 return NULL;
21898 }
21899
21900
21901 static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) {
21902 PyObject *obj;
21903 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21904 SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj);
21905 Py_INCREF(obj);
21906 return Py_BuildValue((char *)"");
21907 }
21908 static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) {
21909 PyObject *resultobj = NULL;
21910 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21911 wxWindow *arg2 = (wxWindow *) 0 ;
21912 wxDC *arg3 = 0 ;
21913 wxRect *arg4 = 0 ;
21914 int arg5 = (int) 0 ;
21915 wxRect temp4 ;
21916 PyObject * obj0 = 0 ;
21917 PyObject * obj1 = 0 ;
21918 PyObject * obj2 = 0 ;
21919 PyObject * obj3 = 0 ;
21920 PyObject * obj4 = 0 ;
21921 char *kwnames[] = {
21922 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21923 };
21924
21925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21927 if (SWIG_arg_fail(1)) SWIG_fail;
21928 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21929 if (SWIG_arg_fail(2)) SWIG_fail;
21930 {
21931 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21932 if (SWIG_arg_fail(3)) SWIG_fail;
21933 if (arg3 == NULL) {
21934 SWIG_null_ref("wxDC");
21935 }
21936 if (SWIG_arg_fail(3)) SWIG_fail;
21937 }
21938 {
21939 arg4 = &temp4;
21940 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21941 }
21942 if (obj4) {
21943 {
21944 arg5 = static_cast<int >(SWIG_As_int(obj4));
21945 if (SWIG_arg_fail(5)) SWIG_fail;
21946 }
21947 }
21948 {
21949 PyThreadState* __tstate = wxPyBeginAllowThreads();
21950 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21951
21952 wxPyEndAllowThreads(__tstate);
21953 if (PyErr_Occurred()) SWIG_fail;
21954 }
21955 Py_INCREF(Py_None); resultobj = Py_None;
21956 return resultobj;
21957 fail:
21958 return NULL;
21959 }
21960
21961
21962 static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) {
21963 PyObject *resultobj = NULL;
21964 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21965 wxWindow *arg2 = (wxWindow *) 0 ;
21966 wxDC *arg3 = 0 ;
21967 wxRect *arg4 = 0 ;
21968 int arg5 = (int) 0 ;
21969 wxRect temp4 ;
21970 PyObject * obj0 = 0 ;
21971 PyObject * obj1 = 0 ;
21972 PyObject * obj2 = 0 ;
21973 PyObject * obj3 = 0 ;
21974 PyObject * obj4 = 0 ;
21975 char *kwnames[] = {
21976 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21977 };
21978
21979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21981 if (SWIG_arg_fail(1)) SWIG_fail;
21982 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21983 if (SWIG_arg_fail(2)) SWIG_fail;
21984 {
21985 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21986 if (SWIG_arg_fail(3)) SWIG_fail;
21987 if (arg3 == NULL) {
21988 SWIG_null_ref("wxDC");
21989 }
21990 if (SWIG_arg_fail(3)) SWIG_fail;
21991 }
21992 {
21993 arg4 = &temp4;
21994 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21995 }
21996 if (obj4) {
21997 {
21998 arg5 = static_cast<int >(SWIG_As_int(obj4));
21999 if (SWIG_arg_fail(5)) SWIG_fail;
22000 }
22001 }
22002 {
22003 PyThreadState* __tstate = wxPyBeginAllowThreads();
22004 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22005
22006 wxPyEndAllowThreads(__tstate);
22007 if (PyErr_Occurred()) SWIG_fail;
22008 }
22009 Py_INCREF(Py_None); resultobj = Py_None;
22010 return resultobj;
22011 fail:
22012 return NULL;
22013 }
22014
22015
22016 static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) {
22017 PyObject *resultobj = NULL;
22018 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22019 wxWindow *arg2 = (wxWindow *) 0 ;
22020 wxDC *arg3 = 0 ;
22021 wxRect *arg4 = 0 ;
22022 int arg5 = (int) 0 ;
22023 wxRect temp4 ;
22024 PyObject * obj0 = 0 ;
22025 PyObject * obj1 = 0 ;
22026 PyObject * obj2 = 0 ;
22027 PyObject * obj3 = 0 ;
22028 PyObject * obj4 = 0 ;
22029 char *kwnames[] = {
22030 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22031 };
22032
22033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22034 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22035 if (SWIG_arg_fail(1)) SWIG_fail;
22036 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22037 if (SWIG_arg_fail(2)) SWIG_fail;
22038 {
22039 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22040 if (SWIG_arg_fail(3)) SWIG_fail;
22041 if (arg3 == NULL) {
22042 SWIG_null_ref("wxDC");
22043 }
22044 if (SWIG_arg_fail(3)) SWIG_fail;
22045 }
22046 {
22047 arg4 = &temp4;
22048 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22049 }
22050 if (obj4) {
22051 {
22052 arg5 = static_cast<int >(SWIG_As_int(obj4));
22053 if (SWIG_arg_fail(5)) SWIG_fail;
22054 }
22055 }
22056 {
22057 PyThreadState* __tstate = wxPyBeginAllowThreads();
22058 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
22059
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 Py_INCREF(Py_None); resultobj = Py_None;
22064 return resultobj;
22065 fail:
22066 return NULL;
22067 }
22068
22069
22070 static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) {
22071 PyObject *resultobj = NULL;
22072 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22073 wxWindow *arg2 = (wxWindow *) 0 ;
22074 wxDC *arg3 = 0 ;
22075 wxSize *arg4 = 0 ;
22076 int arg5 ;
22077 wxOrientation arg6 ;
22078 int arg7 = (int) 0 ;
22079 wxSize temp4 ;
22080 PyObject * obj0 = 0 ;
22081 PyObject * obj1 = 0 ;
22082 PyObject * obj2 = 0 ;
22083 PyObject * obj3 = 0 ;
22084 PyObject * obj4 = 0 ;
22085 PyObject * obj5 = 0 ;
22086 PyObject * obj6 = 0 ;
22087 char *kwnames[] = {
22088 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
22089 };
22090
22091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22093 if (SWIG_arg_fail(1)) SWIG_fail;
22094 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22095 if (SWIG_arg_fail(2)) SWIG_fail;
22096 {
22097 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22098 if (SWIG_arg_fail(3)) SWIG_fail;
22099 if (arg3 == NULL) {
22100 SWIG_null_ref("wxDC");
22101 }
22102 if (SWIG_arg_fail(3)) SWIG_fail;
22103 }
22104 {
22105 arg4 = &temp4;
22106 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22107 }
22108 {
22109 arg5 = static_cast<int >(SWIG_As_int(obj4));
22110 if (SWIG_arg_fail(5)) SWIG_fail;
22111 }
22112 {
22113 arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5));
22114 if (SWIG_arg_fail(6)) SWIG_fail;
22115 }
22116 if (obj6) {
22117 {
22118 arg7 = static_cast<int >(SWIG_As_int(obj6));
22119 if (SWIG_arg_fail(7)) SWIG_fail;
22120 }
22121 }
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
22125
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 Py_INCREF(Py_None); resultobj = Py_None;
22130 return resultobj;
22131 fail:
22132 return NULL;
22133 }
22134
22135
22136 static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj = NULL;
22138 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22139 wxWindow *arg2 = (wxWindow *) 0 ;
22140 wxDC *arg3 = 0 ;
22141 wxRect *arg4 = 0 ;
22142 int arg5 = (int) 0 ;
22143 wxRect temp4 ;
22144 PyObject * obj0 = 0 ;
22145 PyObject * obj1 = 0 ;
22146 PyObject * obj2 = 0 ;
22147 PyObject * obj3 = 0 ;
22148 PyObject * obj4 = 0 ;
22149 char *kwnames[] = {
22150 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22151 };
22152
22153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22155 if (SWIG_arg_fail(1)) SWIG_fail;
22156 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22157 if (SWIG_arg_fail(2)) SWIG_fail;
22158 {
22159 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22160 if (SWIG_arg_fail(3)) SWIG_fail;
22161 if (arg3 == NULL) {
22162 SWIG_null_ref("wxDC");
22163 }
22164 if (SWIG_arg_fail(3)) SWIG_fail;
22165 }
22166 {
22167 arg4 = &temp4;
22168 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22169 }
22170 if (obj4) {
22171 {
22172 arg5 = static_cast<int >(SWIG_As_int(obj4));
22173 if (SWIG_arg_fail(5)) SWIG_fail;
22174 }
22175 }
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22179
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 Py_INCREF(Py_None); resultobj = Py_None;
22184 return resultobj;
22185 fail:
22186 return NULL;
22187 }
22188
22189
22190 static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) {
22191 PyObject *resultobj = NULL;
22192 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22193 wxWindow *arg2 = (wxWindow *) 0 ;
22194 wxDC *arg3 = 0 ;
22195 wxRect *arg4 = 0 ;
22196 int arg5 = (int) 0 ;
22197 wxRect temp4 ;
22198 PyObject * obj0 = 0 ;
22199 PyObject * obj1 = 0 ;
22200 PyObject * obj2 = 0 ;
22201 PyObject * obj3 = 0 ;
22202 PyObject * obj4 = 0 ;
22203 char *kwnames[] = {
22204 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22205 };
22206
22207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22208 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22209 if (SWIG_arg_fail(1)) SWIG_fail;
22210 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22211 if (SWIG_arg_fail(2)) SWIG_fail;
22212 {
22213 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22214 if (SWIG_arg_fail(3)) SWIG_fail;
22215 if (arg3 == NULL) {
22216 SWIG_null_ref("wxDC");
22217 }
22218 if (SWIG_arg_fail(3)) SWIG_fail;
22219 }
22220 {
22221 arg4 = &temp4;
22222 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22223 }
22224 if (obj4) {
22225 {
22226 arg5 = static_cast<int >(SWIG_As_int(obj4));
22227 if (SWIG_arg_fail(5)) SWIG_fail;
22228 }
22229 }
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
22233
22234 wxPyEndAllowThreads(__tstate);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 }
22237 Py_INCREF(Py_None); resultobj = Py_None;
22238 return resultobj;
22239 fail:
22240 return NULL;
22241 }
22242
22243
22244 static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) {
22245 PyObject *resultobj = NULL;
22246 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22247 wxWindow *arg2 = (wxWindow *) 0 ;
22248 SwigValueWrapper<wxSplitterRenderParams > result;
22249 PyObject * obj0 = 0 ;
22250 PyObject * obj1 = 0 ;
22251 char *kwnames[] = {
22252 (char *) "self",(char *) "win", NULL
22253 };
22254
22255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail;
22256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22257 if (SWIG_arg_fail(1)) SWIG_fail;
22258 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22259 if (SWIG_arg_fail(2)) SWIG_fail;
22260 {
22261 PyThreadState* __tstate = wxPyBeginAllowThreads();
22262 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
22263
22264 wxPyEndAllowThreads(__tstate);
22265 if (PyErr_Occurred()) SWIG_fail;
22266 }
22267 {
22268 wxSplitterRenderParams * resultptr;
22269 resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result));
22270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1);
22271 }
22272 return resultobj;
22273 fail:
22274 return NULL;
22275 }
22276
22277
22278 static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) {
22279 PyObject *resultobj = NULL;
22280 wxRendererNative *result;
22281 char *kwnames[] = {
22282 NULL
22283 };
22284
22285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail;
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 {
22289 wxRendererNative &_result_ref = wxRendererNative::Get();
22290 result = (wxRendererNative *) &_result_ref;
22291 }
22292
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22297 return resultobj;
22298 fail:
22299 return NULL;
22300 }
22301
22302
22303 static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj = NULL;
22305 wxRendererNative *result;
22306 char *kwnames[] = {
22307 NULL
22308 };
22309
22310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 {
22314 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
22315 result = (wxRendererNative *) &_result_ref;
22316 }
22317
22318 wxPyEndAllowThreads(__tstate);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 }
22321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22322 return resultobj;
22323 fail:
22324 return NULL;
22325 }
22326
22327
22328 static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
22329 PyObject *resultobj = NULL;
22330 wxRendererNative *result;
22331 char *kwnames[] = {
22332 NULL
22333 };
22334
22335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail;
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 {
22339 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
22340 result = (wxRendererNative *) &_result_ref;
22341 }
22342
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22347 return resultobj;
22348 fail:
22349 return NULL;
22350 }
22351
22352
22353 static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj = NULL;
22355 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22356 wxRendererNative *result;
22357 PyObject * obj0 = 0 ;
22358 char *kwnames[] = {
22359 (char *) "renderer", NULL
22360 };
22361
22362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail;
22363 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22364 if (SWIG_arg_fail(1)) SWIG_fail;
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 result = (wxRendererNative *)wxRendererNative::Set(arg1);
22368
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22373 return resultobj;
22374 fail:
22375 return NULL;
22376 }
22377
22378
22379 static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj = NULL;
22381 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22382 SwigValueWrapper<wxRendererVersion > result;
22383 PyObject * obj0 = 0 ;
22384 char *kwnames[] = {
22385 (char *) "self", NULL
22386 };
22387
22388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail;
22389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22390 if (SWIG_arg_fail(1)) SWIG_fail;
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 result = ((wxRendererNative const *)arg1)->GetVersion();
22394
22395 wxPyEndAllowThreads(__tstate);
22396 if (PyErr_Occurred()) SWIG_fail;
22397 }
22398 {
22399 wxRendererVersion * resultptr;
22400 resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result));
22401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1);
22402 }
22403 return resultobj;
22404 fail:
22405 return NULL;
22406 }
22407
22408
22409 static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) {
22410 PyObject *obj;
22411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22412 SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj);
22413 Py_INCREF(obj);
22414 return Py_BuildValue((char *)"");
22415 }
22416 static PyMethodDef SwigMethods[] = {
22417 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22418 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22419 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22420 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22421 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
22422 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
22423 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22424 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
22425 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22426 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22427 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
22428 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
22429 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
22430 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22431 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22432 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22433 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
22434 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22435 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22436 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22437 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22438 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22439 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
22440 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22441 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22442 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22443 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22444 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
22445 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22446 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
22447 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22448 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22449 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22450 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22451 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22452 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22453 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22454 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22455 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22456 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22457 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22458 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22459 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22460 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22461 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22462 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22463 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL},
22464 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22465 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22466 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22467 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22468 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
22469 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22470 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22471 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22472 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22473 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22474 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22475 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22476 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22477 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22478 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
22479 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22480 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
22481 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22482 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22483 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22484 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22485 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22486 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22487 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
22488 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22489 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22490 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22491 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22492 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22493 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22494 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22495 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
22496 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22497 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22498 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
22499 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22500 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
22501 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22502 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22503 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22504 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22505 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22506 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22507 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22508 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22509 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
22510 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22511 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22512 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
22513 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
22514 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
22515 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22516 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22517 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22518 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22519 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22520 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22521 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22522 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22523 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22524 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22525 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22526 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22527 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22528 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22529 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22530 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22531 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22532 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22533 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
22534 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22535 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22536 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22537 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22538 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22539 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22540 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22541 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
22542 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22543 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22544 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22545 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22546 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22547 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22548 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22549 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
22550 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22551 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22552 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
22553 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22554 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22555 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22556 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22557 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22558 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22559 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22560 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22561 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22562 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22563 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22564 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
22565 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22566 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22567 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22568 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
22569 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22570 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22571 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
22572 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
22573 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22574 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
22575 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
22576 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
22577 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
22578 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
22579 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22580 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
22581 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
22582 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
22583 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22584 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
22585 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
22586 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22587 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
22588 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
22589 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22590 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22591 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22592 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22593 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
22594 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22595 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22596 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
22597 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
22598 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
22599 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22600 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
22601 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22602 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
22603 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
22604 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
22605 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
22606 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
22607 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
22608 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22609 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22610 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22611 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
22612 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22613 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22614 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22615 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22616 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22617 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22618 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22619 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22620 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22621 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22622 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22623 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22624 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22625 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22626 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22627 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22628 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22629 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22630 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
22631 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22632 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22633 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
22634 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
22635 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
22636 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
22637 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
22638 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22639 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22640 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22641 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22642 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
22643 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22644 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22645 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22646 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22647 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22648 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22649 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22650 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
22651 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22652 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22653 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
22654 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
22655 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22656 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22657 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22658 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
22659 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
22660 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
22661 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
22662 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
22663 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
22664 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22665 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
22666 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
22667 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22668 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22669 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22670 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22671 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22672 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22673 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22674 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
22675 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22676 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22677 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22678 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22679 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22680 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22681 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22682 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22683 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22684 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22685 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22686 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22687 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22688 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22689 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22690 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22691 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22692 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22693 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22694 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
22695 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22696 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
22697 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
22698 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
22699 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22700 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22701 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22702 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22703 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
22704 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22705 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22706 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22707 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22708 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22709 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22710 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22711 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
22712 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
22713 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
22714 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
22715 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
22716 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
22717 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
22718 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
22719 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22720 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22721 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
22722 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
22723 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22724 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22725 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22726 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22727 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22728 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22729 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
22730 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
22731 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
22732 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
22733 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
22734 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22735 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
22736 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22737 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22738 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
22739 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
22740 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
22741 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22742 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
22743 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22744 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22745 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22746 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
22747 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22748 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22749 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
22750 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
22751 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
22752 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
22753 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL},
22754 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
22755 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22756 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22757 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22758 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
22759 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22760 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
22761 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22762 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
22763 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22764 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
22765 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
22766 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
22767 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22768 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22769 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22770 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22771 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22772 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22773 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22774 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22775 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22776 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
22777 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22778 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
22779 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
22780 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22781 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22782 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22783 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22784 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22785 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
22786 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22787 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
22788 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22789 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
22790 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22791 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22792 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22793 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22794 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22795 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
22796 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
22797 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22798 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22799 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
22800 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22801 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22802 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22803 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
22804 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
22805 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22806 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22807 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22808 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22809 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22810 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22811 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22812 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22813 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22814 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22815 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22816 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22817 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22818 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22819 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
22820 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22821 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22822 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
22823 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22824 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
22825 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
22826 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22827 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22828 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
22829 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
22830 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22831 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22832 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22833 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22834 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22835 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
22836 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22837 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22838 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22839 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22840 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22841 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22842 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22843 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22844 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22845 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22846 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22847 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22848 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22849 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22850 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22851 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22852 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22853 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22854 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22855 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22856 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22857 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22858 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22859 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22860 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
22861 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22862 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22863 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22864 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22865 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22866 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22867 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
22868 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
22869 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
22870 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
22871 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22872 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL},
22873 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
22874 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
22875 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
22876 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
22877 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
22878 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
22879 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
22880 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
22881 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
22882 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
22883 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
22884 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
22885 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
22886 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
22887 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
22888 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22889 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
22890 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
22891 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
22892 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22893 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22894 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
22895 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
22896 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
22897 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22898 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
22899 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
22900 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
22901 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
22902 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
22903 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
22904 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22905 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22906 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22907 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22908 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
22909 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22910 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22911 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22912 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
22913 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22914 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22915 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22916 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22917 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
22918 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
22919 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL},
22920 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
22921 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
22922 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
22923 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22924 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22925 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
22926 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
22927 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22928 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22929 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22930 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
22931 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
22932 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
22933 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
22934 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
22935 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22936 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
22937 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
22938 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
22939 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
22940 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22941 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
22942 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22943 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22944 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22945 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22946 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
22947 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22948 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22949 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
22950 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
22951 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
22952 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
22953 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
22954 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
22955 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
22956 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
22957 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22958 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
22959 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
22960 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22961 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22962 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22963 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22964 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22965 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22966 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22967 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22968 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22969 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22970 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22971 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
22972 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22973 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
22974 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22975 { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22976 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL},
22977 { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL},
22978 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL},
22979 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
22980 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22981 { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22982 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
22983 { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL},
22984 { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL},
22985 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
22986 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
22987 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
22988 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
22989 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
22990 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
22991 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
22992 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
22993 { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22994 { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
22995 { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL},
22996 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22997 { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22998 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
22999 { NULL, NULL, 0, NULL }
23000 };
23001
23002
23003 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
23004
23005 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
23006 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
23007 }
23008 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
23009 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
23010 }
23011 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
23012 return (void *)((wxGDIObject *) ((wxIcon *) x));
23013 }
23014 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
23015 return (void *)((wxGDIObject *) ((wxPalette *) x));
23016 }
23017 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
23018 return (void *)((wxGDIObject *) ((wxPen *) x));
23019 }
23020 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
23021 return (void *)((wxGDIObject *) ((wxFont *) x));
23022 }
23023 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
23024 return (void *)((wxGDIObject *) ((wxCursor *) x));
23025 }
23026 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
23027 return (void *)((wxGDIObject *) ((wxBitmap *) x));
23028 }
23029 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
23030 return (void *)((wxGDIObject *) ((wxRegion *) x));
23031 }
23032 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
23033 return (void *)((wxGDIObject *) ((wxBrush *) x));
23034 }
23035 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
23036 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
23037 }
23038 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
23039 return (void *)((wxDC *) ((wxScreenDC *) x));
23040 }
23041 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
23042 return (void *)((wxDC *) ((wxMirrorDC *) x));
23043 }
23044 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
23045 return (void *)((wxDC *) ((wxMemoryDC *) x));
23046 }
23047 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
23048 return (void *)((wxDC *) ((wxWindowDC *) x));
23049 }
23050 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
23051 return (void *)((wxDC *) ((wxMetaFileDC *) x));
23052 }
23053 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
23054 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
23055 }
23056 static void *_p_wxClientDCTo_p_wxDC(void *x) {
23057 return (void *)((wxDC *) ((wxClientDC *) x));
23058 }
23059 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
23060 return (void *)((wxDC *) ((wxPaintDC *) x));
23061 }
23062 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
23063 return (void *)((wxDC *) ((wxPostScriptDC *) x));
23064 }
23065 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
23066 return (void *)((wxDC *) ((wxPrinterDC *) x));
23067 }
23068 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
23069 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
23070 }
23071 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
23072 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
23073 }
23074 static void *_p_wxPenTo_p_wxObject(void *x) {
23075 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
23076 }
23077 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
23078 return (void *)((wxObject *) ((wxRegionIterator *) x));
23079 }
23080 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
23081 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
23082 }
23083 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
23084 return (void *)((wxObject *) ((wxSizerItem *) x));
23085 }
23086 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
23087 return (void *)((wxObject *) ((wxColourDatabase *) x));
23088 }
23089 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
23090 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
23091 }
23092 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
23093 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
23094 }
23095 static void *_p_wxIconTo_p_wxObject(void *x) {
23096 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
23097 }
23098 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
23099 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
23100 }
23101 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
23102 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
23103 }
23104 static void *_p_wxSizerTo_p_wxObject(void *x) {
23105 return (void *)((wxObject *) ((wxSizer *) x));
23106 }
23107 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
23108 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
23109 }
23110 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
23111 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
23112 }
23113 static void *_p_wxPenListTo_p_wxObject(void *x) {
23114 return (void *)((wxObject *) ((wxPenList *) x));
23115 }
23116 static void *_p_wxEventTo_p_wxObject(void *x) {
23117 return (void *)((wxObject *) ((wxEvent *) x));
23118 }
23119 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
23120 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
23121 }
23122 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
23123 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
23124 }
23125 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
23126 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
23127 }
23128 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
23129 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
23130 }
23131 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
23132 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
23133 }
23134 static void *_p_wxDCTo_p_wxObject(void *x) {
23135 return (void *)((wxObject *) ((wxDC *) x));
23136 }
23137 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
23138 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
23139 }
23140 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
23141 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
23142 }
23143 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
23144 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
23145 }
23146 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
23147 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
23148 }
23149 static void *_p_wxControlTo_p_wxObject(void *x) {
23150 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
23151 }
23152 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
23153 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
23154 }
23155 static void *_p_wxClientDCTo_p_wxObject(void *x) {
23156 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
23157 }
23158 static void *_p_wxFSFileTo_p_wxObject(void *x) {
23159 return (void *)((wxObject *) ((wxFSFile *) x));
23160 }
23161 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
23162 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
23163 }
23164 static void *_p_wxRegionTo_p_wxObject(void *x) {
23165 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
23166 }
23167 static void *_p_wxPySizerTo_p_wxObject(void *x) {
23168 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
23169 }
23170 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
23171 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
23172 }
23173 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
23174 return (void *)((wxObject *) ((wxGDIObject *) x));
23175 }
23176 static void *_p_wxEffectsTo_p_wxObject(void *x) {
23177 return (void *)((wxObject *) ((wxEffects *) x));
23178 }
23179 static void *_p_wxPyEventTo_p_wxObject(void *x) {
23180 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
23181 }
23182 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
23183 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
23184 }
23185 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
23186 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
23187 }
23188 static void *_p_wxShowEventTo_p_wxObject(void *x) {
23189 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
23190 }
23191 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
23192 return (void *)((wxObject *) ((wxMenuItem *) x));
23193 }
23194 static void *_p_wxDateEventTo_p_wxObject(void *x) {
23195 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
23196 }
23197 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
23198 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
23199 }
23200 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
23201 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
23202 }
23203 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
23204 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
23205 }
23206 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
23207 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
23208 }
23209 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
23210 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
23211 }
23212 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
23213 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
23214 }
23215 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
23216 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
23217 }
23218 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
23219 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
23220 }
23221 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
23222 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
23223 }
23224 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
23225 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
23226 }
23227 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
23228 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
23229 }
23230 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
23231 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
23232 }
23233 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
23234 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
23235 }
23236 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
23237 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
23238 }
23239 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
23240 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
23241 }
23242 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
23243 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
23244 }
23245 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
23246 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
23247 }
23248 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
23249 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
23250 }
23251 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
23252 return (void *)((wxObject *) ((wxImageHandler *) x));
23253 }
23254 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
23255 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
23256 }
23257 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
23258 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
23259 }
23260 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
23261 return (void *)((wxObject *) ((wxEvtHandler *) x));
23262 }
23263 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
23264 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
23265 }
23266 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
23267 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
23268 }
23269 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
23270 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
23271 }
23272 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
23273 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
23274 }
23275 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
23276 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
23277 }
23278 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
23279 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
23280 }
23281 static void *_p_wxImageTo_p_wxObject(void *x) {
23282 return (void *)((wxObject *) ((wxImage *) x));
23283 }
23284 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
23285 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
23286 }
23287 static void *_p_wxPaletteTo_p_wxObject(void *x) {
23288 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
23289 }
23290 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
23291 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
23292 }
23293 static void *_p_wxImageListTo_p_wxObject(void *x) {
23294 return (void *)((wxObject *) ((wxImageList *) x));
23295 }
23296 static void *_p_wxCursorTo_p_wxObject(void *x) {
23297 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
23298 }
23299 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
23300 return (void *)((wxObject *) ((wxEncodingConverter *) x));
23301 }
23302 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
23303 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
23304 }
23305 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
23306 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
23307 }
23308 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
23309 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
23310 }
23311 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
23312 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
23313 }
23314 static void *_p_wxWindowTo_p_wxObject(void *x) {
23315 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
23316 }
23317 static void *_p_wxMenuTo_p_wxObject(void *x) {
23318 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
23319 }
23320 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
23321 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
23322 }
23323 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
23324 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
23325 }
23326 static void *_p_wxBrushListTo_p_wxObject(void *x) {
23327 return (void *)((wxObject *) ((wxBrushList *) x));
23328 }
23329 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
23330 return (void *)((wxObject *) ((wxFileSystem *) x));
23331 }
23332 static void *_p_wxBitmapTo_p_wxObject(void *x) {
23333 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
23334 }
23335 static void *_p_wxMaskTo_p_wxObject(void *x) {
23336 return (void *)((wxObject *) ((wxMask *) x));
23337 }
23338 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
23339 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
23340 }
23341 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
23342 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
23343 }
23344 static void *_p_wxPyAppTo_p_wxObject(void *x) {
23345 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
23346 }
23347 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
23348 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
23349 }
23350 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
23351 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
23352 }
23353 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
23354 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
23355 }
23356 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
23357 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
23358 }
23359 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
23360 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
23361 }
23362 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
23363 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
23364 }
23365 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
23366 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
23367 }
23368 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
23369 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
23370 }
23371 static void *_p_wxFontTo_p_wxObject(void *x) {
23372 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
23373 }
23374 static void *_p_wxBrushTo_p_wxObject(void *x) {
23375 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
23376 }
23377 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
23378 return (void *)((wxObject *) ((wxMetaFile *) x));
23379 }
23380 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
23381 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
23382 }
23383 static void *_p_wxColourTo_p_wxObject(void *x) {
23384 return (void *)((wxObject *) ((wxColour *) x));
23385 }
23386 static void *_p_wxFontListTo_p_wxObject(void *x) {
23387 return (void *)((wxObject *) ((wxFontList *) x));
23388 }
23389 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
23390 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
23391 }
23392 static void *_p_wxValidatorTo_p_wxObject(void *x) {
23393 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
23394 }
23395 static void *_p_wxControlTo_p_wxWindow(void *x) {
23396 return (void *)((wxWindow *) ((wxControl *) x));
23397 }
23398 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
23399 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
23400 }
23401 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
23402 return (void *)((wxWindow *) ((wxMenuBar *) x));
23403 }
23404 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
23405 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0};
23406 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
23407 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
23408 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
23409 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
23410 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
23411 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
23412 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0};
23413 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0};
23414 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0};
23415 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0};
23416 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0};
23417 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
23418 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0};
23419 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
23420 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
23421 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0};
23422 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
23423 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0};
23424 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0};
23425 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
23426 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0};
23427 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0};
23428 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0};
23429 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
23430 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0};
23431 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0};
23432 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0};
23433 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0};
23434 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0};
23435 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0};
23436 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0};
23437 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0};
23438 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0};
23439 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0};
23440 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0};
23441 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0};
23442 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0};
23443 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
23444 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
23445 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
23446 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
23447 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
23448 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
23449 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
23450 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
23451 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
23452 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
23453 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
23454 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
23455 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
23456 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
23457 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
23458 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
23459 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
23460 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
23461 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
23462 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
23463 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
23464 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
23465 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
23466 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
23467 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
23468 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
23469 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
23470 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
23471 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
23472 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
23473 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
23474 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
23475 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
23476 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
23477 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
23478 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
23479 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
23480 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
23481 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
23482 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
23483 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
23484 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
23485 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
23486 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
23487 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
23488 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
23489 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
23490 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0};
23491 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
23492 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
23493 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
23494 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
23495 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
23496 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
23497 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
23498 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
23499 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
23500 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
23501 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
23502 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
23503 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
23504 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
23505 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
23506 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
23507 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
23508 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
23509 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
23510 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
23511 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
23512 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
23513 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
23514 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
23515 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
23516 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
23517 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
23518 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0};
23519 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0};
23520 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
23521 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0};
23522 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0};
23523 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
23524 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0};
23525 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0};
23526 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0};
23527 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0};
23528 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
23529 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0};
23530 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0};
23531 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0};
23532 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0};
23533 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0};
23534 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
23535 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0};
23536 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
23537 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
23538 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0};
23539 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
23540 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
23541 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
23542
23543 static swig_type_info *swig_type_initial[] = {
23544 &_swigt__p_char,
23545 &_swigt__p_double,
23546 &_swigt__p_form_ops_t,
23547 &_swigt__p_int,
23548 &_swigt__p_unsigned_char,
23549 &_swigt__p_unsigned_int,
23550 &_swigt__p_unsigned_long,
23551 &_swigt__p_wxANIHandler,
23552 &_swigt__p_wxAcceleratorTable,
23553 &_swigt__p_wxActivateEvent,
23554 &_swigt__p_wxBMPHandler,
23555 &_swigt__p_wxBitmap,
23556 &_swigt__p_wxBoxSizer,
23557 &_swigt__p_wxBrush,
23558 &_swigt__p_wxBrushList,
23559 &_swigt__p_wxBufferedDC,
23560 &_swigt__p_wxBufferedPaintDC,
23561 &_swigt__p_wxCURHandler,
23562 &_swigt__p_wxChildFocusEvent,
23563 &_swigt__p_wxClientDC,
23564 &_swigt__p_wxCloseEvent,
23565 &_swigt__p_wxColour,
23566 &_swigt__p_wxColourDatabase,
23567 &_swigt__p_wxCommandEvent,
23568 &_swigt__p_wxContextMenuEvent,
23569 &_swigt__p_wxControl,
23570 &_swigt__p_wxControlWithItems,
23571 &_swigt__p_wxCursor,
23572 &_swigt__p_wxDC,
23573 &_swigt__p_wxDash,
23574 &_swigt__p_wxDateEvent,
23575 &_swigt__p_wxDisplayChangedEvent,
23576 &_swigt__p_wxDropFilesEvent,
23577 &_swigt__p_wxDuplexMode,
23578 &_swigt__p_wxEffects,
23579 &_swigt__p_wxEncodingConverter,
23580 &_swigt__p_wxEraseEvent,
23581 &_swigt__p_wxEvent,
23582 &_swigt__p_wxEvtHandler,
23583 &_swigt__p_wxFSFile,
23584 &_swigt__p_wxFileSystem,
23585 &_swigt__p_wxFlexGridSizer,
23586 &_swigt__p_wxFocusEvent,
23587 &_swigt__p_wxFont,
23588 &_swigt__p_wxFontList,
23589 &_swigt__p_wxFontMapper,
23590 &_swigt__p_wxGBSizerItem,
23591 &_swigt__p_wxGDIObject,
23592 &_swigt__p_wxGIFHandler,
23593 &_swigt__p_wxGridBagSizer,
23594 &_swigt__p_wxGridSizer,
23595 &_swigt__p_wxICOHandler,
23596 &_swigt__p_wxIcon,
23597 &_swigt__p_wxIconBundle,
23598 &_swigt__p_wxIconLocation,
23599 &_swigt__p_wxIconizeEvent,
23600 &_swigt__p_wxIdleEvent,
23601 &_swigt__p_wxImage,
23602 &_swigt__p_wxImageHandler,
23603 &_swigt__p_wxImageList,
23604 &_swigt__p_wxIndividualLayoutConstraint,
23605 &_swigt__p_wxInitDialogEvent,
23606 &_swigt__p_wxJPEGHandler,
23607 &_swigt__p_wxKeyEvent,
23608 &_swigt__p_wxLanguageInfo,
23609 &_swigt__p_wxLayoutConstraints,
23610 &_swigt__p_wxLocale,
23611 &_swigt__p_wxMask,
23612 &_swigt__p_wxMaximizeEvent,
23613 &_swigt__p_wxMemoryDC,
23614 &_swigt__p_wxMenu,
23615 &_swigt__p_wxMenuBar,
23616 &_swigt__p_wxMenuEvent,
23617 &_swigt__p_wxMenuItem,
23618 &_swigt__p_wxMetaFile,
23619 &_swigt__p_wxMetaFileDC,
23620 &_swigt__p_wxMirrorDC,
23621 &_swigt__p_wxMouseCaptureChangedEvent,
23622 &_swigt__p_wxMouseEvent,
23623 &_swigt__p_wxMoveEvent,
23624 &_swigt__p_wxNativeEncodingInfo,
23625 &_swigt__p_wxNativeFontInfo,
23626 &_swigt__p_wxNavigationKeyEvent,
23627 &_swigt__p_wxNcPaintEvent,
23628 &_swigt__p_wxNotifyEvent,
23629 &_swigt__p_wxObject,
23630 &_swigt__p_wxPCXHandler,
23631 &_swigt__p_wxPNGHandler,
23632 &_swigt__p_wxPNMHandler,
23633 &_swigt__p_wxPaintDC,
23634 &_swigt__p_wxPaintEvent,
23635 &_swigt__p_wxPalette,
23636 &_swigt__p_wxPaletteChangedEvent,
23637 &_swigt__p_wxPaperSize,
23638 &_swigt__p_wxPen,
23639 &_swigt__p_wxPenList,
23640 &_swigt__p_wxPoint,
23641 &_swigt__p_wxPostScriptDC,
23642 &_swigt__p_wxPrintData,
23643 &_swigt__p_wxPrinterDC,
23644 &_swigt__p_wxPyApp,
23645 &_swigt__p_wxPyCommandEvent,
23646 &_swigt__p_wxPyEvent,
23647 &_swigt__p_wxPyFontEnumerator,
23648 &_swigt__p_wxPyImageHandler,
23649 &_swigt__p_wxPySizer,
23650 &_swigt__p_wxPyValidator,
23651 &_swigt__p_wxQueryNewPaletteEvent,
23652 &_swigt__p_wxRect,
23653 &_swigt__p_wxRegion,
23654 &_swigt__p_wxRegionIterator,
23655 &_swigt__p_wxRendererNative,
23656 &_swigt__p_wxRendererVersion,
23657 &_swigt__p_wxScreenDC,
23658 &_swigt__p_wxScrollEvent,
23659 &_swigt__p_wxScrollWinEvent,
23660 &_swigt__p_wxSetCursorEvent,
23661 &_swigt__p_wxShowEvent,
23662 &_swigt__p_wxSize,
23663 &_swigt__p_wxSizeEvent,
23664 &_swigt__p_wxSizer,
23665 &_swigt__p_wxSizerItem,
23666 &_swigt__p_wxSplitterRenderParams,
23667 &_swigt__p_wxStaticBoxSizer,
23668 &_swigt__p_wxStdDialogButtonSizer,
23669 &_swigt__p_wxString,
23670 &_swigt__p_wxSysColourChangedEvent,
23671 &_swigt__p_wxTIFFHandler,
23672 &_swigt__p_wxUpdateUIEvent,
23673 &_swigt__p_wxValidator,
23674 &_swigt__p_wxWindow,
23675 &_swigt__p_wxWindowCreateEvent,
23676 &_swigt__p_wxWindowDC,
23677 &_swigt__p_wxWindowDestroyEvent,
23678 &_swigt__p_wxXPMHandler,
23679 &_swigt__ptrdiff_t,
23680 &_swigt__std__ptrdiff_t,
23681 &_swigt__unsigned_int,
23682 };
23683
23684 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
23685 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
23686 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
23687 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
23688 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
23689 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
23690 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
23691 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
23692 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
23693 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
23694 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}};
23695 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
23696 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
23697 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
23698 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
23699 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
23700 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}};
23701 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
23702 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
23703 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
23704 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
23705 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
23706 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
23707 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
23708 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}};
23709 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
23710 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
23711 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
23712 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
23713 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
23714 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
23715 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
23716 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
23717 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}};
23718 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
23719 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
23720 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
23721 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
23722 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
23723 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
23724 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
23725 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
23726 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
23727 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
23728 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
23729 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
23730 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
23731 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
23732 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
23733 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
23734 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
23735 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23736 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23737 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
23738 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23739 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23740 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23741 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23742 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23743 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23744 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
23745 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
23746 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
23747 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
23748 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
23749 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
23750 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
23751 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
23752 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
23753 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
23754 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
23755 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
23756 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23757 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23758 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23759 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
23760 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
23761 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
23762 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
23763 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
23764 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
23765 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23766 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23767 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
23768 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
23769 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
23770 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
23771 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
23772 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
23773 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
23774 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
23775 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
23776 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
23777 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
23778 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
23779 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23780 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23781 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
23782 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
23783 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23784 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23785 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
23786 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
23787 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
23788 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
23789 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23790 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23791 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
23792 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23793 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23794 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
23795 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
23796 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
23797 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}};
23798 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
23799 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
23800 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
23801 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
23802 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
23803 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
23804 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
23805 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
23806 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
23807 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
23808 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
23809 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
23810 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
23811 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
23812 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
23813 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
23814 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
23815 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
23816 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
23817 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}};
23818 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
23819 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23820 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23821 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
23822
23823 static swig_cast_info *swig_cast_initial[] = {
23824 _swigc__p_char,
23825 _swigc__p_double,
23826 _swigc__p_form_ops_t,
23827 _swigc__p_int,
23828 _swigc__p_unsigned_char,
23829 _swigc__p_unsigned_int,
23830 _swigc__p_unsigned_long,
23831 _swigc__p_wxANIHandler,
23832 _swigc__p_wxAcceleratorTable,
23833 _swigc__p_wxActivateEvent,
23834 _swigc__p_wxBMPHandler,
23835 _swigc__p_wxBitmap,
23836 _swigc__p_wxBoxSizer,
23837 _swigc__p_wxBrush,
23838 _swigc__p_wxBrushList,
23839 _swigc__p_wxBufferedDC,
23840 _swigc__p_wxBufferedPaintDC,
23841 _swigc__p_wxCURHandler,
23842 _swigc__p_wxChildFocusEvent,
23843 _swigc__p_wxClientDC,
23844 _swigc__p_wxCloseEvent,
23845 _swigc__p_wxColour,
23846 _swigc__p_wxColourDatabase,
23847 _swigc__p_wxCommandEvent,
23848 _swigc__p_wxContextMenuEvent,
23849 _swigc__p_wxControl,
23850 _swigc__p_wxControlWithItems,
23851 _swigc__p_wxCursor,
23852 _swigc__p_wxDC,
23853 _swigc__p_wxDash,
23854 _swigc__p_wxDateEvent,
23855 _swigc__p_wxDisplayChangedEvent,
23856 _swigc__p_wxDropFilesEvent,
23857 _swigc__p_wxDuplexMode,
23858 _swigc__p_wxEffects,
23859 _swigc__p_wxEncodingConverter,
23860 _swigc__p_wxEraseEvent,
23861 _swigc__p_wxEvent,
23862 _swigc__p_wxEvtHandler,
23863 _swigc__p_wxFSFile,
23864 _swigc__p_wxFileSystem,
23865 _swigc__p_wxFlexGridSizer,
23866 _swigc__p_wxFocusEvent,
23867 _swigc__p_wxFont,
23868 _swigc__p_wxFontList,
23869 _swigc__p_wxFontMapper,
23870 _swigc__p_wxGBSizerItem,
23871 _swigc__p_wxGDIObject,
23872 _swigc__p_wxGIFHandler,
23873 _swigc__p_wxGridBagSizer,
23874 _swigc__p_wxGridSizer,
23875 _swigc__p_wxICOHandler,
23876 _swigc__p_wxIcon,
23877 _swigc__p_wxIconBundle,
23878 _swigc__p_wxIconLocation,
23879 _swigc__p_wxIconizeEvent,
23880 _swigc__p_wxIdleEvent,
23881 _swigc__p_wxImage,
23882 _swigc__p_wxImageHandler,
23883 _swigc__p_wxImageList,
23884 _swigc__p_wxIndividualLayoutConstraint,
23885 _swigc__p_wxInitDialogEvent,
23886 _swigc__p_wxJPEGHandler,
23887 _swigc__p_wxKeyEvent,
23888 _swigc__p_wxLanguageInfo,
23889 _swigc__p_wxLayoutConstraints,
23890 _swigc__p_wxLocale,
23891 _swigc__p_wxMask,
23892 _swigc__p_wxMaximizeEvent,
23893 _swigc__p_wxMemoryDC,
23894 _swigc__p_wxMenu,
23895 _swigc__p_wxMenuBar,
23896 _swigc__p_wxMenuEvent,
23897 _swigc__p_wxMenuItem,
23898 _swigc__p_wxMetaFile,
23899 _swigc__p_wxMetaFileDC,
23900 _swigc__p_wxMirrorDC,
23901 _swigc__p_wxMouseCaptureChangedEvent,
23902 _swigc__p_wxMouseEvent,
23903 _swigc__p_wxMoveEvent,
23904 _swigc__p_wxNativeEncodingInfo,
23905 _swigc__p_wxNativeFontInfo,
23906 _swigc__p_wxNavigationKeyEvent,
23907 _swigc__p_wxNcPaintEvent,
23908 _swigc__p_wxNotifyEvent,
23909 _swigc__p_wxObject,
23910 _swigc__p_wxPCXHandler,
23911 _swigc__p_wxPNGHandler,
23912 _swigc__p_wxPNMHandler,
23913 _swigc__p_wxPaintDC,
23914 _swigc__p_wxPaintEvent,
23915 _swigc__p_wxPalette,
23916 _swigc__p_wxPaletteChangedEvent,
23917 _swigc__p_wxPaperSize,
23918 _swigc__p_wxPen,
23919 _swigc__p_wxPenList,
23920 _swigc__p_wxPoint,
23921 _swigc__p_wxPostScriptDC,
23922 _swigc__p_wxPrintData,
23923 _swigc__p_wxPrinterDC,
23924 _swigc__p_wxPyApp,
23925 _swigc__p_wxPyCommandEvent,
23926 _swigc__p_wxPyEvent,
23927 _swigc__p_wxPyFontEnumerator,
23928 _swigc__p_wxPyImageHandler,
23929 _swigc__p_wxPySizer,
23930 _swigc__p_wxPyValidator,
23931 _swigc__p_wxQueryNewPaletteEvent,
23932 _swigc__p_wxRect,
23933 _swigc__p_wxRegion,
23934 _swigc__p_wxRegionIterator,
23935 _swigc__p_wxRendererNative,
23936 _swigc__p_wxRendererVersion,
23937 _swigc__p_wxScreenDC,
23938 _swigc__p_wxScrollEvent,
23939 _swigc__p_wxScrollWinEvent,
23940 _swigc__p_wxSetCursorEvent,
23941 _swigc__p_wxShowEvent,
23942 _swigc__p_wxSize,
23943 _swigc__p_wxSizeEvent,
23944 _swigc__p_wxSizer,
23945 _swigc__p_wxSizerItem,
23946 _swigc__p_wxSplitterRenderParams,
23947 _swigc__p_wxStaticBoxSizer,
23948 _swigc__p_wxStdDialogButtonSizer,
23949 _swigc__p_wxString,
23950 _swigc__p_wxSysColourChangedEvent,
23951 _swigc__p_wxTIFFHandler,
23952 _swigc__p_wxUpdateUIEvent,
23953 _swigc__p_wxValidator,
23954 _swigc__p_wxWindow,
23955 _swigc__p_wxWindowCreateEvent,
23956 _swigc__p_wxWindowDC,
23957 _swigc__p_wxWindowDestroyEvent,
23958 _swigc__p_wxXPMHandler,
23959 _swigc__ptrdiff_t,
23960 _swigc__std__ptrdiff_t,
23961 _swigc__unsigned_int,
23962 };
23963
23964
23965 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
23966
23967 static swig_const_info swig_const_table[] = {
23968 {0, 0, 0, 0.0, 0, 0}};
23969
23970 #ifdef __cplusplus
23971 }
23972 #endif
23973 /*************************************************************************
23974 * Type initialization:
23975 * This problem is tough by the requirement that no dynamic
23976 * memory is used. Also, since swig_type_info structures store pointers to
23977 * swig_cast_info structures and swig_cast_info structures store pointers back
23978 * to swig_type_info structures, we need some lookup code at initialization.
23979 * The idea is that swig generates all the structures that are needed.
23980 * The runtime then collects these partially filled structures.
23981 * The SWIG_InitializeModule function takes these initial arrays out of
23982 * swig_module, and does all the lookup, filling in the swig_module.types
23983 * array with the correct data and linking the correct swig_cast_info
23984 * structures together.
23985
23986 * The generated swig_type_info structures are assigned staticly to an initial
23987 * array. We just loop though that array, and handle each type individually.
23988 * First we lookup if this type has been already loaded, and if so, use the
23989 * loaded structure instead of the generated one. Then we have to fill in the
23990 * cast linked list. The cast data is initially stored in something like a
23991 * two-dimensional array. Each row corresponds to a type (there are the same
23992 * number of rows as there are in the swig_type_initial array). Each entry in
23993 * a column is one of the swig_cast_info structures for that type.
23994 * The cast_initial array is actually an array of arrays, because each row has
23995 * a variable number of columns. So to actually build the cast linked list,
23996 * we find the array of casts associated with the type, and loop through it
23997 * adding the casts to the list. The one last trick we need to do is making
23998 * sure the type pointer in the swig_cast_info struct is correct.
23999
24000 * First off, we lookup the cast->type name to see if it is already loaded.
24001 * There are three cases to handle:
24002 * 1) If the cast->type has already been loaded AND the type we are adding
24003 * casting info to has not been loaded (it is in this module), THEN we
24004 * replace the cast->type pointer with the type pointer that has already
24005 * been loaded.
24006 * 2) If BOTH types (the one we are adding casting info to, and the
24007 * cast->type) are loaded, THEN the cast info has already been loaded by
24008 * the previous module so we just ignore it.
24009 * 3) Finally, if cast->type has not already been loaded, then we add that
24010 * swig_cast_info to the linked list (because the cast->type) pointer will
24011 * be correct.
24012 **/
24013
24014 #ifdef __cplusplus
24015 extern "C" {
24016 #if 0
24017 } /* c-mode */
24018 #endif
24019 #endif
24020
24021 #if 0
24022 #define SWIGRUNTIME_DEBUG
24023 #endif
24024
24025 SWIGRUNTIME void
24026 SWIG_InitializeModule(void *clientdata) {
24027 size_t i;
24028 swig_module_info *module_head;
24029 static int init_run = 0;
24030
24031 clientdata = clientdata;
24032
24033 if (init_run) return;
24034 init_run = 1;
24035
24036 /* Initialize the swig_module */
24037 swig_module.type_initial = swig_type_initial;
24038 swig_module.cast_initial = swig_cast_initial;
24039
24040 /* Try and load any already created modules */
24041 module_head = SWIG_GetModule(clientdata);
24042 if (module_head) {
24043 swig_module.next = module_head->next;
24044 module_head->next = &swig_module;
24045 } else {
24046 /* This is the first module loaded */
24047 swig_module.next = &swig_module;
24048 SWIG_SetModule(clientdata, &swig_module);
24049 }
24050
24051 /* Now work on filling in swig_module.types */
24052 #ifdef SWIGRUNTIME_DEBUG
24053 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
24054 #endif
24055 for (i = 0; i < swig_module.size; ++i) {
24056 swig_type_info *type = 0;
24057 swig_type_info *ret;
24058 swig_cast_info *cast;
24059
24060 #ifdef SWIGRUNTIME_DEBUG
24061 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
24062 #endif
24063
24064 /* if there is another module already loaded */
24065 if (swig_module.next != &swig_module) {
24066 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
24067 }
24068 if (type) {
24069 /* Overwrite clientdata field */
24070 #ifdef SWIGRUNTIME_DEBUG
24071 printf("SWIG_InitializeModule: found type %s\n", type->name);
24072 #endif
24073 if (swig_module.type_initial[i]->clientdata) {
24074 type->clientdata = swig_module.type_initial[i]->clientdata;
24075 #ifdef SWIGRUNTIME_DEBUG
24076 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
24077 #endif
24078 }
24079 } else {
24080 type = swig_module.type_initial[i];
24081 }
24082
24083 /* Insert casting types */
24084 cast = swig_module.cast_initial[i];
24085 while (cast->type) {
24086 /* Don't need to add information already in the list */
24087 ret = 0;
24088 #ifdef SWIGRUNTIME_DEBUG
24089 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
24090 #endif
24091 if (swig_module.next != &swig_module) {
24092 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
24093 #ifdef SWIGRUNTIME_DEBUG
24094 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
24095 #endif
24096 }
24097 if (ret) {
24098 if (type == swig_module.type_initial[i]) {
24099 #ifdef SWIGRUNTIME_DEBUG
24100 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
24101 #endif
24102 cast->type = ret;
24103 ret = 0;
24104 } else {
24105 /* Check for casting already in the list */
24106 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
24107 #ifdef SWIGRUNTIME_DEBUG
24108 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
24109 #endif
24110 if (!ocast) ret = 0;
24111 }
24112 }
24113
24114 if (!ret) {
24115 #ifdef SWIGRUNTIME_DEBUG
24116 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
24117 #endif
24118 if (type->cast) {
24119 type->cast->prev = cast;
24120 cast->next = type->cast;
24121 }
24122 type->cast = cast;
24123 }
24124 cast++;
24125 }
24126 /* Set entry in modules->types array equal to the type */
24127 swig_module.types[i] = type;
24128 }
24129 swig_module.types[i] = 0;
24130
24131 #ifdef SWIGRUNTIME_DEBUG
24132 printf("**** SWIG_InitializeModule: Cast List ******\n");
24133 for (i = 0; i < swig_module.size; ++i) {
24134 int j = 0;
24135 swig_cast_info *cast = swig_module.cast_initial[i];
24136 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
24137 while (cast->type) {
24138 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
24139 cast++;
24140 ++j;
24141 }
24142 printf("---- Total casts: %d\n",j);
24143 }
24144 printf("**** SWIG_InitializeModule: Cast List ******\n");
24145 #endif
24146 }
24147
24148 /* This function will propagate the clientdata field of type to
24149 * any new swig_type_info structures that have been added into the list
24150 * of equivalent types. It is like calling
24151 * SWIG_TypeClientData(type, clientdata) a second time.
24152 */
24153 SWIGRUNTIME void
24154 SWIG_PropagateClientData(void) {
24155 size_t i;
24156 swig_cast_info *equiv;
24157 static int init_run = 0;
24158
24159 if (init_run) return;
24160 init_run = 1;
24161
24162 for (i = 0; i < swig_module.size; i++) {
24163 if (swig_module.types[i]->clientdata) {
24164 equiv = swig_module.types[i]->cast;
24165 while (equiv) {
24166 if (!equiv->converter) {
24167 if (equiv->type && !equiv->type->clientdata)
24168 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
24169 }
24170 equiv = equiv->next;
24171 }
24172 }
24173 }
24174 }
24175
24176 #ifdef __cplusplus
24177 #if 0
24178 {
24179 /* c-mode */
24180 #endif
24181 }
24182 #endif
24183
24184
24185
24186 #ifdef __cplusplus
24187 extern "C" {
24188 #endif
24189
24190 /* Python-specific SWIG API */
24191 #define SWIG_newvarlink() SWIG_Python_newvarlink()
24192 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
24193 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
24194
24195 /* -----------------------------------------------------------------------------
24196 * global variable support code.
24197 * ----------------------------------------------------------------------------- */
24198
24199 typedef struct swig_globalvar {
24200 char *name; /* Name of global variable */
24201 PyObject *(*get_attr)(void); /* Return the current value */
24202 int (*set_attr)(PyObject *); /* Set the value */
24203 struct swig_globalvar *next;
24204 } swig_globalvar;
24205
24206 typedef struct swig_varlinkobject {
24207 PyObject_HEAD
24208 swig_globalvar *vars;
24209 } swig_varlinkobject;
24210
24211 SWIGINTERN PyObject *
24212 swig_varlink_repr(swig_varlinkobject *v) {
24213 v = v;
24214 return PyString_FromString("<Swig global variables>");
24215 }
24216
24217 SWIGINTERN int
24218 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
24219 swig_globalvar *var;
24220 flags = flags;
24221 fprintf(fp,"Swig global variables { ");
24222 for (var = v->vars; var; var=var->next) {
24223 fprintf(fp,"%s", var->name);
24224 if (var->next) fprintf(fp,", ");
24225 }
24226 fprintf(fp," }\n");
24227 return 0;
24228 }
24229
24230 SWIGINTERN PyObject *
24231 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
24232 swig_globalvar *var = v->vars;
24233 while (var) {
24234 if (strcmp(var->name,n) == 0) {
24235 return (*var->get_attr)();
24236 }
24237 var = var->next;
24238 }
24239 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
24240 return NULL;
24241 }
24242
24243 SWIGINTERN int
24244 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
24245 swig_globalvar *var = v->vars;
24246 while (var) {
24247 if (strcmp(var->name,n) == 0) {
24248 return (*var->set_attr)(p);
24249 }
24250 var = var->next;
24251 }
24252 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
24253 return 1;
24254 }
24255
24256 SWIGINTERN PyTypeObject*
24257 swig_varlink_type(void) {
24258 static char varlink__doc__[] = "Swig var link object";
24259 static PyTypeObject varlink_type
24260 #if !defined(__cplusplus)
24261 ;
24262 static int type_init = 0;
24263 if (!type_init) {
24264 PyTypeObject tmp
24265 #endif
24266 = {
24267 PyObject_HEAD_INIT(&PyType_Type)
24268 0, /* Number of items in variable part (ob_size) */
24269 (char *)"swigvarlink", /* Type name (tp_name) */
24270 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
24271 0, /* Itemsize (tp_itemsize) */
24272 0, /* Deallocator (tp_dealloc) */
24273 (printfunc) swig_varlink_print, /* Print (tp_print) */
24274 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
24275 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
24276 0, /* tp_compare */
24277 (reprfunc) swig_varlink_repr, /* tp_repr */
24278 0, /* tp_as_number */
24279 0, /* tp_as_sequence */
24280 0, /* tp_as_mapping */
24281 0, /* tp_hash */
24282 0, /* tp_call */
24283 0, /* tp_str */
24284 0, /* tp_getattro */
24285 0, /* tp_setattro */
24286 0, /* tp_as_buffer */
24287 0, /* tp_flags */
24288 varlink__doc__, /* tp_doc */
24289 #if PY_VERSION_HEX >= 0x02000000
24290 0, /* tp_traverse */
24291 0, /* tp_clear */
24292 #endif
24293 #if PY_VERSION_HEX >= 0x02010000
24294 0, /* tp_richcompare */
24295 0, /* tp_weaklistoffset */
24296 #endif
24297 #if PY_VERSION_HEX >= 0x02020000
24298 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
24299 #endif
24300 #if PY_VERSION_HEX >= 0x02030000
24301 0, /* tp_del */
24302 #endif
24303 #ifdef COUNT_ALLOCS
24304 0,0,0,0 /* tp_alloc -> tp_next */
24305 #endif
24306 };
24307 #if !defined(__cplusplus)
24308 varlink_type = tmp;
24309 type_init = 1;
24310 }
24311 #endif
24312 return &varlink_type;
24313 }
24314
24315 /* Create a variable linking object for use later */
24316 SWIGINTERN PyObject *
24317 SWIG_Python_newvarlink(void) {
24318 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
24319 if (result) {
24320 result->vars = 0;
24321 }
24322 return ((PyObject*) result);
24323 }
24324
24325 SWIGINTERN void
24326 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
24327 swig_varlinkobject *v = (swig_varlinkobject *) p;
24328 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
24329 if (gv) {
24330 size_t size = strlen(name)+1;
24331 gv->name = (char *)malloc(size);
24332 if (gv->name) {
24333 strncpy(gv->name,name,size);
24334 gv->get_attr = get_attr;
24335 gv->set_attr = set_attr;
24336 gv->next = v->vars;
24337 }
24338 }
24339 v->vars = gv;
24340 }
24341
24342 /* -----------------------------------------------------------------------------
24343 * constants/methods manipulation
24344 * ----------------------------------------------------------------------------- */
24345
24346 /* Install Constants */
24347 SWIGINTERN void
24348 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
24349 PyObject *obj = 0;
24350 size_t i;
24351 for (i = 0; constants[i].type; ++i) {
24352 switch(constants[i].type) {
24353 case SWIG_PY_INT:
24354 obj = PyInt_FromLong(constants[i].lvalue);
24355 break;
24356 case SWIG_PY_FLOAT:
24357 obj = PyFloat_FromDouble(constants[i].dvalue);
24358 break;
24359 case SWIG_PY_STRING:
24360 if (constants[i].pvalue) {
24361 obj = PyString_FromString((char *) constants[i].pvalue);
24362 } else {
24363 Py_INCREF(Py_None);
24364 obj = Py_None;
24365 }
24366 break;
24367 case SWIG_PY_POINTER:
24368 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
24369 break;
24370 case SWIG_PY_BINARY:
24371 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
24372 break;
24373 default:
24374 obj = 0;
24375 break;
24376 }
24377 if (obj) {
24378 PyDict_SetItemString(d,constants[i].name,obj);
24379 Py_DECREF(obj);
24380 }
24381 }
24382 }
24383
24384 /* -----------------------------------------------------------------------------*/
24385 /* Fix SwigMethods to carry the callback ptrs when needed */
24386 /* -----------------------------------------------------------------------------*/
24387
24388 SWIGINTERN void
24389 SWIG_Python_FixMethods(PyMethodDef *methods,
24390 swig_const_info *const_table,
24391 swig_type_info **types,
24392 swig_type_info **types_initial) {
24393 size_t i;
24394 for (i = 0; methods[i].ml_name; ++i) {
24395 char *c = methods[i].ml_doc;
24396 if (c && (c = strstr(c, "swig_ptr: "))) {
24397 int j;
24398 swig_const_info *ci = 0;
24399 char *name = c + 10;
24400 for (j = 0; const_table[j].type; ++j) {
24401 if (strncmp(const_table[j].name, name,
24402 strlen(const_table[j].name)) == 0) {
24403 ci = &(const_table[j]);
24404 break;
24405 }
24406 }
24407 if (ci) {
24408 size_t shift = (ci->ptype) - types;
24409 swig_type_info *ty = types_initial[shift];
24410 size_t ldoc = (c - methods[i].ml_doc);
24411 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
24412 char *ndoc = (char*)malloc(ldoc + lptr + 10);
24413 if (ndoc) {
24414 char *buff = ndoc;
24415 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
24416 if (ptr) {
24417 strncpy(buff, methods[i].ml_doc, ldoc);
24418 buff += ldoc;
24419 strncpy(buff, "swig_ptr: ", 10);
24420 buff += 10;
24421 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
24422 methods[i].ml_doc = ndoc;
24423 }
24424 }
24425 }
24426 }
24427 }
24428 }
24429
24430 /* -----------------------------------------------------------------------------*
24431 * Initialize type list
24432 * -----------------------------------------------------------------------------*/
24433
24434 #ifdef __cplusplus
24435 }
24436 #endif
24437
24438 /* -----------------------------------------------------------------------------*
24439 * Partial Init method
24440 * -----------------------------------------------------------------------------*/
24441
24442 #ifdef __cplusplus
24443 extern "C"
24444 #endif
24445 SWIGEXPORT void SWIG_init(void) {
24446 static PyObject *SWIG_globals = 0;
24447 PyObject *m, *d;
24448 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
24449
24450 /* Fix SwigMethods to carry the callback ptrs when needed */
24451 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
24452
24453 m = Py_InitModule((char *) SWIG_name, SwigMethods);
24454 d = PyModule_GetDict(m);
24455
24456 SWIG_InitializeModule(0);
24457 SWIG_InstallConstants(d,swig_const_table);
24458
24459 {
24460 PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion)));
24461 }
24462 {
24463 PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion)));
24464 }
24465 {
24466 PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion)));
24467 }
24468 {
24469 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT)));
24470 }
24471 {
24472 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE)));
24473 }
24474 {
24475 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN)));
24476 }
24477 {
24478 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT)));
24479 }
24480 {
24481 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS)));
24482 }
24483 {
24484 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN)));
24485 }
24486 {
24487 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE)));
24488 }
24489 {
24490 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX)));
24491 }
24492 {
24493 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN)));
24494 }
24495 {
24496 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL)));
24497 }
24498 {
24499 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC)));
24500 }
24501 {
24502 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT)));
24503 }
24504 {
24505 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX)));
24506 }
24507 {
24508 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL)));
24509 }
24510 {
24511 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT)));
24512 }
24513 {
24514 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD)));
24515 }
24516 {
24517 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX)));
24518 }
24519 {
24520 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT)));
24521 }
24522 {
24523 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC)));
24524 }
24525 {
24526 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT)));
24527 }
24528 {
24529 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT)));
24530 }
24531 {
24532 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD)));
24533 }
24534 {
24535 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED)));
24536 }
24537 {
24538 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED)));
24539 }
24540 {
24541 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED)));
24542 }
24543 {
24544 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH)));
24545 }
24546 {
24547 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK)));
24548 }
24549 {
24550 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM)));
24551 }
24552 {
24553 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT)));
24554 }
24555 {
24556 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1)));
24557 }
24558 {
24559 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2)));
24560 }
24561 {
24562 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3)));
24563 }
24564 {
24565 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4)));
24566 }
24567 {
24568 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5)));
24569 }
24570 {
24571 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6)));
24572 }
24573 {
24574 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7)));
24575 }
24576 {
24577 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8)));
24578 }
24579 {
24580 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9)));
24581 }
24582 {
24583 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10)));
24584 }
24585 {
24586 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11)));
24587 }
24588 {
24589 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12)));
24590 }
24591 {
24592 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13)));
24593 }
24594 {
24595 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14)));
24596 }
24597 {
24598 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15)));
24599 }
24600 {
24601 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX)));
24602 }
24603 {
24604 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8)));
24605 }
24606 {
24607 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U)));
24608 }
24609 {
24610 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE)));
24611 }
24612 {
24613 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN)));
24614 }
24615 {
24616 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437)));
24617 }
24618 {
24619 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850)));
24620 }
24621 {
24622 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852)));
24623 }
24624 {
24625 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855)));
24626 }
24627 {
24628 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866)));
24629 }
24630 {
24631 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874)));
24632 }
24633 {
24634 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932)));
24635 }
24636 {
24637 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936)));
24638 }
24639 {
24640 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949)));
24641 }
24642 {
24643 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950)));
24644 }
24645 {
24646 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250)));
24647 }
24648 {
24649 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251)));
24650 }
24651 {
24652 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252)));
24653 }
24654 {
24655 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253)));
24656 }
24657 {
24658 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254)));
24659 }
24660 {
24661 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255)));
24662 }
24663 {
24664 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256)));
24665 }
24666 {
24667 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257)));
24668 }
24669 {
24670 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX)));
24671 }
24672 {
24673 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7)));
24674 }
24675 {
24676 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8)));
24677 }
24678 {
24679 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP)));
24680 }
24681 {
24682 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE)));
24683 }
24684 {
24685 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE)));
24686 }
24687 {
24688 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE)));
24689 }
24690 {
24691 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE)));
24692 }
24693 {
24694 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN)));
24695 }
24696 {
24697 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE)));
24698 }
24699 {
24700 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD)));
24701 }
24702 {
24703 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN)));
24704 }
24705 {
24706 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC)));
24707 }
24708 {
24709 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW)));
24710 }
24711 {
24712 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK)));
24713 }
24714 {
24715 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC)));
24716 }
24717 {
24718 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI)));
24719 }
24720 {
24721 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI)));
24722 }
24723 {
24724 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI)));
24725 }
24726 {
24727 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA)));
24728 }
24729 {
24730 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI)));
24731 }
24732 {
24733 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL)));
24734 }
24735 {
24736 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU)));
24737 }
24738 {
24739 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA)));
24740 }
24741 {
24742 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM)));
24743 }
24744 {
24745 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE)));
24746 }
24747 {
24748 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE)));
24749 }
24750 {
24751 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER)));
24752 }
24753 {
24754 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI)));
24755 }
24756 {
24757 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN)));
24758 }
24759 {
24760 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN)));
24761 }
24762 {
24763 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN)));
24764 }
24765 {
24766 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP)));
24767 }
24768 {
24769 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN)));
24770 }
24771 {
24772 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN)));
24773 }
24774 {
24775 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC)));
24776 }
24777 {
24778 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR)));
24779 }
24780 {
24781 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE)));
24782 }
24783 {
24784 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT)));
24785 }
24786 {
24787 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL)));
24788 }
24789 {
24790 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS)));
24791 }
24792 {
24793 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH)));
24794 }
24795 {
24796 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN)));
24797 }
24798 {
24799 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC)));
24800 }
24801 {
24802 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN)));
24803 }
24804 {
24805 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC)));
24806 }
24807 {
24808 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC)));
24809 }
24810 {
24811 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD)));
24812 }
24813 {
24814 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN)));
24815 }
24816 {
24817 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX)));
24818 }
24819 {
24820 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX)));
24821 }
24822 {
24823 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16)));
24824 }
24825 {
24826 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32)));
24827 }
24828 {
24829 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE)));
24830 }
24831 {
24832 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312)));
24833 }
24834 {
24835 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5)));
24836 }
24837 {
24838 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS)));
24839 }
24840
24841 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
24842
24843 {
24844 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT)));
24845 }
24846 {
24847 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN)));
24848 }
24849 {
24850 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN)));
24851 }
24852 {
24853 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR)));
24854 }
24855 {
24856 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS)));
24857 }
24858 {
24859 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN)));
24860 }
24861 {
24862 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC)));
24863 }
24864 {
24865 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC)));
24866 }
24867 {
24868 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA)));
24869 }
24870 {
24871 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN)));
24872 }
24873 {
24874 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT)));
24875 }
24876 {
24877 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ)));
24878 }
24879 {
24880 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN)));
24881 }
24882 {
24883 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT)));
24884 }
24885 {
24886 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON)));
24887 }
24888 {
24889 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA)));
24890 }
24891 {
24892 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO)));
24893 }
24894 {
24895 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN)));
24896 }
24897 {
24898 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR)));
24899 }
24900 {
24901 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
24902 }
24903 {
24904 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN)));
24905 }
24906 {
24907 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA)));
24908 }
24909 {
24910 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA)));
24911 }
24912 {
24913 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE)));
24914 }
24915 {
24916 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN)));
24917 }
24918 {
24919 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN)));
24920 }
24921 {
24922 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE)));
24923 }
24924 {
24925 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA)));
24926 }
24927 {
24928 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI)));
24929 }
24930 {
24931 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC)));
24932 }
24933 {
24934 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN)));
24935 }
24936 {
24937 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR)));
24938 }
24939 {
24940 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE)));
24941 }
24942 {
24943 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN)));
24944 }
24945 {
24946 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI)));
24947 }
24948 {
24949 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI)));
24950 }
24951 {
24952 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI)));
24953 }
24954 {
24955 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA)));
24956 }
24957 {
24958 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON)));
24959 }
24960 {
24961 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN)));
24962 }
24963 {
24964 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE)));
24965 }
24966 {
24967 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN)));
24968 }
24969 {
24970 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN)));
24971 }
24972 {
24973 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE)));
24974 }
24975 {
24976 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
24977 }
24978 {
24979 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
24980 }
24981 {
24982 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG)));
24983 }
24984 {
24985 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU)));
24986 }
24987 {
24988 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE)));
24989 }
24990 {
24991 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN)));
24992 }
24993 {
24994 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN)));
24995 }
24996 {
24997 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN)));
24998 }
24999 {
25000 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH)));
25001 }
25002 {
25003 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH)));
25004 }
25005 {
25006 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH)));
25007 }
25008 {
25009 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN)));
25010 }
25011 {
25012 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH)));
25013 }
25014 {
25015 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK)));
25016 }
25017 {
25018 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US)));
25019 }
25020 {
25021 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
25022 }
25023 {
25024 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE)));
25025 }
25026 {
25027 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
25028 }
25029 {
25030 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA)));
25031 }
25032 {
25033 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
25034 }
25035 {
25036 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK)));
25037 }
25038 {
25039 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE)));
25040 }
25041 {
25042 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA)));
25043 }
25044 {
25045 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
25046 }
25047 {
25048 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
25049 }
25050 {
25051 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
25052 }
25053 {
25054 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
25055 }
25056 {
25057 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
25058 }
25059 {
25060 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO)));
25061 }
25062 {
25063 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN)));
25064 }
25065 {
25066 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE)));
25067 }
25068 {
25069 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI)));
25070 }
25071 {
25072 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI)));
25073 }
25074 {
25075 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH)));
25076 }
25077 {
25078 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH)));
25079 }
25080 {
25081 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN)));
25082 }
25083 {
25084 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN)));
25085 }
25086 {
25087 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
25088 }
25089 {
25090 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO)));
25091 }
25092 {
25093 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS)));
25094 }
25095 {
25096 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN)));
25097 }
25098 {
25099 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN)));
25100 }
25101 {
25102 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN)));
25103 }
25104 {
25105 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN)));
25106 }
25107 {
25108 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
25109 }
25110 {
25111 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM)));
25112 }
25113 {
25114 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
25115 }
25116 {
25117 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
25118 }
25119 {
25120 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS)));
25121 }
25122 {
25123 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK)));
25124 }
25125 {
25126 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC)));
25127 }
25128 {
25129 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI)));
25130 }
25131 {
25132 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI)));
25133 }
25134 {
25135 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA)));
25136 }
25137 {
25138 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW)));
25139 }
25140 {
25141 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI)));
25142 }
25143 {
25144 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN)));
25145 }
25146 {
25147 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC)));
25148 }
25149 {
25150 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN)));
25151 }
25152 {
25153 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA)));
25154 }
25155 {
25156 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE)));
25157 }
25158 {
25159 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT)));
25160 }
25161 {
25162 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK)));
25163 }
25164 {
25165 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH)));
25166 }
25167 {
25168 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN)));
25169 }
25170 {
25171 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS)));
25172 }
25173 {
25174 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE)));
25175 }
25176 {
25177 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE)));
25178 }
25179 {
25180 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA)));
25181 }
25182 {
25183 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI)));
25184 }
25185 {
25186 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA)));
25187 }
25188 {
25189 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH)));
25190 }
25191 {
25192 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK)));
25193 }
25194 {
25195 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA)));
25196 }
25197 {
25198 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ)));
25199 }
25200 {
25201 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI)));
25202 }
25203 {
25204 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI)));
25205 }
25206 {
25207 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN)));
25208 }
25209 {
25210 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH)));
25211 }
25212 {
25213 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN)));
25214 }
25215 {
25216 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN)));
25217 }
25218 {
25219 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN)));
25220 }
25221 {
25222 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA)));
25223 }
25224 {
25225 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN)));
25226 }
25227 {
25228 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN)));
25229 }
25230 {
25231 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY)));
25232 }
25233 {
25234 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY)));
25235 }
25236 {
25237 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM)));
25238 }
25239 {
25240 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
25241 }
25242 {
25243 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA)));
25244 }
25245 {
25246 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE)));
25247 }
25248 {
25249 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI)));
25250 }
25251 {
25252 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI)));
25253 }
25254 {
25255 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI)));
25256 }
25257 {
25258 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN)));
25259 }
25260 {
25261 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN)));
25262 }
25263 {
25264 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU)));
25265 }
25266 {
25267 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI)));
25268 }
25269 {
25270 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA)));
25271 }
25272 {
25273 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
25274 }
25275 {
25276 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
25277 }
25278 {
25279 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN)));
25280 }
25281 {
25282 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA)));
25283 }
25284 {
25285 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO)));
25286 }
25287 {
25288 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO)));
25289 }
25290 {
25291 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH)));
25292 }
25293 {
25294 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE)));
25295 }
25296 {
25297 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
25298 }
25299 {
25300 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI)));
25301 }
25302 {
25303 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA)));
25304 }
25305 {
25306 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE)));
25307 }
25308 {
25309 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN)));
25310 }
25311 {
25312 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN)));
25313 }
25314 {
25315 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
25316 }
25317 {
25318 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN)));
25319 }
25320 {
25321 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO)));
25322 }
25323 {
25324 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT)));
25325 }
25326 {
25327 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC)));
25328 }
25329 {
25330 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN)));
25331 }
25332 {
25333 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
25334 }
25335 {
25336 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN)));
25337 }
25338 {
25339 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN)));
25340 }
25341 {
25342 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO)));
25343 }
25344 {
25345 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA)));
25346 }
25347 {
25348 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA)));
25349 }
25350 {
25351 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI)));
25352 }
25353 {
25354 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE)));
25355 }
25356 {
25357 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI)));
25358 }
25359 {
25360 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK)));
25361 }
25362 {
25363 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN)));
25364 }
25365 {
25366 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI)));
25367 }
25368 {
25369 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH)));
25370 }
25371 {
25372 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA)));
25373 }
25374 {
25375 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA)));
25376 }
25377 {
25378 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE)));
25379 }
25380 {
25381 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA)));
25382 }
25383 {
25384 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
25385 }
25386 {
25387 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
25388 }
25389 {
25390 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR)));
25391 }
25392 {
25393 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
25394 }
25395 {
25396 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA)));
25397 }
25398 {
25399 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS)));
25400 }
25401 {
25402 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN)));
25403 }
25404 {
25405 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN)));
25406 }
25407 {
25408 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA)));
25409 }
25410 {
25411 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA)));
25412 }
25413 {
25414 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY)));
25415 }
25416 {
25417 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU)));
25418 }
25419 {
25420 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
25421 }
25422 {
25423 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY)));
25424 }
25425 {
25426 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US)));
25427 }
25428 {
25429 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA)));
25430 }
25431 {
25432 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE)));
25433 }
25434 {
25435 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI)));
25436 }
25437 {
25438 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH)));
25439 }
25440 {
25441 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND)));
25442 }
25443 {
25444 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG)));
25445 }
25446 {
25447 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK)));
25448 }
25449 {
25450 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL)));
25451 }
25452 {
25453 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR)));
25454 }
25455 {
25456 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU)));
25457 }
25458 {
25459 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI)));
25460 }
25461 {
25462 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN)));
25463 }
25464 {
25465 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA)));
25466 }
25467 {
25468 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA)));
25469 }
25470 {
25471 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA)));
25472 }
25473 {
25474 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH)));
25475 }
25476 {
25477 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN)));
25478 }
25479 {
25480 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI)));
25481 }
25482 {
25483 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR)));
25484 }
25485 {
25486 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN)));
25487 }
25488 {
25489 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU)));
25490 }
25491 {
25492 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA)));
25493 }
25494 {
25495 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN)));
25496 }
25497 {
25498 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK)));
25499 }
25500 {
25501 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC)));
25502 }
25503 {
25504 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN)));
25505 }
25506 {
25507 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE)));
25508 }
25509 {
25510 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK)));
25511 }
25512 {
25513 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH)));
25514 }
25515 {
25516 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF)));
25517 }
25518 {
25519 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA)));
25520 }
25521 {
25522 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH)));
25523 }
25524 {
25525 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA)));
25526 }
25527 {
25528 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG)));
25529 }
25530 {
25531 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU)));
25532 }
25533 {
25534 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED)));
25535 }
25536 {
25537 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER)));
25538 }
25539 {
25540 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE)));
25541 }
25542 {
25543 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY)));
25544 }
25545 {
25546 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX)));
25547 }
25548 {
25549 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP)));
25550 }
25551 {
25552 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT)));
25553 }
25554 {
25555 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT)));
25556 }
25557 {
25558 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING)));
25559 }
25560 {
25561 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT)));
25562 }
25563 {
25564 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE)));
25565 }
25566 {
25567 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT)));
25568 }
25569 {
25570 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX)));
25571 }
25572 {
25573 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS)));
25574 }
25575 {
25576 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2)));
25577 }
25578 {
25579 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC)));
25580 }
25581 {
25582 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA)));
25583 }
25584 {
25585 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA)));
25586 }
25587 {
25588 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL)));
25589 }
25590 {
25591 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT)));
25592 }
25593 {
25594 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED)));
25595 }
25596 {
25597 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED)));
25598 }
25599 {
25600 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL)));
25601 }
25602 {
25603 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL)));
25604 }
25605 {
25606 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE)));
25607 }
25608 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
25609 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
25610 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
25611 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
25612 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
25613 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
25614 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
25615 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
25616 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
25617 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
25618 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
25619 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
25620 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
25621 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
25622 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
25623 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
25624 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
25625 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
25626 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
25627 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
25628 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
25629 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
25630 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
25631 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
25632 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
25633 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
25634 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
25635 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
25636 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
25637 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
25638 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
25639 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
25640 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
25641 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
25642 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
25643 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
25644 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
25645 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
25646 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
25647 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
25648 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
25649 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
25650 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
25651 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
25652 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
25653 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
25654 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
25655 {
25656 PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED)));
25657 }
25658 {
25659 PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED)));
25660 }
25661 {
25662 PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED)));
25663 }
25664 {
25665 PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT)));
25666 }
25667 {
25668 PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU)));
25669 }
25670 {
25671 PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED)));
25672 }
25673 {
25674 PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT)));
25675 }
25676 {
25677 PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED)));
25678 }
25679 {
25680 PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED)));
25681 }
25682 {
25683 PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE)));
25684 }
25685 {
25686 PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED)));
25687 }
25688 {
25689 PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK)));
25690 }
25691 {
25692 PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY)));
25693 }
25694 {
25695 PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version)));
25696 }
25697 {
25698 PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age)));
25699 }
25700
25701 // Work around a chicken/egg problem in drawlist.cpp
25702 wxPyDrawList_SetAPIPtr();
25703
25704 }
25705