]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Add wx.Dialog.Get/SetAffirmativeId and Get/SetEscapeId
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_VERSION 0x010327
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /***********************************************************************
31 *
32 * This section contains generic SWIG labels for method/variable
33 * declarations/attributes, and other compiler dependent labels.
34 *
35 ************************************************************************/
36
37 /* template workaround for compilers that cannot correctly implement the C++ standard */
38 #ifndef SWIGTEMPLATEDISAMBIGUATOR
39 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
40 # define SWIGTEMPLATEDISAMBIGUATOR template
41 # else
42 # define SWIGTEMPLATEDISAMBIGUATOR
43 # endif
44 #endif
45
46 /* inline attribute */
47 #ifndef SWIGINLINE
48 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
49 # define SWIGINLINE inline
50 # else
51 # define SWIGINLINE
52 # endif
53 #endif
54
55 /* attribute recognised by some compilers to avoid 'unused' warnings */
56 #ifndef SWIGUNUSED
57 # if defined(__GNUC__) || defined(__ICC)
58 # define SWIGUNUSED __attribute__ ((unused))
59 # else
60 # define SWIGUNUSED
61 # endif
62 #endif
63
64 /* internal SWIG method */
65 #ifndef SWIGINTERN
66 # define SWIGINTERN static SWIGUNUSED
67 #endif
68
69 /* internal inline SWIG method */
70 #ifndef SWIGINTERNINLINE
71 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72 #endif
73
74 /* exporting methods for Windows DLLs */
75 #ifndef SWIGEXPORT
76 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77 # if defined(STATIC_LINKED)
78 # define SWIGEXPORT
79 # else
80 # define SWIGEXPORT __declspec(dllexport)
81 # endif
82 # else
83 # define SWIGEXPORT
84 # endif
85 #endif
86
87 /* calling conventions for Windows */
88 #ifndef SWIGSTDCALL
89 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
90 # define SWIGSTDCALL __stdcall
91 # else
92 # define SWIGSTDCALL
93 # endif
94 #endif
95
96
97
98 #include <Python.h>
99
100 /***********************************************************************
101 * swigrun.swg
102 *
103 * This file contains generic CAPI SWIG runtime support for pointer
104 * type checking.
105 *
106 ************************************************************************/
107
108 /* This should only be incremented when either the layout of swig_type_info changes,
109 or for whatever reason, the runtime changes incompatibly */
110 #define SWIG_RUNTIME_VERSION "2"
111
112 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
113 #ifdef SWIG_TYPE_TABLE
114 # define SWIG_QUOTE_STRING(x) #x
115 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
116 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
117 #else
118 # define SWIG_TYPE_TABLE_NAME
119 #endif
120
121 /*
122 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
123 creating a static or dynamic library from the swig runtime code.
124 In 99.9% of the cases, swig just needs to declare them as 'static'.
125
126 But only do this if is strictly necessary, ie, if you have problems
127 with your compiler or so.
128 */
129
130 #ifndef SWIGRUNTIME
131 # define SWIGRUNTIME SWIGINTERN
132 #endif
133
134 #ifndef SWIGRUNTIMEINLINE
135 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
136 #endif
137
138 #include <string.h>
139
140 #ifdef __cplusplus
141 extern "C" {
142 #endif
143
144 typedef void *(*swig_converter_func)(void *);
145 typedef struct swig_type_info *(*swig_dycast_func)(void **);
146
147 /* Structure to store inforomation on one type */
148 typedef struct swig_type_info {
149 const char *name; /* mangled name of this type */
150 const char *str; /* human readable name of this type */
151 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
152 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
153 void *clientdata; /* language specific type data */
154 } swig_type_info;
155
156 /* Structure to store a type and conversion function used for casting */
157 typedef struct swig_cast_info {
158 swig_type_info *type; /* pointer to type that is equivalent to this type */
159 swig_converter_func converter; /* function to cast the void pointers */
160 struct swig_cast_info *next; /* pointer to next cast in linked list */
161 struct swig_cast_info *prev; /* pointer to the previous cast */
162 } swig_cast_info;
163
164 /* Structure used to store module information
165 * Each module generates one structure like this, and the runtime collects
166 * all of these structures and stores them in a circularly linked list.*/
167 typedef struct swig_module_info {
168 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
169 size_t size; /* Number of types in this module */
170 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
171 swig_type_info **type_initial; /* Array of initially generated type structures */
172 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
173 void *clientdata; /* Language specific module data */
174 } swig_module_info;
175
176
177 /*
178 Compare two type names skipping the space characters, therefore
179 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
180
181 Return 0 when the two name types are equivalent, as in
182 strncmp, but skipping ' '.
183 */
184 SWIGRUNTIME int
185 SWIG_TypeNameComp(const char *f1, const char *l1,
186 const char *f2, const char *l2) {
187 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
188 while ((*f1 == ' ') && (f1 != l1)) ++f1;
189 while ((*f2 == ' ') && (f2 != l2)) ++f2;
190 if (*f1 != *f2) return (int)(*f1 - *f2);
191 }
192 return (l1 - f1) - (l2 - f2);
193 }
194
195 /*
196 Check type equivalence in a name list like <name1>|<name2>|...
197 Return 0 if not equal, 1 if equal
198 */
199 SWIGRUNTIME int
200 SWIG_TypeEquiv(const char *nb, const char *tb) {
201 int equiv = 0;
202 const char* te = tb + strlen(tb);
203 const char* ne = nb;
204 while (!equiv && *ne) {
205 for (nb = ne; *ne; ++ne) {
206 if (*ne == '|') break;
207 }
208 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
209 if (*ne) ++ne;
210 }
211 return equiv;
212 }
213
214 /*
215 Check type equivalence in a name list like <name1>|<name2>|...
216 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
217 */
218 SWIGRUNTIME int
219 SWIG_TypeCompare(const char *nb, const char *tb) {
220 int equiv = 0;
221 const char* te = tb + strlen(tb);
222 const char* ne = nb;
223 while (!equiv && *ne) {
224 for (nb = ne; *ne; ++ne) {
225 if (*ne == '|') break;
226 }
227 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
228 if (*ne) ++ne;
229 }
230 return equiv;
231 }
232
233
234 /* think of this as a c++ template<> or a scheme macro */
235 #define SWIG_TypeCheck_Template(comparison, ty) \
236 if (ty) { \
237 swig_cast_info *iter = ty->cast; \
238 while (iter) { \
239 if (comparison) { \
240 if (iter == ty->cast) return iter; \
241 /* Move iter to the top of the linked list */ \
242 iter->prev->next = iter->next; \
243 if (iter->next) \
244 iter->next->prev = iter->prev; \
245 iter->next = ty->cast; \
246 iter->prev = 0; \
247 if (ty->cast) ty->cast->prev = iter; \
248 ty->cast = iter; \
249 return iter; \
250 } \
251 iter = iter->next; \
252 } \
253 } \
254 return 0
255
256 /*
257 Check the typename
258 */
259 SWIGRUNTIME swig_cast_info *
260 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
261 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
262 }
263
264 /* Same as previous function, except strcmp is replaced with a pointer comparison */
265 SWIGRUNTIME swig_cast_info *
266 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
267 SWIG_TypeCheck_Template(iter->type == from, into);
268 }
269
270 /*
271 Cast a pointer up an inheritance hierarchy
272 */
273 SWIGRUNTIMEINLINE void *
274 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
275 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
276 }
277
278 /*
279 Dynamic pointer casting. Down an inheritance hierarchy
280 */
281 SWIGRUNTIME swig_type_info *
282 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
283 swig_type_info *lastty = ty;
284 if (!ty || !ty->dcast) return ty;
285 while (ty && (ty->dcast)) {
286 ty = (*ty->dcast)(ptr);
287 if (ty) lastty = ty;
288 }
289 return lastty;
290 }
291
292 /*
293 Return the name associated with this type
294 */
295 SWIGRUNTIMEINLINE const char *
296 SWIG_TypeName(const swig_type_info *ty) {
297 return ty->name;
298 }
299
300 /*
301 Return the pretty name associated with this type,
302 that is an unmangled type name in a form presentable to the user.
303 */
304 SWIGRUNTIME const char *
305 SWIG_TypePrettyName(const swig_type_info *type) {
306 /* The "str" field contains the equivalent pretty names of the
307 type, separated by vertical-bar characters. We choose
308 to print the last name, as it is often (?) the most
309 specific. */
310 if (type->str != NULL) {
311 const char *last_name = type->str;
312 const char *s;
313 for (s = type->str; *s; s++)
314 if (*s == '|') last_name = s+1;
315 return last_name;
316 }
317 else
318 return type->name;
319 }
320
321 /*
322 Set the clientdata field for a type
323 */
324 SWIGRUNTIME void
325 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
326 swig_cast_info *cast = ti->cast;
327 /* if (ti->clientdata == clientdata) return; */
328 ti->clientdata = clientdata;
329
330 while (cast) {
331 if (!cast->converter) {
332 swig_type_info *tc = cast->type;
333 if (!tc->clientdata) {
334 SWIG_TypeClientData(tc, clientdata);
335 }
336 }
337 cast = cast->next;
338 }
339 }
340
341 /*
342 Search for a swig_type_info structure only by mangled name
343 Search is a O(log #types)
344
345 We start searching at module start, and finish searching when start == end.
346 Note: if start == end at the beginning of the function, we go all the way around
347 the circular list.
348 */
349 SWIGRUNTIME swig_type_info *
350 SWIG_MangledTypeQueryModule(swig_module_info *start,
351 swig_module_info *end,
352 const char *name) {
353 swig_module_info *iter = start;
354 do {
355 if (iter->size) {
356 register size_t l = 0;
357 register size_t r = iter->size - 1;
358 do {
359 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
360 register size_t i = (l + r) >> 1;
361 const char *iname = iter->types[i]->name;
362 if (iname) {
363 register int compare = strcmp(name, iname);
364 if (compare == 0) {
365 return iter->types[i];
366 } else if (compare < 0) {
367 if (i) {
368 r = i - 1;
369 } else {
370 break;
371 }
372 } else if (compare > 0) {
373 l = i + 1;
374 }
375 } else {
376 break; /* should never happen */
377 }
378 } while (l <= r);
379 }
380 iter = iter->next;
381 } while (iter != end);
382 return 0;
383 }
384
385 /*
386 Search for a swig_type_info structure for either a mangled name or a human readable name.
387 It first searches the mangled names of the types, which is a O(log #types)
388 If a type is not found it then searches the human readable names, which is O(#types).
389
390 We start searching at module start, and finish searching when start == end.
391 Note: if start == end at the beginning of the function, we go all the way around
392 the circular list.
393 */
394 SWIGRUNTIME swig_type_info *
395 SWIG_TypeQueryModule(swig_module_info *start,
396 swig_module_info *end,
397 const char *name) {
398 /* STEP 1: Search the name field using binary search */
399 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
400 if (ret) {
401 return ret;
402 } else {
403 /* STEP 2: If the type hasn't been found, do a complete search
404 of the str field (the human readable name) */
405 swig_module_info *iter = start;
406 do {
407 register size_t i = 0;
408 for (; i < iter->size; ++i) {
409 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
410 return iter->types[i];
411 }
412 iter = iter->next;
413 } while (iter != end);
414 }
415
416 /* neither found a match */
417 return 0;
418 }
419
420
421 /*
422 Pack binary data into a string
423 */
424 SWIGRUNTIME char *
425 SWIG_PackData(char *c, void *ptr, size_t sz) {
426 static const char hex[17] = "0123456789abcdef";
427 register const unsigned char *u = (unsigned char *) ptr;
428 register const unsigned char *eu = u + sz;
429 for (; u != eu; ++u) {
430 register unsigned char uu = *u;
431 *(c++) = hex[(uu & 0xf0) >> 4];
432 *(c++) = hex[uu & 0xf];
433 }
434 return c;
435 }
436
437 /*
438 Unpack binary data from a string
439 */
440 SWIGRUNTIME const char *
441 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
442 register unsigned char *u = (unsigned char *) ptr;
443 register const unsigned char *eu = u + sz;
444 for (; u != eu; ++u) {
445 register char d = *(c++);
446 register unsigned char uu = 0;
447 if ((d >= '0') && (d <= '9'))
448 uu = ((d - '0') << 4);
449 else if ((d >= 'a') && (d <= 'f'))
450 uu = ((d - ('a'-10)) << 4);
451 else
452 return (char *) 0;
453 d = *(c++);
454 if ((d >= '0') && (d <= '9'))
455 uu |= (d - '0');
456 else if ((d >= 'a') && (d <= 'f'))
457 uu |= (d - ('a'-10));
458 else
459 return (char *) 0;
460 *u = uu;
461 }
462 return c;
463 }
464
465 /*
466 Pack 'void *' into a string buffer.
467 */
468 SWIGRUNTIME char *
469 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
470 char *r = buff;
471 if ((2*sizeof(void *) + 2) > bsz) return 0;
472 *(r++) = '_';
473 r = SWIG_PackData(r,&ptr,sizeof(void *));
474 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
475 strcpy(r,name);
476 return buff;
477 }
478
479 SWIGRUNTIME const char *
480 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
481 if (*c != '_') {
482 if (strcmp(c,"NULL") == 0) {
483 *ptr = (void *) 0;
484 return name;
485 } else {
486 return 0;
487 }
488 }
489 return SWIG_UnpackData(++c,ptr,sizeof(void *));
490 }
491
492 SWIGRUNTIME char *
493 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
494 char *r = buff;
495 size_t lname = (name ? strlen(name) : 0);
496 if ((2*sz + 2 + lname) > bsz) return 0;
497 *(r++) = '_';
498 r = SWIG_PackData(r,ptr,sz);
499 if (lname) {
500 strncpy(r,name,lname+1);
501 } else {
502 *r = 0;
503 }
504 return buff;
505 }
506
507 SWIGRUNTIME const char *
508 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
509 if (*c != '_') {
510 if (strcmp(c,"NULL") == 0) {
511 memset(ptr,0,sz);
512 return name;
513 } else {
514 return 0;
515 }
516 }
517 return SWIG_UnpackData(++c,ptr,sz);
518 }
519
520 #ifdef __cplusplus
521 }
522 #endif
523
524 /* -----------------------------------------------------------------------------
525 * SWIG API. Portion that goes into the runtime
526 * ----------------------------------------------------------------------------- */
527
528 #ifdef __cplusplus
529 extern "C" {
530 #endif
531
532 /* -----------------------------------------------------------------------------
533 * for internal method declarations
534 * ----------------------------------------------------------------------------- */
535
536 #ifndef SWIGINTERN
537 # define SWIGINTERN static SWIGUNUSED
538 #endif
539
540 #ifndef SWIGINTERNINLINE
541 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
542 #endif
543
544 /*
545 Exception handling in wrappers
546 */
547 #define SWIG_fail goto fail
548 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
549 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
550 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
551 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
552 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
553
554 /*
555 Contract support
556 */
557 #define SWIG_contract_assert(expr, msg) \
558 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
559
560 /* -----------------------------------------------------------------------------
561 * Constant declarations
562 * ----------------------------------------------------------------------------- */
563
564 /* Constant Types */
565 #define SWIG_PY_INT 1
566 #define SWIG_PY_FLOAT 2
567 #define SWIG_PY_STRING 3
568 #define SWIG_PY_POINTER 4
569 #define SWIG_PY_BINARY 5
570
571 /* Constant information structure */
572 typedef struct swig_const_info {
573 int type;
574 char *name;
575 long lvalue;
576 double dvalue;
577 void *pvalue;
578 swig_type_info **ptype;
579 } swig_const_info;
580
581
582 /* -----------------------------------------------------------------------------
583 * Alloc. memory flags
584 * ----------------------------------------------------------------------------- */
585 #define SWIG_OLDOBJ 1
586 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
587 #define SWIG_PYSTR SWIG_NEWOBJ + 1
588
589 #ifdef __cplusplus
590 }
591 #endif
592
593
594 /***********************************************************************
595 * pyrun.swg
596 *
597 * This file contains the runtime support for Python modules
598 * and includes code for managing global variables and pointer
599 * type checking.
600 *
601 * Author : David Beazley (beazley@cs.uchicago.edu)
602 ************************************************************************/
603
604 /* Common SWIG API */
605 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
606 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
607 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
608
609
610 /* Python-specific SWIG API */
611 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
612 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
613
614 /* Runtime API */
615 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
616 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
617
618 /* -----------------------------------------------------------------------------
619 * Pointer declarations
620 * ----------------------------------------------------------------------------- */
621 /*
622 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
623 C/C++ pointers in the python side. Very useful for debugging, but
624 not always safe.
625 */
626 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
627 # define SWIG_COBJECT_TYPES
628 #endif
629
630 /* Flags for pointer conversion */
631 #define SWIG_POINTER_EXCEPTION 0x1
632 #define SWIG_POINTER_DISOWN 0x2
633
634
635 /* Add PyOS_snprintf for old Pythons */
636 #if PY_VERSION_HEX < 0x02020000
637 #define PyOS_snprintf snprintf
638 #endif
639
640 #ifdef __cplusplus
641 extern "C" {
642 #endif
643
644 /* -----------------------------------------------------------------------------
645 * Create a new pointer string
646 * ----------------------------------------------------------------------------- */
647 #ifndef SWIG_BUFFER_SIZE
648 #define SWIG_BUFFER_SIZE 1024
649 #endif
650
651 /* A crude PyString_FromFormat implementation for old Pythons */
652 #if PY_VERSION_HEX < 0x02020000
653 static PyObject *
654 PyString_FromFormat(const char *fmt, ...) {
655 va_list ap;
656 char buf[SWIG_BUFFER_SIZE * 2];
657 int res;
658 va_start(ap, fmt);
659 res = vsnprintf(buf, sizeof(buf), fmt, ap);
660 va_end(ap);
661 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
662 }
663 #endif
664
665 #if PY_VERSION_HEX < 0x01060000
666 #define PyObject_Del(op) PyMem_DEL((op))
667 #endif
668
669 #if defined(SWIG_COBJECT_TYPES)
670 #if !defined(SWIG_COBJECT_PYTHON)
671 /* -----------------------------------------------------------------------------
672 * Implements a simple Swig Object type, and use it instead of PyCObject
673 * ----------------------------------------------------------------------------- */
674
675 typedef struct {
676 PyObject_HEAD
677 void *ptr;
678 const char *desc;
679 } PySwigObject;
680
681 /* Declarations for objects of type PySwigObject */
682
683 SWIGRUNTIME int
684 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
685 {
686 char result[SWIG_BUFFER_SIZE];
687 flags = flags;
688 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
689 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
690 return 0;
691 } else {
692 return 1;
693 }
694 }
695
696 SWIGRUNTIME PyObject *
697 PySwigObject_repr(PySwigObject *v)
698 {
699 char result[SWIG_BUFFER_SIZE];
700 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
701 PyString_FromFormat("<Swig Object at %s>", result) : 0;
702 }
703
704 SWIGRUNTIME PyObject *
705 PySwigObject_str(PySwigObject *v)
706 {
707 char result[SWIG_BUFFER_SIZE];
708 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
709 PyString_FromString(result) : 0;
710 }
711
712 SWIGRUNTIME PyObject *
713 PySwigObject_long(PySwigObject *v)
714 {
715 return PyLong_FromVoidPtr(v->ptr);
716 }
717
718 SWIGRUNTIME PyObject *
719 PySwigObject_format(const char* fmt, PySwigObject *v)
720 {
721 PyObject *res = NULL;
722 PyObject *args = PyTuple_New(1);
723 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
724 PyObject *ofmt = PyString_FromString(fmt);
725 if (ofmt) {
726 res = PyString_Format(ofmt,args);
727 Py_DECREF(ofmt);
728 }
729 Py_DECREF(args);
730 }
731 return res;
732 }
733
734 SWIGRUNTIME PyObject *
735 PySwigObject_oct(PySwigObject *v)
736 {
737 return PySwigObject_format("%o",v);
738 }
739
740 SWIGRUNTIME PyObject *
741 PySwigObject_hex(PySwigObject *v)
742 {
743 return PySwigObject_format("%x",v);
744 }
745
746 SWIGRUNTIME int
747 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
748 {
749 int c = strcmp(v->desc, w->desc);
750 if (c) {
751 return (c > 0) ? 1 : -1;
752 } else {
753 void *i = v->ptr;
754 void *j = w->ptr;
755 return (i < j) ? -1 : ((i > j) ? 1 : 0);
756 }
757 }
758
759 SWIGRUNTIME void
760 PySwigObject_dealloc(PySwigObject *self)
761 {
762 PyObject_Del(self);
763 }
764
765 SWIGRUNTIME PyTypeObject*
766 PySwigObject_type(void) {
767 static char pyswigobject_type__doc__[] =
768 "Swig object carries a C/C++ instance pointer";
769
770 static PyNumberMethods PySwigObject_as_number = {
771 (binaryfunc)0, /*nb_add*/
772 (binaryfunc)0, /*nb_subtract*/
773 (binaryfunc)0, /*nb_multiply*/
774 (binaryfunc)0, /*nb_divide*/
775 (binaryfunc)0, /*nb_remainder*/
776 (binaryfunc)0, /*nb_divmod*/
777 (ternaryfunc)0,/*nb_power*/
778 (unaryfunc)0, /*nb_negative*/
779 (unaryfunc)0, /*nb_positive*/
780 (unaryfunc)0, /*nb_absolute*/
781 (inquiry)0, /*nb_nonzero*/
782 0, /*nb_invert*/
783 0, /*nb_lshift*/
784 0, /*nb_rshift*/
785 0, /*nb_and*/
786 0, /*nb_xor*/
787 0, /*nb_or*/
788 (coercion)0, /*nb_coerce*/
789 (unaryfunc)PySwigObject_long, /*nb_int*/
790 (unaryfunc)PySwigObject_long, /*nb_long*/
791 (unaryfunc)0, /*nb_float*/
792 (unaryfunc)PySwigObject_oct, /*nb_oct*/
793 (unaryfunc)PySwigObject_hex, /*nb_hex*/
794 #if PY_VERSION_HEX >= 0x02020000
795 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
796 #elif PY_VERSION_HEX >= 0x02000000
797 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
798 #endif
799 };
800
801 static PyTypeObject pyswigobject_type
802 #if !defined(__cplusplus)
803 ;
804 static int type_init = 0;
805 if (!type_init) {
806 PyTypeObject tmp
807 #endif
808 = {
809 PyObject_HEAD_INIT(&PyType_Type)
810 0, /*ob_size*/
811 (char *)"PySwigObject", /*tp_name*/
812 sizeof(PySwigObject), /*tp_basicsize*/
813 0, /*tp_itemsize*/
814 /* methods */
815 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
816 (printfunc)PySwigObject_print, /*tp_print*/
817 (getattrfunc)0, /*tp_getattr*/
818 (setattrfunc)0, /*tp_setattr*/
819 (cmpfunc)PySwigObject_compare, /*tp_compare*/
820 (reprfunc)PySwigObject_repr, /*tp_repr*/
821 &PySwigObject_as_number, /*tp_as_number*/
822 0, /*tp_as_sequence*/
823 0, /*tp_as_mapping*/
824 (hashfunc)0, /*tp_hash*/
825 (ternaryfunc)0, /*tp_call*/
826 (reprfunc)PySwigObject_str, /*tp_str*/
827 /* Space for future expansion */
828 0,0,0,0,
829 pyswigobject_type__doc__, /* Documentation string */
830 #if PY_VERSION_HEX >= 0x02000000
831 0, /* tp_traverse */
832 0, /* tp_clear */
833 #endif
834 #if PY_VERSION_HEX >= 0x02010000
835 0, /* tp_richcompare */
836 0, /* tp_weaklistoffset */
837 #endif
838 #if PY_VERSION_HEX >= 0x02020000
839 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
840 #endif
841 #if PY_VERSION_HEX >= 0x02030000
842 0, /* tp_del */
843 #endif
844 #ifdef COUNT_ALLOCS
845 0,0,0,0 /* tp_alloc -> tp_next */
846 #endif
847 };
848 #if !defined(__cplusplus)
849 pyswigobject_type = tmp;
850 type_init = 1;
851 }
852 #endif
853 return &pyswigobject_type;
854 }
855
856 SWIGRUNTIME PyObject *
857 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
858 {
859 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
860 if (self) {
861 self->ptr = ptr;
862 self->desc = desc;
863 }
864 return (PyObject *)self;
865 }
866
867 SWIGRUNTIMEINLINE void *
868 PySwigObject_AsVoidPtr(PyObject *self)
869 {
870 return ((PySwigObject *)self)->ptr;
871 }
872
873 SWIGRUNTIMEINLINE const char *
874 PySwigObject_GetDesc(PyObject *self)
875 {
876 return ((PySwigObject *)self)->desc;
877 }
878
879 SWIGRUNTIMEINLINE int
880 PySwigObject_Check(PyObject *op) {
881 return ((op)->ob_type == PySwigObject_type())
882 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
883 }
884
885 /* -----------------------------------------------------------------------------
886 * Implements a simple Swig Packed type, and use it instead of string
887 * ----------------------------------------------------------------------------- */
888
889 typedef struct {
890 PyObject_HEAD
891 void *pack;
892 const char *desc;
893 size_t size;
894 } PySwigPacked;
895
896 SWIGRUNTIME int
897 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
898 {
899 char result[SWIG_BUFFER_SIZE];
900 flags = flags;
901 fputs("<Swig Packed ", fp);
902 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
903 fputs("at ", fp);
904 fputs(result, fp);
905 }
906 fputs(v->desc,fp);
907 fputs(">", fp);
908 return 0;
909 }
910
911 SWIGRUNTIME PyObject *
912 PySwigPacked_repr(PySwigPacked *v)
913 {
914 char result[SWIG_BUFFER_SIZE];
915 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
916 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
917 } else {
918 return PyString_FromFormat("<Swig Packed %s>", v->desc);
919 }
920 }
921
922 SWIGRUNTIME PyObject *
923 PySwigPacked_str(PySwigPacked *v)
924 {
925 char result[SWIG_BUFFER_SIZE];
926 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
927 return PyString_FromFormat("%s%s", result, v->desc);
928 } else {
929 return PyString_FromString(v->desc);
930 }
931 }
932
933 SWIGRUNTIME int
934 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
935 {
936 int c = strcmp(v->desc, w->desc);
937 if (c) {
938 return (c > 0) ? 1 : -1;
939 } else {
940 size_t i = v->size;
941 size_t j = w->size;
942 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
943 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
944 }
945 }
946
947 SWIGRUNTIME void
948 PySwigPacked_dealloc(PySwigPacked *self)
949 {
950 free(self->pack);
951 PyObject_Del(self);
952 }
953
954 SWIGRUNTIME PyTypeObject*
955 PySwigPacked_type(void) {
956 static char pyswigpacked_type__doc__[] =
957 "Swig object carries a C/C++ instance pointer";
958 static PyTypeObject pyswigpacked_type
959 #if !defined(__cplusplus)
960 ;
961 static int type_init = 0;
962 if (!type_init) {
963 PyTypeObject tmp
964 #endif
965 = {
966 PyObject_HEAD_INIT(&PyType_Type)
967 0, /*ob_size*/
968 (char *)"PySwigPacked", /*tp_name*/
969 sizeof(PySwigPacked), /*tp_basicsize*/
970 0, /*tp_itemsize*/
971 /* methods */
972 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
973 (printfunc)PySwigPacked_print, /*tp_print*/
974 (getattrfunc)0, /*tp_getattr*/
975 (setattrfunc)0, /*tp_setattr*/
976 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
977 (reprfunc)PySwigPacked_repr, /*tp_repr*/
978 0, /*tp_as_number*/
979 0, /*tp_as_sequence*/
980 0, /*tp_as_mapping*/
981 (hashfunc)0, /*tp_hash*/
982 (ternaryfunc)0, /*tp_call*/
983 (reprfunc)PySwigPacked_str, /*tp_str*/
984 /* Space for future expansion */
985 0,0,0,0,
986 pyswigpacked_type__doc__, /* Documentation string */
987 #if PY_VERSION_HEX >= 0x02000000
988 0, /* tp_traverse */
989 0, /* tp_clear */
990 #endif
991 #if PY_VERSION_HEX >= 0x02010000
992 0, /* tp_richcompare */
993 0, /* tp_weaklistoffset */
994 #endif
995 #if PY_VERSION_HEX >= 0x02020000
996 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
997 #endif
998 #if PY_VERSION_HEX >= 0x02030000
999 0, /* tp_del */
1000 #endif
1001 #ifdef COUNT_ALLOCS
1002 0,0,0,0 /* tp_alloc -> tp_next */
1003 #endif
1004 };
1005 #if !defined(__cplusplus)
1006 pyswigpacked_type = tmp;
1007 type_init = 1;
1008 }
1009 #endif
1010 return &pyswigpacked_type;
1011 }
1012
1013 SWIGRUNTIME PyObject *
1014 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1015 {
1016 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1017 if (self == NULL) {
1018 return NULL;
1019 } else {
1020 void *pack = malloc(size);
1021 if (pack) {
1022 memcpy(pack, ptr, size);
1023 self->pack = pack;
1024 self->desc = desc;
1025 self->size = size;
1026 return (PyObject *) self;
1027 }
1028 return NULL;
1029 }
1030 }
1031
1032 SWIGRUNTIMEINLINE const char *
1033 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1034 {
1035 PySwigPacked *self = (PySwigPacked *)obj;
1036 if (self->size != size) return 0;
1037 memcpy(ptr, self->pack, size);
1038 return self->desc;
1039 }
1040
1041 SWIGRUNTIMEINLINE const char *
1042 PySwigPacked_GetDesc(PyObject *self)
1043 {
1044 return ((PySwigPacked *)self)->desc;
1045 }
1046
1047 SWIGRUNTIMEINLINE int
1048 PySwigPacked_Check(PyObject *op) {
1049 return ((op)->ob_type == PySwigPacked_type())
1050 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1051 }
1052
1053 #else
1054 /* -----------------------------------------------------------------------------
1055 * Use the old Python PyCObject instead of PySwigObject
1056 * ----------------------------------------------------------------------------- */
1057
1058 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1059 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1060 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1061 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1062
1063 #endif
1064
1065 #endif
1066
1067 /* -----------------------------------------------------------------------------
1068 * errors manipulation
1069 * ----------------------------------------------------------------------------- */
1070
1071 SWIGRUNTIME void
1072 SWIG_Python_TypeError(const char *type, PyObject *obj)
1073 {
1074 if (type) {
1075 #if defined(SWIG_COBJECT_TYPES)
1076 if (obj && PySwigObject_Check(obj)) {
1077 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1078 if (otype) {
1079 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1080 type, otype);
1081 return;
1082 }
1083 } else
1084 #endif
1085 {
1086 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1087 if (otype) {
1088 PyObject *str = PyObject_Str(obj);
1089 const char *cstr = str ? PyString_AsString(str) : 0;
1090 if (cstr) {
1091 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1092 type, otype, cstr);
1093 } else {
1094 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1095 type, otype);
1096 }
1097 Py_XDECREF(str);
1098 return;
1099 }
1100 }
1101 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1102 } else {
1103 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1104 }
1105 }
1106
1107 SWIGRUNTIMEINLINE void
1108 SWIG_Python_NullRef(const char *type)
1109 {
1110 if (type) {
1111 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1112 } else {
1113 PyErr_Format(PyExc_TypeError, "null reference was received");
1114 }
1115 }
1116
1117 SWIGRUNTIME int
1118 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1119 {
1120 if (PyErr_Occurred()) {
1121 PyObject *type = 0;
1122 PyObject *value = 0;
1123 PyObject *traceback = 0;
1124 PyErr_Fetch(&type, &value, &traceback);
1125 if (value) {
1126 PyObject *old_str = PyObject_Str(value);
1127 Py_XINCREF(type);
1128 PyErr_Clear();
1129 if (infront) {
1130 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1131 } else {
1132 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1133 }
1134 Py_DECREF(old_str);
1135 }
1136 return 1;
1137 } else {
1138 return 0;
1139 }
1140 }
1141
1142 SWIGRUNTIME int
1143 SWIG_Python_ArgFail(int argnum)
1144 {
1145 if (PyErr_Occurred()) {
1146 /* add information about failing argument */
1147 char mesg[256];
1148 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1149 return SWIG_Python_AddErrMesg(mesg, 1);
1150 } else {
1151 return 0;
1152 }
1153 }
1154
1155
1156 /* -----------------------------------------------------------------------------
1157 * pointers/data manipulation
1158 * ----------------------------------------------------------------------------- */
1159
1160 /* Convert a pointer value */
1161 SWIGRUNTIME int
1162 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1163 swig_cast_info *tc;
1164 const char *c = 0;
1165 static PyObject *SWIG_this = 0;
1166 int newref = 0;
1167 PyObject *pyobj = 0;
1168 void *vptr;
1169
1170 if (!obj) return 0;
1171 if (obj == Py_None) {
1172 *ptr = 0;
1173 return 0;
1174 }
1175
1176 #ifdef SWIG_COBJECT_TYPES
1177 if (!(PySwigObject_Check(obj))) {
1178 if (!SWIG_this)
1179 SWIG_this = PyString_FromString("this");
1180 pyobj = obj;
1181 obj = PyObject_GetAttr(obj,SWIG_this);
1182 newref = 1;
1183 if (!obj) goto type_error;
1184 if (!PySwigObject_Check(obj)) {
1185 Py_DECREF(obj);
1186 goto type_error;
1187 }
1188 }
1189 vptr = PySwigObject_AsVoidPtr(obj);
1190 c = (const char *) PySwigObject_GetDesc(obj);
1191 if (newref) { Py_DECREF(obj); }
1192 goto type_check;
1193 #else
1194 if (!(PyString_Check(obj))) {
1195 if (!SWIG_this)
1196 SWIG_this = PyString_FromString("this");
1197 pyobj = obj;
1198 obj = PyObject_GetAttr(obj,SWIG_this);
1199 newref = 1;
1200 if (!obj) goto type_error;
1201 if (!PyString_Check(obj)) {
1202 Py_DECREF(obj);
1203 goto type_error;
1204 }
1205 }
1206 c = PyString_AsString(obj);
1207 /* Pointer values must start with leading underscore */
1208 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1209 if (newref) { Py_DECREF(obj); }
1210 if (!c) goto type_error;
1211 #endif
1212
1213 type_check:
1214 if (ty) {
1215 tc = SWIG_TypeCheck(c,ty);
1216 if (!tc) goto type_error;
1217 *ptr = SWIG_TypeCast(tc,vptr);
1218 } else {
1219 *ptr = vptr;
1220 }
1221 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1222 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1223 }
1224 return 0;
1225
1226 type_error:
1227 PyErr_Clear();
1228 if (pyobj && !obj) {
1229 obj = pyobj;
1230 if (PyCFunction_Check(obj)) {
1231 /* here we get the method pointer for callbacks */
1232 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1233 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1234 if (c) {
1235 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1236 if (!c) goto type_error;
1237 goto type_check;
1238 }
1239 }
1240 }
1241 if (flags & SWIG_POINTER_EXCEPTION) {
1242 if (ty) {
1243 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1244 } else {
1245 SWIG_Python_TypeError("C/C++ pointer", obj);
1246 }
1247 }
1248 return -1;
1249 }
1250
1251 /* Convert a pointer value, signal an exception on a type mismatch */
1252 SWIGRUNTIME void *
1253 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1254 void *result;
1255 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1256 PyErr_Clear();
1257 if (flags & SWIG_POINTER_EXCEPTION) {
1258 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1259 SWIG_Python_ArgFail(argnum);
1260 }
1261 }
1262 return result;
1263 }
1264
1265 /* Convert a packed value value */
1266 SWIGRUNTIME int
1267 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1268 swig_cast_info *tc;
1269 const char *c = 0;
1270
1271 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1272 c = PySwigPacked_UnpackData(obj, ptr, sz);
1273 #else
1274 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1275 c = PyString_AsString(obj);
1276 /* Pointer values must start with leading underscore */
1277 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1278 #endif
1279 if (!c) goto type_error;
1280 if (ty) {
1281 tc = SWIG_TypeCheck(c,ty);
1282 if (!tc) goto type_error;
1283 }
1284 return 0;
1285
1286 type_error:
1287 PyErr_Clear();
1288 if (flags & SWIG_POINTER_EXCEPTION) {
1289 if (ty) {
1290 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1291 } else {
1292 SWIG_Python_TypeError("C/C++ packed data", obj);
1293 }
1294 }
1295 return -1;
1296 }
1297
1298 /* Create a new array object */
1299 SWIGRUNTIME PyObject *
1300 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1301 PyObject *robj = 0;
1302 if (!type) {
1303 if (!PyErr_Occurred()) {
1304 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1305 }
1306 return robj;
1307 }
1308 if (!ptr) {
1309 Py_INCREF(Py_None);
1310 return Py_None;
1311 }
1312 #ifdef SWIG_COBJECT_TYPES
1313 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1314 #else
1315 {
1316 char result[SWIG_BUFFER_SIZE];
1317 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1318 PyString_FromString(result) : 0;
1319 }
1320 #endif
1321 if (!robj || (robj == Py_None)) return robj;
1322 if (type->clientdata) {
1323 PyObject *inst;
1324 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1325 Py_DECREF(robj);
1326 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1327 Py_DECREF(args);
1328 if (inst) {
1329 if (own) {
1330 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1331 }
1332 robj = inst;
1333 }
1334 }
1335 return robj;
1336 }
1337
1338 SWIGRUNTIME PyObject *
1339 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1340 PyObject *robj = 0;
1341 if (!ptr) {
1342 Py_INCREF(Py_None);
1343 return Py_None;
1344 }
1345 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1346 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1347 #else
1348 {
1349 char result[SWIG_BUFFER_SIZE];
1350 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1351 PyString_FromString(result) : 0;
1352 }
1353 #endif
1354 return robj;
1355 }
1356
1357 /* -----------------------------------------------------------------------------*
1358 * Get type list
1359 * -----------------------------------------------------------------------------*/
1360
1361 #ifdef SWIG_LINK_RUNTIME
1362 void *SWIG_ReturnGlobalTypeList(void *);
1363 #endif
1364
1365 SWIGRUNTIME swig_module_info *
1366 SWIG_Python_GetModule(void) {
1367 static void *type_pointer = (void *)0;
1368 /* first check if module already created */
1369 if (!type_pointer) {
1370 #ifdef SWIG_LINK_RUNTIME
1371 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1372 #else
1373 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1374 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1375 if (PyErr_Occurred()) {
1376 PyErr_Clear();
1377 type_pointer = (void *)0;
1378 }
1379 #endif
1380 }
1381 return (swig_module_info *) type_pointer;
1382 }
1383
1384 #if PY_MAJOR_VERSION < 2
1385 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1386 is copied out of Python/modsupport.c in python version 2.3.4 */
1387 SWIGINTERN int
1388 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1389 {
1390 PyObject *dict;
1391 if (!PyModule_Check(m)) {
1392 PyErr_SetString(PyExc_TypeError,
1393 "PyModule_AddObject() needs module as first arg");
1394 return -1;
1395 }
1396 if (!o) {
1397 PyErr_SetString(PyExc_TypeError,
1398 "PyModule_AddObject() needs non-NULL value");
1399 return -1;
1400 }
1401
1402 dict = PyModule_GetDict(m);
1403 if (dict == NULL) {
1404 /* Internal error -- modules must have a dict! */
1405 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1406 PyModule_GetName(m));
1407 return -1;
1408 }
1409 if (PyDict_SetItemString(dict, name, o))
1410 return -1;
1411 Py_DECREF(o);
1412 return 0;
1413 }
1414 #endif
1415
1416 SWIGRUNTIME void
1417 SWIG_Python_SetModule(swig_module_info *swig_module) {
1418 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1419
1420 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1421 swig_empty_runtime_method_table);
1422 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1423 if (pointer && module) {
1424 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1425 }
1426 }
1427
1428 #ifdef __cplusplus
1429 }
1430 #endif
1431
1432
1433 /* -------- TYPES TABLE (BEGIN) -------- */
1434
1435 #define SWIGTYPE_p_char swig_types[0]
1436 #define SWIGTYPE_p_double swig_types[1]
1437 #define SWIGTYPE_p_form_ops_t swig_types[2]
1438 #define SWIGTYPE_p_int swig_types[3]
1439 #define SWIGTYPE_p_unsigned_char swig_types[4]
1440 #define SWIGTYPE_p_unsigned_int swig_types[5]
1441 #define SWIGTYPE_p_unsigned_long swig_types[6]
1442 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1443 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1444 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1445 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
1446 #define SWIGTYPE_p_wxBitmap swig_types[11]
1447 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
1448 #define SWIGTYPE_p_wxBrush swig_types[13]
1449 #define SWIGTYPE_p_wxBrushList swig_types[14]
1450 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
1451 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
1452 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1453 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
1454 #define SWIGTYPE_p_wxClientDC swig_types[19]
1455 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
1456 #define SWIGTYPE_p_wxColour swig_types[21]
1457 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
1458 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
1459 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
1460 #define SWIGTYPE_p_wxControl swig_types[25]
1461 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
1462 #define SWIGTYPE_p_wxCursor swig_types[27]
1463 #define SWIGTYPE_p_wxDC swig_types[28]
1464 #define SWIGTYPE_p_wxDash swig_types[29]
1465 #define SWIGTYPE_p_wxDateEvent swig_types[30]
1466 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
1467 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
1468 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
1469 #define SWIGTYPE_p_wxEffects swig_types[34]
1470 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
1471 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
1472 #define SWIGTYPE_p_wxEvent swig_types[37]
1473 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
1474 #define SWIGTYPE_p_wxFSFile swig_types[39]
1475 #define SWIGTYPE_p_wxFileSystem swig_types[40]
1476 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
1477 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
1478 #define SWIGTYPE_p_wxFont swig_types[43]
1479 #define SWIGTYPE_p_wxFontList swig_types[44]
1480 #define SWIGTYPE_p_wxFontMapper swig_types[45]
1481 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
1482 #define SWIGTYPE_p_wxGDIObject swig_types[47]
1483 #define SWIGTYPE_p_wxGIFHandler swig_types[48]
1484 #define SWIGTYPE_p_wxGridBagSizer swig_types[49]
1485 #define SWIGTYPE_p_wxGridSizer swig_types[50]
1486 #define SWIGTYPE_p_wxICOHandler swig_types[51]
1487 #define SWIGTYPE_p_wxIcon swig_types[52]
1488 #define SWIGTYPE_p_wxIconBundle swig_types[53]
1489 #define SWIGTYPE_p_wxIconLocation swig_types[54]
1490 #define SWIGTYPE_p_wxIconizeEvent swig_types[55]
1491 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
1492 #define SWIGTYPE_p_wxImage swig_types[57]
1493 #define SWIGTYPE_p_wxImageHandler swig_types[58]
1494 #define SWIGTYPE_p_wxImageList swig_types[59]
1495 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60]
1496 #define SWIGTYPE_p_wxInitDialogEvent swig_types[61]
1497 #define SWIGTYPE_p_wxJPEGHandler swig_types[62]
1498 #define SWIGTYPE_p_wxKeyEvent swig_types[63]
1499 #define SWIGTYPE_p_wxLanguageInfo swig_types[64]
1500 #define SWIGTYPE_p_wxLayoutConstraints swig_types[65]
1501 #define SWIGTYPE_p_wxLocale swig_types[66]
1502 #define SWIGTYPE_p_wxMask swig_types[67]
1503 #define SWIGTYPE_p_wxMaximizeEvent swig_types[68]
1504 #define SWIGTYPE_p_wxMemoryDC swig_types[69]
1505 #define SWIGTYPE_p_wxMenu swig_types[70]
1506 #define SWIGTYPE_p_wxMenuBar swig_types[71]
1507 #define SWIGTYPE_p_wxMenuEvent swig_types[72]
1508 #define SWIGTYPE_p_wxMenuItem swig_types[73]
1509 #define SWIGTYPE_p_wxMetaFile swig_types[74]
1510 #define SWIGTYPE_p_wxMetaFileDC swig_types[75]
1511 #define SWIGTYPE_p_wxMirrorDC swig_types[76]
1512 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
1513 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
1514 #define SWIGTYPE_p_wxMoveEvent swig_types[79]
1515 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80]
1516 #define SWIGTYPE_p_wxNativeFontInfo swig_types[81]
1517 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
1518 #define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
1519 #define SWIGTYPE_p_wxNotifyEvent swig_types[84]
1520 #define SWIGTYPE_p_wxObject swig_types[85]
1521 #define SWIGTYPE_p_wxPCXHandler swig_types[86]
1522 #define SWIGTYPE_p_wxPNGHandler swig_types[87]
1523 #define SWIGTYPE_p_wxPNMHandler swig_types[88]
1524 #define SWIGTYPE_p_wxPaintDC swig_types[89]
1525 #define SWIGTYPE_p_wxPaintEvent swig_types[90]
1526 #define SWIGTYPE_p_wxPalette swig_types[91]
1527 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92]
1528 #define SWIGTYPE_p_wxPaperSize swig_types[93]
1529 #define SWIGTYPE_p_wxPen swig_types[94]
1530 #define SWIGTYPE_p_wxPenList swig_types[95]
1531 #define SWIGTYPE_p_wxPoint swig_types[96]
1532 #define SWIGTYPE_p_wxPostScriptDC swig_types[97]
1533 #define SWIGTYPE_p_wxPrintData swig_types[98]
1534 #define SWIGTYPE_p_wxPrinterDC swig_types[99]
1535 #define SWIGTYPE_p_wxPyApp swig_types[100]
1536 #define SWIGTYPE_p_wxPyCommandEvent swig_types[101]
1537 #define SWIGTYPE_p_wxPyEvent swig_types[102]
1538 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103]
1539 #define SWIGTYPE_p_wxPyImageHandler swig_types[104]
1540 #define SWIGTYPE_p_wxPySizer swig_types[105]
1541 #define SWIGTYPE_p_wxPyValidator swig_types[106]
1542 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
1543 #define SWIGTYPE_p_wxRect swig_types[108]
1544 #define SWIGTYPE_p_wxRegion swig_types[109]
1545 #define SWIGTYPE_p_wxRegionIterator swig_types[110]
1546 #define SWIGTYPE_p_wxRendererNative swig_types[111]
1547 #define SWIGTYPE_p_wxRendererVersion swig_types[112]
1548 #define SWIGTYPE_p_wxScreenDC swig_types[113]
1549 #define SWIGTYPE_p_wxScrollEvent swig_types[114]
1550 #define SWIGTYPE_p_wxScrollWinEvent swig_types[115]
1551 #define SWIGTYPE_p_wxSetCursorEvent swig_types[116]
1552 #define SWIGTYPE_p_wxShowEvent swig_types[117]
1553 #define SWIGTYPE_p_wxSize swig_types[118]
1554 #define SWIGTYPE_p_wxSizeEvent swig_types[119]
1555 #define SWIGTYPE_p_wxSizer swig_types[120]
1556 #define SWIGTYPE_p_wxSizerItem swig_types[121]
1557 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122]
1558 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123]
1559 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124]
1560 #define SWIGTYPE_p_wxString swig_types[125]
1561 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126]
1562 #define SWIGTYPE_p_wxTIFFHandler swig_types[127]
1563 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
1564 #define SWIGTYPE_p_wxValidator swig_types[129]
1565 #define SWIGTYPE_p_wxWindow swig_types[130]
1566 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
1567 #define SWIGTYPE_p_wxWindowDC swig_types[132]
1568 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
1569 #define SWIGTYPE_p_wxXPMHandler swig_types[134]
1570 #define SWIGTYPE_ptrdiff_t swig_types[135]
1571 #define SWIGTYPE_std__ptrdiff_t swig_types[136]
1572 #define SWIGTYPE_unsigned_int swig_types[137]
1573 static swig_type_info *swig_types[139];
1574 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
1575 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1576 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1577
1578 /* -------- TYPES TABLE (END) -------- */
1579
1580
1581 /*-----------------------------------------------
1582 @(target):= _gdi_.so
1583 ------------------------------------------------*/
1584 #define SWIG_init init_gdi_
1585
1586 #define SWIG_name "_gdi_"
1587
1588 #include "wx/wxPython/wxPython.h"
1589 #include "wx/wxPython/pyclasses.h"
1590
1591
1592 static const wxString wxPyEmptyString(wxEmptyString);
1593
1594 #include <limits.h>
1595
1596
1597 SWIGINTERN int
1598 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1599 const char *errmsg)
1600 {
1601 if (value < min_value) {
1602 if (errmsg) {
1603 PyErr_Format(PyExc_OverflowError,
1604 "value %ld is less than '%s' minimum %ld",
1605 value, errmsg, min_value);
1606 }
1607 return 0;
1608 } else if (value > max_value) {
1609 if (errmsg) {
1610 PyErr_Format(PyExc_OverflowError,
1611 "value %ld is greater than '%s' maximum %ld",
1612 value, errmsg, max_value);
1613 }
1614 return 0;
1615 }
1616 return 1;
1617 }
1618
1619
1620 SWIGINTERN int
1621 SWIG_AsVal_long(PyObject* obj, long* val)
1622 {
1623 if (PyNumber_Check(obj)) {
1624 if (val) *val = PyInt_AsLong(obj);
1625 return 1;
1626 }
1627 else {
1628 SWIG_Python_TypeError("number", obj);
1629 }
1630 return 0;
1631 }
1632
1633
1634 #if INT_MAX != LONG_MAX
1635 SWIGINTERN int
1636 SWIG_AsVal_int(PyObject *obj, int *val)
1637 {
1638 const char* errmsg = val ? "int" : (char*)0;
1639 long v;
1640 if (SWIG_AsVal_long(obj, &v)) {
1641 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1642 if (val) *val = static_cast<int >(v);
1643 return 1;
1644 } else {
1645 return 0;
1646 }
1647 } else {
1648 PyErr_Clear();
1649 }
1650 if (val) {
1651 SWIG_type_error(errmsg, obj);
1652 }
1653 return 0;
1654 }
1655 #else
1656 SWIGINTERNINLINE int
1657 SWIG_AsVal_int(PyObject *obj, int *val)
1658 {
1659 return SWIG_AsVal_long(obj,(long*)val);
1660 }
1661 #endif
1662
1663
1664 SWIGINTERN int
1665 SWIG_AsVal_bool(PyObject *obj, bool *val)
1666 {
1667 if (obj == Py_True) {
1668 if (val) *val = true;
1669 return 1;
1670 }
1671 if (obj == Py_False) {
1672 if (val) *val = false;
1673 return 1;
1674 }
1675 int res = 0;
1676 if (SWIG_AsVal_int(obj, &res)) {
1677 if (val) *val = res ? true : false;
1678 return 1;
1679 } else {
1680 PyErr_Clear();
1681 }
1682 if (val) {
1683 SWIG_type_error("bool", obj);
1684 }
1685 return 0;
1686 }
1687
1688
1689 SWIGINTERNINLINE bool
1690 SWIG_As_bool(PyObject* obj)
1691 {
1692 bool v;
1693 if (!SWIG_AsVal_bool(obj, &v)) {
1694 /*
1695 this is needed to make valgrind/purify happier.
1696 */
1697 memset((void*)&v, 0, sizeof(bool));
1698 }
1699 return v;
1700 }
1701
1702
1703 SWIGINTERNINLINE int
1704 SWIG_Check_bool(PyObject* obj)
1705 {
1706 return SWIG_AsVal_bool(obj, (bool*)0);
1707 }
1708
1709
1710 SWIGINTERN int
1711 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1712 {
1713 long v = 0;
1714 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1715 SWIG_Python_TypeError("unsigned number", obj);
1716 }
1717 else if (val)
1718 *val = (unsigned long)v;
1719 return 1;
1720 }
1721
1722
1723 SWIGINTERNINLINE int
1724 SWIG_CheckUnsignedLongInRange(unsigned long value,
1725 unsigned long max_value,
1726 const char *errmsg)
1727 {
1728 if (value > max_value) {
1729 if (errmsg) {
1730 PyErr_Format(PyExc_OverflowError,
1731 "value %lu is greater than '%s' minimum %lu",
1732 value, errmsg, max_value);
1733 }
1734 return 0;
1735 }
1736 return 1;
1737 }
1738
1739
1740 SWIGINTERN int
1741 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1742 {
1743 const char* errmsg = val ? "unsigned char" : (char*)0;
1744 unsigned long v;
1745 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1746 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1747 if (val) *val = static_cast<unsigned char >(v);
1748 return 1;
1749 } else {
1750 return 0;
1751 }
1752 } else {
1753 PyErr_Clear();
1754 }
1755 if (val) {
1756 SWIG_type_error(errmsg, obj);
1757 }
1758 return 0;
1759 }
1760
1761
1762 SWIGINTERNINLINE unsigned char
1763 SWIG_As_unsigned_SS_char(PyObject* obj)
1764 {
1765 unsigned char v;
1766 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1767 /*
1768 this is needed to make valgrind/purify happier.
1769 */
1770 memset((void*)&v, 0, sizeof(unsigned char));
1771 }
1772 return v;
1773 }
1774
1775
1776 SWIGINTERNINLINE int
1777 SWIG_Check_unsigned_SS_char(PyObject* obj)
1778 {
1779 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1780 }
1781
1782
1783 SWIGINTERNINLINE unsigned long
1784 SWIG_As_unsigned_SS_long(PyObject* obj)
1785 {
1786 unsigned long v;
1787 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1788 /*
1789 this is needed to make valgrind/purify happier.
1790 */
1791 memset((void*)&v, 0, sizeof(unsigned long));
1792 }
1793 return v;
1794 }
1795
1796
1797 SWIGINTERNINLINE int
1798 SWIG_Check_unsigned_SS_long(PyObject* obj)
1799 {
1800 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1801 }
1802
1803
1804 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1805 #define SWIG_From_unsigned_SS_char PyInt_FromLong
1806 /*@@*/
1807
1808
1809 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1810 #define SWIG_From_long PyInt_FromLong
1811 /*@@*/
1812
1813 static PyObject *wxColour_Get(wxColour *self){
1814 PyObject* rv = PyTuple_New(3);
1815 int red = -1;
1816 int green = -1;
1817 int blue = -1;
1818 if (self->Ok()) {
1819 red = self->Red();
1820 green = self->Green();
1821 blue = self->Blue();
1822 }
1823 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
1824 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
1825 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
1826 return rv;
1827 }
1828 static unsigned long wxColour_GetRGB(wxColour *self){
1829 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
1830 }
1831
1832 SWIGINTERNINLINE PyObject*
1833 SWIG_From_unsigned_SS_long(unsigned long value)
1834 {
1835 return (value > LONG_MAX) ?
1836 PyLong_FromUnsignedLong(value)
1837 : PyInt_FromLong(static_cast<long >(value));
1838 }
1839
1840
1841 SWIGINTERNINLINE int
1842 SWIG_As_int(PyObject* obj)
1843 {
1844 int v;
1845 if (!SWIG_AsVal_int(obj, &v)) {
1846 /*
1847 this is needed to make valgrind/purify happier.
1848 */
1849 memset((void*)&v, 0, sizeof(int));
1850 }
1851 return v;
1852 }
1853
1854
1855 SWIGINTERNINLINE int
1856 SWIG_Check_int(PyObject* obj)
1857 {
1858 return SWIG_AsVal_int(obj, (int*)0);
1859 }
1860
1861
1862 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1863 #define SWIG_From_int PyInt_FromLong
1864 /*@@*/
1865
1866
1867 static PyObject* t_output_helper(PyObject* result, PyObject* obj)
1868 {
1869 PyObject* o2;
1870 PyObject* o3;
1871 if (!result) {
1872 result = obj;
1873 } else if (result == Py_None) {
1874 Py_DECREF(result);
1875 result = obj;
1876 } else {
1877 if (!PyTuple_Check(result)) {
1878 o2 = result;
1879 result = PyTuple_New(1);
1880 PyTuple_SET_ITEM(result, 0, o2);
1881 }
1882 o3 = PyTuple_New(1);
1883 PyTuple_SetItem(o3, 0, obj);
1884 o2 = result;
1885 result = PySequence_Concat(o2, o3);
1886 Py_DECREF(o2);
1887 Py_DECREF(o3);
1888 }
1889 return result;
1890 }
1891
1892
1893 static PyObject *wxPen_GetDashes(wxPen *self){
1894 wxDash* dashes;
1895 int count = self->GetDashes(&dashes);
1896 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1897 PyObject* retval = PyList_New(0);
1898 for (int x=0; x<count; x++) {
1899 PyObject* pyint = PyInt_FromLong(dashes[x]);
1900 PyList_Append(retval, pyint);
1901 Py_DECREF(pyint);
1902 }
1903 wxPyEndBlockThreads(blocked);
1904 return retval;
1905 }
1906 static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
1907 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1908 int size = PyList_Size(pyDashes);
1909 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
1910
1911 // black magic warning! The array of wxDashes needs to exist as
1912 // long as the pen does because wxPen does not copy the array. So
1913 // stick a copy in a Python string object and attach it to _self,
1914 // and then call SetDashes with a pointer to that array. Then
1915 // when the Python pen object is destroyed the array will be
1916 // cleaned up too.
1917 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
1918 PyObject_SetAttrString(_self, "_dashes", strDashes);
1919
1920 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
1921 delete [] dashes;
1922 Py_DECREF(strDashes);
1923 wxPyEndBlockThreads(blocked);
1924 }
1925 static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
1926 static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
1927
1928 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
1929 #define SWIG_From_short PyInt_FromLong
1930 /*@@*/
1931
1932
1933 SWIGINTERN int
1934 SWIG_AsVal_short(PyObject *obj, short *val)
1935 {
1936 const char* errmsg = val ? "short" : (char*)0;
1937 long v;
1938 if (SWIG_AsVal_long(obj, &v)) {
1939 if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) {
1940 if (val) *val = static_cast<short >(v);
1941 return 1;
1942 } else {
1943 return 0;
1944 }
1945 } else {
1946 PyErr_Clear();
1947 }
1948 if (val) {
1949 SWIG_type_error(errmsg, obj);
1950 }
1951 return 0;
1952 }
1953
1954
1955 SWIGINTERNINLINE short
1956 SWIG_As_short(PyObject* obj)
1957 {
1958 short v;
1959 if (!SWIG_AsVal_short(obj, &v)) {
1960 /*
1961 this is needed to make valgrind/purify happier.
1962 */
1963 memset((void*)&v, 0, sizeof(short));
1964 }
1965 return v;
1966 }
1967
1968
1969 SWIGINTERNINLINE int
1970 SWIG_Check_short(PyObject* obj)
1971 {
1972 return SWIG_AsVal_short(obj, (short*)0);
1973 }
1974
1975
1976 #include <wx/image.h>
1977
1978 static char** ConvertListOfStrings(PyObject* listOfStrings) {
1979 char** cArray = NULL;
1980 int count;
1981
1982 if (!PyList_Check(listOfStrings)) {
1983 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
1984 return NULL;
1985 }
1986 count = PyList_Size(listOfStrings);
1987 cArray = new char*[count];
1988
1989 for(int x=0; x<count; x++) {
1990 // TODO: Need some validation and error checking here
1991 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
1992 }
1993 return cArray;
1994 }
1995
1996
1997 static wxBitmap *new_wxBitmap(PyObject *listOfStrings){
1998 char** cArray = NULL;
1999 wxBitmap* bmp;
2000
2001 cArray = ConvertListOfStrings(listOfStrings);
2002 if (! cArray)
2003 return NULL;
2004 bmp = new wxBitmap(cArray);
2005 delete [] cArray;
2006 return bmp;
2007 }
2008 static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2009 char* buf;
2010 int length;
2011 PyString_AsStringAndSize(bits, &buf, &length);
2012 return new wxBitmap(buf, width, height, depth);
2013 }
2014 static wxSize wxBitmap_GetSize(wxBitmap *self){
2015 wxSize size(self->GetWidth(), self->GetHeight());
2016 return size;
2017 }
2018 static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2019 wxMask *mask = new wxMask(*self, colour);
2020 self->SetMask(mask);
2021 }
2022 static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2023 self->SetWidth(size.x);
2024 self->SetHeight(size.y);
2025 }
2026 static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2027 static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2028 static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2029 if ( !colour.Ok() )
2030 return new wxMask(bitmap, *wxBLACK);
2031 else
2032 return new wxMask(bitmap, colour);
2033 }
2034
2035 #include <wx/iconbndl.h>
2036
2037 static wxIcon *new_wxIcon(wxBitmap const &bmp){
2038 wxIcon* icon = new wxIcon();
2039 icon->CopyFromBitmap(bmp);
2040 return icon;
2041 }
2042 static wxIcon *new_wxIcon(PyObject *listOfStrings){
2043 char** cArray = NULL;
2044 wxIcon* icon;
2045
2046 cArray = ConvertListOfStrings(listOfStrings);
2047 if (! cArray)
2048 return NULL;
2049 icon = new wxIcon(cArray);
2050 delete [] cArray;
2051 return icon;
2052 }
2053 static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2054
2055
2056
2057 return new wxIconLocation(*filename);
2058
2059 }
2060 static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2061
2062
2063
2064 // do nothing
2065
2066 }
2067 static int wxIconLocation_GetIndex(wxIconLocation *self){
2068
2069
2070
2071 return -1;
2072
2073 }
2074
2075 SWIGINTERNINLINE long
2076 SWIG_As_long(PyObject* obj)
2077 {
2078 long v;
2079 if (!SWIG_AsVal_long(obj, &v)) {
2080 /*
2081 this is needed to make valgrind/purify happier.
2082 */
2083 memset((void*)&v, 0, sizeof(long));
2084 }
2085 return v;
2086 }
2087
2088
2089 SWIGINTERNINLINE int
2090 SWIG_Check_long(PyObject* obj)
2091 {
2092 return SWIG_AsVal_long(obj, (long*)0);
2093 }
2094
2095 static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2096 #ifdef __WXGTK__
2097 wxImage img(cursorName, type);
2098 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2099 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2100 return new wxCursor(img);
2101 #else
2102 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2103 #endif
2104 }
2105
2106
2107 static void wxRegionIterator_Next(wxRegionIterator *self){
2108 (*self) ++;
2109 }
2110 static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2111 return self->operator bool();
2112 }
2113
2114 #include <wx/fontutil.h>
2115 #include <wx/fontmap.h>
2116 #include <wx/fontenum.h>
2117
2118 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
2119 return self->ToString();
2120 }
2121
2122 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
2123 static wxNativeEncodingInfo info;
2124 if ( wxGetNativeFontEncoding(encoding, &info) )
2125 return &info;
2126 else
2127 return NULL;
2128 }
2129
2130 static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
2131 wxFontEncoding alt_enc;
2132 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2133 return PyInt_FromLong(alt_enc);
2134 else {
2135 Py_INCREF(Py_None);
2136 return Py_None;
2137 }
2138 }
2139 static wxFont *new_wxFont(wxString const &info){
2140 wxNativeFontInfo nfi;
2141 nfi.FromString(info);
2142 return new wxFont(nfi);
2143 }
2144 static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2145 return wxFont::New(pointSize, family, flags, face, encoding);
2146 }
2147 static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2148 return wxFontBase::New(pixelSize, family,
2149 style, weight, underlined,
2150 face, encoding);
2151 }
2152 static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2153 return wxFontBase::New(pixelSize, family, flags, face, encoding);
2154 }
2155 static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
2156 static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
2157
2158 class wxPyFontEnumerator : public wxFontEnumerator {
2159 public:
2160 wxPyFontEnumerator() {}
2161 ~wxPyFontEnumerator() {}
2162
2163 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
2164 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
2165
2166 PYPRIVATE;
2167 };
2168
2169 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
2170 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
2171
2172
2173 static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
2174 wxArrayString* arr = self->GetEncodings();
2175 if (arr)
2176 return wxArrayString2PyList_helper(*arr);
2177 else
2178 return PyList_New(0);
2179 }
2180 static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
2181 wxArrayString* arr = self->GetFacenames();
2182 if (arr)
2183 return wxArrayString2PyList_helper(*arr);
2184 else
2185 return PyList_New(0);
2186 }
2187
2188 #include <locale.h>
2189
2190 static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2191 wxLocale* loc;
2192 if (language == -1)
2193 loc = new wxLocale();
2194 else
2195 loc = new wxLocale(language, flags);
2196 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2197 // for the floating point conversions and such to work right.
2198 #if PY_VERSION_HEX < 0x02040000
2199 setlocale(LC_NUMERIC, "C");
2200 #endif
2201 return loc;
2202 }
2203 static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
2204 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
2205 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2206 // for the floating point conversions and such to work right.
2207 #if PY_VERSION_HEX < 0x02040000
2208 setlocale(LC_NUMERIC, "C");
2209 #endif
2210 return rc;
2211 }
2212 static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2213 bool rc = self->Init(language, flags);
2214 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2215 // for the floating point conversions and such to work right.
2216 #if PY_VERSION_HEX < 0x02040000
2217 setlocale(LC_NUMERIC, "C");
2218 #endif
2219 return rc;
2220 }
2221
2222 #include "wx/wxPython/pydrawxxx.h"
2223
2224 static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2225 wxColour col;
2226 self->GetPixel(x, y, &col);
2227 return col;
2228 }
2229 static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2230 wxColour col;
2231 self->GetPixel(pt, &col);
2232 return col;
2233 }
2234
2235 SWIGINTERN int
2236 SWIG_AsVal_double(PyObject *obj, double* val)
2237 {
2238 if (PyNumber_Check(obj)) {
2239 if (val) *val = PyFloat_AsDouble(obj);
2240 return 1;
2241 }
2242 else {
2243 SWIG_Python_TypeError("number", obj);
2244 }
2245 return 0;
2246 }
2247
2248
2249 SWIGINTERNINLINE double
2250 SWIG_As_double(PyObject* obj)
2251 {
2252 double v;
2253 if (!SWIG_AsVal_double(obj, &v)) {
2254 /*
2255 this is needed to make valgrind/purify happier.
2256 */
2257 memset((void*)&v, 0, sizeof(double));
2258 }
2259 return v;
2260 }
2261
2262
2263 SWIGINTERNINLINE int
2264 SWIG_Check_double(PyObject* obj)
2265 {
2266 return SWIG_AsVal_double(obj, (double*)0);
2267 }
2268
2269 static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2270 wxRect rv;
2271 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2272 return rv;
2273 }
2274
2275 static wxRect wxDC_GetClippingRect(wxDC *self){
2276 wxRect rect;
2277 self->GetClippingBox(rect);
2278 return rect;
2279 }
2280 static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2281 wxArrayInt widths;
2282 self->GetPartialTextExtents(text, widths);
2283 return widths;
2284 }
2285
2286 /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/
2287 #define SWIG_From_double PyFloat_FromDouble
2288 /*@@*/
2289
2290
2291 static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2292 self->SetLogicalOrigin(point.x, point.y);
2293 }
2294 static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2295 self->SetDeviceOrigin(point.x, point.y);
2296 }
2297 static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2298 self->CalcBoundingBox(point.x, point.y);
2299 }
2300 static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2301 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2302 }
2303 static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2304 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2305 }
2306 static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2307 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2308 }
2309 static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2310 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2311 }
2312 static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2313 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2314 }
2315 static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2316 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2317 }
2318
2319 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2320 *x1 = dc->MinX();
2321 *y1 = dc->MinY();
2322 *x2 = dc->MaxX();
2323 *y2 = dc->MaxY();
2324 }
2325
2326
2327 #include <wx/dcbuffer.h>
2328
2329
2330 #include <wx/dcps.h>
2331
2332
2333 #include <wx/metafile.h>
2334
2335
2336
2337 static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2338 self->AddColour(name, wxColour(red, green, blue));
2339 }
2340
2341 #include <wx/effects.h>
2342
2343
2344 #include "wx/renderer.h"
2345
2346
2347 SWIGINTERNINLINE PyObject*
2348 SWIG_From_bool(bool value)
2349 {
2350 PyObject *obj = value ? Py_True : Py_False;
2351 Py_INCREF(obj);
2352 return obj;
2353 }
2354
2355 #ifdef __cplusplus
2356 extern "C" {
2357 #endif
2358 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj = NULL;
2360 wxGDIObject *result;
2361 char *kwnames[] = {
2362 NULL
2363 };
2364
2365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
2366 {
2367 if (!wxPyCheckForApp()) SWIG_fail;
2368 PyThreadState* __tstate = wxPyBeginAllowThreads();
2369 result = (wxGDIObject *)new wxGDIObject();
2370
2371 wxPyEndAllowThreads(__tstate);
2372 if (PyErr_Occurred()) SWIG_fail;
2373 }
2374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
2375 return resultobj;
2376 fail:
2377 return NULL;
2378 }
2379
2380
2381 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2382 PyObject *resultobj = NULL;
2383 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2384 PyObject * obj0 = 0 ;
2385 char *kwnames[] = {
2386 (char *) "self", NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2391 if (SWIG_arg_fail(1)) SWIG_fail;
2392 {
2393 PyThreadState* __tstate = wxPyBeginAllowThreads();
2394 delete arg1;
2395
2396 wxPyEndAllowThreads(__tstate);
2397 if (PyErr_Occurred()) SWIG_fail;
2398 }
2399 Py_INCREF(Py_None); resultobj = Py_None;
2400 return resultobj;
2401 fail:
2402 return NULL;
2403 }
2404
2405
2406 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2407 PyObject *resultobj = NULL;
2408 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2409 bool result;
2410 PyObject * obj0 = 0 ;
2411 char *kwnames[] = {
2412 (char *) "self", NULL
2413 };
2414
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2417 if (SWIG_arg_fail(1)) SWIG_fail;
2418 {
2419 PyThreadState* __tstate = wxPyBeginAllowThreads();
2420 result = (bool)(arg1)->GetVisible();
2421
2422 wxPyEndAllowThreads(__tstate);
2423 if (PyErr_Occurred()) SWIG_fail;
2424 }
2425 {
2426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2427 }
2428 return resultobj;
2429 fail:
2430 return NULL;
2431 }
2432
2433
2434 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2435 PyObject *resultobj = NULL;
2436 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2437 bool arg2 ;
2438 PyObject * obj0 = 0 ;
2439 PyObject * obj1 = 0 ;
2440 char *kwnames[] = {
2441 (char *) "self",(char *) "visible", NULL
2442 };
2443
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2446 if (SWIG_arg_fail(1)) SWIG_fail;
2447 {
2448 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
2449 if (SWIG_arg_fail(2)) SWIG_fail;
2450 }
2451 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 (arg1)->SetVisible(arg2);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 Py_INCREF(Py_None); resultobj = Py_None;
2459 return resultobj;
2460 fail:
2461 return NULL;
2462 }
2463
2464
2465 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
2466 PyObject *resultobj = NULL;
2467 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2468 bool result;
2469 PyObject * obj0 = 0 ;
2470 char *kwnames[] = {
2471 (char *) "self", NULL
2472 };
2473
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2475 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2476 if (SWIG_arg_fail(1)) SWIG_fail;
2477 {
2478 PyThreadState* __tstate = wxPyBeginAllowThreads();
2479 result = (bool)(arg1)->IsNull();
2480
2481 wxPyEndAllowThreads(__tstate);
2482 if (PyErr_Occurred()) SWIG_fail;
2483 }
2484 {
2485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2486 }
2487 return resultobj;
2488 fail:
2489 return NULL;
2490 }
2491
2492
2493 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
2494 PyObject *obj;
2495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2496 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
2497 Py_INCREF(obj);
2498 return Py_BuildValue((char *)"");
2499 }
2500 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2501 PyObject *resultobj = NULL;
2502 byte arg1 = (byte) 0 ;
2503 byte arg2 = (byte) 0 ;
2504 byte arg3 = (byte) 0 ;
2505 wxColour *result;
2506 PyObject * obj0 = 0 ;
2507 PyObject * obj1 = 0 ;
2508 PyObject * obj2 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "red",(char *) "green",(char *) "blue", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2514 if (obj0) {
2515 {
2516 arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0));
2517 if (SWIG_arg_fail(1)) SWIG_fail;
2518 }
2519 }
2520 if (obj1) {
2521 {
2522 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2523 if (SWIG_arg_fail(2)) SWIG_fail;
2524 }
2525 }
2526 if (obj2) {
2527 {
2528 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2529 if (SWIG_arg_fail(3)) SWIG_fail;
2530 }
2531 }
2532 {
2533 PyThreadState* __tstate = wxPyBeginAllowThreads();
2534 result = (wxColour *)new wxColour(arg1,arg2,arg3);
2535
2536 wxPyEndAllowThreads(__tstate);
2537 if (PyErr_Occurred()) SWIG_fail;
2538 }
2539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2540 return resultobj;
2541 fail:
2542 return NULL;
2543 }
2544
2545
2546 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
2547 PyObject *resultobj = NULL;
2548 wxString *arg1 = 0 ;
2549 wxColour *result;
2550 bool temp1 = false ;
2551 PyObject * obj0 = 0 ;
2552 char *kwnames[] = {
2553 (char *) "colorName", NULL
2554 };
2555
2556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2557 {
2558 arg1 = wxString_in_helper(obj0);
2559 if (arg1 == NULL) SWIG_fail;
2560 temp1 = true;
2561 }
2562 {
2563 if (!wxPyCheckForApp()) SWIG_fail;
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
2565 result = (wxColour *)new wxColour((wxString const &)*arg1);
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 }
2570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2571 {
2572 if (temp1)
2573 delete arg1;
2574 }
2575 return resultobj;
2576 fail:
2577 {
2578 if (temp1)
2579 delete arg1;
2580 }
2581 return NULL;
2582 }
2583
2584
2585 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2586 PyObject *resultobj = NULL;
2587 unsigned long arg1 ;
2588 wxColour *result;
2589 PyObject * obj0 = 0 ;
2590 char *kwnames[] = {
2591 (char *) "colRGB", NULL
2592 };
2593
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2595 {
2596 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
2597 if (SWIG_arg_fail(1)) SWIG_fail;
2598 }
2599 {
2600 PyThreadState* __tstate = wxPyBeginAllowThreads();
2601 result = (wxColour *)new wxColour(arg1);
2602
2603 wxPyEndAllowThreads(__tstate);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 }
2606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2607 return resultobj;
2608 fail:
2609 return NULL;
2610 }
2611
2612
2613 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2614 PyObject *resultobj = NULL;
2615 wxColour *arg1 = (wxColour *) 0 ;
2616 PyObject * obj0 = 0 ;
2617 char *kwnames[] = {
2618 (char *) "self", NULL
2619 };
2620
2621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2623 if (SWIG_arg_fail(1)) SWIG_fail;
2624 {
2625 PyThreadState* __tstate = wxPyBeginAllowThreads();
2626 delete arg1;
2627
2628 wxPyEndAllowThreads(__tstate);
2629 if (PyErr_Occurred()) SWIG_fail;
2630 }
2631 Py_INCREF(Py_None); resultobj = Py_None;
2632 return resultobj;
2633 fail:
2634 return NULL;
2635 }
2636
2637
2638 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
2639 PyObject *resultobj = NULL;
2640 wxColour *arg1 = (wxColour *) 0 ;
2641 byte result;
2642 PyObject * obj0 = 0 ;
2643 char *kwnames[] = {
2644 (char *) "self", NULL
2645 };
2646
2647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2648 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2649 if (SWIG_arg_fail(1)) SWIG_fail;
2650 {
2651 PyThreadState* __tstate = wxPyBeginAllowThreads();
2652 result = (byte)(arg1)->Red();
2653
2654 wxPyEndAllowThreads(__tstate);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 {
2658 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2659 }
2660 return resultobj;
2661 fail:
2662 return NULL;
2663 }
2664
2665
2666 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
2667 PyObject *resultobj = NULL;
2668 wxColour *arg1 = (wxColour *) 0 ;
2669 byte result;
2670 PyObject * obj0 = 0 ;
2671 char *kwnames[] = {
2672 (char *) "self", NULL
2673 };
2674
2675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2676 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2677 if (SWIG_arg_fail(1)) SWIG_fail;
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 result = (byte)(arg1)->Green();
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 }
2685 {
2686 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2687 }
2688 return resultobj;
2689 fail:
2690 return NULL;
2691 }
2692
2693
2694 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
2695 PyObject *resultobj = NULL;
2696 wxColour *arg1 = (wxColour *) 0 ;
2697 byte result;
2698 PyObject * obj0 = 0 ;
2699 char *kwnames[] = {
2700 (char *) "self", NULL
2701 };
2702
2703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2704 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2705 if (SWIG_arg_fail(1)) SWIG_fail;
2706 {
2707 PyThreadState* __tstate = wxPyBeginAllowThreads();
2708 result = (byte)(arg1)->Blue();
2709
2710 wxPyEndAllowThreads(__tstate);
2711 if (PyErr_Occurred()) SWIG_fail;
2712 }
2713 {
2714 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2715 }
2716 return resultobj;
2717 fail:
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj = NULL;
2724 wxColour *arg1 = (wxColour *) 0 ;
2725 bool result;
2726 PyObject * obj0 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2733 if (SWIG_arg_fail(1)) SWIG_fail;
2734 {
2735 PyThreadState* __tstate = wxPyBeginAllowThreads();
2736 result = (bool)(arg1)->Ok();
2737
2738 wxPyEndAllowThreads(__tstate);
2739 if (PyErr_Occurred()) SWIG_fail;
2740 }
2741 {
2742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2743 }
2744 return resultobj;
2745 fail:
2746 return NULL;
2747 }
2748
2749
2750 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
2751 PyObject *resultobj = NULL;
2752 wxColour *arg1 = (wxColour *) 0 ;
2753 byte arg2 ;
2754 byte arg3 ;
2755 byte arg4 ;
2756 PyObject * obj0 = 0 ;
2757 PyObject * obj1 = 0 ;
2758 PyObject * obj2 = 0 ;
2759 PyObject * obj3 = 0 ;
2760 char *kwnames[] = {
2761 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
2762 };
2763
2764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2766 if (SWIG_arg_fail(1)) SWIG_fail;
2767 {
2768 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2769 if (SWIG_arg_fail(2)) SWIG_fail;
2770 }
2771 {
2772 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2773 if (SWIG_arg_fail(3)) SWIG_fail;
2774 }
2775 {
2776 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
2777 if (SWIG_arg_fail(4)) SWIG_fail;
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 (arg1)->Set(arg2,arg3,arg4);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) SWIG_fail;
2785 }
2786 Py_INCREF(Py_None); resultobj = Py_None;
2787 return resultobj;
2788 fail:
2789 return NULL;
2790 }
2791
2792
2793 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj = NULL;
2795 wxColour *arg1 = (wxColour *) 0 ;
2796 unsigned long arg2 ;
2797 PyObject * obj0 = 0 ;
2798 PyObject * obj1 = 0 ;
2799 char *kwnames[] = {
2800 (char *) "self",(char *) "colRGB", NULL
2801 };
2802
2803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2805 if (SWIG_arg_fail(1)) SWIG_fail;
2806 {
2807 arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1));
2808 if (SWIG_arg_fail(2)) SWIG_fail;
2809 }
2810 {
2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
2812 (arg1)->Set(arg2);
2813
2814 wxPyEndAllowThreads(__tstate);
2815 if (PyErr_Occurred()) SWIG_fail;
2816 }
2817 Py_INCREF(Py_None); resultobj = Py_None;
2818 return resultobj;
2819 fail:
2820 return NULL;
2821 }
2822
2823
2824 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
2825 PyObject *resultobj = NULL;
2826 wxColour *arg1 = (wxColour *) 0 ;
2827 wxString *arg2 = 0 ;
2828 bool temp2 = false ;
2829 PyObject * obj0 = 0 ;
2830 PyObject * obj1 = 0 ;
2831 char *kwnames[] = {
2832 (char *) "self",(char *) "colourName", NULL
2833 };
2834
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2836 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2837 if (SWIG_arg_fail(1)) SWIG_fail;
2838 {
2839 arg2 = wxString_in_helper(obj1);
2840 if (arg2 == NULL) SWIG_fail;
2841 temp2 = true;
2842 }
2843 {
2844 PyThreadState* __tstate = wxPyBeginAllowThreads();
2845 (arg1)->InitFromName((wxString const &)*arg2);
2846
2847 wxPyEndAllowThreads(__tstate);
2848 if (PyErr_Occurred()) SWIG_fail;
2849 }
2850 Py_INCREF(Py_None); resultobj = Py_None;
2851 {
2852 if (temp2)
2853 delete arg2;
2854 }
2855 return resultobj;
2856 fail:
2857 {
2858 if (temp2)
2859 delete arg2;
2860 }
2861 return NULL;
2862 }
2863
2864
2865 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
2866 PyObject *resultobj = NULL;
2867 wxColour *arg1 = (wxColour *) 0 ;
2868 long result;
2869 PyObject * obj0 = 0 ;
2870 char *kwnames[] = {
2871 (char *) "self", NULL
2872 };
2873
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2876 if (SWIG_arg_fail(1)) SWIG_fail;
2877 {
2878 PyThreadState* __tstate = wxPyBeginAllowThreads();
2879 result = (long)((wxColour const *)arg1)->GetPixel();
2880
2881 wxPyEndAllowThreads(__tstate);
2882 if (PyErr_Occurred()) SWIG_fail;
2883 }
2884 {
2885 resultobj = SWIG_From_long(static_cast<long >(result));
2886 }
2887 return resultobj;
2888 fail:
2889 return NULL;
2890 }
2891
2892
2893 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2894 PyObject *resultobj = NULL;
2895 wxColour *arg1 = (wxColour *) 0 ;
2896 wxColour *arg2 = 0 ;
2897 bool result;
2898 wxColour temp2 ;
2899 PyObject * obj0 = 0 ;
2900 PyObject * obj1 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "self",(char *) "colour", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2906 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2907 if (SWIG_arg_fail(1)) SWIG_fail;
2908 {
2909 arg2 = &temp2;
2910 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2911 }
2912 {
2913 PyThreadState* __tstate = wxPyBeginAllowThreads();
2914 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
2915
2916 wxPyEndAllowThreads(__tstate);
2917 if (PyErr_Occurred()) SWIG_fail;
2918 }
2919 {
2920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2921 }
2922 return resultobj;
2923 fail:
2924 return NULL;
2925 }
2926
2927
2928 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2929 PyObject *resultobj = NULL;
2930 wxColour *arg1 = (wxColour *) 0 ;
2931 wxColour *arg2 = 0 ;
2932 bool result;
2933 wxColour temp2 ;
2934 PyObject * obj0 = 0 ;
2935 PyObject * obj1 = 0 ;
2936 char *kwnames[] = {
2937 (char *) "self",(char *) "colour", NULL
2938 };
2939
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2941 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2942 if (SWIG_arg_fail(1)) SWIG_fail;
2943 {
2944 arg2 = &temp2;
2945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2946 }
2947 {
2948 PyThreadState* __tstate = wxPyBeginAllowThreads();
2949 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
2950
2951 wxPyEndAllowThreads(__tstate);
2952 if (PyErr_Occurred()) SWIG_fail;
2953 }
2954 {
2955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2956 }
2957 return resultobj;
2958 fail:
2959 return NULL;
2960 }
2961
2962
2963 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
2964 PyObject *resultobj = NULL;
2965 wxColour *arg1 = (wxColour *) 0 ;
2966 PyObject *result;
2967 PyObject * obj0 = 0 ;
2968 char *kwnames[] = {
2969 (char *) "self", NULL
2970 };
2971
2972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2973 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2974 if (SWIG_arg_fail(1)) SWIG_fail;
2975 {
2976 PyThreadState* __tstate = wxPyBeginAllowThreads();
2977 result = (PyObject *)wxColour_Get(arg1);
2978
2979 wxPyEndAllowThreads(__tstate);
2980 if (PyErr_Occurred()) SWIG_fail;
2981 }
2982 resultobj = result;
2983 return resultobj;
2984 fail:
2985 return NULL;
2986 }
2987
2988
2989 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2990 PyObject *resultobj = NULL;
2991 wxColour *arg1 = (wxColour *) 0 ;
2992 unsigned long result;
2993 PyObject * obj0 = 0 ;
2994 char *kwnames[] = {
2995 (char *) "self", NULL
2996 };
2997
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2999 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
3000 if (SWIG_arg_fail(1)) SWIG_fail;
3001 {
3002 PyThreadState* __tstate = wxPyBeginAllowThreads();
3003 result = (unsigned long)wxColour_GetRGB(arg1);
3004
3005 wxPyEndAllowThreads(__tstate);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 {
3009 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
3010 }
3011 return resultobj;
3012 fail:
3013 return NULL;
3014 }
3015
3016
3017 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
3018 PyObject *obj;
3019 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3020 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
3021 Py_INCREF(obj);
3022 return Py_BuildValue((char *)"");
3023 }
3024 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
3025 PyObject *resultobj = NULL;
3026 int arg1 ;
3027 unsigned char *arg2 = (unsigned char *) 0 ;
3028 unsigned char *arg3 = (unsigned char *) 0 ;
3029 unsigned char *arg4 = (unsigned char *) 0 ;
3030 wxPalette *result;
3031 PyObject * obj0 = 0 ;
3032 PyObject * obj1 = 0 ;
3033 PyObject * obj2 = 0 ;
3034 PyObject * obj3 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3040 {
3041 arg1 = static_cast<int >(SWIG_As_int(obj0));
3042 if (SWIG_arg_fail(1)) SWIG_fail;
3043 }
3044 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3045 if (SWIG_arg_fail(2)) SWIG_fail;
3046 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3047 if (SWIG_arg_fail(3)) SWIG_fail;
3048 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3049 if (SWIG_arg_fail(4)) SWIG_fail;
3050 {
3051 if (!wxPyCheckForApp()) SWIG_fail;
3052 PyThreadState* __tstate = wxPyBeginAllowThreads();
3053 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) SWIG_fail;
3057 }
3058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
3059 return resultobj;
3060 fail:
3061 return NULL;
3062 }
3063
3064
3065 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
3066 PyObject *resultobj = NULL;
3067 wxPalette *arg1 = (wxPalette *) 0 ;
3068 PyObject * obj0 = 0 ;
3069 char *kwnames[] = {
3070 (char *) "self", NULL
3071 };
3072
3073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
3074 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3075 if (SWIG_arg_fail(1)) SWIG_fail;
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 delete arg1;
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) SWIG_fail;
3082 }
3083 Py_INCREF(Py_None); resultobj = Py_None;
3084 return resultobj;
3085 fail:
3086 return NULL;
3087 }
3088
3089
3090 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
3091 PyObject *resultobj = NULL;
3092 wxPalette *arg1 = (wxPalette *) 0 ;
3093 byte arg2 ;
3094 byte arg3 ;
3095 byte arg4 ;
3096 int result;
3097 PyObject * obj0 = 0 ;
3098 PyObject * obj1 = 0 ;
3099 PyObject * obj2 = 0 ;
3100 PyObject * obj3 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3106 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3107 if (SWIG_arg_fail(1)) SWIG_fail;
3108 {
3109 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
3110 if (SWIG_arg_fail(2)) SWIG_fail;
3111 }
3112 {
3113 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
3114 if (SWIG_arg_fail(3)) SWIG_fail;
3115 }
3116 {
3117 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
3118 if (SWIG_arg_fail(4)) SWIG_fail;
3119 }
3120 {
3121 PyThreadState* __tstate = wxPyBeginAllowThreads();
3122 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
3123
3124 wxPyEndAllowThreads(__tstate);
3125 if (PyErr_Occurred()) SWIG_fail;
3126 }
3127 {
3128 resultobj = SWIG_From_int(static_cast<int >(result));
3129 }
3130 return resultobj;
3131 fail:
3132 return NULL;
3133 }
3134
3135
3136 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
3137 PyObject *resultobj = NULL;
3138 wxPalette *arg1 = (wxPalette *) 0 ;
3139 int arg2 ;
3140 byte *arg3 = (byte *) 0 ;
3141 byte *arg4 = (byte *) 0 ;
3142 byte *arg5 = (byte *) 0 ;
3143 bool result;
3144 byte temp3 ;
3145 int res3 = 0 ;
3146 byte temp4 ;
3147 int res4 = 0 ;
3148 byte temp5 ;
3149 int res5 = 0 ;
3150 PyObject * obj0 = 0 ;
3151 PyObject * obj1 = 0 ;
3152 char *kwnames[] = {
3153 (char *) "self",(char *) "pixel", NULL
3154 };
3155
3156 arg3 = &temp3; res3 = SWIG_NEWOBJ;
3157 arg4 = &temp4; res4 = SWIG_NEWOBJ;
3158 arg5 = &temp5; res5 = SWIG_NEWOBJ;
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
3160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3161 if (SWIG_arg_fail(1)) SWIG_fail;
3162 {
3163 arg2 = static_cast<int >(SWIG_As_int(obj1));
3164 if (SWIG_arg_fail(2)) SWIG_fail;
3165 }
3166 {
3167 PyThreadState* __tstate = wxPyBeginAllowThreads();
3168 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
3169
3170 wxPyEndAllowThreads(__tstate);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 {
3174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3175 }
3176 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
3177 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
3178 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
3179 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
3180 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
3181 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
3182 return resultobj;
3183 fail:
3184 return NULL;
3185 }
3186
3187
3188 static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
3189 PyObject *resultobj = NULL;
3190 wxPalette *arg1 = (wxPalette *) 0 ;
3191 int result;
3192 PyObject * obj0 = 0 ;
3193 char *kwnames[] = {
3194 (char *) "self", NULL
3195 };
3196
3197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
3198 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3199 if (SWIG_arg_fail(1)) SWIG_fail;
3200 {
3201 PyThreadState* __tstate = wxPyBeginAllowThreads();
3202 result = (int)((wxPalette const *)arg1)->GetColoursCount();
3203
3204 wxPyEndAllowThreads(__tstate);
3205 if (PyErr_Occurred()) SWIG_fail;
3206 }
3207 {
3208 resultobj = SWIG_From_int(static_cast<int >(result));
3209 }
3210 return resultobj;
3211 fail:
3212 return NULL;
3213 }
3214
3215
3216 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3217 PyObject *resultobj = NULL;
3218 wxPalette *arg1 = (wxPalette *) 0 ;
3219 bool result;
3220 PyObject * obj0 = 0 ;
3221 char *kwnames[] = {
3222 (char *) "self", NULL
3223 };
3224
3225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3227 if (SWIG_arg_fail(1)) SWIG_fail;
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = (bool)(arg1)->Ok();
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 {
3236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3237 }
3238 return resultobj;
3239 fail:
3240 return NULL;
3241 }
3242
3243
3244 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
3245 PyObject *obj;
3246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3247 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
3248 Py_INCREF(obj);
3249 return Py_BuildValue((char *)"");
3250 }
3251 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3252 PyObject *resultobj = NULL;
3253 wxColour *arg1 = 0 ;
3254 int arg2 = (int) 1 ;
3255 int arg3 = (int) wxSOLID ;
3256 wxPen *result;
3257 wxColour temp1 ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 PyObject * obj2 = 0 ;
3261 char *kwnames[] = {
3262 (char *) "colour",(char *) "width",(char *) "style", NULL
3263 };
3264
3265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
3266 {
3267 arg1 = &temp1;
3268 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3269 }
3270 if (obj1) {
3271 {
3272 arg2 = static_cast<int >(SWIG_As_int(obj1));
3273 if (SWIG_arg_fail(2)) SWIG_fail;
3274 }
3275 }
3276 if (obj2) {
3277 {
3278 arg3 = static_cast<int >(SWIG_As_int(obj2));
3279 if (SWIG_arg_fail(3)) SWIG_fail;
3280 }
3281 }
3282 {
3283 if (!wxPyCheckForApp()) SWIG_fail;
3284 PyThreadState* __tstate = wxPyBeginAllowThreads();
3285 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
3286
3287 wxPyEndAllowThreads(__tstate);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
3291 return resultobj;
3292 fail:
3293 return NULL;
3294 }
3295
3296
3297 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3298 PyObject *resultobj = NULL;
3299 wxPen *arg1 = (wxPen *) 0 ;
3300 PyObject * obj0 = 0 ;
3301 char *kwnames[] = {
3302 (char *) "self", NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3306 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3307 if (SWIG_arg_fail(1)) SWIG_fail;
3308 {
3309 PyThreadState* __tstate = wxPyBeginAllowThreads();
3310 delete arg1;
3311
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 Py_INCREF(Py_None); resultobj = Py_None;
3316 return resultobj;
3317 fail:
3318 return NULL;
3319 }
3320
3321
3322 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3323 PyObject *resultobj = NULL;
3324 wxPen *arg1 = (wxPen *) 0 ;
3325 int result;
3326 PyObject * obj0 = 0 ;
3327 char *kwnames[] = {
3328 (char *) "self", NULL
3329 };
3330
3331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3333 if (SWIG_arg_fail(1)) SWIG_fail;
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 result = (int)(arg1)->GetCap();
3337
3338 wxPyEndAllowThreads(__tstate);
3339 if (PyErr_Occurred()) SWIG_fail;
3340 }
3341 {
3342 resultobj = SWIG_From_int(static_cast<int >(result));
3343 }
3344 return resultobj;
3345 fail:
3346 return NULL;
3347 }
3348
3349
3350 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3351 PyObject *resultobj = NULL;
3352 wxPen *arg1 = (wxPen *) 0 ;
3353 wxColour result;
3354 PyObject * obj0 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "self", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3360 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3361 if (SWIG_arg_fail(1)) SWIG_fail;
3362 {
3363 PyThreadState* __tstate = wxPyBeginAllowThreads();
3364 result = (arg1)->GetColour();
3365
3366 wxPyEndAllowThreads(__tstate);
3367 if (PyErr_Occurred()) SWIG_fail;
3368 }
3369 {
3370 wxColour * resultptr;
3371 resultptr = new wxColour(static_cast<wxColour & >(result));
3372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3373 }
3374 return resultobj;
3375 fail:
3376 return NULL;
3377 }
3378
3379
3380 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3381 PyObject *resultobj = NULL;
3382 wxPen *arg1 = (wxPen *) 0 ;
3383 int result;
3384 PyObject * obj0 = 0 ;
3385 char *kwnames[] = {
3386 (char *) "self", NULL
3387 };
3388
3389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3391 if (SWIG_arg_fail(1)) SWIG_fail;
3392 {
3393 PyThreadState* __tstate = wxPyBeginAllowThreads();
3394 result = (int)(arg1)->GetJoin();
3395
3396 wxPyEndAllowThreads(__tstate);
3397 if (PyErr_Occurred()) SWIG_fail;
3398 }
3399 {
3400 resultobj = SWIG_From_int(static_cast<int >(result));
3401 }
3402 return resultobj;
3403 fail:
3404 return NULL;
3405 }
3406
3407
3408 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj = NULL;
3410 wxPen *arg1 = (wxPen *) 0 ;
3411 int result;
3412 PyObject * obj0 = 0 ;
3413 char *kwnames[] = {
3414 (char *) "self", NULL
3415 };
3416
3417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3418 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3419 if (SWIG_arg_fail(1)) SWIG_fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (int)(arg1)->GetStyle();
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 {
3428 resultobj = SWIG_From_int(static_cast<int >(result));
3429 }
3430 return resultobj;
3431 fail:
3432 return NULL;
3433 }
3434
3435
3436 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3437 PyObject *resultobj = NULL;
3438 wxPen *arg1 = (wxPen *) 0 ;
3439 int result;
3440 PyObject * obj0 = 0 ;
3441 char *kwnames[] = {
3442 (char *) "self", NULL
3443 };
3444
3445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3446 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3447 if (SWIG_arg_fail(1)) SWIG_fail;
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 result = (int)(arg1)->GetWidth();
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 {
3456 resultobj = SWIG_From_int(static_cast<int >(result));
3457 }
3458 return resultobj;
3459 fail:
3460 return NULL;
3461 }
3462
3463
3464 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj = NULL;
3466 wxPen *arg1 = (wxPen *) 0 ;
3467 bool result;
3468 PyObject * obj0 = 0 ;
3469 char *kwnames[] = {
3470 (char *) "self", NULL
3471 };
3472
3473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3474 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3475 if (SWIG_arg_fail(1)) SWIG_fail;
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 result = (bool)(arg1)->Ok();
3479
3480 wxPyEndAllowThreads(__tstate);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 {
3484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3485 }
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3493 PyObject *resultobj = NULL;
3494 wxPen *arg1 = (wxPen *) 0 ;
3495 int arg2 ;
3496 PyObject * obj0 = 0 ;
3497 PyObject * obj1 = 0 ;
3498 char *kwnames[] = {
3499 (char *) "self",(char *) "cap_style", NULL
3500 };
3501
3502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3504 if (SWIG_arg_fail(1)) SWIG_fail;
3505 {
3506 arg2 = static_cast<int >(SWIG_As_int(obj1));
3507 if (SWIG_arg_fail(2)) SWIG_fail;
3508 }
3509 {
3510 PyThreadState* __tstate = wxPyBeginAllowThreads();
3511 (arg1)->SetCap(arg2);
3512
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 }
3516 Py_INCREF(Py_None); resultobj = Py_None;
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3524 PyObject *resultobj = NULL;
3525 wxPen *arg1 = (wxPen *) 0 ;
3526 wxColour *arg2 = 0 ;
3527 wxColour temp2 ;
3528 PyObject * obj0 = 0 ;
3529 PyObject * obj1 = 0 ;
3530 char *kwnames[] = {
3531 (char *) "self",(char *) "colour", NULL
3532 };
3533
3534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3535 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3536 if (SWIG_arg_fail(1)) SWIG_fail;
3537 {
3538 arg2 = &temp2;
3539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3540 }
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetColour(*arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj = NULL;
3557 wxPen *arg1 = (wxPen *) 0 ;
3558 int arg2 ;
3559 PyObject * obj0 = 0 ;
3560 PyObject * obj1 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self",(char *) "join_style", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3567 if (SWIG_arg_fail(1)) SWIG_fail;
3568 {
3569 arg2 = static_cast<int >(SWIG_As_int(obj1));
3570 if (SWIG_arg_fail(2)) SWIG_fail;
3571 }
3572 {
3573 PyThreadState* __tstate = wxPyBeginAllowThreads();
3574 (arg1)->SetJoin(arg2);
3575
3576 wxPyEndAllowThreads(__tstate);
3577 if (PyErr_Occurred()) SWIG_fail;
3578 }
3579 Py_INCREF(Py_None); resultobj = Py_None;
3580 return resultobj;
3581 fail:
3582 return NULL;
3583 }
3584
3585
3586 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3587 PyObject *resultobj = NULL;
3588 wxPen *arg1 = (wxPen *) 0 ;
3589 int arg2 ;
3590 PyObject * obj0 = 0 ;
3591 PyObject * obj1 = 0 ;
3592 char *kwnames[] = {
3593 (char *) "self",(char *) "style", NULL
3594 };
3595
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3598 if (SWIG_arg_fail(1)) SWIG_fail;
3599 {
3600 arg2 = static_cast<int >(SWIG_As_int(obj1));
3601 if (SWIG_arg_fail(2)) SWIG_fail;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 (arg1)->SetStyle(arg2);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 Py_INCREF(Py_None); resultobj = Py_None;
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj = NULL;
3619 wxPen *arg1 = (wxPen *) 0 ;
3620 int arg2 ;
3621 PyObject * obj0 = 0 ;
3622 PyObject * obj1 = 0 ;
3623 char *kwnames[] = {
3624 (char *) "self",(char *) "width", NULL
3625 };
3626
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3629 if (SWIG_arg_fail(1)) SWIG_fail;
3630 {
3631 arg2 = static_cast<int >(SWIG_As_int(obj1));
3632 if (SWIG_arg_fail(2)) SWIG_fail;
3633 }
3634 {
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 (arg1)->SetWidth(arg2);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 Py_INCREF(Py_None); resultobj = Py_None;
3642 return resultobj;
3643 fail:
3644 return NULL;
3645 }
3646
3647
3648 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj = NULL;
3650 wxPen *arg1 = (wxPen *) 0 ;
3651 int arg2 ;
3652 wxDash *arg3 = (wxDash *) 0 ;
3653 PyObject * obj0 = 0 ;
3654 PyObject * obj1 = 0 ;
3655 char *kwnames[] = {
3656 (char *) "self",(char *) "dashes", NULL
3657 };
3658
3659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3660 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3661 if (SWIG_arg_fail(1)) SWIG_fail;
3662 {
3663 arg2 = PyList_Size(obj1);
3664 arg3 = (wxDash*)byte_LIST_helper(obj1);
3665 if (arg3 == NULL) SWIG_fail;
3666 }
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 (arg1)->SetDashes(arg2,arg3);
3670
3671 wxPyEndAllowThreads(__tstate);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 }
3674 Py_INCREF(Py_None); resultobj = Py_None;
3675 {
3676 if (arg3) delete [] arg3;
3677 }
3678 return resultobj;
3679 fail:
3680 {
3681 if (arg3) delete [] arg3;
3682 }
3683 return NULL;
3684 }
3685
3686
3687 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3688 PyObject *resultobj = NULL;
3689 wxPen *arg1 = (wxPen *) 0 ;
3690 PyObject *result;
3691 PyObject * obj0 = 0 ;
3692 char *kwnames[] = {
3693 (char *) "self", NULL
3694 };
3695
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3697 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3698 if (SWIG_arg_fail(1)) SWIG_fail;
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (PyObject *)wxPen_GetDashes(arg1);
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = result;
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj = NULL;
3715 wxPen *arg1 = (wxPen *) 0 ;
3716 PyObject *arg2 = (PyObject *) 0 ;
3717 PyObject *arg3 = (PyObject *) 0 ;
3718 PyObject * obj0 = 0 ;
3719 PyObject * obj1 = 0 ;
3720 PyObject * obj2 = 0 ;
3721 char *kwnames[] = {
3722 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
3723 };
3724
3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3726 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3727 if (SWIG_arg_fail(1)) SWIG_fail;
3728 arg2 = obj1;
3729 arg3 = obj2;
3730 {
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 wxPen__SetDashes(arg1,arg2,arg3);
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 Py_INCREF(Py_None); resultobj = Py_None;
3738 return resultobj;
3739 fail:
3740 return NULL;
3741 }
3742
3743
3744 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3745 PyObject *resultobj = NULL;
3746 wxPen *arg1 = (wxPen *) 0 ;
3747 wxPen *arg2 = (wxPen *) 0 ;
3748 bool result;
3749 PyObject * obj0 = 0 ;
3750 PyObject * obj1 = 0 ;
3751 char *kwnames[] = {
3752 (char *) "self",(char *) "other", NULL
3753 };
3754
3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3757 if (SWIG_arg_fail(1)) SWIG_fail;
3758 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3759 if (SWIG_arg_fail(2)) SWIG_fail;
3760 {
3761 PyThreadState* __tstate = wxPyBeginAllowThreads();
3762 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
3763
3764 wxPyEndAllowThreads(__tstate);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 {
3768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3769 }
3770 return resultobj;
3771 fail:
3772 return NULL;
3773 }
3774
3775
3776 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3777 PyObject *resultobj = NULL;
3778 wxPen *arg1 = (wxPen *) 0 ;
3779 wxPen *arg2 = (wxPen *) 0 ;
3780 bool result;
3781 PyObject * obj0 = 0 ;
3782 PyObject * obj1 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self",(char *) "other", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3789 if (SWIG_arg_fail(1)) SWIG_fail;
3790 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3791 if (SWIG_arg_fail(2)) SWIG_fail;
3792 {
3793 PyThreadState* __tstate = wxPyBeginAllowThreads();
3794 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
3795
3796 wxPyEndAllowThreads(__tstate);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
3799 {
3800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3801 }
3802 return resultobj;
3803 fail:
3804 return NULL;
3805 }
3806
3807
3808 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3809 PyObject *obj;
3810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3811 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3812 Py_INCREF(obj);
3813 return Py_BuildValue((char *)"");
3814 }
3815 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj = NULL;
3817 wxColour *arg1 = 0 ;
3818 int arg2 = (int) wxSOLID ;
3819 wxBrush *result;
3820 wxColour temp1 ;
3821 PyObject * obj0 = 0 ;
3822 PyObject * obj1 = 0 ;
3823 char *kwnames[] = {
3824 (char *) "colour",(char *) "style", NULL
3825 };
3826
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3828 {
3829 arg1 = &temp1;
3830 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3831 }
3832 if (obj1) {
3833 {
3834 arg2 = static_cast<int >(SWIG_As_int(obj1));
3835 if (SWIG_arg_fail(2)) SWIG_fail;
3836 }
3837 }
3838 {
3839 if (!wxPyCheckForApp()) SWIG_fail;
3840 PyThreadState* __tstate = wxPyBeginAllowThreads();
3841 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
3842
3843 wxPyEndAllowThreads(__tstate);
3844 if (PyErr_Occurred()) SWIG_fail;
3845 }
3846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3847 return resultobj;
3848 fail:
3849 return NULL;
3850 }
3851
3852
3853 static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3854 PyObject *resultobj = NULL;
3855 wxBitmap *arg1 = 0 ;
3856 wxBrush *result;
3857 PyObject * obj0 = 0 ;
3858 char *kwnames[] = {
3859 (char *) "stippleBitmap", NULL
3860 };
3861
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3863 {
3864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3865 if (SWIG_arg_fail(1)) SWIG_fail;
3866 if (arg1 == NULL) {
3867 SWIG_null_ref("wxBitmap");
3868 }
3869 if (SWIG_arg_fail(1)) SWIG_fail;
3870 }
3871 {
3872 if (!wxPyCheckForApp()) SWIG_fail;
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3875
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3880 return resultobj;
3881 fail:
3882 return NULL;
3883 }
3884
3885
3886 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj = NULL;
3888 wxBrush *arg1 = (wxBrush *) 0 ;
3889 PyObject * obj0 = 0 ;
3890 char *kwnames[] = {
3891 (char *) "self", NULL
3892 };
3893
3894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3895 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3896 if (SWIG_arg_fail(1)) SWIG_fail;
3897 {
3898 PyThreadState* __tstate = wxPyBeginAllowThreads();
3899 delete arg1;
3900
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 Py_INCREF(Py_None); resultobj = Py_None;
3905 return resultobj;
3906 fail:
3907 return NULL;
3908 }
3909
3910
3911 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3912 PyObject *resultobj = NULL;
3913 wxBrush *arg1 = (wxBrush *) 0 ;
3914 wxColour *arg2 = 0 ;
3915 wxColour temp2 ;
3916 PyObject * obj0 = 0 ;
3917 PyObject * obj1 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "self",(char *) "col", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3924 if (SWIG_arg_fail(1)) SWIG_fail;
3925 {
3926 arg2 = &temp2;
3927 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3928 }
3929 {
3930 PyThreadState* __tstate = wxPyBeginAllowThreads();
3931 (arg1)->SetColour((wxColour const &)*arg2);
3932
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 Py_INCREF(Py_None); resultobj = Py_None;
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3944 PyObject *resultobj = NULL;
3945 wxBrush *arg1 = (wxBrush *) 0 ;
3946 int arg2 ;
3947 PyObject * obj0 = 0 ;
3948 PyObject * obj1 = 0 ;
3949 char *kwnames[] = {
3950 (char *) "self",(char *) "style", NULL
3951 };
3952
3953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3955 if (SWIG_arg_fail(1)) SWIG_fail;
3956 {
3957 arg2 = static_cast<int >(SWIG_As_int(obj1));
3958 if (SWIG_arg_fail(2)) SWIG_fail;
3959 }
3960 {
3961 PyThreadState* __tstate = wxPyBeginAllowThreads();
3962 (arg1)->SetStyle(arg2);
3963
3964 wxPyEndAllowThreads(__tstate);
3965 if (PyErr_Occurred()) SWIG_fail;
3966 }
3967 Py_INCREF(Py_None); resultobj = Py_None;
3968 return resultobj;
3969 fail:
3970 return NULL;
3971 }
3972
3973
3974 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3975 PyObject *resultobj = NULL;
3976 wxBrush *arg1 = (wxBrush *) 0 ;
3977 wxBitmap *arg2 = 0 ;
3978 PyObject * obj0 = 0 ;
3979 PyObject * obj1 = 0 ;
3980 char *kwnames[] = {
3981 (char *) "self",(char *) "stipple", NULL
3982 };
3983
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3986 if (SWIG_arg_fail(1)) SWIG_fail;
3987 {
3988 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3989 if (SWIG_arg_fail(2)) SWIG_fail;
3990 if (arg2 == NULL) {
3991 SWIG_null_ref("wxBitmap");
3992 }
3993 if (SWIG_arg_fail(2)) SWIG_fail;
3994 }
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 (arg1)->SetStipple((wxBitmap const &)*arg2);
3998
3999 wxPyEndAllowThreads(__tstate);
4000 if (PyErr_Occurred()) SWIG_fail;
4001 }
4002 Py_INCREF(Py_None); resultobj = Py_None;
4003 return resultobj;
4004 fail:
4005 return NULL;
4006 }
4007
4008
4009 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
4010 PyObject *resultobj = NULL;
4011 wxBrush *arg1 = (wxBrush *) 0 ;
4012 wxColour result;
4013 PyObject * obj0 = 0 ;
4014 char *kwnames[] = {
4015 (char *) "self", NULL
4016 };
4017
4018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
4019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4020 if (SWIG_arg_fail(1)) SWIG_fail;
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = ((wxBrush const *)arg1)->GetColour();
4024
4025 wxPyEndAllowThreads(__tstate);
4026 if (PyErr_Occurred()) SWIG_fail;
4027 }
4028 {
4029 wxColour * resultptr;
4030 resultptr = new wxColour(static_cast<wxColour & >(result));
4031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4032 }
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
4040 PyObject *resultobj = NULL;
4041 wxBrush *arg1 = (wxBrush *) 0 ;
4042 int result;
4043 PyObject * obj0 = 0 ;
4044 char *kwnames[] = {
4045 (char *) "self", NULL
4046 };
4047
4048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
4049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4050 if (SWIG_arg_fail(1)) SWIG_fail;
4051 {
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 result = (int)((wxBrush const *)arg1)->GetStyle();
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 {
4059 resultobj = SWIG_From_int(static_cast<int >(result));
4060 }
4061 return resultobj;
4062 fail:
4063 return NULL;
4064 }
4065
4066
4067 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4068 PyObject *resultobj = NULL;
4069 wxBrush *arg1 = (wxBrush *) 0 ;
4070 wxBitmap *result;
4071 PyObject * obj0 = 0 ;
4072 char *kwnames[] = {
4073 (char *) "self", NULL
4074 };
4075
4076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
4077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4078 if (SWIG_arg_fail(1)) SWIG_fail;
4079 {
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
4082
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
4087 return resultobj;
4088 fail:
4089 return NULL;
4090 }
4091
4092
4093 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj = NULL;
4095 wxBrush *arg1 = (wxBrush *) 0 ;
4096 bool result;
4097 PyObject * obj0 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
4103 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4104 if (SWIG_arg_fail(1)) SWIG_fail;
4105 {
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 result = (bool)((wxBrush const *)arg1)->IsHatch();
4108
4109 wxPyEndAllowThreads(__tstate);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 }
4112 {
4113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4114 }
4115 return resultobj;
4116 fail:
4117 return NULL;
4118 }
4119
4120
4121 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4122 PyObject *resultobj = NULL;
4123 wxBrush *arg1 = (wxBrush *) 0 ;
4124 bool result;
4125 PyObject * obj0 = 0 ;
4126 char *kwnames[] = {
4127 (char *) "self", NULL
4128 };
4129
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
4131 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4132 if (SWIG_arg_fail(1)) SWIG_fail;
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 result = (bool)(arg1)->Ok();
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 {
4141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4142 }
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj = NULL;
4151 wxBrush *arg1 = (wxBrush *) 0 ;
4152 short result;
4153 PyObject * obj0 = 0 ;
4154 char *kwnames[] = {
4155 (char *) "self", NULL
4156 };
4157
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
4159 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4160 if (SWIG_arg_fail(1)) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (short)(arg1)->MacGetTheme();
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 {
4169 resultobj = SWIG_From_short(static_cast<short >(result));
4170 }
4171 return resultobj;
4172 fail:
4173 return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj = NULL;
4179 wxBrush *arg1 = (wxBrush *) 0 ;
4180 short arg2 ;
4181 PyObject * obj0 = 0 ;
4182 PyObject * obj1 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "macThemeBrush", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
4188 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4189 if (SWIG_arg_fail(1)) SWIG_fail;
4190 {
4191 arg2 = static_cast<short >(SWIG_As_short(obj1));
4192 if (SWIG_arg_fail(2)) SWIG_fail;
4193 }
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 (arg1)->MacSetTheme(arg2);
4197
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 }
4201 Py_INCREF(Py_None); resultobj = Py_None;
4202 return resultobj;
4203 fail:
4204 return NULL;
4205 }
4206
4207
4208 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
4209 PyObject *obj;
4210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4211 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
4212 Py_INCREF(obj);
4213 return Py_BuildValue((char *)"");
4214 }
4215 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4216 PyObject *resultobj = NULL;
4217 wxString *arg1 = 0 ;
4218 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
4219 wxBitmap *result;
4220 bool temp1 = false ;
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 char *kwnames[] = {
4224 (char *) "name",(char *) "type", NULL
4225 };
4226
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
4228 {
4229 arg1 = wxString_in_helper(obj0);
4230 if (arg1 == NULL) SWIG_fail;
4231 temp1 = true;
4232 }
4233 if (obj1) {
4234 {
4235 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
4236 if (SWIG_arg_fail(2)) SWIG_fail;
4237 }
4238 }
4239 {
4240 if (!wxPyCheckForApp()) SWIG_fail;
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
4243
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4248 {
4249 if (temp1)
4250 delete arg1;
4251 }
4252 return resultobj;
4253 fail:
4254 {
4255 if (temp1)
4256 delete arg1;
4257 }
4258 return NULL;
4259 }
4260
4261
4262 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj = NULL;
4264 wxBitmap *arg1 = (wxBitmap *) 0 ;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4271 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4272 if (SWIG_arg_fail(1)) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 delete arg1;
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 Py_INCREF(Py_None); resultobj = Py_None;
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj = NULL;
4289 int arg1 ;
4290 int arg2 ;
4291 int arg3 = (int) -1 ;
4292 wxBitmap *result;
4293 PyObject * obj0 = 0 ;
4294 PyObject * obj1 = 0 ;
4295 PyObject * obj2 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "width",(char *) "height",(char *) "depth", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4301 {
4302 arg1 = static_cast<int >(SWIG_As_int(obj0));
4303 if (SWIG_arg_fail(1)) SWIG_fail;
4304 }
4305 {
4306 arg2 = static_cast<int >(SWIG_As_int(obj1));
4307 if (SWIG_arg_fail(2)) SWIG_fail;
4308 }
4309 if (obj2) {
4310 {
4311 arg3 = static_cast<int >(SWIG_As_int(obj2));
4312 if (SWIG_arg_fail(3)) SWIG_fail;
4313 }
4314 }
4315 {
4316 if (!wxPyCheckForApp()) SWIG_fail;
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
4319
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4324 return resultobj;
4325 fail:
4326 return NULL;
4327 }
4328
4329
4330 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4331 PyObject *resultobj = NULL;
4332 wxIcon *arg1 = 0 ;
4333 wxBitmap *result;
4334 PyObject * obj0 = 0 ;
4335 char *kwnames[] = {
4336 (char *) "icon", NULL
4337 };
4338
4339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4340 {
4341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4342 if (SWIG_arg_fail(1)) SWIG_fail;
4343 if (arg1 == NULL) {
4344 SWIG_null_ref("wxIcon");
4345 }
4346 if (SWIG_arg_fail(1)) SWIG_fail;
4347 }
4348 {
4349 if (!wxPyCheckForApp()) SWIG_fail;
4350 PyThreadState* __tstate = wxPyBeginAllowThreads();
4351 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
4352
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 }
4356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4357 return resultobj;
4358 fail:
4359 return NULL;
4360 }
4361
4362
4363 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4364 PyObject *resultobj = NULL;
4365 wxImage *arg1 = 0 ;
4366 int arg2 = (int) -1 ;
4367 wxBitmap *result;
4368 PyObject * obj0 = 0 ;
4369 PyObject * obj1 = 0 ;
4370 char *kwnames[] = {
4371 (char *) "image",(char *) "depth", NULL
4372 };
4373
4374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
4375 {
4376 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4377 if (SWIG_arg_fail(1)) SWIG_fail;
4378 if (arg1 == NULL) {
4379 SWIG_null_ref("wxImage");
4380 }
4381 if (SWIG_arg_fail(1)) SWIG_fail;
4382 }
4383 if (obj1) {
4384 {
4385 arg2 = static_cast<int >(SWIG_As_int(obj1));
4386 if (SWIG_arg_fail(2)) SWIG_fail;
4387 }
4388 }
4389 {
4390 if (!wxPyCheckForApp()) SWIG_fail;
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4398 return resultobj;
4399 fail:
4400 return NULL;
4401 }
4402
4403
4404 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj = NULL;
4406 PyObject *arg1 = (PyObject *) 0 ;
4407 wxBitmap *result;
4408 PyObject * obj0 = 0 ;
4409 char *kwnames[] = {
4410 (char *) "listOfStrings", NULL
4411 };
4412
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4414 arg1 = obj0;
4415 {
4416 if (!wxPyCheckForApp()) SWIG_fail;
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 result = (wxBitmap *)new_wxBitmap(arg1);
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj = NULL;
4432 PyObject *arg1 = (PyObject *) 0 ;
4433 int arg2 ;
4434 int arg3 ;
4435 int arg4 = (int) 1 ;
4436 wxBitmap *result;
4437 PyObject * obj0 = 0 ;
4438 PyObject * obj1 = 0 ;
4439 PyObject * obj2 = 0 ;
4440 PyObject * obj3 = 0 ;
4441 char *kwnames[] = {
4442 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
4443 };
4444
4445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4446 arg1 = obj0;
4447 {
4448 arg2 = static_cast<int >(SWIG_As_int(obj1));
4449 if (SWIG_arg_fail(2)) SWIG_fail;
4450 }
4451 {
4452 arg3 = static_cast<int >(SWIG_As_int(obj2));
4453 if (SWIG_arg_fail(3)) SWIG_fail;
4454 }
4455 if (obj3) {
4456 {
4457 arg4 = static_cast<int >(SWIG_As_int(obj3));
4458 if (SWIG_arg_fail(4)) SWIG_fail;
4459 }
4460 }
4461 {
4462 if (!wxPyCheckForApp()) SWIG_fail;
4463 PyThreadState* __tstate = wxPyBeginAllowThreads();
4464 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
4465
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4477 PyObject *resultobj = NULL;
4478 wxBitmap *arg1 = (wxBitmap *) 0 ;
4479 bool result;
4480 PyObject * obj0 = 0 ;
4481 char *kwnames[] = {
4482 (char *) "self", NULL
4483 };
4484
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4486 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4487 if (SWIG_arg_fail(1)) SWIG_fail;
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 result = (bool)(arg1)->Ok();
4491
4492 wxPyEndAllowThreads(__tstate);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 {
4496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4497 }
4498 return resultobj;
4499 fail:
4500 return NULL;
4501 }
4502
4503
4504 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4505 PyObject *resultobj = NULL;
4506 wxBitmap *arg1 = (wxBitmap *) 0 ;
4507 int result;
4508 PyObject * obj0 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "self", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4514 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4515 if (SWIG_arg_fail(1)) SWIG_fail;
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 result = (int)(arg1)->GetWidth();
4519
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 {
4524 resultobj = SWIG_From_int(static_cast<int >(result));
4525 }
4526 return resultobj;
4527 fail:
4528 return NULL;
4529 }
4530
4531
4532 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4533 PyObject *resultobj = NULL;
4534 wxBitmap *arg1 = (wxBitmap *) 0 ;
4535 int result;
4536 PyObject * obj0 = 0 ;
4537 char *kwnames[] = {
4538 (char *) "self", NULL
4539 };
4540
4541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4543 if (SWIG_arg_fail(1)) SWIG_fail;
4544 {
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 result = (int)(arg1)->GetHeight();
4547
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 {
4552 resultobj = SWIG_From_int(static_cast<int >(result));
4553 }
4554 return resultobj;
4555 fail:
4556 return NULL;
4557 }
4558
4559
4560 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4561 PyObject *resultobj = NULL;
4562 wxBitmap *arg1 = (wxBitmap *) 0 ;
4563 int result;
4564 PyObject * obj0 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "self", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4571 if (SWIG_arg_fail(1)) SWIG_fail;
4572 {
4573 PyThreadState* __tstate = wxPyBeginAllowThreads();
4574 result = (int)(arg1)->GetDepth();
4575
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 {
4580 resultobj = SWIG_From_int(static_cast<int >(result));
4581 }
4582 return resultobj;
4583 fail:
4584 return NULL;
4585 }
4586
4587
4588 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj = NULL;
4590 wxBitmap *arg1 = (wxBitmap *) 0 ;
4591 wxSize result;
4592 PyObject * obj0 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "self", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4598 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4599 if (SWIG_arg_fail(1)) SWIG_fail;
4600 {
4601 PyThreadState* __tstate = wxPyBeginAllowThreads();
4602 result = wxBitmap_GetSize(arg1);
4603
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 {
4608 wxSize * resultptr;
4609 resultptr = new wxSize(static_cast<wxSize & >(result));
4610 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4611 }
4612 return resultobj;
4613 fail:
4614 return NULL;
4615 }
4616
4617
4618 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
4619 PyObject *resultobj = NULL;
4620 wxBitmap *arg1 = (wxBitmap *) 0 ;
4621 SwigValueWrapper<wxImage > result;
4622 PyObject * obj0 = 0 ;
4623 char *kwnames[] = {
4624 (char *) "self", NULL
4625 };
4626
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4629 if (SWIG_arg_fail(1)) SWIG_fail;
4630 {
4631 PyThreadState* __tstate = wxPyBeginAllowThreads();
4632 result = ((wxBitmap const *)arg1)->ConvertToImage();
4633
4634 wxPyEndAllowThreads(__tstate);
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
4637 {
4638 wxImage * resultptr;
4639 resultptr = new wxImage(static_cast<wxImage & >(result));
4640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
4641 }
4642 return resultobj;
4643 fail:
4644 return NULL;
4645 }
4646
4647
4648 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj = NULL;
4650 wxBitmap *arg1 = (wxBitmap *) 0 ;
4651 wxMask *result;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4658 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4659 if (SWIG_arg_fail(1)) SWIG_fail;
4660 {
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
4663
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj = NULL;
4676 wxBitmap *arg1 = (wxBitmap *) 0 ;
4677 wxMask *arg2 = (wxMask *) 0 ;
4678 PyObject * obj0 = 0 ;
4679 PyObject * obj1 = 0 ;
4680 char *kwnames[] = {
4681 (char *) "self",(char *) "mask", NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4686 if (SWIG_arg_fail(1)) SWIG_fail;
4687 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4688 if (SWIG_arg_fail(2)) SWIG_fail;
4689 {
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 (arg1)->SetMask(arg2);
4692
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 Py_INCREF(Py_None); resultobj = Py_None;
4697 return resultobj;
4698 fail:
4699 return NULL;
4700 }
4701
4702
4703 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
4704 PyObject *resultobj = NULL;
4705 wxBitmap *arg1 = (wxBitmap *) 0 ;
4706 wxColour *arg2 = 0 ;
4707 wxColour temp2 ;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char *kwnames[] = {
4711 (char *) "self",(char *) "colour", NULL
4712 };
4713
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4716 if (SWIG_arg_fail(1)) SWIG_fail;
4717 {
4718 arg2 = &temp2;
4719 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4720 }
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
4724
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 Py_INCREF(Py_None); resultobj = Py_None;
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4736 PyObject *resultobj = NULL;
4737 wxBitmap *arg1 = (wxBitmap *) 0 ;
4738 wxRect *arg2 = 0 ;
4739 SwigValueWrapper<wxBitmap > result;
4740 wxRect temp2 ;
4741 PyObject * obj0 = 0 ;
4742 PyObject * obj1 = 0 ;
4743 char *kwnames[] = {
4744 (char *) "self",(char *) "rect", NULL
4745 };
4746
4747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
4748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4749 if (SWIG_arg_fail(1)) SWIG_fail;
4750 {
4751 arg2 = &temp2;
4752 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4753 }
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 wxBitmap * resultptr;
4763 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
4764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4765 }
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj = NULL;
4774 wxBitmap *arg1 = (wxBitmap *) 0 ;
4775 wxString *arg2 = 0 ;
4776 wxBitmapType arg3 ;
4777 wxPalette *arg4 = (wxPalette *) NULL ;
4778 bool result;
4779 bool temp2 = false ;
4780 PyObject * obj0 = 0 ;
4781 PyObject * obj1 = 0 ;
4782 PyObject * obj2 = 0 ;
4783 PyObject * obj3 = 0 ;
4784 char *kwnames[] = {
4785 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
4786 };
4787
4788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4789 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4790 if (SWIG_arg_fail(1)) SWIG_fail;
4791 {
4792 arg2 = wxString_in_helper(obj1);
4793 if (arg2 == NULL) SWIG_fail;
4794 temp2 = true;
4795 }
4796 {
4797 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4798 if (SWIG_arg_fail(3)) SWIG_fail;
4799 }
4800 if (obj3) {
4801 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4802 if (SWIG_arg_fail(4)) SWIG_fail;
4803 }
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 {
4812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4813 }
4814 {
4815 if (temp2)
4816 delete arg2;
4817 }
4818 return resultobj;
4819 fail:
4820 {
4821 if (temp2)
4822 delete arg2;
4823 }
4824 return NULL;
4825 }
4826
4827
4828 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj = NULL;
4830 wxBitmap *arg1 = (wxBitmap *) 0 ;
4831 wxString *arg2 = 0 ;
4832 wxBitmapType arg3 ;
4833 bool result;
4834 bool temp2 = false ;
4835 PyObject * obj0 = 0 ;
4836 PyObject * obj1 = 0 ;
4837 PyObject * obj2 = 0 ;
4838 char *kwnames[] = {
4839 (char *) "self",(char *) "name",(char *) "type", NULL
4840 };
4841
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4843 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4844 if (SWIG_arg_fail(1)) SWIG_fail;
4845 {
4846 arg2 = wxString_in_helper(obj1);
4847 if (arg2 == NULL) SWIG_fail;
4848 temp2 = true;
4849 }
4850 {
4851 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4852 if (SWIG_arg_fail(3)) SWIG_fail;
4853 }
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 {
4862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4863 }
4864 {
4865 if (temp2)
4866 delete arg2;
4867 }
4868 return resultobj;
4869 fail:
4870 {
4871 if (temp2)
4872 delete arg2;
4873 }
4874 return NULL;
4875 }
4876
4877
4878 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj = NULL;
4880 wxBitmap *arg1 = (wxBitmap *) 0 ;
4881 wxPalette *result;
4882 PyObject * obj0 = 0 ;
4883 char *kwnames[] = {
4884 (char *) "self", NULL
4885 };
4886
4887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4889 if (SWIG_arg_fail(1)) SWIG_fail;
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
4893
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj = NULL;
4906 wxBitmap *arg1 = (wxBitmap *) 0 ;
4907 wxIcon *arg2 = 0 ;
4908 bool result;
4909 PyObject * obj0 = 0 ;
4910 PyObject * obj1 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "icon", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4917 if (SWIG_arg_fail(1)) SWIG_fail;
4918 {
4919 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4920 if (SWIG_arg_fail(2)) SWIG_fail;
4921 if (arg2 == NULL) {
4922 SWIG_null_ref("wxIcon");
4923 }
4924 if (SWIG_arg_fail(2)) SWIG_fail;
4925 }
4926 {
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
4929
4930 wxPyEndAllowThreads(__tstate);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 {
4934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4935 }
4936 return resultobj;
4937 fail:
4938 return NULL;
4939 }
4940
4941
4942 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4943 PyObject *resultobj = NULL;
4944 wxBitmap *arg1 = (wxBitmap *) 0 ;
4945 int arg2 ;
4946 PyObject * obj0 = 0 ;
4947 PyObject * obj1 = 0 ;
4948 char *kwnames[] = {
4949 (char *) "self",(char *) "height", NULL
4950 };
4951
4952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4953 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4954 if (SWIG_arg_fail(1)) SWIG_fail;
4955 {
4956 arg2 = static_cast<int >(SWIG_As_int(obj1));
4957 if (SWIG_arg_fail(2)) SWIG_fail;
4958 }
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 (arg1)->SetHeight(arg2);
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 Py_INCREF(Py_None); resultobj = Py_None;
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj = NULL;
4975 wxBitmap *arg1 = (wxBitmap *) 0 ;
4976 int arg2 ;
4977 PyObject * obj0 = 0 ;
4978 PyObject * obj1 = 0 ;
4979 char *kwnames[] = {
4980 (char *) "self",(char *) "width", NULL
4981 };
4982
4983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4985 if (SWIG_arg_fail(1)) SWIG_fail;
4986 {
4987 arg2 = static_cast<int >(SWIG_As_int(obj1));
4988 if (SWIG_arg_fail(2)) SWIG_fail;
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 (arg1)->SetWidth(arg2);
4993
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) SWIG_fail;
4996 }
4997 Py_INCREF(Py_None); resultobj = Py_None;
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj = NULL;
5006 wxBitmap *arg1 = (wxBitmap *) 0 ;
5007 int arg2 ;
5008 PyObject * obj0 = 0 ;
5009 PyObject * obj1 = 0 ;
5010 char *kwnames[] = {
5011 (char *) "self",(char *) "depth", NULL
5012 };
5013
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5015 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5016 if (SWIG_arg_fail(1)) SWIG_fail;
5017 {
5018 arg2 = static_cast<int >(SWIG_As_int(obj1));
5019 if (SWIG_arg_fail(2)) SWIG_fail;
5020 }
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->SetDepth(arg2);
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 Py_INCREF(Py_None); resultobj = Py_None;
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5036 PyObject *resultobj = NULL;
5037 wxBitmap *arg1 = (wxBitmap *) 0 ;
5038 wxSize *arg2 = 0 ;
5039 wxSize temp2 ;
5040 PyObject * obj0 = 0 ;
5041 PyObject * obj1 = 0 ;
5042 char *kwnames[] = {
5043 (char *) "self",(char *) "size", NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
5047 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5048 if (SWIG_arg_fail(1)) SWIG_fail;
5049 {
5050 arg2 = &temp2;
5051 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5052 }
5053 {
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
5056
5057 wxPyEndAllowThreads(__tstate);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 }
5060 Py_INCREF(Py_None); resultobj = Py_None;
5061 return resultobj;
5062 fail:
5063 return NULL;
5064 }
5065
5066
5067 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5068 PyObject *resultobj = NULL;
5069 wxBitmap *arg1 = (wxBitmap *) 0 ;
5070 wxBitmap *arg2 = (wxBitmap *) 0 ;
5071 bool result;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 char *kwnames[] = {
5075 (char *) "self",(char *) "other", NULL
5076 };
5077
5078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
5079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5080 if (SWIG_arg_fail(1)) SWIG_fail;
5081 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5082 if (SWIG_arg_fail(2)) SWIG_fail;
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 {
5091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5092 }
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj = NULL;
5101 wxBitmap *arg1 = (wxBitmap *) 0 ;
5102 wxBitmap *arg2 = (wxBitmap *) 0 ;
5103 bool result;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 char *kwnames[] = {
5107 (char *) "self",(char *) "other", NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
5111 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5112 if (SWIG_arg_fail(1)) SWIG_fail;
5113 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5114 if (SWIG_arg_fail(2)) SWIG_fail;
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
5118
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 {
5123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5124 }
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
5132 PyObject *obj;
5133 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5134 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
5135 Py_INCREF(obj);
5136 return Py_BuildValue((char *)"");
5137 }
5138 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj = NULL;
5140 wxBitmap *arg1 = 0 ;
5141 wxColour const &arg2_defvalue = wxNullColour ;
5142 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5143 wxMask *result;
5144 wxColour temp2 ;
5145 PyObject * obj0 = 0 ;
5146 PyObject * obj1 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "bitmap",(char *) "colour", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
5152 {
5153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5154 if (SWIG_arg_fail(1)) SWIG_fail;
5155 if (arg1 == NULL) {
5156 SWIG_null_ref("wxBitmap");
5157 }
5158 if (SWIG_arg_fail(1)) SWIG_fail;
5159 }
5160 if (obj1) {
5161 {
5162 arg2 = &temp2;
5163 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5164 }
5165 }
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
5182 PyObject *obj;
5183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5184 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
5185 Py_INCREF(obj);
5186 return Py_BuildValue((char *)"");
5187 }
5188 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5189 PyObject *resultobj = NULL;
5190 wxString *arg1 = 0 ;
5191 wxBitmapType arg2 ;
5192 int arg3 = (int) -1 ;
5193 int arg4 = (int) -1 ;
5194 wxIcon *result;
5195 bool temp1 = false ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 PyObject * obj2 = 0 ;
5199 PyObject * obj3 = 0 ;
5200 char *kwnames[] = {
5201 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
5202 };
5203
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5205 {
5206 arg1 = wxString_in_helper(obj0);
5207 if (arg1 == NULL) SWIG_fail;
5208 temp1 = true;
5209 }
5210 {
5211 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
5212 if (SWIG_arg_fail(2)) SWIG_fail;
5213 }
5214 if (obj2) {
5215 {
5216 arg3 = static_cast<int >(SWIG_As_int(obj2));
5217 if (SWIG_arg_fail(3)) SWIG_fail;
5218 }
5219 }
5220 if (obj3) {
5221 {
5222 arg4 = static_cast<int >(SWIG_As_int(obj3));
5223 if (SWIG_arg_fail(4)) SWIG_fail;
5224 }
5225 }
5226 {
5227 if (!wxPyCheckForApp()) SWIG_fail;
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
5230
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5235 {
5236 if (temp1)
5237 delete arg1;
5238 }
5239 return resultobj;
5240 fail:
5241 {
5242 if (temp1)
5243 delete arg1;
5244 }
5245 return NULL;
5246 }
5247
5248
5249 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5250 PyObject *resultobj = NULL;
5251 wxIcon *arg1 = (wxIcon *) 0 ;
5252 PyObject * obj0 = 0 ;
5253 char *kwnames[] = {
5254 (char *) "self", NULL
5255 };
5256
5257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5259 if (SWIG_arg_fail(1)) SWIG_fail;
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 delete arg1;
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 Py_INCREF(Py_None); resultobj = Py_None;
5268 return resultobj;
5269 fail:
5270 return NULL;
5271 }
5272
5273
5274 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5275 PyObject *resultobj = NULL;
5276 wxIcon *result;
5277 char *kwnames[] = {
5278 NULL
5279 };
5280
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
5282 {
5283 if (!wxPyCheckForApp()) SWIG_fail;
5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
5285 result = (wxIcon *)new wxIcon();
5286
5287 wxPyEndAllowThreads(__tstate);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
5290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj = NULL;
5299 wxIconLocation *arg1 = 0 ;
5300 wxIcon *result;
5301 PyObject * obj0 = 0 ;
5302 char *kwnames[] = {
5303 (char *) "loc", NULL
5304 };
5305
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5307 {
5308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5309 if (SWIG_arg_fail(1)) SWIG_fail;
5310 if (arg1 == NULL) {
5311 SWIG_null_ref("wxIconLocation");
5312 }
5313 if (SWIG_arg_fail(1)) SWIG_fail;
5314 }
5315 {
5316 if (!wxPyCheckForApp()) SWIG_fail;
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5324 return resultobj;
5325 fail:
5326 return NULL;
5327 }
5328
5329
5330 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5331 PyObject *resultobj = NULL;
5332 wxBitmap *arg1 = 0 ;
5333 wxIcon *result;
5334 PyObject * obj0 = 0 ;
5335 char *kwnames[] = {
5336 (char *) "bmp", NULL
5337 };
5338
5339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
5340 {
5341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5342 if (SWIG_arg_fail(1)) SWIG_fail;
5343 if (arg1 == NULL) {
5344 SWIG_null_ref("wxBitmap");
5345 }
5346 if (SWIG_arg_fail(1)) SWIG_fail;
5347 }
5348 {
5349 if (!wxPyCheckForApp()) SWIG_fail;
5350 PyThreadState* __tstate = wxPyBeginAllowThreads();
5351 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
5352
5353 wxPyEndAllowThreads(__tstate);
5354 if (PyErr_Occurred()) SWIG_fail;
5355 }
5356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5357 return resultobj;
5358 fail:
5359 return NULL;
5360 }
5361
5362
5363 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj = NULL;
5365 PyObject *arg1 = (PyObject *) 0 ;
5366 wxIcon *result;
5367 PyObject * obj0 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "listOfStrings", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5373 arg1 = obj0;
5374 {
5375 if (!wxPyCheckForApp()) SWIG_fail;
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 result = (wxIcon *)new_wxIcon(arg1);
5378
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5383 return resultobj;
5384 fail:
5385 return NULL;
5386 }
5387
5388
5389 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
5390 PyObject *resultobj = NULL;
5391 wxIcon *arg1 = (wxIcon *) 0 ;
5392 bool result;
5393 PyObject * obj0 = 0 ;
5394 char *kwnames[] = {
5395 (char *) "self", NULL
5396 };
5397
5398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5399 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5400 if (SWIG_arg_fail(1)) SWIG_fail;
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (bool)(arg1)->Ok();
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 {
5409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5410 }
5411 return resultobj;
5412 fail:
5413 return NULL;
5414 }
5415
5416
5417 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj = NULL;
5419 wxIcon *arg1 = (wxIcon *) 0 ;
5420 int result;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5428 if (SWIG_arg_fail(1)) SWIG_fail;
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 result = (int)(arg1)->GetWidth();
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 {
5437 resultobj = SWIG_From_int(static_cast<int >(result));
5438 }
5439 return resultobj;
5440 fail:
5441 return NULL;
5442 }
5443
5444
5445 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = NULL;
5447 wxIcon *arg1 = (wxIcon *) 0 ;
5448 int result;
5449 PyObject * obj0 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "self", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5456 if (SWIG_arg_fail(1)) SWIG_fail;
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (int)(arg1)->GetHeight();
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 {
5465 resultobj = SWIG_From_int(static_cast<int >(result));
5466 }
5467 return resultobj;
5468 fail:
5469 return NULL;
5470 }
5471
5472
5473 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj = NULL;
5475 wxIcon *arg1 = (wxIcon *) 0 ;
5476 int result;
5477 PyObject * obj0 = 0 ;
5478 char *kwnames[] = {
5479 (char *) "self", NULL
5480 };
5481
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5483 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5484 if (SWIG_arg_fail(1)) SWIG_fail;
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = (int)(arg1)->GetDepth();
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493 resultobj = SWIG_From_int(static_cast<int >(result));
5494 }
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5502 PyObject *resultobj = NULL;
5503 wxIcon *arg1 = (wxIcon *) 0 ;
5504 int arg2 ;
5505 PyObject * obj0 = 0 ;
5506 PyObject * obj1 = 0 ;
5507 char *kwnames[] = {
5508 (char *) "self",(char *) "w", NULL
5509 };
5510
5511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5513 if (SWIG_arg_fail(1)) SWIG_fail;
5514 {
5515 arg2 = static_cast<int >(SWIG_As_int(obj1));
5516 if (SWIG_arg_fail(2)) SWIG_fail;
5517 }
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 (arg1)->SetWidth(arg2);
5521
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 Py_INCREF(Py_None); resultobj = Py_None;
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj = NULL;
5534 wxIcon *arg1 = (wxIcon *) 0 ;
5535 int arg2 ;
5536 PyObject * obj0 = 0 ;
5537 PyObject * obj1 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self",(char *) "h", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5544 if (SWIG_arg_fail(1)) SWIG_fail;
5545 {
5546 arg2 = static_cast<int >(SWIG_As_int(obj1));
5547 if (SWIG_arg_fail(2)) SWIG_fail;
5548 }
5549 {
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 (arg1)->SetHeight(arg2);
5552
5553 wxPyEndAllowThreads(__tstate);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 }
5556 Py_INCREF(Py_None); resultobj = Py_None;
5557 return resultobj;
5558 fail:
5559 return NULL;
5560 }
5561
5562
5563 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj = NULL;
5565 wxIcon *arg1 = (wxIcon *) 0 ;
5566 int arg2 ;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5569 char *kwnames[] = {
5570 (char *) "self",(char *) "d", NULL
5571 };
5572
5573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5575 if (SWIG_arg_fail(1)) SWIG_fail;
5576 {
5577 arg2 = static_cast<int >(SWIG_As_int(obj1));
5578 if (SWIG_arg_fail(2)) SWIG_fail;
5579 }
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 (arg1)->SetDepth(arg2);
5583
5584 wxPyEndAllowThreads(__tstate);
5585 if (PyErr_Occurred()) SWIG_fail;
5586 }
5587 Py_INCREF(Py_None); resultobj = Py_None;
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5595 PyObject *resultobj = NULL;
5596 wxIcon *arg1 = (wxIcon *) 0 ;
5597 wxBitmap *arg2 = 0 ;
5598 PyObject * obj0 = 0 ;
5599 PyObject * obj1 = 0 ;
5600 char *kwnames[] = {
5601 (char *) "self",(char *) "bmp", NULL
5602 };
5603
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5605 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5606 if (SWIG_arg_fail(1)) SWIG_fail;
5607 {
5608 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5609 if (SWIG_arg_fail(2)) SWIG_fail;
5610 if (arg2 == NULL) {
5611 SWIG_null_ref("wxBitmap");
5612 }
5613 if (SWIG_arg_fail(2)) SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 Py_INCREF(Py_None); resultobj = Py_None;
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
5630 PyObject *obj;
5631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5632 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
5633 Py_INCREF(obj);
5634 return Py_BuildValue((char *)"");
5635 }
5636 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj = NULL;
5638 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5639 int arg2 = (int) 0 ;
5640 wxIconLocation *result;
5641 bool temp1 = false ;
5642 PyObject * obj0 = 0 ;
5643 PyObject * obj1 = 0 ;
5644 char *kwnames[] = {
5645 (char *) "filename",(char *) "num", NULL
5646 };
5647
5648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5649 if (obj0) {
5650 {
5651 arg1 = wxString_in_helper(obj0);
5652 if (arg1 == NULL) SWIG_fail;
5653 temp1 = true;
5654 }
5655 }
5656 if (obj1) {
5657 {
5658 arg2 = static_cast<int >(SWIG_As_int(obj1));
5659 if (SWIG_arg_fail(2)) SWIG_fail;
5660 }
5661 }
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
5665
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
5670 {
5671 if (temp1)
5672 delete arg1;
5673 }
5674 return resultobj;
5675 fail:
5676 {
5677 if (temp1)
5678 delete arg1;
5679 }
5680 return NULL;
5681 }
5682
5683
5684 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj = NULL;
5686 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5687 PyObject * obj0 = 0 ;
5688 char *kwnames[] = {
5689 (char *) "self", NULL
5690 };
5691
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5693 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5694 if (SWIG_arg_fail(1)) SWIG_fail;
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 delete arg1;
5698
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 Py_INCREF(Py_None); resultobj = Py_None;
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj = NULL;
5711 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5712 bool result;
5713 PyObject * obj0 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5720 if (SWIG_arg_fail(1)) SWIG_fail;
5721 {
5722 PyThreadState* __tstate = wxPyBeginAllowThreads();
5723 result = (bool)((wxIconLocation const *)arg1)->IsOk();
5724
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 {
5729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5730 }
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5738 PyObject *resultobj = NULL;
5739 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5740 wxString *arg2 = 0 ;
5741 bool temp2 = false ;
5742 PyObject * obj0 = 0 ;
5743 PyObject * obj1 = 0 ;
5744 char *kwnames[] = {
5745 (char *) "self",(char *) "filename", NULL
5746 };
5747
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
5749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5750 if (SWIG_arg_fail(1)) SWIG_fail;
5751 {
5752 arg2 = wxString_in_helper(obj1);
5753 if (arg2 == NULL) SWIG_fail;
5754 temp2 = true;
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 (arg1)->SetFileName((wxString const &)*arg2);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 Py_INCREF(Py_None); resultobj = Py_None;
5764 {
5765 if (temp2)
5766 delete arg2;
5767 }
5768 return resultobj;
5769 fail:
5770 {
5771 if (temp2)
5772 delete arg2;
5773 }
5774 return NULL;
5775 }
5776
5777
5778 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5779 PyObject *resultobj = NULL;
5780 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5781 wxString *result;
5782 PyObject * obj0 = 0 ;
5783 char *kwnames[] = {
5784 (char *) "self", NULL
5785 };
5786
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
5788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5789 if (SWIG_arg_fail(1)) SWIG_fail;
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 {
5793 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
5794 result = (wxString *) &_result_ref;
5795 }
5796
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) SWIG_fail;
5799 }
5800 {
5801 #if wxUSE_UNICODE
5802 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5803 #else
5804 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5805 #endif
5806 }
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj = NULL;
5815 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5816 int arg2 ;
5817 PyObject * obj0 = 0 ;
5818 PyObject * obj1 = 0 ;
5819 char *kwnames[] = {
5820 (char *) "self",(char *) "num", NULL
5821 };
5822
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
5824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5825 if (SWIG_arg_fail(1)) SWIG_fail;
5826 {
5827 arg2 = static_cast<int >(SWIG_As_int(obj1));
5828 if (SWIG_arg_fail(2)) SWIG_fail;
5829 }
5830 {
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 wxIconLocation_SetIndex(arg1,arg2);
5833
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 Py_INCREF(Py_None); resultobj = Py_None;
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj = NULL;
5846 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5847 int result;
5848 PyObject * obj0 = 0 ;
5849 char *kwnames[] = {
5850 (char *) "self", NULL
5851 };
5852
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
5854 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5855 if (SWIG_arg_fail(1)) SWIG_fail;
5856 {
5857 PyThreadState* __tstate = wxPyBeginAllowThreads();
5858 result = (int)wxIconLocation_GetIndex(arg1);
5859
5860 wxPyEndAllowThreads(__tstate);
5861 if (PyErr_Occurred()) SWIG_fail;
5862 }
5863 {
5864 resultobj = SWIG_From_int(static_cast<int >(result));
5865 }
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
5873 PyObject *obj;
5874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5875 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
5876 Py_INCREF(obj);
5877 return Py_BuildValue((char *)"");
5878 }
5879 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj = NULL;
5881 wxIconBundle *result;
5882 char *kwnames[] = {
5883 NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
5887 {
5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
5889 result = (wxIconBundle *)new wxIconBundle();
5890
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) SWIG_fail;
5893 }
5894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj = NULL;
5903 wxString *arg1 = 0 ;
5904 long arg2 ;
5905 wxIconBundle *result;
5906 bool temp1 = false ;
5907 PyObject * obj0 = 0 ;
5908 PyObject * obj1 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "file",(char *) "type", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
5914 {
5915 arg1 = wxString_in_helper(obj0);
5916 if (arg1 == NULL) SWIG_fail;
5917 temp1 = true;
5918 }
5919 {
5920 arg2 = static_cast<long >(SWIG_As_long(obj1));
5921 if (SWIG_arg_fail(2)) SWIG_fail;
5922 }
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
5926
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5931 {
5932 if (temp1)
5933 delete arg1;
5934 }
5935 return resultobj;
5936 fail:
5937 {
5938 if (temp1)
5939 delete arg1;
5940 }
5941 return NULL;
5942 }
5943
5944
5945 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5946 PyObject *resultobj = NULL;
5947 wxIcon *arg1 = 0 ;
5948 wxIconBundle *result;
5949 PyObject * obj0 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "icon", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
5955 {
5956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5957 if (SWIG_arg_fail(1)) SWIG_fail;
5958 if (arg1 == NULL) {
5959 SWIG_null_ref("wxIcon");
5960 }
5961 if (SWIG_arg_fail(1)) SWIG_fail;
5962 }
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
5966
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj = NULL;
5979 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
5980 PyObject * obj0 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
5986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
5987 if (SWIG_arg_fail(1)) SWIG_fail;
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 delete arg1;
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 return resultobj;
5997 fail:
5998 return NULL;
5999 }
6000
6001
6002 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6003 PyObject *resultobj = NULL;
6004 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6005 wxIcon *arg2 = 0 ;
6006 PyObject * obj0 = 0 ;
6007 PyObject * obj1 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self",(char *) "icon", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
6013 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6014 if (SWIG_arg_fail(1)) SWIG_fail;
6015 {
6016 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6017 if (SWIG_arg_fail(2)) SWIG_fail;
6018 if (arg2 == NULL) {
6019 SWIG_null_ref("wxIcon");
6020 }
6021 if (SWIG_arg_fail(2)) SWIG_fail;
6022 }
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 (arg1)->AddIcon((wxIcon const &)*arg2);
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 Py_INCREF(Py_None); resultobj = Py_None;
6031 return resultobj;
6032 fail:
6033 return NULL;
6034 }
6035
6036
6037 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6038 PyObject *resultobj = NULL;
6039 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6040 wxString *arg2 = 0 ;
6041 long arg3 ;
6042 bool temp2 = false ;
6043 PyObject * obj0 = 0 ;
6044 PyObject * obj1 = 0 ;
6045 PyObject * obj2 = 0 ;
6046 char *kwnames[] = {
6047 (char *) "self",(char *) "file",(char *) "type", NULL
6048 };
6049
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6051 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6052 if (SWIG_arg_fail(1)) SWIG_fail;
6053 {
6054 arg2 = wxString_in_helper(obj1);
6055 if (arg2 == NULL) SWIG_fail;
6056 temp2 = true;
6057 }
6058 {
6059 arg3 = static_cast<long >(SWIG_As_long(obj2));
6060 if (SWIG_arg_fail(3)) SWIG_fail;
6061 }
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 (arg1)->AddIcon((wxString const &)*arg2,arg3);
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 Py_INCREF(Py_None); resultobj = Py_None;
6070 {
6071 if (temp2)
6072 delete arg2;
6073 }
6074 return resultobj;
6075 fail:
6076 {
6077 if (temp2)
6078 delete arg2;
6079 }
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj = NULL;
6086 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6087 wxSize *arg2 = 0 ;
6088 wxIcon *result;
6089 wxSize temp2 ;
6090 PyObject * obj0 = 0 ;
6091 PyObject * obj1 = 0 ;
6092 char *kwnames[] = {
6093 (char *) "self",(char *) "size", NULL
6094 };
6095
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
6097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6098 if (SWIG_arg_fail(1)) SWIG_fail;
6099 {
6100 arg2 = &temp2;
6101 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6102 }
6103 {
6104 PyThreadState* __tstate = wxPyBeginAllowThreads();
6105 {
6106 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
6107 result = (wxIcon *) &_result_ref;
6108 }
6109
6110 wxPyEndAllowThreads(__tstate);
6111 if (PyErr_Occurred()) SWIG_fail;
6112 }
6113 {
6114 wxIcon* resultptr = new wxIcon(*result);
6115 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
6116 }
6117 return resultobj;
6118 fail:
6119 return NULL;
6120 }
6121
6122
6123 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
6124 PyObject *obj;
6125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6126 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
6127 Py_INCREF(obj);
6128 return Py_BuildValue((char *)"");
6129 }
6130 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj = NULL;
6132 wxString *arg1 = 0 ;
6133 long arg2 ;
6134 int arg3 = (int) 0 ;
6135 int arg4 = (int) 0 ;
6136 wxCursor *result;
6137 bool temp1 = false ;
6138 PyObject * obj0 = 0 ;
6139 PyObject * obj1 = 0 ;
6140 PyObject * obj2 = 0 ;
6141 PyObject * obj3 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6147 {
6148 arg1 = wxString_in_helper(obj0);
6149 if (arg1 == NULL) SWIG_fail;
6150 temp1 = true;
6151 }
6152 {
6153 arg2 = static_cast<long >(SWIG_As_long(obj1));
6154 if (SWIG_arg_fail(2)) SWIG_fail;
6155 }
6156 if (obj2) {
6157 {
6158 arg3 = static_cast<int >(SWIG_As_int(obj2));
6159 if (SWIG_arg_fail(3)) SWIG_fail;
6160 }
6161 }
6162 if (obj3) {
6163 {
6164 arg4 = static_cast<int >(SWIG_As_int(obj3));
6165 if (SWIG_arg_fail(4)) SWIG_fail;
6166 }
6167 }
6168 {
6169 if (!wxPyCheckForApp()) SWIG_fail;
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
6172
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6177 {
6178 if (temp1)
6179 delete arg1;
6180 }
6181 return resultobj;
6182 fail:
6183 {
6184 if (temp1)
6185 delete arg1;
6186 }
6187 return NULL;
6188 }
6189
6190
6191 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj = NULL;
6193 wxCursor *arg1 = (wxCursor *) 0 ;
6194 PyObject * obj0 = 0 ;
6195 char *kwnames[] = {
6196 (char *) "self", NULL
6197 };
6198
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6200 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6201 if (SWIG_arg_fail(1)) SWIG_fail;
6202 {
6203 PyThreadState* __tstate = wxPyBeginAllowThreads();
6204 delete arg1;
6205
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 Py_INCREF(Py_None); resultobj = Py_None;
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj = NULL;
6218 int arg1 ;
6219 wxCursor *result;
6220 PyObject * obj0 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "id", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
6226 {
6227 arg1 = static_cast<int >(SWIG_As_int(obj0));
6228 if (SWIG_arg_fail(1)) SWIG_fail;
6229 }
6230 {
6231 if (!wxPyCheckForApp()) SWIG_fail;
6232 PyThreadState* __tstate = wxPyBeginAllowThreads();
6233 result = (wxCursor *)new wxCursor(arg1);
6234
6235 wxPyEndAllowThreads(__tstate);
6236 if (PyErr_Occurred()) SWIG_fail;
6237 }
6238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6239 return resultobj;
6240 fail:
6241 return NULL;
6242 }
6243
6244
6245 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
6246 PyObject *resultobj = NULL;
6247 wxImage *arg1 = 0 ;
6248 wxCursor *result;
6249 PyObject * obj0 = 0 ;
6250 char *kwnames[] = {
6251 (char *) "image", NULL
6252 };
6253
6254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
6255 {
6256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6257 if (SWIG_arg_fail(1)) SWIG_fail;
6258 if (arg1 == NULL) {
6259 SWIG_null_ref("wxImage");
6260 }
6261 if (SWIG_arg_fail(1)) SWIG_fail;
6262 }
6263 {
6264 if (!wxPyCheckForApp()) SWIG_fail;
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
6267
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6272 return resultobj;
6273 fail:
6274 return NULL;
6275 }
6276
6277
6278 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj = NULL;
6280 wxCursor *arg1 = (wxCursor *) 0 ;
6281 bool result;
6282 PyObject * obj0 = 0 ;
6283 char *kwnames[] = {
6284 (char *) "self", NULL
6285 };
6286
6287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6289 if (SWIG_arg_fail(1)) SWIG_fail;
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (bool)(arg1)->Ok();
6293
6294 wxPyEndAllowThreads(__tstate);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 {
6298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6299 }
6300 return resultobj;
6301 fail:
6302 return NULL;
6303 }
6304
6305
6306 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6307 PyObject *obj;
6308 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6309 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6310 Py_INCREF(obj);
6311 return Py_BuildValue((char *)"");
6312 }
6313 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj = NULL;
6315 int arg1 = (int) 0 ;
6316 int arg2 = (int) 0 ;
6317 int arg3 = (int) 0 ;
6318 int arg4 = (int) 0 ;
6319 wxRegion *result;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 PyObject * obj2 = 0 ;
6323 PyObject * obj3 = 0 ;
6324 char *kwnames[] = {
6325 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6326 };
6327
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6329 if (obj0) {
6330 {
6331 arg1 = static_cast<int >(SWIG_As_int(obj0));
6332 if (SWIG_arg_fail(1)) SWIG_fail;
6333 }
6334 }
6335 if (obj1) {
6336 {
6337 arg2 = static_cast<int >(SWIG_As_int(obj1));
6338 if (SWIG_arg_fail(2)) SWIG_fail;
6339 }
6340 }
6341 if (obj2) {
6342 {
6343 arg3 = static_cast<int >(SWIG_As_int(obj2));
6344 if (SWIG_arg_fail(3)) SWIG_fail;
6345 }
6346 }
6347 if (obj3) {
6348 {
6349 arg4 = static_cast<int >(SWIG_As_int(obj3));
6350 if (SWIG_arg_fail(4)) SWIG_fail;
6351 }
6352 }
6353 {
6354 if (!wxPyCheckForApp()) SWIG_fail;
6355 PyThreadState* __tstate = wxPyBeginAllowThreads();
6356 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
6357
6358 wxPyEndAllowThreads(__tstate);
6359 if (PyErr_Occurred()) SWIG_fail;
6360 }
6361 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6362 return resultobj;
6363 fail:
6364 return NULL;
6365 }
6366
6367
6368 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj = NULL;
6370 wxBitmap *arg1 = 0 ;
6371 wxRegion *result;
6372 PyObject * obj0 = 0 ;
6373 char *kwnames[] = {
6374 (char *) "bmp", NULL
6375 };
6376
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6378 {
6379 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6380 if (SWIG_arg_fail(1)) SWIG_fail;
6381 if (arg1 == NULL) {
6382 SWIG_null_ref("wxBitmap");
6383 }
6384 if (SWIG_arg_fail(1)) SWIG_fail;
6385 }
6386 {
6387 if (!wxPyCheckForApp()) SWIG_fail;
6388 PyThreadState* __tstate = wxPyBeginAllowThreads();
6389 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
6390
6391 wxPyEndAllowThreads(__tstate);
6392 if (PyErr_Occurred()) SWIG_fail;
6393 }
6394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6395 return resultobj;
6396 fail:
6397 return NULL;
6398 }
6399
6400
6401 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj = NULL;
6403 wxBitmap *arg1 = 0 ;
6404 wxColour *arg2 = 0 ;
6405 int arg3 = (int) 0 ;
6406 wxRegion *result;
6407 wxColour temp2 ;
6408 PyObject * obj0 = 0 ;
6409 PyObject * obj1 = 0 ;
6410 PyObject * obj2 = 0 ;
6411 char *kwnames[] = {
6412 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6413 };
6414
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6416 {
6417 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6418 if (SWIG_arg_fail(1)) SWIG_fail;
6419 if (arg1 == NULL) {
6420 SWIG_null_ref("wxBitmap");
6421 }
6422 if (SWIG_arg_fail(1)) SWIG_fail;
6423 }
6424 {
6425 arg2 = &temp2;
6426 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6427 }
6428 if (obj2) {
6429 {
6430 arg3 = static_cast<int >(SWIG_As_int(obj2));
6431 if (SWIG_arg_fail(3)) SWIG_fail;
6432 }
6433 }
6434 {
6435 if (!wxPyCheckForApp()) SWIG_fail;
6436 PyThreadState* __tstate = wxPyBeginAllowThreads();
6437 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
6438
6439 wxPyEndAllowThreads(__tstate);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 }
6442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6443 return resultobj;
6444 fail:
6445 return NULL;
6446 }
6447
6448
6449 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj = NULL;
6451 int arg1 ;
6452 wxPoint *arg2 = (wxPoint *) 0 ;
6453 int arg3 = (int) wxWINDING_RULE ;
6454 wxRegion *result;
6455 PyObject * obj0 = 0 ;
6456 PyObject * obj1 = 0 ;
6457 char *kwnames[] = {
6458 (char *) "points",(char *) "fillStyle", NULL
6459 };
6460
6461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
6462 {
6463 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6464 if (arg2 == NULL) SWIG_fail;
6465 }
6466 if (obj1) {
6467 {
6468 arg3 = static_cast<int >(SWIG_As_int(obj1));
6469 if (SWIG_arg_fail(3)) SWIG_fail;
6470 }
6471 }
6472 {
6473 if (!wxPyCheckForApp()) SWIG_fail;
6474 PyThreadState* __tstate = wxPyBeginAllowThreads();
6475 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
6476
6477 wxPyEndAllowThreads(__tstate);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6481 {
6482 if (arg2) delete [] arg2;
6483 }
6484 return resultobj;
6485 fail:
6486 {
6487 if (arg2) delete [] arg2;
6488 }
6489 return NULL;
6490 }
6491
6492
6493 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6494 PyObject *resultobj = NULL;
6495 wxRegion *arg1 = (wxRegion *) 0 ;
6496 PyObject * obj0 = 0 ;
6497 char *kwnames[] = {
6498 (char *) "self", NULL
6499 };
6500
6501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
6502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6503 if (SWIG_arg_fail(1)) SWIG_fail;
6504 {
6505 PyThreadState* __tstate = wxPyBeginAllowThreads();
6506 delete arg1;
6507
6508 wxPyEndAllowThreads(__tstate);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 Py_INCREF(Py_None); resultobj = Py_None;
6512 return resultobj;
6513 fail:
6514 return NULL;
6515 }
6516
6517
6518 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj = NULL;
6520 wxRegion *arg1 = (wxRegion *) 0 ;
6521 PyObject * obj0 = 0 ;
6522 char *kwnames[] = {
6523 (char *) "self", NULL
6524 };
6525
6526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
6527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6528 if (SWIG_arg_fail(1)) SWIG_fail;
6529 {
6530 PyThreadState* __tstate = wxPyBeginAllowThreads();
6531 (arg1)->Clear();
6532
6533 wxPyEndAllowThreads(__tstate);
6534 if (PyErr_Occurred()) SWIG_fail;
6535 }
6536 Py_INCREF(Py_None); resultobj = Py_None;
6537 return resultobj;
6538 fail:
6539 return NULL;
6540 }
6541
6542
6543 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
6544 PyObject *resultobj = NULL;
6545 wxRegion *arg1 = (wxRegion *) 0 ;
6546 int arg2 ;
6547 int arg3 ;
6548 bool result;
6549 PyObject * obj0 = 0 ;
6550 PyObject * obj1 = 0 ;
6551 PyObject * obj2 = 0 ;
6552 char *kwnames[] = {
6553 (char *) "self",(char *) "x",(char *) "y", NULL
6554 };
6555
6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
6557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6558 if (SWIG_arg_fail(1)) SWIG_fail;
6559 {
6560 arg2 = static_cast<int >(SWIG_As_int(obj1));
6561 if (SWIG_arg_fail(2)) SWIG_fail;
6562 }
6563 {
6564 arg3 = static_cast<int >(SWIG_As_int(obj2));
6565 if (SWIG_arg_fail(3)) SWIG_fail;
6566 }
6567 {
6568 PyThreadState* __tstate = wxPyBeginAllowThreads();
6569 result = (bool)(arg1)->Offset(arg2,arg3);
6570
6571 wxPyEndAllowThreads(__tstate);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6576 }
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj = NULL;
6585 wxRegion *arg1 = (wxRegion *) 0 ;
6586 int arg2 ;
6587 int arg3 ;
6588 wxRegionContain result;
6589 PyObject * obj0 = 0 ;
6590 PyObject * obj1 = 0 ;
6591 PyObject * obj2 = 0 ;
6592 char *kwnames[] = {
6593 (char *) "self",(char *) "x",(char *) "y", NULL
6594 };
6595
6596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
6597 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6598 if (SWIG_arg_fail(1)) SWIG_fail;
6599 {
6600 arg2 = static_cast<int >(SWIG_As_int(obj1));
6601 if (SWIG_arg_fail(2)) SWIG_fail;
6602 }
6603 {
6604 arg3 = static_cast<int >(SWIG_As_int(obj2));
6605 if (SWIG_arg_fail(3)) SWIG_fail;
6606 }
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 resultobj = SWIG_From_int((result));
6615 return resultobj;
6616 fail:
6617 return NULL;
6618 }
6619
6620
6621 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
6622 PyObject *resultobj = NULL;
6623 wxRegion *arg1 = (wxRegion *) 0 ;
6624 wxPoint *arg2 = 0 ;
6625 wxRegionContain result;
6626 wxPoint temp2 ;
6627 PyObject * obj0 = 0 ;
6628 PyObject * obj1 = 0 ;
6629 char *kwnames[] = {
6630 (char *) "self",(char *) "pt", NULL
6631 };
6632
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
6634 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6635 if (SWIG_arg_fail(1)) SWIG_fail;
6636 {
6637 arg2 = &temp2;
6638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
6639 }
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
6643
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 resultobj = SWIG_From_int((result));
6648 return resultobj;
6649 fail:
6650 return NULL;
6651 }
6652
6653
6654 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
6655 PyObject *resultobj = NULL;
6656 wxRegion *arg1 = (wxRegion *) 0 ;
6657 wxRect *arg2 = 0 ;
6658 wxRegionContain result;
6659 wxRect temp2 ;
6660 PyObject * obj0 = 0 ;
6661 PyObject * obj1 = 0 ;
6662 char *kwnames[] = {
6663 (char *) "self",(char *) "rect", NULL
6664 };
6665
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
6667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6668 if (SWIG_arg_fail(1)) SWIG_fail;
6669 {
6670 arg2 = &temp2;
6671 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6672 }
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
6676
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 resultobj = SWIG_From_int((result));
6681 return resultobj;
6682 fail:
6683 return NULL;
6684 }
6685
6686
6687 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
6688 PyObject *resultobj = NULL;
6689 wxRegion *arg1 = (wxRegion *) 0 ;
6690 int arg2 ;
6691 int arg3 ;
6692 int arg4 ;
6693 int arg5 ;
6694 wxRegionContain result;
6695 PyObject * obj0 = 0 ;
6696 PyObject * obj1 = 0 ;
6697 PyObject * obj2 = 0 ;
6698 PyObject * obj3 = 0 ;
6699 PyObject * obj4 = 0 ;
6700 char *kwnames[] = {
6701 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
6702 };
6703
6704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6706 if (SWIG_arg_fail(1)) SWIG_fail;
6707 {
6708 arg2 = static_cast<int >(SWIG_As_int(obj1));
6709 if (SWIG_arg_fail(2)) SWIG_fail;
6710 }
6711 {
6712 arg3 = static_cast<int >(SWIG_As_int(obj2));
6713 if (SWIG_arg_fail(3)) SWIG_fail;
6714 }
6715 {
6716 arg4 = static_cast<int >(SWIG_As_int(obj3));
6717 if (SWIG_arg_fail(4)) SWIG_fail;
6718 }
6719 {
6720 arg5 = static_cast<int >(SWIG_As_int(obj4));
6721 if (SWIG_arg_fail(5)) SWIG_fail;
6722 }
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 resultobj = SWIG_From_int((result));
6731 return resultobj;
6732 fail:
6733 return NULL;
6734 }
6735
6736
6737 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
6738 PyObject *resultobj = NULL;
6739 wxRegion *arg1 = (wxRegion *) 0 ;
6740 wxRect result;
6741 PyObject * obj0 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "self", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
6747 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6748 if (SWIG_arg_fail(1)) SWIG_fail;
6749 {
6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
6751 result = (arg1)->GetBox();
6752
6753 wxPyEndAllowThreads(__tstate);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 {
6757 wxRect * resultptr;
6758 resultptr = new wxRect(static_cast<wxRect & >(result));
6759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6760 }
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
6768 PyObject *resultobj = NULL;
6769 wxRegion *arg1 = (wxRegion *) 0 ;
6770 int arg2 ;
6771 int arg3 ;
6772 int arg4 ;
6773 int arg5 ;
6774 bool result;
6775 PyObject * obj0 = 0 ;
6776 PyObject * obj1 = 0 ;
6777 PyObject * obj2 = 0 ;
6778 PyObject * obj3 = 0 ;
6779 PyObject * obj4 = 0 ;
6780 char *kwnames[] = {
6781 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6782 };
6783
6784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6785 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6786 if (SWIG_arg_fail(1)) SWIG_fail;
6787 {
6788 arg2 = static_cast<int >(SWIG_As_int(obj1));
6789 if (SWIG_arg_fail(2)) SWIG_fail;
6790 }
6791 {
6792 arg3 = static_cast<int >(SWIG_As_int(obj2));
6793 if (SWIG_arg_fail(3)) SWIG_fail;
6794 }
6795 {
6796 arg4 = static_cast<int >(SWIG_As_int(obj3));
6797 if (SWIG_arg_fail(4)) SWIG_fail;
6798 }
6799 {
6800 arg5 = static_cast<int >(SWIG_As_int(obj4));
6801 if (SWIG_arg_fail(5)) SWIG_fail;
6802 }
6803 {
6804 PyThreadState* __tstate = wxPyBeginAllowThreads();
6805 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
6806
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 {
6811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6812 }
6813 return resultobj;
6814 fail:
6815 return NULL;
6816 }
6817
6818
6819 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj = NULL;
6821 wxRegion *arg1 = (wxRegion *) 0 ;
6822 wxRect *arg2 = 0 ;
6823 bool result;
6824 wxRect temp2 ;
6825 PyObject * obj0 = 0 ;
6826 PyObject * obj1 = 0 ;
6827 char *kwnames[] = {
6828 (char *) "self",(char *) "rect", NULL
6829 };
6830
6831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
6832 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6833 if (SWIG_arg_fail(1)) SWIG_fail;
6834 {
6835 arg2 = &temp2;
6836 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6837 }
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 {
6846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6847 }
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj = NULL;
6856 wxRegion *arg1 = (wxRegion *) 0 ;
6857 wxRegion *arg2 = 0 ;
6858 bool result;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 char *kwnames[] = {
6862 (char *) "self",(char *) "region", NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
6866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6867 if (SWIG_arg_fail(1)) SWIG_fail;
6868 {
6869 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6870 if (SWIG_arg_fail(2)) SWIG_fail;
6871 if (arg2 == NULL) {
6872 SWIG_null_ref("wxRegion");
6873 }
6874 if (SWIG_arg_fail(2)) SWIG_fail;
6875 }
6876 {
6877 PyThreadState* __tstate = wxPyBeginAllowThreads();
6878 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
6879
6880 wxPyEndAllowThreads(__tstate);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 {
6884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6885 }
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = NULL;
6894 wxRegion *arg1 = (wxRegion *) 0 ;
6895 bool result;
6896 PyObject * obj0 = 0 ;
6897 char *kwnames[] = {
6898 (char *) "self", NULL
6899 };
6900
6901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
6902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6903 if (SWIG_arg_fail(1)) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (bool)(arg1)->IsEmpty();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 {
6912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6913 }
6914 return resultobj;
6915 fail:
6916 return NULL;
6917 }
6918
6919
6920 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
6921 PyObject *resultobj = NULL;
6922 wxRegion *arg1 = (wxRegion *) 0 ;
6923 int arg2 ;
6924 int arg3 ;
6925 int arg4 ;
6926 int arg5 ;
6927 bool result;
6928 PyObject * obj0 = 0 ;
6929 PyObject * obj1 = 0 ;
6930 PyObject * obj2 = 0 ;
6931 PyObject * obj3 = 0 ;
6932 PyObject * obj4 = 0 ;
6933 char *kwnames[] = {
6934 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6935 };
6936
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6938 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6939 if (SWIG_arg_fail(1)) SWIG_fail;
6940 {
6941 arg2 = static_cast<int >(SWIG_As_int(obj1));
6942 if (SWIG_arg_fail(2)) SWIG_fail;
6943 }
6944 {
6945 arg3 = static_cast<int >(SWIG_As_int(obj2));
6946 if (SWIG_arg_fail(3)) SWIG_fail;
6947 }
6948 {
6949 arg4 = static_cast<int >(SWIG_As_int(obj3));
6950 if (SWIG_arg_fail(4)) SWIG_fail;
6951 }
6952 {
6953 arg5 = static_cast<int >(SWIG_As_int(obj4));
6954 if (SWIG_arg_fail(5)) SWIG_fail;
6955 }
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 {
6964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6965 }
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = NULL;
6974 wxRegion *arg1 = (wxRegion *) 0 ;
6975 wxRect *arg2 = 0 ;
6976 bool result;
6977 wxRect temp2 ;
6978 PyObject * obj0 = 0 ;
6979 PyObject * obj1 = 0 ;
6980 char *kwnames[] = {
6981 (char *) "self",(char *) "rect", NULL
6982 };
6983
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
6985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
6986 if (SWIG_arg_fail(1)) SWIG_fail;
6987 {
6988 arg2 = &temp2;
6989 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6990 }
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 result = (bool)(arg1)->Union((wxRect const &)*arg2);
6994
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 {
6999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7000 }
7001 return resultobj;
7002 fail:
7003 return NULL;
7004 }
7005
7006
7007 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7008 PyObject *resultobj = NULL;
7009 wxRegion *arg1 = (wxRegion *) 0 ;
7010 wxRegion *arg2 = 0 ;
7011 bool result;
7012 PyObject * obj0 = 0 ;
7013 PyObject * obj1 = 0 ;
7014 char *kwnames[] = {
7015 (char *) "self",(char *) "region", NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
7019 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7020 if (SWIG_arg_fail(1)) SWIG_fail;
7021 {
7022 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7023 if (SWIG_arg_fail(2)) SWIG_fail;
7024 if (arg2 == NULL) {
7025 SWIG_null_ref("wxRegion");
7026 }
7027 if (SWIG_arg_fail(2)) SWIG_fail;
7028 }
7029 {
7030 PyThreadState* __tstate = wxPyBeginAllowThreads();
7031 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
7032
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) SWIG_fail;
7035 }
7036 {
7037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7038 }
7039 return resultobj;
7040 fail:
7041 return NULL;
7042 }
7043
7044
7045 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
7046 PyObject *resultobj = NULL;
7047 wxRegion *arg1 = (wxRegion *) 0 ;
7048 int arg2 ;
7049 int arg3 ;
7050 int arg4 ;
7051 int arg5 ;
7052 bool result;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 PyObject * obj2 = 0 ;
7056 PyObject * obj3 = 0 ;
7057 PyObject * obj4 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7063 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7064 if (SWIG_arg_fail(1)) SWIG_fail;
7065 {
7066 arg2 = static_cast<int >(SWIG_As_int(obj1));
7067 if (SWIG_arg_fail(2)) SWIG_fail;
7068 }
7069 {
7070 arg3 = static_cast<int >(SWIG_As_int(obj2));
7071 if (SWIG_arg_fail(3)) SWIG_fail;
7072 }
7073 {
7074 arg4 = static_cast<int >(SWIG_As_int(obj3));
7075 if (SWIG_arg_fail(4)) SWIG_fail;
7076 }
7077 {
7078 arg5 = static_cast<int >(SWIG_As_int(obj4));
7079 if (SWIG_arg_fail(5)) SWIG_fail;
7080 }
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
7084
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 {
7089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7090 }
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
7098 PyObject *resultobj = NULL;
7099 wxRegion *arg1 = (wxRegion *) 0 ;
7100 wxRect *arg2 = 0 ;
7101 bool result;
7102 wxRect temp2 ;
7103 PyObject * obj0 = 0 ;
7104 PyObject * obj1 = 0 ;
7105 char *kwnames[] = {
7106 (char *) "self",(char *) "rect", NULL
7107 };
7108
7109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
7110 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7111 if (SWIG_arg_fail(1)) SWIG_fail;
7112 {
7113 arg2 = &temp2;
7114 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7115 }
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 {
7124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7125 }
7126 return resultobj;
7127 fail:
7128 return NULL;
7129 }
7130
7131
7132 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7133 PyObject *resultobj = NULL;
7134 wxRegion *arg1 = (wxRegion *) 0 ;
7135 wxRegion *arg2 = 0 ;
7136 bool result;
7137 PyObject * obj0 = 0 ;
7138 PyObject * obj1 = 0 ;
7139 char *kwnames[] = {
7140 (char *) "self",(char *) "region", NULL
7141 };
7142
7143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
7144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7145 if (SWIG_arg_fail(1)) SWIG_fail;
7146 {
7147 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7148 if (SWIG_arg_fail(2)) SWIG_fail;
7149 if (arg2 == NULL) {
7150 SWIG_null_ref("wxRegion");
7151 }
7152 if (SWIG_arg_fail(2)) SWIG_fail;
7153 }
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 {
7162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7163 }
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj = NULL;
7172 wxRegion *arg1 = (wxRegion *) 0 ;
7173 int arg2 ;
7174 int arg3 ;
7175 int arg4 ;
7176 int arg5 ;
7177 bool result;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 PyObject * obj2 = 0 ;
7181 PyObject * obj3 = 0 ;
7182 PyObject * obj4 = 0 ;
7183 char *kwnames[] = {
7184 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7185 };
7186
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7188 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7189 if (SWIG_arg_fail(1)) SWIG_fail;
7190 {
7191 arg2 = static_cast<int >(SWIG_As_int(obj1));
7192 if (SWIG_arg_fail(2)) SWIG_fail;
7193 }
7194 {
7195 arg3 = static_cast<int >(SWIG_As_int(obj2));
7196 if (SWIG_arg_fail(3)) SWIG_fail;
7197 }
7198 {
7199 arg4 = static_cast<int >(SWIG_As_int(obj3));
7200 if (SWIG_arg_fail(4)) SWIG_fail;
7201 }
7202 {
7203 arg5 = static_cast<int >(SWIG_As_int(obj4));
7204 if (SWIG_arg_fail(5)) SWIG_fail;
7205 }
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 {
7214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7215 }
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj = NULL;
7224 wxRegion *arg1 = (wxRegion *) 0 ;
7225 wxRect *arg2 = 0 ;
7226 bool result;
7227 wxRect temp2 ;
7228 PyObject * obj0 = 0 ;
7229 PyObject * obj1 = 0 ;
7230 char *kwnames[] = {
7231 (char *) "self",(char *) "rect", NULL
7232 };
7233
7234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7236 if (SWIG_arg_fail(1)) SWIG_fail;
7237 {
7238 arg2 = &temp2;
7239 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7240 }
7241 {
7242 PyThreadState* __tstate = wxPyBeginAllowThreads();
7243 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
7244
7245 wxPyEndAllowThreads(__tstate);
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 {
7249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7250 }
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj = NULL;
7259 wxRegion *arg1 = (wxRegion *) 0 ;
7260 wxRegion *arg2 = 0 ;
7261 bool result;
7262 PyObject * obj0 = 0 ;
7263 PyObject * obj1 = 0 ;
7264 char *kwnames[] = {
7265 (char *) "self",(char *) "region", NULL
7266 };
7267
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7269 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7270 if (SWIG_arg_fail(1)) SWIG_fail;
7271 {
7272 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7273 if (SWIG_arg_fail(2)) SWIG_fail;
7274 if (arg2 == NULL) {
7275 SWIG_null_ref("wxRegion");
7276 }
7277 if (SWIG_arg_fail(2)) SWIG_fail;
7278 }
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
7282
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 {
7287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7288 }
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj = NULL;
7297 wxRegion *arg1 = (wxRegion *) 0 ;
7298 SwigValueWrapper<wxBitmap > result;
7299 PyObject * obj0 = 0 ;
7300 char *kwnames[] = {
7301 (char *) "self", NULL
7302 };
7303
7304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7305 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7306 if (SWIG_arg_fail(1)) SWIG_fail;
7307 {
7308 PyThreadState* __tstate = wxPyBeginAllowThreads();
7309 result = (arg1)->ConvertToBitmap();
7310
7311 wxPyEndAllowThreads(__tstate);
7312 if (PyErr_Occurred()) SWIG_fail;
7313 }
7314 {
7315 wxBitmap * resultptr;
7316 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
7317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7318 }
7319 return resultobj;
7320 fail:
7321 return NULL;
7322 }
7323
7324
7325 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7326 PyObject *resultobj = NULL;
7327 wxRegion *arg1 = (wxRegion *) 0 ;
7328 wxBitmap *arg2 = 0 ;
7329 bool result;
7330 PyObject * obj0 = 0 ;
7331 PyObject * obj1 = 0 ;
7332 char *kwnames[] = {
7333 (char *) "self",(char *) "bmp", NULL
7334 };
7335
7336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7337 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7338 if (SWIG_arg_fail(1)) SWIG_fail;
7339 {
7340 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7341 if (SWIG_arg_fail(2)) SWIG_fail;
7342 if (arg2 == NULL) {
7343 SWIG_null_ref("wxBitmap");
7344 }
7345 if (SWIG_arg_fail(2)) SWIG_fail;
7346 }
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
7350
7351 wxPyEndAllowThreads(__tstate);
7352 if (PyErr_Occurred()) SWIG_fail;
7353 }
7354 {
7355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7356 }
7357 return resultobj;
7358 fail:
7359 return NULL;
7360 }
7361
7362
7363 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
7364 PyObject *resultobj = NULL;
7365 wxRegion *arg1 = (wxRegion *) 0 ;
7366 wxBitmap *arg2 = 0 ;
7367 wxColour *arg3 = 0 ;
7368 int arg4 = (int) 0 ;
7369 bool result;
7370 wxColour temp3 ;
7371 PyObject * obj0 = 0 ;
7372 PyObject * obj1 = 0 ;
7373 PyObject * obj2 = 0 ;
7374 PyObject * obj3 = 0 ;
7375 char *kwnames[] = {
7376 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7377 };
7378
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7380 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7381 if (SWIG_arg_fail(1)) SWIG_fail;
7382 {
7383 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7384 if (SWIG_arg_fail(2)) SWIG_fail;
7385 if (arg2 == NULL) {
7386 SWIG_null_ref("wxBitmap");
7387 }
7388 if (SWIG_arg_fail(2)) SWIG_fail;
7389 }
7390 {
7391 arg3 = &temp3;
7392 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7393 }
7394 if (obj3) {
7395 {
7396 arg4 = static_cast<int >(SWIG_As_int(obj3));
7397 if (SWIG_arg_fail(4)) SWIG_fail;
7398 }
7399 }
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
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 * Region_swigregister(PyObject *, PyObject *args) {
7417 PyObject *obj;
7418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7419 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7420 Py_INCREF(obj);
7421 return Py_BuildValue((char *)"");
7422 }
7423 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj = NULL;
7425 wxRegion *arg1 = 0 ;
7426 wxRegionIterator *result;
7427 PyObject * obj0 = 0 ;
7428 char *kwnames[] = {
7429 (char *) "region", NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
7433 {
7434 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7435 if (SWIG_arg_fail(1)) SWIG_fail;
7436 if (arg1 == NULL) {
7437 SWIG_null_ref("wxRegion");
7438 }
7439 if (SWIG_arg_fail(1)) SWIG_fail;
7440 }
7441 {
7442 if (!wxPyCheckForApp()) SWIG_fail;
7443 PyThreadState* __tstate = wxPyBeginAllowThreads();
7444 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
7445
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
7450 return resultobj;
7451 fail:
7452 return NULL;
7453 }
7454
7455
7456 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7457 PyObject *resultobj = NULL;
7458 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7459 PyObject * obj0 = 0 ;
7460 char *kwnames[] = {
7461 (char *) "self", NULL
7462 };
7463
7464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7466 if (SWIG_arg_fail(1)) SWIG_fail;
7467 {
7468 PyThreadState* __tstate = wxPyBeginAllowThreads();
7469 delete arg1;
7470
7471 wxPyEndAllowThreads(__tstate);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 Py_INCREF(Py_None); resultobj = Py_None;
7475 return resultobj;
7476 fail:
7477 return NULL;
7478 }
7479
7480
7481 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj = NULL;
7483 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7484 int result;
7485 PyObject * obj0 = 0 ;
7486 char *kwnames[] = {
7487 (char *) "self", NULL
7488 };
7489
7490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
7491 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7492 if (SWIG_arg_fail(1)) SWIG_fail;
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 result = (int)(arg1)->GetX();
7496
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 {
7501 resultobj = SWIG_From_int(static_cast<int >(result));
7502 }
7503 return resultobj;
7504 fail:
7505 return NULL;
7506 }
7507
7508
7509 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
7510 PyObject *resultobj = NULL;
7511 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7512 int result;
7513 PyObject * obj0 = 0 ;
7514 char *kwnames[] = {
7515 (char *) "self", NULL
7516 };
7517
7518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
7519 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7520 if (SWIG_arg_fail(1)) SWIG_fail;
7521 {
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 result = (int)(arg1)->GetY();
7524
7525 wxPyEndAllowThreads(__tstate);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 {
7529 resultobj = SWIG_From_int(static_cast<int >(result));
7530 }
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj = NULL;
7539 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7540 int result;
7541 PyObject * obj0 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "self", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
7547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7548 if (SWIG_arg_fail(1)) SWIG_fail;
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 result = (int)(arg1)->GetW();
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 {
7557 resultobj = SWIG_From_int(static_cast<int >(result));
7558 }
7559 return resultobj;
7560 fail:
7561 return NULL;
7562 }
7563
7564
7565 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
7566 PyObject *resultobj = NULL;
7567 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7568 int result;
7569 PyObject * obj0 = 0 ;
7570 char *kwnames[] = {
7571 (char *) "self", NULL
7572 };
7573
7574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
7575 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7576 if (SWIG_arg_fail(1)) SWIG_fail;
7577 {
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (int)(arg1)->GetWidth();
7580
7581 wxPyEndAllowThreads(__tstate);
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 {
7585 resultobj = SWIG_From_int(static_cast<int >(result));
7586 }
7587 return resultobj;
7588 fail:
7589 return NULL;
7590 }
7591
7592
7593 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
7594 PyObject *resultobj = NULL;
7595 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7596 int result;
7597 PyObject * obj0 = 0 ;
7598 char *kwnames[] = {
7599 (char *) "self", NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
7603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7604 if (SWIG_arg_fail(1)) SWIG_fail;
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = (int)(arg1)->GetH();
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613 resultobj = SWIG_From_int(static_cast<int >(result));
7614 }
7615 return resultobj;
7616 fail:
7617 return NULL;
7618 }
7619
7620
7621 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7622 PyObject *resultobj = NULL;
7623 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7624 int result;
7625 PyObject * obj0 = 0 ;
7626 char *kwnames[] = {
7627 (char *) "self", NULL
7628 };
7629
7630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
7631 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7632 if (SWIG_arg_fail(1)) SWIG_fail;
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 result = (int)(arg1)->GetHeight();
7636
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 {
7641 resultobj = SWIG_From_int(static_cast<int >(result));
7642 }
7643 return resultobj;
7644 fail:
7645 return NULL;
7646 }
7647
7648
7649 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
7650 PyObject *resultobj = NULL;
7651 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7652 wxRect result;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "self", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
7659 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7660 if (SWIG_arg_fail(1)) SWIG_fail;
7661 {
7662 PyThreadState* __tstate = wxPyBeginAllowThreads();
7663 result = (arg1)->GetRect();
7664
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 {
7669 wxRect * resultptr;
7670 resultptr = new wxRect(static_cast<wxRect & >(result));
7671 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7672 }
7673 return resultobj;
7674 fail:
7675 return NULL;
7676 }
7677
7678
7679 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
7680 PyObject *resultobj = NULL;
7681 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7682 bool result;
7683 PyObject * obj0 = 0 ;
7684 char *kwnames[] = {
7685 (char *) "self", NULL
7686 };
7687
7688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
7689 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7690 if (SWIG_arg_fail(1)) SWIG_fail;
7691 {
7692 PyThreadState* __tstate = wxPyBeginAllowThreads();
7693 result = (bool)(arg1)->HaveRects();
7694
7695 wxPyEndAllowThreads(__tstate);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 {
7699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7700 }
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
7708 PyObject *resultobj = NULL;
7709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7710 PyObject * obj0 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self", NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
7716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7717 if (SWIG_arg_fail(1)) SWIG_fail;
7718 {
7719 PyThreadState* __tstate = wxPyBeginAllowThreads();
7720 (arg1)->Reset();
7721
7722 wxPyEndAllowThreads(__tstate);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
7725 Py_INCREF(Py_None); resultobj = Py_None;
7726 return resultobj;
7727 fail:
7728 return NULL;
7729 }
7730
7731
7732 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj = NULL;
7734 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7735 PyObject * obj0 = 0 ;
7736 char *kwnames[] = {
7737 (char *) "self", NULL
7738 };
7739
7740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
7741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7742 if (SWIG_arg_fail(1)) SWIG_fail;
7743 {
7744 PyThreadState* __tstate = wxPyBeginAllowThreads();
7745 wxRegionIterator_Next(arg1);
7746
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 Py_INCREF(Py_None); resultobj = Py_None;
7751 return resultobj;
7752 fail:
7753 return NULL;
7754 }
7755
7756
7757 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = NULL;
7759 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7760 bool result;
7761 PyObject * obj0 = 0 ;
7762 char *kwnames[] = {
7763 (char *) "self", NULL
7764 };
7765
7766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
7767 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7768 if (SWIG_arg_fail(1)) SWIG_fail;
7769 {
7770 PyThreadState* __tstate = wxPyBeginAllowThreads();
7771 result = (bool)wxRegionIterator___nonzero__(arg1);
7772
7773 wxPyEndAllowThreads(__tstate);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 {
7777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7778 }
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
7786 PyObject *obj;
7787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7788 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
7789 Py_INCREF(obj);
7790 return Py_BuildValue((char *)"");
7791 }
7792 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7793 PyObject *resultobj = NULL;
7794 wxNativeFontInfo *result;
7795 char *kwnames[] = {
7796 NULL
7797 };
7798
7799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
7800 {
7801 PyThreadState* __tstate = wxPyBeginAllowThreads();
7802 result = (wxNativeFontInfo *)new wxNativeFontInfo();
7803
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
7808 return resultobj;
7809 fail:
7810 return NULL;
7811 }
7812
7813
7814 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
7815 PyObject *resultobj = NULL;
7816 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7817 PyObject * obj0 = 0 ;
7818 char *kwnames[] = {
7819 (char *) "self", NULL
7820 };
7821
7822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
7823 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7824 if (SWIG_arg_fail(1)) SWIG_fail;
7825 {
7826 PyThreadState* __tstate = wxPyBeginAllowThreads();
7827 delete arg1;
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 Py_INCREF(Py_None); resultobj = Py_None;
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj = NULL;
7841 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7842 PyObject * obj0 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "self", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
7848 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7849 if (SWIG_arg_fail(1)) SWIG_fail;
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 (arg1)->Init();
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 Py_INCREF(Py_None); resultobj = Py_None;
7858 return resultobj;
7859 fail:
7860 return NULL;
7861 }
7862
7863
7864 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj = NULL;
7866 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7867 wxFont *arg2 = 0 ;
7868 PyObject * obj0 = 0 ;
7869 PyObject * obj1 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self",(char *) "font", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
7875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7876 if (SWIG_arg_fail(1)) SWIG_fail;
7877 {
7878 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
7879 if (SWIG_arg_fail(2)) SWIG_fail;
7880 if (arg2 == NULL) {
7881 SWIG_null_ref("wxFont");
7882 }
7883 if (SWIG_arg_fail(2)) SWIG_fail;
7884 }
7885 {
7886 PyThreadState* __tstate = wxPyBeginAllowThreads();
7887 (arg1)->InitFromFont((wxFont const &)*arg2);
7888
7889 wxPyEndAllowThreads(__tstate);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 Py_INCREF(Py_None); resultobj = Py_None;
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
7900 PyObject *resultobj = NULL;
7901 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7902 int result;
7903 PyObject * obj0 = 0 ;
7904 char *kwnames[] = {
7905 (char *) "self", NULL
7906 };
7907
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
7909 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7910 if (SWIG_arg_fail(1)) SWIG_fail;
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 {
7919 resultobj = SWIG_From_int(static_cast<int >(result));
7920 }
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj = NULL;
7929 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7930 wxFontStyle result;
7931 PyObject * obj0 = 0 ;
7932 char *kwnames[] = {
7933 (char *) "self", NULL
7934 };
7935
7936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
7937 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7938 if (SWIG_arg_fail(1)) SWIG_fail;
7939 {
7940 PyThreadState* __tstate = wxPyBeginAllowThreads();
7941 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
7942
7943 wxPyEndAllowThreads(__tstate);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_From_int((result));
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj = NULL;
7955 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7956 wxFontWeight result;
7957 PyObject * obj0 = 0 ;
7958 char *kwnames[] = {
7959 (char *) "self", NULL
7960 };
7961
7962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
7963 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7964 if (SWIG_arg_fail(1)) SWIG_fail;
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
7968
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_From_int((result));
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj = NULL;
7981 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7982 bool result;
7983 PyObject * obj0 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
7989 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
7990 if (SWIG_arg_fail(1)) SWIG_fail;
7991 {
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
7994
7995 wxPyEndAllowThreads(__tstate);
7996 if (PyErr_Occurred()) SWIG_fail;
7997 }
7998 {
7999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8000 }
8001 return resultobj;
8002 fail:
8003 return NULL;
8004 }
8005
8006
8007 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj = NULL;
8009 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8010 wxString result;
8011 PyObject * obj0 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
8017 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8018 if (SWIG_arg_fail(1)) SWIG_fail;
8019 {
8020 PyThreadState* __tstate = wxPyBeginAllowThreads();
8021 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
8022
8023 wxPyEndAllowThreads(__tstate);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 {
8027 #if wxUSE_UNICODE
8028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8029 #else
8030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8031 #endif
8032 }
8033 return resultobj;
8034 fail:
8035 return NULL;
8036 }
8037
8038
8039 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8040 PyObject *resultobj = NULL;
8041 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8042 wxFontFamily result;
8043 PyObject * obj0 = 0 ;
8044 char *kwnames[] = {
8045 (char *) "self", NULL
8046 };
8047
8048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
8049 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8050 if (SWIG_arg_fail(1)) SWIG_fail;
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
8054
8055 wxPyEndAllowThreads(__tstate);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 }
8058 resultobj = SWIG_From_int((result));
8059 return resultobj;
8060 fail:
8061 return NULL;
8062 }
8063
8064
8065 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj = NULL;
8067 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8068 wxFontEncoding result;
8069 PyObject * obj0 = 0 ;
8070 char *kwnames[] = {
8071 (char *) "self", NULL
8072 };
8073
8074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
8075 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8076 if (SWIG_arg_fail(1)) SWIG_fail;
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 resultobj = SWIG_From_int((result));
8085 return resultobj;
8086 fail:
8087 return NULL;
8088 }
8089
8090
8091 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8092 PyObject *resultobj = NULL;
8093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8094 int arg2 ;
8095 PyObject * obj0 = 0 ;
8096 PyObject * obj1 = 0 ;
8097 char *kwnames[] = {
8098 (char *) "self",(char *) "pointsize", NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8103 if (SWIG_arg_fail(1)) SWIG_fail;
8104 {
8105 arg2 = static_cast<int >(SWIG_As_int(obj1));
8106 if (SWIG_arg_fail(2)) SWIG_fail;
8107 }
8108 {
8109 PyThreadState* __tstate = wxPyBeginAllowThreads();
8110 (arg1)->SetPointSize(arg2);
8111
8112 wxPyEndAllowThreads(__tstate);
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 Py_INCREF(Py_None); resultobj = Py_None;
8116 return resultobj;
8117 fail:
8118 return NULL;
8119 }
8120
8121
8122 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8123 PyObject *resultobj = NULL;
8124 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8125 wxFontStyle arg2 ;
8126 PyObject * obj0 = 0 ;
8127 PyObject * obj1 = 0 ;
8128 char *kwnames[] = {
8129 (char *) "self",(char *) "style", NULL
8130 };
8131
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8133 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8134 if (SWIG_arg_fail(1)) SWIG_fail;
8135 {
8136 arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1));
8137 if (SWIG_arg_fail(2)) SWIG_fail;
8138 }
8139 {
8140 PyThreadState* __tstate = wxPyBeginAllowThreads();
8141 (arg1)->SetStyle(arg2);
8142
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 Py_INCREF(Py_None); resultobj = Py_None;
8147 return resultobj;
8148 fail:
8149 return NULL;
8150 }
8151
8152
8153 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj = NULL;
8155 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8156 wxFontWeight arg2 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "self",(char *) "weight", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8165 if (SWIG_arg_fail(1)) SWIG_fail;
8166 {
8167 arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1));
8168 if (SWIG_arg_fail(2)) SWIG_fail;
8169 }
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 (arg1)->SetWeight(arg2);
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 Py_INCREF(Py_None); resultobj = Py_None;
8178 return resultobj;
8179 fail:
8180 return NULL;
8181 }
8182
8183
8184 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8185 PyObject *resultobj = NULL;
8186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8187 bool arg2 ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 char *kwnames[] = {
8191 (char *) "self",(char *) "underlined", NULL
8192 };
8193
8194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8195 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8196 if (SWIG_arg_fail(1)) SWIG_fail;
8197 {
8198 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
8199 if (SWIG_arg_fail(2)) SWIG_fail;
8200 }
8201 {
8202 PyThreadState* __tstate = wxPyBeginAllowThreads();
8203 (arg1)->SetUnderlined(arg2);
8204
8205 wxPyEndAllowThreads(__tstate);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 Py_INCREF(Py_None); resultobj = Py_None;
8209 return resultobj;
8210 fail:
8211 return NULL;
8212 }
8213
8214
8215 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8216 PyObject *resultobj = NULL;
8217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8218 wxString arg2 ;
8219 PyObject * obj0 = 0 ;
8220 PyObject * obj1 = 0 ;
8221 char *kwnames[] = {
8222 (char *) "self",(char *) "facename", NULL
8223 };
8224
8225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8227 if (SWIG_arg_fail(1)) SWIG_fail;
8228 {
8229 wxString* sptr = wxString_in_helper(obj1);
8230 if (sptr == NULL) SWIG_fail;
8231 arg2 = *sptr;
8232 delete sptr;
8233 }
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 (arg1)->SetFaceName(arg2);
8237
8238 wxPyEndAllowThreads(__tstate);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 Py_INCREF(Py_None); resultobj = Py_None;
8242 return resultobj;
8243 fail:
8244 return NULL;
8245 }
8246
8247
8248 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8249 PyObject *resultobj = NULL;
8250 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8251 wxFontFamily arg2 ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "family", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8259 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8260 if (SWIG_arg_fail(1)) SWIG_fail;
8261 {
8262 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
8263 if (SWIG_arg_fail(2)) SWIG_fail;
8264 }
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 (arg1)->SetFamily(arg2);
8268
8269 wxPyEndAllowThreads(__tstate);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 Py_INCREF(Py_None); resultobj = Py_None;
8273 return resultobj;
8274 fail:
8275 return NULL;
8276 }
8277
8278
8279 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8280 PyObject *resultobj = NULL;
8281 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8282 wxFontEncoding arg2 ;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self",(char *) "encoding", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8290 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8291 if (SWIG_arg_fail(1)) SWIG_fail;
8292 {
8293 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8294 if (SWIG_arg_fail(2)) SWIG_fail;
8295 }
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 (arg1)->SetEncoding(arg2);
8299
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 Py_INCREF(Py_None); resultobj = Py_None;
8304 return resultobj;
8305 fail:
8306 return NULL;
8307 }
8308
8309
8310 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj = NULL;
8312 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8313 wxString *arg2 = 0 ;
8314 bool result;
8315 bool temp2 = false ;
8316 PyObject * obj0 = 0 ;
8317 PyObject * obj1 = 0 ;
8318 char *kwnames[] = {
8319 (char *) "self",(char *) "s", NULL
8320 };
8321
8322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8323 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8324 if (SWIG_arg_fail(1)) SWIG_fail;
8325 {
8326 arg2 = wxString_in_helper(obj1);
8327 if (arg2 == NULL) SWIG_fail;
8328 temp2 = true;
8329 }
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 {
8338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8339 }
8340 {
8341 if (temp2)
8342 delete arg2;
8343 }
8344 return resultobj;
8345 fail:
8346 {
8347 if (temp2)
8348 delete arg2;
8349 }
8350 return NULL;
8351 }
8352
8353
8354 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8355 PyObject *resultobj = NULL;
8356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8357 wxString result;
8358 PyObject * obj0 = 0 ;
8359 char *kwnames[] = {
8360 (char *) "self", NULL
8361 };
8362
8363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8364 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8365 if (SWIG_arg_fail(1)) SWIG_fail;
8366 {
8367 PyThreadState* __tstate = wxPyBeginAllowThreads();
8368 result = ((wxNativeFontInfo const *)arg1)->ToString();
8369
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 {
8374 #if wxUSE_UNICODE
8375 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8376 #else
8377 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8378 #endif
8379 }
8380 return resultobj;
8381 fail:
8382 return NULL;
8383 }
8384
8385
8386 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
8387 PyObject *resultobj = NULL;
8388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8389 wxString result;
8390 PyObject * obj0 = 0 ;
8391 char *kwnames[] = {
8392 (char *) "self", NULL
8393 };
8394
8395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8396 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8397 if (SWIG_arg_fail(1)) SWIG_fail;
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 result = wxNativeFontInfo___str__(arg1);
8401
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 {
8406 #if wxUSE_UNICODE
8407 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8408 #else
8409 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8410 #endif
8411 }
8412 return resultobj;
8413 fail:
8414 return NULL;
8415 }
8416
8417
8418 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
8419 PyObject *resultobj = NULL;
8420 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8421 wxString *arg2 = 0 ;
8422 bool result;
8423 bool temp2 = false ;
8424 PyObject * obj0 = 0 ;
8425 PyObject * obj1 = 0 ;
8426 char *kwnames[] = {
8427 (char *) "self",(char *) "s", NULL
8428 };
8429
8430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
8431 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8432 if (SWIG_arg_fail(1)) SWIG_fail;
8433 {
8434 arg2 = wxString_in_helper(obj1);
8435 if (arg2 == NULL) SWIG_fail;
8436 temp2 = true;
8437 }
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 {
8446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8447 }
8448 {
8449 if (temp2)
8450 delete arg2;
8451 }
8452 return resultobj;
8453 fail:
8454 {
8455 if (temp2)
8456 delete arg2;
8457 }
8458 return NULL;
8459 }
8460
8461
8462 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj = NULL;
8464 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8465 wxString result;
8466 PyObject * obj0 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "self", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
8472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8473 if (SWIG_arg_fail(1)) SWIG_fail;
8474 {
8475 PyThreadState* __tstate = wxPyBeginAllowThreads();
8476 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
8477
8478 wxPyEndAllowThreads(__tstate);
8479 if (PyErr_Occurred()) SWIG_fail;
8480 }
8481 {
8482 #if wxUSE_UNICODE
8483 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8484 #else
8485 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8486 #endif
8487 }
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
8495 PyObject *obj;
8496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8497 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
8498 Py_INCREF(obj);
8499 return Py_BuildValue((char *)"");
8500 }
8501 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = NULL;
8503 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8504 wxString *arg2 = (wxString *) 0 ;
8505 bool temp2 = false ;
8506 PyObject * obj0 = 0 ;
8507 PyObject * obj1 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "self",(char *) "facename", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
8513 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8514 if (SWIG_arg_fail(1)) SWIG_fail;
8515 {
8516 arg2 = wxString_in_helper(obj1);
8517 if (arg2 == NULL) SWIG_fail;
8518 temp2 = true;
8519 }
8520 if (arg1) (arg1)->facename = *arg2;
8521
8522 Py_INCREF(Py_None); resultobj = Py_None;
8523 {
8524 if (temp2)
8525 delete arg2;
8526 }
8527 return resultobj;
8528 fail:
8529 {
8530 if (temp2)
8531 delete arg2;
8532 }
8533 return NULL;
8534 }
8535
8536
8537 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
8538 PyObject *resultobj = NULL;
8539 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8540 wxString *result;
8541 PyObject * obj0 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
8547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8548 if (SWIG_arg_fail(1)) SWIG_fail;
8549 result = (wxString *)& ((arg1)->facename);
8550
8551 {
8552 #if wxUSE_UNICODE
8553 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8554 #else
8555 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8556 #endif
8557 }
8558 return resultobj;
8559 fail:
8560 return NULL;
8561 }
8562
8563
8564 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
8565 PyObject *resultobj = NULL;
8566 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8567 wxFontEncoding arg2 ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570 char *kwnames[] = {
8571 (char *) "self",(char *) "encoding", NULL
8572 };
8573
8574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
8575 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8576 if (SWIG_arg_fail(1)) SWIG_fail;
8577 {
8578 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8579 if (SWIG_arg_fail(2)) SWIG_fail;
8580 }
8581 if (arg1) (arg1)->encoding = arg2;
8582
8583 Py_INCREF(Py_None); resultobj = Py_None;
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj = NULL;
8592 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8593 wxFontEncoding result;
8594 PyObject * obj0 = 0 ;
8595 char *kwnames[] = {
8596 (char *) "self", NULL
8597 };
8598
8599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
8600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8601 if (SWIG_arg_fail(1)) SWIG_fail;
8602 result = (wxFontEncoding) ((arg1)->encoding);
8603
8604 resultobj = SWIG_From_int((result));
8605 return resultobj;
8606 fail:
8607 return NULL;
8608 }
8609
8610
8611 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8612 PyObject *resultobj = NULL;
8613 wxNativeEncodingInfo *result;
8614 char *kwnames[] = {
8615 NULL
8616 };
8617
8618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
8622
8623 wxPyEndAllowThreads(__tstate);
8624 if (PyErr_Occurred()) SWIG_fail;
8625 }
8626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
8627 return resultobj;
8628 fail:
8629 return NULL;
8630 }
8631
8632
8633 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8634 PyObject *resultobj = NULL;
8635 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8636 PyObject * obj0 = 0 ;
8637 char *kwnames[] = {
8638 (char *) "self", NULL
8639 };
8640
8641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
8642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8643 if (SWIG_arg_fail(1)) SWIG_fail;
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 delete arg1;
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 Py_INCREF(Py_None); resultobj = Py_None;
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8659 PyObject *resultobj = NULL;
8660 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8661 wxString *arg2 = 0 ;
8662 bool result;
8663 bool temp2 = false ;
8664 PyObject * obj0 = 0 ;
8665 PyObject * obj1 = 0 ;
8666 char *kwnames[] = {
8667 (char *) "self",(char *) "s", NULL
8668 };
8669
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8671 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8672 if (SWIG_arg_fail(1)) SWIG_fail;
8673 {
8674 arg2 = wxString_in_helper(obj1);
8675 if (arg2 == NULL) SWIG_fail;
8676 temp2 = true;
8677 }
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 {
8686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8687 }
8688 {
8689 if (temp2)
8690 delete arg2;
8691 }
8692 return resultobj;
8693 fail:
8694 {
8695 if (temp2)
8696 delete arg2;
8697 }
8698 return NULL;
8699 }
8700
8701
8702 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8703 PyObject *resultobj = NULL;
8704 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
8705 wxString result;
8706 PyObject * obj0 = 0 ;
8707 char *kwnames[] = {
8708 (char *) "self", NULL
8709 };
8710
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
8712 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8713 if (SWIG_arg_fail(1)) SWIG_fail;
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
8717
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 {
8722 #if wxUSE_UNICODE
8723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8724 #else
8725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8726 #endif
8727 }
8728 return resultobj;
8729 fail:
8730 return NULL;
8731 }
8732
8733
8734 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
8735 PyObject *obj;
8736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8737 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
8738 Py_INCREF(obj);
8739 return Py_BuildValue((char *)"");
8740 }
8741 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8742 PyObject *resultobj = NULL;
8743 wxFontEncoding arg1 ;
8744 wxNativeEncodingInfo *result;
8745 PyObject * obj0 = 0 ;
8746 char *kwnames[] = {
8747 (char *) "encoding", NULL
8748 };
8749
8750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
8751 {
8752 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
8753 if (SWIG_arg_fail(1)) SWIG_fail;
8754 }
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj = NULL;
8771 wxNativeEncodingInfo *arg1 = 0 ;
8772 bool result;
8773 PyObject * obj0 = 0 ;
8774 char *kwnames[] = {
8775 (char *) "info", NULL
8776 };
8777
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
8779 {
8780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
8781 if (SWIG_arg_fail(1)) SWIG_fail;
8782 if (arg1 == NULL) {
8783 SWIG_null_ref("wxNativeEncodingInfo");
8784 }
8785 if (SWIG_arg_fail(1)) SWIG_fail;
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 }
8794 {
8795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8796 }
8797 return resultobj;
8798 fail:
8799 return NULL;
8800 }
8801
8802
8803 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj = NULL;
8805 wxFontMapper *result;
8806 char *kwnames[] = {
8807 NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
8811 {
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 result = (wxFontMapper *)new wxFontMapper();
8814
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
8819 return resultobj;
8820 fail:
8821 return NULL;
8822 }
8823
8824
8825 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
8826 PyObject *resultobj = NULL;
8827 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8828 PyObject * obj0 = 0 ;
8829 char *kwnames[] = {
8830 (char *) "self", NULL
8831 };
8832
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
8834 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8835 if (SWIG_arg_fail(1)) SWIG_fail;
8836 {
8837 PyThreadState* __tstate = wxPyBeginAllowThreads();
8838 delete arg1;
8839
8840 wxPyEndAllowThreads(__tstate);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 }
8843 Py_INCREF(Py_None); resultobj = Py_None;
8844 return resultobj;
8845 fail:
8846 return NULL;
8847 }
8848
8849
8850 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj = NULL;
8852 wxFontMapper *result;
8853 char *kwnames[] = {
8854 NULL
8855 };
8856
8857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 result = (wxFontMapper *)wxFontMapper::Get();
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
8866 return resultobj;
8867 fail:
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj = NULL;
8874 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8875 wxFontMapper *result;
8876 PyObject * obj0 = 0 ;
8877 char *kwnames[] = {
8878 (char *) "mapper", NULL
8879 };
8880
8881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
8882 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8883 if (SWIG_arg_fail(1)) SWIG_fail;
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (wxFontMapper *)wxFontMapper::Set(arg1);
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
8892 return resultobj;
8893 fail:
8894 return NULL;
8895 }
8896
8897
8898 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8899 PyObject *resultobj = NULL;
8900 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8901 wxString *arg2 = 0 ;
8902 bool arg3 = (bool) true ;
8903 wxFontEncoding result;
8904 bool temp2 = false ;
8905 PyObject * obj0 = 0 ;
8906 PyObject * obj1 = 0 ;
8907 PyObject * obj2 = 0 ;
8908 char *kwnames[] = {
8909 (char *) "self",(char *) "charset",(char *) "interactive", NULL
8910 };
8911
8912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
8913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
8914 if (SWIG_arg_fail(1)) SWIG_fail;
8915 {
8916 arg2 = wxString_in_helper(obj1);
8917 if (arg2 == NULL) SWIG_fail;
8918 temp2 = true;
8919 }
8920 if (obj2) {
8921 {
8922 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
8923 if (SWIG_arg_fail(3)) SWIG_fail;
8924 }
8925 }
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = SWIG_From_int((result));
8934 {
8935 if (temp2)
8936 delete arg2;
8937 }
8938 return resultobj;
8939 fail:
8940 {
8941 if (temp2)
8942 delete arg2;
8943 }
8944 return NULL;
8945 }
8946
8947
8948 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
8949 PyObject *resultobj = NULL;
8950 size_t result;
8951 char *kwnames[] = {
8952 NULL
8953 };
8954
8955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 {
8964 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
8965 }
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj = NULL;
8974 size_t arg1 ;
8975 wxFontEncoding result;
8976 PyObject * obj0 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "n", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
8982 {
8983 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
8984 if (SWIG_arg_fail(1)) SWIG_fail;
8985 }
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 resultobj = SWIG_From_int((result));
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj = NULL;
9002 wxFontEncoding arg1 ;
9003 wxString result;
9004 PyObject * obj0 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "encoding", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
9010 {
9011 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9012 if (SWIG_arg_fail(1)) SWIG_fail;
9013 }
9014 {
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 result = wxFontMapper::GetEncodingName(arg1);
9017
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 {
9022 #if wxUSE_UNICODE
9023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9024 #else
9025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9026 #endif
9027 }
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj = NULL;
9036 wxFontEncoding arg1 ;
9037 wxString result;
9038 PyObject * obj0 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "encoding", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
9044 {
9045 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9046 if (SWIG_arg_fail(1)) SWIG_fail;
9047 }
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 result = wxFontMapper::GetEncodingDescription(arg1);
9051
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 {
9056 #if wxUSE_UNICODE
9057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9058 #else
9059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9060 #endif
9061 }
9062 return resultobj;
9063 fail:
9064 return NULL;
9065 }
9066
9067
9068 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj = NULL;
9070 wxString *arg1 = 0 ;
9071 wxFontEncoding result;
9072 bool temp1 = false ;
9073 PyObject * obj0 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "name", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
9079 {
9080 arg1 = wxString_in_helper(obj0);
9081 if (arg1 == NULL) SWIG_fail;
9082 temp1 = true;
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 resultobj = SWIG_From_int((result));
9092 {
9093 if (temp1)
9094 delete arg1;
9095 }
9096 return resultobj;
9097 fail:
9098 {
9099 if (temp1)
9100 delete arg1;
9101 }
9102 return NULL;
9103 }
9104
9105
9106 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj = NULL;
9108 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9109 wxString *arg2 = 0 ;
9110 bool temp2 = false ;
9111 PyObject * obj0 = 0 ;
9112 PyObject * obj1 = 0 ;
9113 char *kwnames[] = {
9114 (char *) "self",(char *) "prefix", NULL
9115 };
9116
9117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
9118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9119 if (SWIG_arg_fail(1)) SWIG_fail;
9120 {
9121 arg2 = wxString_in_helper(obj1);
9122 if (arg2 == NULL) SWIG_fail;
9123 temp2 = true;
9124 }
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 (arg1)->SetConfigPath((wxString const &)*arg2);
9128
9129 wxPyEndAllowThreads(__tstate);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
9132 Py_INCREF(Py_None); resultobj = Py_None;
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return resultobj;
9138 fail:
9139 {
9140 if (temp2)
9141 delete arg2;
9142 }
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj = NULL;
9149 wxString result;
9150 char *kwnames[] = {
9151 NULL
9152 };
9153
9154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
9155 {
9156 PyThreadState* __tstate = wxPyBeginAllowThreads();
9157 result = wxFontMapper::GetDefaultConfigPath();
9158
9159 wxPyEndAllowThreads(__tstate);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 }
9162 {
9163 #if wxUSE_UNICODE
9164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9165 #else
9166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9167 #endif
9168 }
9169 return resultobj;
9170 fail:
9171 return NULL;
9172 }
9173
9174
9175 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = NULL;
9177 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9178 wxFontEncoding arg2 ;
9179 wxString const &arg3_defvalue = wxPyEmptyString ;
9180 wxString *arg3 = (wxString *) &arg3_defvalue ;
9181 bool arg4 = (bool) true ;
9182 PyObject *result;
9183 bool temp3 = false ;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 PyObject * obj2 = 0 ;
9187 PyObject * obj3 = 0 ;
9188 char *kwnames[] = {
9189 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
9190 };
9191
9192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9194 if (SWIG_arg_fail(1)) SWIG_fail;
9195 {
9196 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9197 if (SWIG_arg_fail(2)) SWIG_fail;
9198 }
9199 if (obj2) {
9200 {
9201 arg3 = wxString_in_helper(obj2);
9202 if (arg3 == NULL) SWIG_fail;
9203 temp3 = true;
9204 }
9205 }
9206 if (obj3) {
9207 {
9208 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
9209 if (SWIG_arg_fail(4)) SWIG_fail;
9210 }
9211 }
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
9215
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 resultobj = result;
9220 {
9221 if (temp3)
9222 delete arg3;
9223 }
9224 return resultobj;
9225 fail:
9226 {
9227 if (temp3)
9228 delete arg3;
9229 }
9230 return NULL;
9231 }
9232
9233
9234 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj = NULL;
9236 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9237 wxFontEncoding arg2 ;
9238 wxString const &arg3_defvalue = wxPyEmptyString ;
9239 wxString *arg3 = (wxString *) &arg3_defvalue ;
9240 bool result;
9241 bool temp3 = false ;
9242 PyObject * obj0 = 0 ;
9243 PyObject * obj1 = 0 ;
9244 PyObject * obj2 = 0 ;
9245 char *kwnames[] = {
9246 (char *) "self",(char *) "encoding",(char *) "facename", NULL
9247 };
9248
9249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9251 if (SWIG_arg_fail(1)) SWIG_fail;
9252 {
9253 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9254 if (SWIG_arg_fail(2)) SWIG_fail;
9255 }
9256 if (obj2) {
9257 {
9258 arg3 = wxString_in_helper(obj2);
9259 if (arg3 == NULL) SWIG_fail;
9260 temp3 = true;
9261 }
9262 }
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
9266
9267 wxPyEndAllowThreads(__tstate);
9268 if (PyErr_Occurred()) SWIG_fail;
9269 }
9270 {
9271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9272 }
9273 {
9274 if (temp3)
9275 delete arg3;
9276 }
9277 return resultobj;
9278 fail:
9279 {
9280 if (temp3)
9281 delete arg3;
9282 }
9283 return NULL;
9284 }
9285
9286
9287 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = NULL;
9289 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9290 wxWindow *arg2 = (wxWindow *) 0 ;
9291 PyObject * obj0 = 0 ;
9292 PyObject * obj1 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self",(char *) "parent", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9299 if (SWIG_arg_fail(1)) SWIG_fail;
9300 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9301 if (SWIG_arg_fail(2)) SWIG_fail;
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 (arg1)->SetDialogParent(arg2);
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 Py_INCREF(Py_None); resultobj = Py_None;
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj = NULL;
9318 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9319 wxString *arg2 = 0 ;
9320 bool temp2 = false ;
9321 PyObject * obj0 = 0 ;
9322 PyObject * obj1 = 0 ;
9323 char *kwnames[] = {
9324 (char *) "self",(char *) "title", NULL
9325 };
9326
9327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9328 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9329 if (SWIG_arg_fail(1)) SWIG_fail;
9330 {
9331 arg2 = wxString_in_helper(obj1);
9332 if (arg2 == NULL) SWIG_fail;
9333 temp2 = true;
9334 }
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 (arg1)->SetDialogTitle((wxString const &)*arg2);
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 Py_INCREF(Py_None); resultobj = Py_None;
9343 {
9344 if (temp2)
9345 delete arg2;
9346 }
9347 return resultobj;
9348 fail:
9349 {
9350 if (temp2)
9351 delete arg2;
9352 }
9353 return NULL;
9354 }
9355
9356
9357 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9358 PyObject *obj;
9359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9360 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9361 Py_INCREF(obj);
9362 return Py_BuildValue((char *)"");
9363 }
9364 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj = NULL;
9366 int arg1 ;
9367 int arg2 ;
9368 int arg3 ;
9369 int arg4 ;
9370 bool arg5 = (bool) false ;
9371 wxString const &arg6_defvalue = wxPyEmptyString ;
9372 wxString *arg6 = (wxString *) &arg6_defvalue ;
9373 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9374 wxFont *result;
9375 bool temp6 = false ;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 PyObject * obj2 = 0 ;
9379 PyObject * obj3 = 0 ;
9380 PyObject * obj4 = 0 ;
9381 PyObject * obj5 = 0 ;
9382 PyObject * obj6 = 0 ;
9383 char *kwnames[] = {
9384 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
9385 };
9386
9387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9388 {
9389 arg1 = static_cast<int >(SWIG_As_int(obj0));
9390 if (SWIG_arg_fail(1)) SWIG_fail;
9391 }
9392 {
9393 arg2 = static_cast<int >(SWIG_As_int(obj1));
9394 if (SWIG_arg_fail(2)) SWIG_fail;
9395 }
9396 {
9397 arg3 = static_cast<int >(SWIG_As_int(obj2));
9398 if (SWIG_arg_fail(3)) SWIG_fail;
9399 }
9400 {
9401 arg4 = static_cast<int >(SWIG_As_int(obj3));
9402 if (SWIG_arg_fail(4)) SWIG_fail;
9403 }
9404 if (obj4) {
9405 {
9406 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9407 if (SWIG_arg_fail(5)) SWIG_fail;
9408 }
9409 }
9410 if (obj5) {
9411 {
9412 arg6 = wxString_in_helper(obj5);
9413 if (arg6 == NULL) SWIG_fail;
9414 temp6 = true;
9415 }
9416 }
9417 if (obj6) {
9418 {
9419 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
9420 if (SWIG_arg_fail(7)) SWIG_fail;
9421 }
9422 }
9423 {
9424 if (!wxPyCheckForApp()) SWIG_fail;
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9432 {
9433 if (temp6)
9434 delete arg6;
9435 }
9436 return resultobj;
9437 fail:
9438 {
9439 if (temp6)
9440 delete arg6;
9441 }
9442 return NULL;
9443 }
9444
9445
9446 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = NULL;
9448 wxFont *arg1 = (wxFont *) 0 ;
9449 PyObject * obj0 = 0 ;
9450 char *kwnames[] = {
9451 (char *) "self", NULL
9452 };
9453
9454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
9455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9456 if (SWIG_arg_fail(1)) SWIG_fail;
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 delete arg1;
9460
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 Py_INCREF(Py_None); resultobj = Py_None;
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj = NULL;
9473 wxNativeFontInfo *arg1 = 0 ;
9474 wxFont *result;
9475 PyObject * obj0 = 0 ;
9476 char *kwnames[] = {
9477 (char *) "info", NULL
9478 };
9479
9480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
9481 {
9482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9483 if (SWIG_arg_fail(1)) SWIG_fail;
9484 if (arg1 == NULL) {
9485 SWIG_null_ref("wxNativeFontInfo");
9486 }
9487 if (SWIG_arg_fail(1)) SWIG_fail;
9488 }
9489 {
9490 if (!wxPyCheckForApp()) SWIG_fail;
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
9493
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9498 return resultobj;
9499 fail:
9500 return NULL;
9501 }
9502
9503
9504 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
9505 PyObject *resultobj = NULL;
9506 wxString *arg1 = 0 ;
9507 wxFont *result;
9508 bool temp1 = false ;
9509 PyObject * obj0 = 0 ;
9510 char *kwnames[] = {
9511 (char *) "info", NULL
9512 };
9513
9514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
9515 {
9516 arg1 = wxString_in_helper(obj0);
9517 if (arg1 == NULL) SWIG_fail;
9518 temp1 = true;
9519 }
9520 {
9521 if (!wxPyCheckForApp()) SWIG_fail;
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 result = (wxFont *)new_wxFont((wxString const &)*arg1);
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9529 {
9530 if (temp1)
9531 delete arg1;
9532 }
9533 return resultobj;
9534 fail:
9535 {
9536 if (temp1)
9537 delete arg1;
9538 }
9539 return NULL;
9540 }
9541
9542
9543 static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
9544 PyObject *resultobj = NULL;
9545 int arg1 ;
9546 wxFontFamily arg2 ;
9547 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9548 wxString const &arg4_defvalue = wxPyEmptyString ;
9549 wxString *arg4 = (wxString *) &arg4_defvalue ;
9550 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9551 wxFont *result;
9552 bool temp4 = false ;
9553 PyObject * obj0 = 0 ;
9554 PyObject * obj1 = 0 ;
9555 PyObject * obj2 = 0 ;
9556 PyObject * obj3 = 0 ;
9557 PyObject * obj4 = 0 ;
9558 char *kwnames[] = {
9559 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
9560 };
9561
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9563 {
9564 arg1 = static_cast<int >(SWIG_As_int(obj0));
9565 if (SWIG_arg_fail(1)) SWIG_fail;
9566 }
9567 {
9568 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
9569 if (SWIG_arg_fail(2)) SWIG_fail;
9570 }
9571 if (obj2) {
9572 {
9573 arg3 = static_cast<int >(SWIG_As_int(obj2));
9574 if (SWIG_arg_fail(3)) SWIG_fail;
9575 }
9576 }
9577 if (obj3) {
9578 {
9579 arg4 = wxString_in_helper(obj3);
9580 if (arg4 == NULL) SWIG_fail;
9581 temp4 = true;
9582 }
9583 }
9584 if (obj4) {
9585 {
9586 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
9587 if (SWIG_arg_fail(5)) SWIG_fail;
9588 }
9589 }
9590 {
9591 if (!wxPyCheckForApp()) SWIG_fail;
9592 PyThreadState* __tstate = wxPyBeginAllowThreads();
9593 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
9594
9595 wxPyEndAllowThreads(__tstate);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9599 {
9600 if (temp4)
9601 delete arg4;
9602 }
9603 return resultobj;
9604 fail:
9605 {
9606 if (temp4)
9607 delete arg4;
9608 }
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj = NULL;
9615 wxSize *arg1 = 0 ;
9616 int arg2 ;
9617 int arg3 ;
9618 int arg4 ;
9619 bool arg5 = (bool) false ;
9620 wxString const &arg6_defvalue = wxEmptyString ;
9621 wxString *arg6 = (wxString *) &arg6_defvalue ;
9622 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9623 wxFont *result;
9624 wxSize temp1 ;
9625 bool temp6 = false ;
9626 PyObject * obj0 = 0 ;
9627 PyObject * obj1 = 0 ;
9628 PyObject * obj2 = 0 ;
9629 PyObject * obj3 = 0 ;
9630 PyObject * obj4 = 0 ;
9631 PyObject * obj5 = 0 ;
9632 PyObject * obj6 = 0 ;
9633 char *kwnames[] = {
9634 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
9635 };
9636
9637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9638 {
9639 arg1 = &temp1;
9640 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9641 }
9642 {
9643 arg2 = static_cast<int >(SWIG_As_int(obj1));
9644 if (SWIG_arg_fail(2)) SWIG_fail;
9645 }
9646 {
9647 arg3 = static_cast<int >(SWIG_As_int(obj2));
9648 if (SWIG_arg_fail(3)) SWIG_fail;
9649 }
9650 {
9651 arg4 = static_cast<int >(SWIG_As_int(obj3));
9652 if (SWIG_arg_fail(4)) SWIG_fail;
9653 }
9654 if (obj4) {
9655 {
9656 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9657 if (SWIG_arg_fail(5)) SWIG_fail;
9658 }
9659 }
9660 if (obj5) {
9661 {
9662 arg6 = wxString_in_helper(obj5);
9663 if (arg6 == NULL) SWIG_fail;
9664 temp6 = true;
9665 }
9666 }
9667 if (obj6) {
9668 {
9669 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
9670 if (SWIG_arg_fail(7)) SWIG_fail;
9671 }
9672 }
9673 {
9674 if (!wxPyCheckForApp()) SWIG_fail;
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9682 {
9683 if (temp6)
9684 delete arg6;
9685 }
9686 return resultobj;
9687 fail:
9688 {
9689 if (temp6)
9690 delete arg6;
9691 }
9692 return NULL;
9693 }
9694
9695
9696 static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj = NULL;
9698 wxSize *arg1 = 0 ;
9699 wxFontFamily arg2 ;
9700 int arg3 = (int) wxFONTFLAG_DEFAULT ;
9701 wxString const &arg4_defvalue = wxEmptyString ;
9702 wxString *arg4 = (wxString *) &arg4_defvalue ;
9703 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9704 wxFont *result;
9705 wxSize temp1 ;
9706 bool temp4 = false ;
9707 PyObject * obj0 = 0 ;
9708 PyObject * obj1 = 0 ;
9709 PyObject * obj2 = 0 ;
9710 PyObject * obj3 = 0 ;
9711 PyObject * obj4 = 0 ;
9712 char *kwnames[] = {
9713 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
9714 };
9715
9716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9717 {
9718 arg1 = &temp1;
9719 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
9720 }
9721 {
9722 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
9723 if (SWIG_arg_fail(2)) SWIG_fail;
9724 }
9725 if (obj2) {
9726 {
9727 arg3 = static_cast<int >(SWIG_As_int(obj2));
9728 if (SWIG_arg_fail(3)) SWIG_fail;
9729 }
9730 }
9731 if (obj3) {
9732 {
9733 arg4 = wxString_in_helper(obj3);
9734 if (arg4 == NULL) SWIG_fail;
9735 temp4 = true;
9736 }
9737 }
9738 if (obj4) {
9739 {
9740 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
9741 if (SWIG_arg_fail(5)) SWIG_fail;
9742 }
9743 }
9744 {
9745 if (!wxPyCheckForApp()) SWIG_fail;
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
9753 {
9754 if (temp4)
9755 delete arg4;
9756 }
9757 return resultobj;
9758 fail:
9759 {
9760 if (temp4)
9761 delete arg4;
9762 }
9763 return NULL;
9764 }
9765
9766
9767 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
9768 PyObject *resultobj = NULL;
9769 wxFont *arg1 = (wxFont *) 0 ;
9770 bool result;
9771 PyObject * obj0 = 0 ;
9772 char *kwnames[] = {
9773 (char *) "self", NULL
9774 };
9775
9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
9777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9778 if (SWIG_arg_fail(1)) SWIG_fail;
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 result = (bool)((wxFont const *)arg1)->Ok();
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 {
9787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9788 }
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj = NULL;
9797 wxFont *arg1 = (wxFont *) 0 ;
9798 wxFont *arg2 = (wxFont *) 0 ;
9799 bool result;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char *kwnames[] = {
9803 (char *) "self",(char *) "other", NULL
9804 };
9805
9806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
9807 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9808 if (SWIG_arg_fail(1)) SWIG_fail;
9809 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9810 if (SWIG_arg_fail(2)) SWIG_fail;
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 {
9819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9820 }
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj = NULL;
9829 wxFont *arg1 = (wxFont *) 0 ;
9830 wxFont *arg2 = (wxFont *) 0 ;
9831 bool result;
9832 PyObject * obj0 = 0 ;
9833 PyObject * obj1 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self",(char *) "other", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
9839 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9840 if (SWIG_arg_fail(1)) SWIG_fail;
9841 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9842 if (SWIG_arg_fail(2)) SWIG_fail;
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 {
9851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9852 }
9853 return resultobj;
9854 fail:
9855 return NULL;
9856 }
9857
9858
9859 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj = NULL;
9861 wxFont *arg1 = (wxFont *) 0 ;
9862 int result;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
9869 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9870 if (SWIG_arg_fail(1)) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 result = (int)((wxFont const *)arg1)->GetPointSize();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
9878 {
9879 resultobj = SWIG_From_int(static_cast<int >(result));
9880 }
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = NULL;
9889 wxFont *arg1 = (wxFont *) 0 ;
9890 wxSize result;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
9897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9898 if (SWIG_arg_fail(1)) SWIG_fail;
9899 {
9900 PyThreadState* __tstate = wxPyBeginAllowThreads();
9901 result = ((wxFont const *)arg1)->GetPixelSize();
9902
9903 wxPyEndAllowThreads(__tstate);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 {
9907 wxSize * resultptr;
9908 resultptr = new wxSize(static_cast<wxSize & >(result));
9909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
9910 }
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj = NULL;
9919 wxFont *arg1 = (wxFont *) 0 ;
9920 bool result;
9921 PyObject * obj0 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
9927 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9928 if (SWIG_arg_fail(1)) SWIG_fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 {
9937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9938 }
9939 return resultobj;
9940 fail:
9941 return NULL;
9942 }
9943
9944
9945 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
9946 PyObject *resultobj = NULL;
9947 wxFont *arg1 = (wxFont *) 0 ;
9948 int result;
9949 PyObject * obj0 = 0 ;
9950 char *kwnames[] = {
9951 (char *) "self", NULL
9952 };
9953
9954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
9955 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9956 if (SWIG_arg_fail(1)) SWIG_fail;
9957 {
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = (int)((wxFont const *)arg1)->GetFamily();
9960
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 {
9965 resultobj = SWIG_From_int(static_cast<int >(result));
9966 }
9967 return resultobj;
9968 fail:
9969 return NULL;
9970 }
9971
9972
9973 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9974 PyObject *resultobj = NULL;
9975 wxFont *arg1 = (wxFont *) 0 ;
9976 int result;
9977 PyObject * obj0 = 0 ;
9978 char *kwnames[] = {
9979 (char *) "self", NULL
9980 };
9981
9982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
9983 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
9984 if (SWIG_arg_fail(1)) SWIG_fail;
9985 {
9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
9987 result = (int)((wxFont const *)arg1)->GetStyle();
9988
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 {
9993 resultobj = SWIG_From_int(static_cast<int >(result));
9994 }
9995 return resultobj;
9996 fail:
9997 return NULL;
9998 }
9999
10000
10001 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj = NULL;
10003 wxFont *arg1 = (wxFont *) 0 ;
10004 int result;
10005 PyObject * obj0 = 0 ;
10006 char *kwnames[] = {
10007 (char *) "self", NULL
10008 };
10009
10010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
10011 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10012 if (SWIG_arg_fail(1)) SWIG_fail;
10013 {
10014 PyThreadState* __tstate = wxPyBeginAllowThreads();
10015 result = (int)((wxFont const *)arg1)->GetWeight();
10016
10017 wxPyEndAllowThreads(__tstate);
10018 if (PyErr_Occurred()) SWIG_fail;
10019 }
10020 {
10021 resultobj = SWIG_From_int(static_cast<int >(result));
10022 }
10023 return resultobj;
10024 fail:
10025 return NULL;
10026 }
10027
10028
10029 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10030 PyObject *resultobj = NULL;
10031 wxFont *arg1 = (wxFont *) 0 ;
10032 bool result;
10033 PyObject * obj0 = 0 ;
10034 char *kwnames[] = {
10035 (char *) "self", NULL
10036 };
10037
10038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
10039 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10040 if (SWIG_arg_fail(1)) SWIG_fail;
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 result = (bool)((wxFont const *)arg1)->GetUnderlined();
10044
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 {
10049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10050 }
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = NULL;
10059 wxFont *arg1 = (wxFont *) 0 ;
10060 wxString result;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
10067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10068 if (SWIG_arg_fail(1)) SWIG_fail;
10069 {
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 result = ((wxFont const *)arg1)->GetFaceName();
10072
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 {
10077 #if wxUSE_UNICODE
10078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10079 #else
10080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10081 #endif
10082 }
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj = NULL;
10091 wxFont *arg1 = (wxFont *) 0 ;
10092 wxFontEncoding result;
10093 PyObject * obj0 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
10099 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10100 if (SWIG_arg_fail(1)) SWIG_fail;
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
10104
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 resultobj = SWIG_From_int((result));
10109 return resultobj;
10110 fail:
10111 return NULL;
10112 }
10113
10114
10115 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10116 PyObject *resultobj = NULL;
10117 wxFont *arg1 = (wxFont *) 0 ;
10118 wxNativeFontInfo *result;
10119 PyObject * obj0 = 0 ;
10120 char *kwnames[] = {
10121 (char *) "self", NULL
10122 };
10123
10124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
10125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10126 if (SWIG_arg_fail(1)) SWIG_fail;
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
10130
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj = NULL;
10143 wxFont *arg1 = (wxFont *) 0 ;
10144 bool result;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
10151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10152 if (SWIG_arg_fail(1)) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 {
10161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10162 }
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj = NULL;
10171 wxFont *arg1 = (wxFont *) 0 ;
10172 wxString result;
10173 PyObject * obj0 = 0 ;
10174 char *kwnames[] = {
10175 (char *) "self", NULL
10176 };
10177
10178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10179 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10180 if (SWIG_arg_fail(1)) SWIG_fail;
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 {
10189 #if wxUSE_UNICODE
10190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10191 #else
10192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10193 #endif
10194 }
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj = NULL;
10203 wxFont *arg1 = (wxFont *) 0 ;
10204 wxString result;
10205 PyObject * obj0 = 0 ;
10206 char *kwnames[] = {
10207 (char *) "self", NULL
10208 };
10209
10210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10212 if (SWIG_arg_fail(1)) SWIG_fail;
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
10216
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 {
10221 #if wxUSE_UNICODE
10222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10223 #else
10224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10225 #endif
10226 }
10227 return resultobj;
10228 fail:
10229 return NULL;
10230 }
10231
10232
10233 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10234 PyObject *resultobj = NULL;
10235 wxFont *arg1 = (wxFont *) 0 ;
10236 int arg2 ;
10237 PyObject * obj0 = 0 ;
10238 PyObject * obj1 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self",(char *) "pointSize", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10244 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10245 if (SWIG_arg_fail(1)) SWIG_fail;
10246 {
10247 arg2 = static_cast<int >(SWIG_As_int(obj1));
10248 if (SWIG_arg_fail(2)) SWIG_fail;
10249 }
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 (arg1)->SetPointSize(arg2);
10253
10254 wxPyEndAllowThreads(__tstate);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 Py_INCREF(Py_None); resultobj = Py_None;
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj = NULL;
10266 wxFont *arg1 = (wxFont *) 0 ;
10267 wxSize *arg2 = 0 ;
10268 wxSize temp2 ;
10269 PyObject * obj0 = 0 ;
10270 PyObject * obj1 = 0 ;
10271 char *kwnames[] = {
10272 (char *) "self",(char *) "pixelSize", NULL
10273 };
10274
10275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10276 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10277 if (SWIG_arg_fail(1)) SWIG_fail;
10278 {
10279 arg2 = &temp2;
10280 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10281 }
10282 {
10283 PyThreadState* __tstate = wxPyBeginAllowThreads();
10284 (arg1)->SetPixelSize((wxSize const &)*arg2);
10285
10286 wxPyEndAllowThreads(__tstate);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 Py_INCREF(Py_None); resultobj = Py_None;
10290 return resultobj;
10291 fail:
10292 return NULL;
10293 }
10294
10295
10296 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10297 PyObject *resultobj = NULL;
10298 wxFont *arg1 = (wxFont *) 0 ;
10299 int arg2 ;
10300 PyObject * obj0 = 0 ;
10301 PyObject * obj1 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "self",(char *) "family", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10307 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10308 if (SWIG_arg_fail(1)) SWIG_fail;
10309 {
10310 arg2 = static_cast<int >(SWIG_As_int(obj1));
10311 if (SWIG_arg_fail(2)) SWIG_fail;
10312 }
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 (arg1)->SetFamily(arg2);
10316
10317 wxPyEndAllowThreads(__tstate);
10318 if (PyErr_Occurred()) SWIG_fail;
10319 }
10320 Py_INCREF(Py_None); resultobj = Py_None;
10321 return resultobj;
10322 fail:
10323 return NULL;
10324 }
10325
10326
10327 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10328 PyObject *resultobj = NULL;
10329 wxFont *arg1 = (wxFont *) 0 ;
10330 int arg2 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 char *kwnames[] = {
10334 (char *) "self",(char *) "style", NULL
10335 };
10336
10337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10338 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10339 if (SWIG_arg_fail(1)) SWIG_fail;
10340 {
10341 arg2 = static_cast<int >(SWIG_As_int(obj1));
10342 if (SWIG_arg_fail(2)) SWIG_fail;
10343 }
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 (arg1)->SetStyle(arg2);
10347
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 Py_INCREF(Py_None); resultobj = Py_None;
10352 return resultobj;
10353 fail:
10354 return NULL;
10355 }
10356
10357
10358 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10359 PyObject *resultobj = NULL;
10360 wxFont *arg1 = (wxFont *) 0 ;
10361 int arg2 ;
10362 PyObject * obj0 = 0 ;
10363 PyObject * obj1 = 0 ;
10364 char *kwnames[] = {
10365 (char *) "self",(char *) "weight", NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10369 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10370 if (SWIG_arg_fail(1)) SWIG_fail;
10371 {
10372 arg2 = static_cast<int >(SWIG_As_int(obj1));
10373 if (SWIG_arg_fail(2)) SWIG_fail;
10374 }
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 (arg1)->SetWeight(arg2);
10378
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 Py_INCREF(Py_None); resultobj = Py_None;
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10390 PyObject *resultobj = NULL;
10391 wxFont *arg1 = (wxFont *) 0 ;
10392 wxString *arg2 = 0 ;
10393 bool temp2 = false ;
10394 PyObject * obj0 = 0 ;
10395 PyObject * obj1 = 0 ;
10396 char *kwnames[] = {
10397 (char *) "self",(char *) "faceName", NULL
10398 };
10399
10400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10401 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10402 if (SWIG_arg_fail(1)) SWIG_fail;
10403 {
10404 arg2 = wxString_in_helper(obj1);
10405 if (arg2 == NULL) SWIG_fail;
10406 temp2 = true;
10407 }
10408 {
10409 PyThreadState* __tstate = wxPyBeginAllowThreads();
10410 (arg1)->SetFaceName((wxString const &)*arg2);
10411
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 Py_INCREF(Py_None); resultobj = Py_None;
10416 {
10417 if (temp2)
10418 delete arg2;
10419 }
10420 return resultobj;
10421 fail:
10422 {
10423 if (temp2)
10424 delete arg2;
10425 }
10426 return NULL;
10427 }
10428
10429
10430 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10431 PyObject *resultobj = NULL;
10432 wxFont *arg1 = (wxFont *) 0 ;
10433 bool arg2 ;
10434 PyObject * obj0 = 0 ;
10435 PyObject * obj1 = 0 ;
10436 char *kwnames[] = {
10437 (char *) "self",(char *) "underlined", NULL
10438 };
10439
10440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
10441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10442 if (SWIG_arg_fail(1)) SWIG_fail;
10443 {
10444 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10445 if (SWIG_arg_fail(2)) SWIG_fail;
10446 }
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 (arg1)->SetUnderlined(arg2);
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 Py_INCREF(Py_None); resultobj = Py_None;
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj = NULL;
10463 wxFont *arg1 = (wxFont *) 0 ;
10464 wxFontEncoding arg2 ;
10465 PyObject * obj0 = 0 ;
10466 PyObject * obj1 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self",(char *) "encoding", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
10472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10473 if (SWIG_arg_fail(1)) SWIG_fail;
10474 {
10475 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
10476 if (SWIG_arg_fail(2)) SWIG_fail;
10477 }
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 (arg1)->SetEncoding(arg2);
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 Py_INCREF(Py_None); resultobj = Py_None;
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj = NULL;
10494 wxFont *arg1 = (wxFont *) 0 ;
10495 wxNativeFontInfo *arg2 = 0 ;
10496 PyObject * obj0 = 0 ;
10497 PyObject * obj1 = 0 ;
10498 char *kwnames[] = {
10499 (char *) "self",(char *) "info", NULL
10500 };
10501
10502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
10503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10504 if (SWIG_arg_fail(1)) SWIG_fail;
10505 {
10506 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10507 if (SWIG_arg_fail(2)) SWIG_fail;
10508 if (arg2 == NULL) {
10509 SWIG_null_ref("wxNativeFontInfo");
10510 }
10511 if (SWIG_arg_fail(2)) SWIG_fail;
10512 }
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
10516
10517 wxPyEndAllowThreads(__tstate);
10518 if (PyErr_Occurred()) SWIG_fail;
10519 }
10520 Py_INCREF(Py_None); resultobj = Py_None;
10521 return resultobj;
10522 fail:
10523 return NULL;
10524 }
10525
10526
10527 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
10528 PyObject *resultobj = NULL;
10529 wxFont *arg1 = (wxFont *) 0 ;
10530 wxString *arg2 = 0 ;
10531 bool temp2 = false ;
10532 PyObject * obj0 = 0 ;
10533 PyObject * obj1 = 0 ;
10534 char *kwnames[] = {
10535 (char *) "self",(char *) "info", NULL
10536 };
10537
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
10539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10540 if (SWIG_arg_fail(1)) SWIG_fail;
10541 {
10542 arg2 = wxString_in_helper(obj1);
10543 if (arg2 == NULL) SWIG_fail;
10544 temp2 = true;
10545 }
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
10549
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
10553 Py_INCREF(Py_None); resultobj = Py_None;
10554 {
10555 if (temp2)
10556 delete arg2;
10557 }
10558 return resultobj;
10559 fail:
10560 {
10561 if (temp2)
10562 delete arg2;
10563 }
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj = NULL;
10570 wxFont *arg1 = (wxFont *) 0 ;
10571 wxString *arg2 = 0 ;
10572 bool temp2 = false ;
10573 PyObject * obj0 = 0 ;
10574 PyObject * obj1 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self",(char *) "info", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
10580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10581 if (SWIG_arg_fail(1)) SWIG_fail;
10582 {
10583 arg2 = wxString_in_helper(obj1);
10584 if (arg2 == NULL) SWIG_fail;
10585 temp2 = true;
10586 }
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
10590
10591 wxPyEndAllowThreads(__tstate);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 Py_INCREF(Py_None); resultobj = Py_None;
10595 {
10596 if (temp2)
10597 delete arg2;
10598 }
10599 return resultobj;
10600 fail:
10601 {
10602 if (temp2)
10603 delete arg2;
10604 }
10605 return NULL;
10606 }
10607
10608
10609 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
10610 PyObject *resultobj = NULL;
10611 wxFont *arg1 = (wxFont *) 0 ;
10612 wxString result;
10613 PyObject * obj0 = 0 ;
10614 char *kwnames[] = {
10615 (char *) "self", NULL
10616 };
10617
10618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
10619 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10620 if (SWIG_arg_fail(1)) SWIG_fail;
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = ((wxFont const *)arg1)->GetFamilyString();
10624
10625 wxPyEndAllowThreads(__tstate);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 }
10628 {
10629 #if wxUSE_UNICODE
10630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10631 #else
10632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10633 #endif
10634 }
10635 return resultobj;
10636 fail:
10637 return NULL;
10638 }
10639
10640
10641 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj = NULL;
10643 wxFont *arg1 = (wxFont *) 0 ;
10644 wxString result;
10645 PyObject * obj0 = 0 ;
10646 char *kwnames[] = {
10647 (char *) "self", NULL
10648 };
10649
10650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
10651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10652 if (SWIG_arg_fail(1)) SWIG_fail;
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 result = ((wxFont const *)arg1)->GetStyleString();
10656
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 {
10661 #if wxUSE_UNICODE
10662 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10663 #else
10664 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10665 #endif
10666 }
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj = NULL;
10675 wxFont *arg1 = (wxFont *) 0 ;
10676 wxString result;
10677 PyObject * obj0 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
10683 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10684 if (SWIG_arg_fail(1)) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = ((wxFont const *)arg1)->GetWeightString();
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 #if wxUSE_UNICODE
10694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10695 #else
10696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10697 #endif
10698 }
10699 return resultobj;
10700 fail:
10701 return NULL;
10702 }
10703
10704
10705 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj = NULL;
10707 wxFont *arg1 = (wxFont *) 0 ;
10708 bool arg2 = (bool) true ;
10709 PyObject * obj0 = 0 ;
10710 PyObject * obj1 = 0 ;
10711 char *kwnames[] = {
10712 (char *) "self",(char *) "no", NULL
10713 };
10714
10715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
10716 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10717 if (SWIG_arg_fail(1)) SWIG_fail;
10718 if (obj1) {
10719 {
10720 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
10721 if (SWIG_arg_fail(2)) SWIG_fail;
10722 }
10723 }
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 (arg1)->SetNoAntiAliasing(arg2);
10727
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 Py_INCREF(Py_None); resultobj = Py_None;
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj = NULL;
10740 wxFont *arg1 = (wxFont *) 0 ;
10741 bool result;
10742 PyObject * obj0 = 0 ;
10743 char *kwnames[] = {
10744 (char *) "self", NULL
10745 };
10746
10747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
10748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10749 if (SWIG_arg_fail(1)) SWIG_fail;
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 {
10758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10759 }
10760 return resultobj;
10761 fail:
10762 return NULL;
10763 }
10764
10765
10766 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10767 PyObject *resultobj = NULL;
10768 wxFontEncoding result;
10769 char *kwnames[] = {
10770 NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
10774 {
10775 if (!wxPyCheckForApp()) SWIG_fail;
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
10778
10779 wxPyEndAllowThreads(__tstate);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 }
10782 resultobj = SWIG_From_int((result));
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj = NULL;
10791 wxFontEncoding arg1 ;
10792 PyObject * obj0 = 0 ;
10793 char *kwnames[] = {
10794 (char *) "encoding", NULL
10795 };
10796
10797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
10798 {
10799 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
10800 if (SWIG_arg_fail(1)) SWIG_fail;
10801 }
10802 {
10803 if (!wxPyCheckForApp()) SWIG_fail;
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 wxFont::SetDefaultEncoding(arg1);
10806
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 Py_INCREF(Py_None); resultobj = Py_None;
10811 return resultobj;
10812 fail:
10813 return NULL;
10814 }
10815
10816
10817 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
10818 PyObject *obj;
10819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10820 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
10821 Py_INCREF(obj);
10822 return Py_BuildValue((char *)"");
10823 }
10824 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
10825 PyObject *resultobj = NULL;
10826 wxPyFontEnumerator *result;
10827 char *kwnames[] = {
10828 NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
10832 {
10833 if (!wxPyCheckForApp()) SWIG_fail;
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
10841 return resultobj;
10842 fail:
10843 return NULL;
10844 }
10845
10846
10847 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj = NULL;
10849 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10850 PyObject * obj0 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
10856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10857 if (SWIG_arg_fail(1)) SWIG_fail;
10858 {
10859 PyThreadState* __tstate = wxPyBeginAllowThreads();
10860 delete arg1;
10861
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
10865 Py_INCREF(Py_None); resultobj = Py_None;
10866 return resultobj;
10867 fail:
10868 return NULL;
10869 }
10870
10871
10872 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10873 PyObject *resultobj = NULL;
10874 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10875 PyObject *arg2 = (PyObject *) 0 ;
10876 PyObject *arg3 = (PyObject *) 0 ;
10877 bool arg4 ;
10878 PyObject * obj0 = 0 ;
10879 PyObject * obj1 = 0 ;
10880 PyObject * obj2 = 0 ;
10881 PyObject * obj3 = 0 ;
10882 char *kwnames[] = {
10883 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
10884 };
10885
10886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10887 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10888 if (SWIG_arg_fail(1)) SWIG_fail;
10889 arg2 = obj1;
10890 arg3 = obj2;
10891 {
10892 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
10893 if (SWIG_arg_fail(4)) SWIG_fail;
10894 }
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
10898
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 Py_INCREF(Py_None); resultobj = Py_None;
10903 return resultobj;
10904 fail:
10905 return NULL;
10906 }
10907
10908
10909 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
10910 PyObject *resultobj = NULL;
10911 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10912 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
10913 bool arg3 = (bool) false ;
10914 bool result;
10915 PyObject * obj0 = 0 ;
10916 PyObject * obj1 = 0 ;
10917 PyObject * obj2 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
10923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10924 if (SWIG_arg_fail(1)) SWIG_fail;
10925 if (obj1) {
10926 {
10927 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
10928 if (SWIG_arg_fail(2)) SWIG_fail;
10929 }
10930 }
10931 if (obj2) {
10932 {
10933 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
10934 if (SWIG_arg_fail(3)) SWIG_fail;
10935 }
10936 }
10937 {
10938 PyThreadState* __tstate = wxPyBeginAllowThreads();
10939 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
10940
10941 wxPyEndAllowThreads(__tstate);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 }
10944 {
10945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10946 }
10947 return resultobj;
10948 fail:
10949 return NULL;
10950 }
10951
10952
10953 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
10954 PyObject *resultobj = NULL;
10955 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
10956 wxString const &arg2_defvalue = wxPyEmptyString ;
10957 wxString *arg2 = (wxString *) &arg2_defvalue ;
10958 bool result;
10959 bool temp2 = false ;
10960 PyObject * obj0 = 0 ;
10961 PyObject * obj1 = 0 ;
10962 char *kwnames[] = {
10963 (char *) "self",(char *) "facename", NULL
10964 };
10965
10966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
10967 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
10968 if (SWIG_arg_fail(1)) SWIG_fail;
10969 if (obj1) {
10970 {
10971 arg2 = wxString_in_helper(obj1);
10972 if (arg2 == NULL) SWIG_fail;
10973 temp2 = true;
10974 }
10975 }
10976 {
10977 PyThreadState* __tstate = wxPyBeginAllowThreads();
10978 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
10979
10980 wxPyEndAllowThreads(__tstate);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 {
10984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10985 }
10986 {
10987 if (temp2)
10988 delete arg2;
10989 }
10990 return resultobj;
10991 fail:
10992 {
10993 if (temp2)
10994 delete arg2;
10995 }
10996 return NULL;
10997 }
10998
10999
11000 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
11001 PyObject *resultobj = NULL;
11002 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11003 PyObject *result;
11004 PyObject * obj0 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self", NULL
11007 };
11008
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
11010 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11011 if (SWIG_arg_fail(1)) SWIG_fail;
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
11015
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 resultobj = result;
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj = NULL;
11028 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11029 PyObject *result;
11030 PyObject * obj0 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self", NULL
11033 };
11034
11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
11036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11037 if (SWIG_arg_fail(1)) SWIG_fail;
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 resultobj = result;
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
11053 PyObject *obj;
11054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11055 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
11056 Py_INCREF(obj);
11057 return Py_BuildValue((char *)"");
11058 }
11059 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
11060 PyObject *resultobj = NULL;
11061 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11062 int arg2 ;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 char *kwnames[] = {
11066 (char *) "self",(char *) "Language", NULL
11067 };
11068
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
11070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11071 if (SWIG_arg_fail(1)) SWIG_fail;
11072 {
11073 arg2 = static_cast<int >(SWIG_As_int(obj1));
11074 if (SWIG_arg_fail(2)) SWIG_fail;
11075 }
11076 if (arg1) (arg1)->Language = arg2;
11077
11078 Py_INCREF(Py_None); resultobj = Py_None;
11079 return resultobj;
11080 fail:
11081 return NULL;
11082 }
11083
11084
11085 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj = NULL;
11087 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11088 int result;
11089 PyObject * obj0 = 0 ;
11090 char *kwnames[] = {
11091 (char *) "self", NULL
11092 };
11093
11094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
11095 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11096 if (SWIG_arg_fail(1)) SWIG_fail;
11097 result = (int) ((arg1)->Language);
11098
11099 {
11100 resultobj = SWIG_From_int(static_cast<int >(result));
11101 }
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj = NULL;
11110 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11111 wxString *arg2 = (wxString *) 0 ;
11112 bool temp2 = false ;
11113 PyObject * obj0 = 0 ;
11114 PyObject * obj1 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self",(char *) "CanonicalName", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
11120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11121 if (SWIG_arg_fail(1)) SWIG_fail;
11122 {
11123 arg2 = wxString_in_helper(obj1);
11124 if (arg2 == NULL) SWIG_fail;
11125 temp2 = true;
11126 }
11127 if (arg1) (arg1)->CanonicalName = *arg2;
11128
11129 Py_INCREF(Py_None); resultobj = Py_None;
11130 {
11131 if (temp2)
11132 delete arg2;
11133 }
11134 return resultobj;
11135 fail:
11136 {
11137 if (temp2)
11138 delete arg2;
11139 }
11140 return NULL;
11141 }
11142
11143
11144 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
11145 PyObject *resultobj = NULL;
11146 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11147 wxString *result;
11148 PyObject * obj0 = 0 ;
11149 char *kwnames[] = {
11150 (char *) "self", NULL
11151 };
11152
11153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
11154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11155 if (SWIG_arg_fail(1)) SWIG_fail;
11156 result = (wxString *)& ((arg1)->CanonicalName);
11157
11158 {
11159 #if wxUSE_UNICODE
11160 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11161 #else
11162 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11163 #endif
11164 }
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = NULL;
11173 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11174 wxString *arg2 = (wxString *) 0 ;
11175 bool temp2 = false ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 char *kwnames[] = {
11179 (char *) "self",(char *) "Description", NULL
11180 };
11181
11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11184 if (SWIG_arg_fail(1)) SWIG_fail;
11185 {
11186 arg2 = wxString_in_helper(obj1);
11187 if (arg2 == NULL) SWIG_fail;
11188 temp2 = true;
11189 }
11190 if (arg1) (arg1)->Description = *arg2;
11191
11192 Py_INCREF(Py_None); resultobj = Py_None;
11193 {
11194 if (temp2)
11195 delete arg2;
11196 }
11197 return resultobj;
11198 fail:
11199 {
11200 if (temp2)
11201 delete arg2;
11202 }
11203 return NULL;
11204 }
11205
11206
11207 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
11208 PyObject *resultobj = NULL;
11209 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11210 wxString *result;
11211 PyObject * obj0 = 0 ;
11212 char *kwnames[] = {
11213 (char *) "self", NULL
11214 };
11215
11216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11218 if (SWIG_arg_fail(1)) SWIG_fail;
11219 result = (wxString *)& ((arg1)->Description);
11220
11221 {
11222 #if wxUSE_UNICODE
11223 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11224 #else
11225 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11226 #endif
11227 }
11228 return resultobj;
11229 fail:
11230 return NULL;
11231 }
11232
11233
11234 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11235 PyObject *obj;
11236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11237 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11238 Py_INCREF(obj);
11239 return Py_BuildValue((char *)"");
11240 }
11241 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = NULL;
11243 int arg1 = (int) -1 ;
11244 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11245 wxLocale *result;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 char *kwnames[] = {
11249 (char *) "language",(char *) "flags", NULL
11250 };
11251
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11253 if (obj0) {
11254 {
11255 arg1 = static_cast<int >(SWIG_As_int(obj0));
11256 if (SWIG_arg_fail(1)) SWIG_fail;
11257 }
11258 }
11259 if (obj1) {
11260 {
11261 arg2 = static_cast<int >(SWIG_As_int(obj1));
11262 if (SWIG_arg_fail(2)) SWIG_fail;
11263 }
11264 }
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (wxLocale *)new_wxLocale(arg1,arg2);
11268
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj = NULL;
11281 wxLocale *arg1 = (wxLocale *) 0 ;
11282 PyObject * obj0 = 0 ;
11283 char *kwnames[] = {
11284 (char *) "self", NULL
11285 };
11286
11287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11289 if (SWIG_arg_fail(1)) SWIG_fail;
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 delete arg1;
11293
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 Py_INCREF(Py_None); resultobj = Py_None;
11298 return resultobj;
11299 fail:
11300 return NULL;
11301 }
11302
11303
11304 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj = NULL;
11306 wxLocale *arg1 = (wxLocale *) 0 ;
11307 wxString *arg2 = 0 ;
11308 wxString const &arg3_defvalue = wxPyEmptyString ;
11309 wxString *arg3 = (wxString *) &arg3_defvalue ;
11310 wxString const &arg4_defvalue = wxPyEmptyString ;
11311 wxString *arg4 = (wxString *) &arg4_defvalue ;
11312 bool arg5 = (bool) true ;
11313 bool arg6 = (bool) false ;
11314 bool result;
11315 bool temp2 = false ;
11316 bool temp3 = false ;
11317 bool temp4 = false ;
11318 PyObject * obj0 = 0 ;
11319 PyObject * obj1 = 0 ;
11320 PyObject * obj2 = 0 ;
11321 PyObject * obj3 = 0 ;
11322 PyObject * obj4 = 0 ;
11323 PyObject * obj5 = 0 ;
11324 char *kwnames[] = {
11325 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
11326 };
11327
11328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11329 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11330 if (SWIG_arg_fail(1)) SWIG_fail;
11331 {
11332 arg2 = wxString_in_helper(obj1);
11333 if (arg2 == NULL) SWIG_fail;
11334 temp2 = true;
11335 }
11336 if (obj2) {
11337 {
11338 arg3 = wxString_in_helper(obj2);
11339 if (arg3 == NULL) SWIG_fail;
11340 temp3 = true;
11341 }
11342 }
11343 if (obj3) {
11344 {
11345 arg4 = wxString_in_helper(obj3);
11346 if (arg4 == NULL) SWIG_fail;
11347 temp4 = true;
11348 }
11349 }
11350 if (obj4) {
11351 {
11352 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
11353 if (SWIG_arg_fail(5)) SWIG_fail;
11354 }
11355 }
11356 if (obj5) {
11357 {
11358 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
11359 if (SWIG_arg_fail(6)) SWIG_fail;
11360 }
11361 }
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11371 }
11372 {
11373 if (temp2)
11374 delete arg2;
11375 }
11376 {
11377 if (temp3)
11378 delete arg3;
11379 }
11380 {
11381 if (temp4)
11382 delete arg4;
11383 }
11384 return resultobj;
11385 fail:
11386 {
11387 if (temp2)
11388 delete arg2;
11389 }
11390 {
11391 if (temp3)
11392 delete arg3;
11393 }
11394 {
11395 if (temp4)
11396 delete arg4;
11397 }
11398 return NULL;
11399 }
11400
11401
11402 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj = NULL;
11404 wxLocale *arg1 = (wxLocale *) 0 ;
11405 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11406 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11407 bool result;
11408 PyObject * obj0 = 0 ;
11409 PyObject * obj1 = 0 ;
11410 PyObject * obj2 = 0 ;
11411 char *kwnames[] = {
11412 (char *) "self",(char *) "language",(char *) "flags", NULL
11413 };
11414
11415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
11416 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11417 if (SWIG_arg_fail(1)) SWIG_fail;
11418 if (obj1) {
11419 {
11420 arg2 = static_cast<int >(SWIG_As_int(obj1));
11421 if (SWIG_arg_fail(2)) SWIG_fail;
11422 }
11423 }
11424 if (obj2) {
11425 {
11426 arg3 = static_cast<int >(SWIG_As_int(obj2));
11427 if (SWIG_arg_fail(3)) SWIG_fail;
11428 }
11429 }
11430 {
11431 PyThreadState* __tstate = wxPyBeginAllowThreads();
11432 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
11433
11434 wxPyEndAllowThreads(__tstate);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 {
11438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11439 }
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11447 PyObject *resultobj = NULL;
11448 int result;
11449 char *kwnames[] = {
11450 NULL
11451 };
11452
11453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (int)wxLocale::GetSystemLanguage();
11457
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 {
11462 resultobj = SWIG_From_int(static_cast<int >(result));
11463 }
11464 return resultobj;
11465 fail:
11466 return NULL;
11467 }
11468
11469
11470 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11471 PyObject *resultobj = NULL;
11472 wxFontEncoding result;
11473 char *kwnames[] = {
11474 NULL
11475 };
11476
11477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
11478 {
11479 PyThreadState* __tstate = wxPyBeginAllowThreads();
11480 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
11481
11482 wxPyEndAllowThreads(__tstate);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 resultobj = SWIG_From_int((result));
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
11493 PyObject *resultobj = NULL;
11494 wxString result;
11495 char *kwnames[] = {
11496 NULL
11497 };
11498
11499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = wxLocale::GetSystemEncodingName();
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 #if wxUSE_UNICODE
11509 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11510 #else
11511 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11512 #endif
11513 }
11514 return resultobj;
11515 fail:
11516 return NULL;
11517 }
11518
11519
11520 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj = NULL;
11522 wxLocale *arg1 = (wxLocale *) 0 ;
11523 bool result;
11524 PyObject * obj0 = 0 ;
11525 char *kwnames[] = {
11526 (char *) "self", NULL
11527 };
11528
11529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
11530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11531 if (SWIG_arg_fail(1)) SWIG_fail;
11532 {
11533 PyThreadState* __tstate = wxPyBeginAllowThreads();
11534 result = (bool)((wxLocale const *)arg1)->IsOk();
11535
11536 wxPyEndAllowThreads(__tstate);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 }
11539 {
11540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11541 }
11542 return resultobj;
11543 fail:
11544 return NULL;
11545 }
11546
11547
11548 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
11549 PyObject *resultobj = NULL;
11550 wxLocale *arg1 = (wxLocale *) 0 ;
11551 wxString result;
11552 PyObject * obj0 = 0 ;
11553 char *kwnames[] = {
11554 (char *) "self", NULL
11555 };
11556
11557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
11558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11559 if (SWIG_arg_fail(1)) SWIG_fail;
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = ((wxLocale const *)arg1)->GetLocale();
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 {
11568 #if wxUSE_UNICODE
11569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11570 #else
11571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11572 #endif
11573 }
11574 return resultobj;
11575 fail:
11576 return NULL;
11577 }
11578
11579
11580 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11581 PyObject *resultobj = NULL;
11582 wxLocale *arg1 = (wxLocale *) 0 ;
11583 int result;
11584 PyObject * obj0 = 0 ;
11585 char *kwnames[] = {
11586 (char *) "self", NULL
11587 };
11588
11589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
11590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11591 if (SWIG_arg_fail(1)) SWIG_fail;
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 result = (int)((wxLocale const *)arg1)->GetLanguage();
11595
11596 wxPyEndAllowThreads(__tstate);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 {
11600 resultobj = SWIG_From_int(static_cast<int >(result));
11601 }
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj = NULL;
11610 wxLocale *arg1 = (wxLocale *) 0 ;
11611 wxString result;
11612 PyObject * obj0 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
11618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11619 if (SWIG_arg_fail(1)) SWIG_fail;
11620 {
11621 PyThreadState* __tstate = wxPyBeginAllowThreads();
11622 result = ((wxLocale const *)arg1)->GetSysName();
11623
11624 wxPyEndAllowThreads(__tstate);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 }
11627 {
11628 #if wxUSE_UNICODE
11629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11630 #else
11631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11632 #endif
11633 }
11634 return resultobj;
11635 fail:
11636 return NULL;
11637 }
11638
11639
11640 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
11641 PyObject *resultobj = NULL;
11642 wxLocale *arg1 = (wxLocale *) 0 ;
11643 wxString result;
11644 PyObject * obj0 = 0 ;
11645 char *kwnames[] = {
11646 (char *) "self", NULL
11647 };
11648
11649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
11650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11651 if (SWIG_arg_fail(1)) SWIG_fail;
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = ((wxLocale const *)arg1)->GetCanonicalName();
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 {
11660 #if wxUSE_UNICODE
11661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11662 #else
11663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11664 #endif
11665 }
11666 return resultobj;
11667 fail:
11668 return NULL;
11669 }
11670
11671
11672 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj = NULL;
11674 wxString *arg1 = 0 ;
11675 bool temp1 = false ;
11676 PyObject * obj0 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "prefix", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
11682 {
11683 arg1 = wxString_in_helper(obj0);
11684 if (arg1 == NULL) SWIG_fail;
11685 temp1 = true;
11686 }
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
11690
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 }
11694 Py_INCREF(Py_None); resultobj = Py_None;
11695 {
11696 if (temp1)
11697 delete arg1;
11698 }
11699 return resultobj;
11700 fail:
11701 {
11702 if (temp1)
11703 delete arg1;
11704 }
11705 return NULL;
11706 }
11707
11708
11709 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
11710 PyObject *resultobj = NULL;
11711 wxLocale *arg1 = (wxLocale *) 0 ;
11712 wxString *arg2 = 0 ;
11713 bool result;
11714 bool temp2 = false ;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 char *kwnames[] = {
11718 (char *) "self",(char *) "szDomain", NULL
11719 };
11720
11721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
11722 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11723 if (SWIG_arg_fail(1)) SWIG_fail;
11724 {
11725 arg2 = wxString_in_helper(obj1);
11726 if (arg2 == NULL) SWIG_fail;
11727 temp2 = true;
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 {
11737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11738 }
11739 {
11740 if (temp2)
11741 delete arg2;
11742 }
11743 return resultobj;
11744 fail:
11745 {
11746 if (temp2)
11747 delete arg2;
11748 }
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj = NULL;
11755 wxLocale *arg1 = (wxLocale *) 0 ;
11756 wxString *arg2 = 0 ;
11757 bool result;
11758 bool temp2 = false ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 char *kwnames[] = {
11762 (char *) "self",(char *) "szDomain", NULL
11763 };
11764
11765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
11766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11767 if (SWIG_arg_fail(1)) SWIG_fail;
11768 {
11769 arg2 = wxString_in_helper(obj1);
11770 if (arg2 == NULL) SWIG_fail;
11771 temp2 = true;
11772 }
11773 {
11774 PyThreadState* __tstate = wxPyBeginAllowThreads();
11775 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
11776
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 {
11781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11782 }
11783 {
11784 if (temp2)
11785 delete arg2;
11786 }
11787 return resultobj;
11788 fail:
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
11793 return NULL;
11794 }
11795
11796
11797 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj = NULL;
11799 int arg1 ;
11800 wxLanguageInfo *result;
11801 PyObject * obj0 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "lang", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
11807 {
11808 arg1 = static_cast<int >(SWIG_As_int(obj0));
11809 if (SWIG_arg_fail(1)) SWIG_fail;
11810 }
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
11814
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
11819 return resultobj;
11820 fail:
11821 return NULL;
11822 }
11823
11824
11825 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
11826 PyObject *resultobj = NULL;
11827 int arg1 ;
11828 wxString result;
11829 PyObject * obj0 = 0 ;
11830 char *kwnames[] = {
11831 (char *) "lang", NULL
11832 };
11833
11834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
11835 {
11836 arg1 = static_cast<int >(SWIG_As_int(obj0));
11837 if (SWIG_arg_fail(1)) SWIG_fail;
11838 }
11839 {
11840 PyThreadState* __tstate = wxPyBeginAllowThreads();
11841 result = wxLocale::GetLanguageName(arg1);
11842
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 {
11847 #if wxUSE_UNICODE
11848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11849 #else
11850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11851 #endif
11852 }
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj = NULL;
11861 wxString *arg1 = 0 ;
11862 wxLanguageInfo *result;
11863 bool temp1 = false ;
11864 PyObject * obj0 = 0 ;
11865 char *kwnames[] = {
11866 (char *) "locale", NULL
11867 };
11868
11869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
11870 {
11871 arg1 = wxString_in_helper(obj0);
11872 if (arg1 == NULL) SWIG_fail;
11873 temp1 = true;
11874 }
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
11883 {
11884 if (temp1)
11885 delete arg1;
11886 }
11887 return resultobj;
11888 fail:
11889 {
11890 if (temp1)
11891 delete arg1;
11892 }
11893 return NULL;
11894 }
11895
11896
11897 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj = NULL;
11899 wxLanguageInfo *arg1 = 0 ;
11900 PyObject * obj0 = 0 ;
11901 char *kwnames[] = {
11902 (char *) "info", NULL
11903 };
11904
11905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
11906 {
11907 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11908 if (SWIG_arg_fail(1)) SWIG_fail;
11909 if (arg1 == NULL) {
11910 SWIG_null_ref("wxLanguageInfo");
11911 }
11912 if (SWIG_arg_fail(1)) SWIG_fail;
11913 }
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 Py_INCREF(Py_None); resultobj = Py_None;
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj = NULL;
11930 wxLocale *arg1 = (wxLocale *) 0 ;
11931 wxString *arg2 = 0 ;
11932 wxString const &arg3_defvalue = wxPyEmptyString ;
11933 wxString *arg3 = (wxString *) &arg3_defvalue ;
11934 wxString result;
11935 bool temp2 = false ;
11936 bool temp3 = false ;
11937 PyObject * obj0 = 0 ;
11938 PyObject * obj1 = 0 ;
11939 PyObject * obj2 = 0 ;
11940 char *kwnames[] = {
11941 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
11942 };
11943
11944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
11945 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11946 if (SWIG_arg_fail(1)) SWIG_fail;
11947 {
11948 arg2 = wxString_in_helper(obj1);
11949 if (arg2 == NULL) SWIG_fail;
11950 temp2 = true;
11951 }
11952 if (obj2) {
11953 {
11954 arg3 = wxString_in_helper(obj2);
11955 if (arg3 == NULL) SWIG_fail;
11956 temp3 = true;
11957 }
11958 }
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
11962
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 {
11967 #if wxUSE_UNICODE
11968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11969 #else
11970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11971 #endif
11972 }
11973 {
11974 if (temp2)
11975 delete arg2;
11976 }
11977 {
11978 if (temp3)
11979 delete arg3;
11980 }
11981 return resultobj;
11982 fail:
11983 {
11984 if (temp2)
11985 delete arg2;
11986 }
11987 {
11988 if (temp3)
11989 delete arg3;
11990 }
11991 return NULL;
11992 }
11993
11994
11995 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
11996 PyObject *resultobj = NULL;
11997 wxLocale *arg1 = (wxLocale *) 0 ;
11998 wxString *result;
11999 PyObject * obj0 = 0 ;
12000 char *kwnames[] = {
12001 (char *) "self", NULL
12002 };
12003
12004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
12005 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12006 if (SWIG_arg_fail(1)) SWIG_fail;
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 {
12010 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
12011 result = (wxString *) &_result_ref;
12012 }
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 {
12018 #if wxUSE_UNICODE
12019 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12020 #else
12021 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12022 #endif
12023 }
12024 return resultobj;
12025 fail:
12026 return NULL;
12027 }
12028
12029
12030 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
12031 PyObject *obj;
12032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12033 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
12034 Py_INCREF(obj);
12035 return Py_BuildValue((char *)"");
12036 }
12037 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12038 PyObject *resultobj = NULL;
12039 wxLocale *result;
12040 char *kwnames[] = {
12041 NULL
12042 };
12043
12044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (wxLocale *)wxGetLocale();
12048
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
12060 PyObject *resultobj = NULL;
12061 wxString *arg1 = 0 ;
12062 wxString result;
12063 bool temp1 = false ;
12064 PyObject * obj0 = 0 ;
12065
12066 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
12067 {
12068 arg1 = wxString_in_helper(obj0);
12069 if (arg1 == NULL) SWIG_fail;
12070 temp1 = true;
12071 }
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 result = wxGetTranslation((wxString const &)*arg1);
12075
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 {
12080 #if wxUSE_UNICODE
12081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12082 #else
12083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12084 #endif
12085 }
12086 {
12087 if (temp1)
12088 delete arg1;
12089 }
12090 return resultobj;
12091 fail:
12092 {
12093 if (temp1)
12094 delete arg1;
12095 }
12096 return NULL;
12097 }
12098
12099
12100 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
12101 PyObject *resultobj = NULL;
12102 wxString *arg1 = 0 ;
12103 wxString *arg2 = 0 ;
12104 size_t arg3 ;
12105 wxString result;
12106 bool temp1 = false ;
12107 bool temp2 = false ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 PyObject * obj2 = 0 ;
12111
12112 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
12113 {
12114 arg1 = wxString_in_helper(obj0);
12115 if (arg1 == NULL) SWIG_fail;
12116 temp1 = true;
12117 }
12118 {
12119 arg2 = wxString_in_helper(obj1);
12120 if (arg2 == NULL) SWIG_fail;
12121 temp2 = true;
12122 }
12123 {
12124 arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2));
12125 if (SWIG_arg_fail(3)) SWIG_fail;
12126 }
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 {
12135 #if wxUSE_UNICODE
12136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12137 #else
12138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12139 #endif
12140 }
12141 {
12142 if (temp1)
12143 delete arg1;
12144 }
12145 {
12146 if (temp2)
12147 delete arg2;
12148 }
12149 return resultobj;
12150 fail:
12151 {
12152 if (temp1)
12153 delete arg1;
12154 }
12155 {
12156 if (temp2)
12157 delete arg2;
12158 }
12159 return NULL;
12160 }
12161
12162
12163 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12164 int argc;
12165 PyObject *argv[4];
12166 int ii;
12167
12168 argc = PyObject_Length(args);
12169 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12170 argv[ii] = PyTuple_GetItem(args,ii);
12171 }
12172 if (argc == 1) {
12173 int _v;
12174 {
12175 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12176 }
12177 if (_v) {
12178 return _wrap_GetTranslation__SWIG_0(self,args);
12179 }
12180 }
12181 if (argc == 3) {
12182 int _v;
12183 {
12184 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12185 }
12186 if (_v) {
12187 {
12188 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12189 }
12190 if (_v) {
12191 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12192 if (_v) {
12193 return _wrap_GetTranslation__SWIG_1(self,args);
12194 }
12195 }
12196 }
12197 }
12198
12199 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
12200 return NULL;
12201 }
12202
12203
12204 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj = NULL;
12206 wxEncodingConverter *result;
12207 char *kwnames[] = {
12208 NULL
12209 };
12210
12211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = (wxEncodingConverter *)new wxEncodingConverter();
12215
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
12220 return resultobj;
12221 fail:
12222 return NULL;
12223 }
12224
12225
12226 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj = NULL;
12228 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12229 PyObject * obj0 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12236 if (SWIG_arg_fail(1)) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 delete arg1;
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 Py_INCREF(Py_None); resultobj = Py_None;
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj = NULL;
12253 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12254 wxFontEncoding arg2 ;
12255 wxFontEncoding arg3 ;
12256 int arg4 = (int) wxCONVERT_STRICT ;
12257 bool result;
12258 PyObject * obj0 = 0 ;
12259 PyObject * obj1 = 0 ;
12260 PyObject * obj2 = 0 ;
12261 PyObject * obj3 = 0 ;
12262 char *kwnames[] = {
12263 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
12264 };
12265
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12268 if (SWIG_arg_fail(1)) SWIG_fail;
12269 {
12270 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12271 if (SWIG_arg_fail(2)) SWIG_fail;
12272 }
12273 {
12274 arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2));
12275 if (SWIG_arg_fail(3)) SWIG_fail;
12276 }
12277 if (obj3) {
12278 {
12279 arg4 = static_cast<int >(SWIG_As_int(obj3));
12280 if (SWIG_arg_fail(4)) SWIG_fail;
12281 }
12282 }
12283 {
12284 PyThreadState* __tstate = wxPyBeginAllowThreads();
12285 result = (bool)(arg1)->Init(arg2,arg3,arg4);
12286
12287 wxPyEndAllowThreads(__tstate);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 {
12291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12292 }
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj = NULL;
12301 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12302 wxString *arg2 = 0 ;
12303 wxString result;
12304 bool temp2 = false ;
12305 PyObject * obj0 = 0 ;
12306 PyObject * obj1 = 0 ;
12307 char *kwnames[] = {
12308 (char *) "self",(char *) "input", NULL
12309 };
12310
12311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12312 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12313 if (SWIG_arg_fail(1)) SWIG_fail;
12314 {
12315 arg2 = wxString_in_helper(obj1);
12316 if (arg2 == NULL) SWIG_fail;
12317 temp2 = true;
12318 }
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 result = (arg1)->Convert((wxString const &)*arg2);
12322
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 {
12327 #if wxUSE_UNICODE
12328 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12329 #else
12330 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12331 #endif
12332 }
12333 {
12334 if (temp2)
12335 delete arg2;
12336 }
12337 return resultobj;
12338 fail:
12339 {
12340 if (temp2)
12341 delete arg2;
12342 }
12343 return NULL;
12344 }
12345
12346
12347 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj = NULL;
12349 wxFontEncoding arg1 ;
12350 int arg2 = (int) wxPLATFORM_CURRENT ;
12351 wxFontEncodingArray result;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "enc",(char *) "platform", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
12359 {
12360 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12361 if (SWIG_arg_fail(1)) SWIG_fail;
12362 }
12363 if (obj1) {
12364 {
12365 arg2 = static_cast<int >(SWIG_As_int(obj1));
12366 if (SWIG_arg_fail(2)) SWIG_fail;
12367 }
12368 }
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
12372
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 {
12377 resultobj = PyList_New(0);
12378 for (size_t i=0; i < (&result)->GetCount(); i++) {
12379 PyObject* number = PyInt_FromLong((&result)->Item(i));
12380 PyList_Append(resultobj, number);
12381 Py_DECREF(number);
12382 }
12383 }
12384 return resultobj;
12385 fail:
12386 return NULL;
12387 }
12388
12389
12390 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12391 PyObject *resultobj = NULL;
12392 wxFontEncoding arg1 ;
12393 wxFontEncodingArray result;
12394 PyObject * obj0 = 0 ;
12395 char *kwnames[] = {
12396 (char *) "enc", NULL
12397 };
12398
12399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12400 {
12401 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12402 if (SWIG_arg_fail(1)) SWIG_fail;
12403 }
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = wxEncodingConverter::GetAllEquivalents(arg1);
12407
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 {
12412 resultobj = PyList_New(0);
12413 for (size_t i=0; i < (&result)->GetCount(); i++) {
12414 PyObject* number = PyInt_FromLong((&result)->Item(i));
12415 PyList_Append(resultobj, number);
12416 Py_DECREF(number);
12417 }
12418 }
12419 return resultobj;
12420 fail:
12421 return NULL;
12422 }
12423
12424
12425 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj = NULL;
12427 wxFontEncoding arg1 ;
12428 wxFontEncoding arg2 ;
12429 bool result;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char *kwnames[] = {
12433 (char *) "encIn",(char *) "encOut", NULL
12434 };
12435
12436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
12437 {
12438 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12439 if (SWIG_arg_fail(1)) SWIG_fail;
12440 }
12441 {
12442 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12443 if (SWIG_arg_fail(2)) SWIG_fail;
12444 }
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
12448
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 {
12453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12454 }
12455 return resultobj;
12456 fail:
12457 return NULL;
12458 }
12459
12460
12461 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
12462 PyObject *obj;
12463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12464 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
12465 Py_INCREF(obj);
12466 return Py_BuildValue((char *)"");
12467 }
12468 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
12469 PyObject *resultobj = NULL;
12470 wxDC *arg1 = (wxDC *) 0 ;
12471 PyObject * obj0 = 0 ;
12472 char *kwnames[] = {
12473 (char *) "self", NULL
12474 };
12475
12476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
12477 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12478 if (SWIG_arg_fail(1)) SWIG_fail;
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 delete arg1;
12482
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 Py_INCREF(Py_None); resultobj = Py_None;
12487 return resultobj;
12488 fail:
12489 return NULL;
12490 }
12491
12492
12493 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
12494 PyObject *resultobj = NULL;
12495 wxDC *arg1 = (wxDC *) 0 ;
12496 int arg2 ;
12497 int arg3 ;
12498 wxColour *arg4 = 0 ;
12499 int arg5 = (int) wxFLOOD_SURFACE ;
12500 bool result;
12501 wxColour temp4 ;
12502 PyObject * obj0 = 0 ;
12503 PyObject * obj1 = 0 ;
12504 PyObject * obj2 = 0 ;
12505 PyObject * obj3 = 0 ;
12506 PyObject * obj4 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12513 if (SWIG_arg_fail(1)) SWIG_fail;
12514 {
12515 arg2 = static_cast<int >(SWIG_As_int(obj1));
12516 if (SWIG_arg_fail(2)) SWIG_fail;
12517 }
12518 {
12519 arg3 = static_cast<int >(SWIG_As_int(obj2));
12520 if (SWIG_arg_fail(3)) SWIG_fail;
12521 }
12522 {
12523 arg4 = &temp4;
12524 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12525 }
12526 if (obj4) {
12527 {
12528 arg5 = static_cast<int >(SWIG_As_int(obj4));
12529 if (SWIG_arg_fail(5)) SWIG_fail;
12530 }
12531 }
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
12535
12536 wxPyEndAllowThreads(__tstate);
12537 if (PyErr_Occurred()) SWIG_fail;
12538 }
12539 {
12540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12541 }
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj = NULL;
12550 wxDC *arg1 = (wxDC *) 0 ;
12551 wxPoint *arg2 = 0 ;
12552 wxColour *arg3 = 0 ;
12553 int arg4 = (int) wxFLOOD_SURFACE ;
12554 bool result;
12555 wxPoint temp2 ;
12556 wxColour temp3 ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 PyObject * obj2 = 0 ;
12560 PyObject * obj3 = 0 ;
12561 char *kwnames[] = {
12562 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
12563 };
12564
12565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12566 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12567 if (SWIG_arg_fail(1)) SWIG_fail;
12568 {
12569 arg2 = &temp2;
12570 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12571 }
12572 {
12573 arg3 = &temp3;
12574 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12575 }
12576 if (obj3) {
12577 {
12578 arg4 = static_cast<int >(SWIG_As_int(obj3));
12579 if (SWIG_arg_fail(4)) SWIG_fail;
12580 }
12581 }
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
12585
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 {
12590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12591 }
12592 return resultobj;
12593 fail:
12594 return NULL;
12595 }
12596
12597
12598 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
12599 PyObject *resultobj = NULL;
12600 wxDC *arg1 = (wxDC *) 0 ;
12601 int arg2 ;
12602 int arg3 ;
12603 wxColour result;
12604 PyObject * obj0 = 0 ;
12605 PyObject * obj1 = 0 ;
12606 PyObject * obj2 = 0 ;
12607 char *kwnames[] = {
12608 (char *) "self",(char *) "x",(char *) "y", NULL
12609 };
12610
12611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
12612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12613 if (SWIG_arg_fail(1)) SWIG_fail;
12614 {
12615 arg2 = static_cast<int >(SWIG_As_int(obj1));
12616 if (SWIG_arg_fail(2)) SWIG_fail;
12617 }
12618 {
12619 arg3 = static_cast<int >(SWIG_As_int(obj2));
12620 if (SWIG_arg_fail(3)) SWIG_fail;
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 result = wxDC_GetPixel(arg1,arg2,arg3);
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 wxColour * resultptr;
12631 resultptr = new wxColour(static_cast<wxColour & >(result));
12632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12633 }
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12641 PyObject *resultobj = NULL;
12642 wxDC *arg1 = (wxDC *) 0 ;
12643 wxPoint *arg2 = 0 ;
12644 wxColour result;
12645 wxPoint temp2 ;
12646 PyObject * obj0 = 0 ;
12647 PyObject * obj1 = 0 ;
12648 char *kwnames[] = {
12649 (char *) "self",(char *) "pt", NULL
12650 };
12651
12652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
12653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12654 if (SWIG_arg_fail(1)) SWIG_fail;
12655 {
12656 arg2 = &temp2;
12657 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12658 }
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
12662
12663 wxPyEndAllowThreads(__tstate);
12664 if (PyErr_Occurred()) SWIG_fail;
12665 }
12666 {
12667 wxColour * resultptr;
12668 resultptr = new wxColour(static_cast<wxColour & >(result));
12669 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
12670 }
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj = NULL;
12679 wxDC *arg1 = (wxDC *) 0 ;
12680 int arg2 ;
12681 int arg3 ;
12682 int arg4 ;
12683 int arg5 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 PyObject * obj2 = 0 ;
12687 PyObject * obj3 = 0 ;
12688 PyObject * obj4 = 0 ;
12689 char *kwnames[] = {
12690 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
12691 };
12692
12693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12695 if (SWIG_arg_fail(1)) SWIG_fail;
12696 {
12697 arg2 = static_cast<int >(SWIG_As_int(obj1));
12698 if (SWIG_arg_fail(2)) SWIG_fail;
12699 }
12700 {
12701 arg3 = static_cast<int >(SWIG_As_int(obj2));
12702 if (SWIG_arg_fail(3)) SWIG_fail;
12703 }
12704 {
12705 arg4 = static_cast<int >(SWIG_As_int(obj3));
12706 if (SWIG_arg_fail(4)) SWIG_fail;
12707 }
12708 {
12709 arg5 = static_cast<int >(SWIG_As_int(obj4));
12710 if (SWIG_arg_fail(5)) SWIG_fail;
12711 }
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 Py_INCREF(Py_None); resultobj = Py_None;
12720 return resultobj;
12721 fail:
12722 return NULL;
12723 }
12724
12725
12726 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
12727 PyObject *resultobj = NULL;
12728 wxDC *arg1 = (wxDC *) 0 ;
12729 wxPoint *arg2 = 0 ;
12730 wxPoint *arg3 = 0 ;
12731 wxPoint temp2 ;
12732 wxPoint temp3 ;
12733 PyObject * obj0 = 0 ;
12734 PyObject * obj1 = 0 ;
12735 PyObject * obj2 = 0 ;
12736 char *kwnames[] = {
12737 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
12738 };
12739
12740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12741 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12742 if (SWIG_arg_fail(1)) SWIG_fail;
12743 {
12744 arg2 = &temp2;
12745 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12746 }
12747 {
12748 arg3 = &temp3;
12749 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12750 }
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
12754
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 Py_INCREF(Py_None); resultobj = Py_None;
12759 return resultobj;
12760 fail:
12761 return NULL;
12762 }
12763
12764
12765 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
12766 PyObject *resultobj = NULL;
12767 wxDC *arg1 = (wxDC *) 0 ;
12768 int arg2 ;
12769 int arg3 ;
12770 PyObject * obj0 = 0 ;
12771 PyObject * obj1 = 0 ;
12772 PyObject * obj2 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "self",(char *) "x",(char *) "y", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
12778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12779 if (SWIG_arg_fail(1)) SWIG_fail;
12780 {
12781 arg2 = static_cast<int >(SWIG_As_int(obj1));
12782 if (SWIG_arg_fail(2)) SWIG_fail;
12783 }
12784 {
12785 arg3 = static_cast<int >(SWIG_As_int(obj2));
12786 if (SWIG_arg_fail(3)) SWIG_fail;
12787 }
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 (arg1)->CrossHair(arg2,arg3);
12791
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 Py_INCREF(Py_None); resultobj = Py_None;
12796 return resultobj;
12797 fail:
12798 return NULL;
12799 }
12800
12801
12802 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12803 PyObject *resultobj = NULL;
12804 wxDC *arg1 = (wxDC *) 0 ;
12805 wxPoint *arg2 = 0 ;
12806 wxPoint temp2 ;
12807 PyObject * obj0 = 0 ;
12808 PyObject * obj1 = 0 ;
12809 char *kwnames[] = {
12810 (char *) "self",(char *) "pt", NULL
12811 };
12812
12813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
12814 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12815 if (SWIG_arg_fail(1)) SWIG_fail;
12816 {
12817 arg2 = &temp2;
12818 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12819 }
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 (arg1)->CrossHair((wxPoint const &)*arg2);
12823
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 Py_INCREF(Py_None); resultobj = Py_None;
12828 return resultobj;
12829 fail:
12830 return NULL;
12831 }
12832
12833
12834 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = NULL;
12836 wxDC *arg1 = (wxDC *) 0 ;
12837 int arg2 ;
12838 int arg3 ;
12839 int arg4 ;
12840 int arg5 ;
12841 int arg6 ;
12842 int arg7 ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 PyObject * obj2 = 0 ;
12846 PyObject * obj3 = 0 ;
12847 PyObject * obj4 = 0 ;
12848 PyObject * obj5 = 0 ;
12849 PyObject * obj6 = 0 ;
12850 char *kwnames[] = {
12851 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
12852 };
12853
12854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
12855 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12856 if (SWIG_arg_fail(1)) SWIG_fail;
12857 {
12858 arg2 = static_cast<int >(SWIG_As_int(obj1));
12859 if (SWIG_arg_fail(2)) SWIG_fail;
12860 }
12861 {
12862 arg3 = static_cast<int >(SWIG_As_int(obj2));
12863 if (SWIG_arg_fail(3)) SWIG_fail;
12864 }
12865 {
12866 arg4 = static_cast<int >(SWIG_As_int(obj3));
12867 if (SWIG_arg_fail(4)) SWIG_fail;
12868 }
12869 {
12870 arg5 = static_cast<int >(SWIG_As_int(obj4));
12871 if (SWIG_arg_fail(5)) SWIG_fail;
12872 }
12873 {
12874 arg6 = static_cast<int >(SWIG_As_int(obj5));
12875 if (SWIG_arg_fail(6)) SWIG_fail;
12876 }
12877 {
12878 arg7 = static_cast<int >(SWIG_As_int(obj6));
12879 if (SWIG_arg_fail(7)) SWIG_fail;
12880 }
12881 {
12882 PyThreadState* __tstate = wxPyBeginAllowThreads();
12883 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
12884
12885 wxPyEndAllowThreads(__tstate);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 Py_INCREF(Py_None); resultobj = Py_None;
12889 return resultobj;
12890 fail:
12891 return NULL;
12892 }
12893
12894
12895 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
12896 PyObject *resultobj = NULL;
12897 wxDC *arg1 = (wxDC *) 0 ;
12898 wxPoint *arg2 = 0 ;
12899 wxPoint *arg3 = 0 ;
12900 wxPoint *arg4 = 0 ;
12901 wxPoint temp2 ;
12902 wxPoint temp3 ;
12903 wxPoint temp4 ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 PyObject * obj2 = 0 ;
12907 PyObject * obj3 = 0 ;
12908 char *kwnames[] = {
12909 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
12910 };
12911
12912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12914 if (SWIG_arg_fail(1)) SWIG_fail;
12915 {
12916 arg2 = &temp2;
12917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12918 }
12919 {
12920 arg3 = &temp3;
12921 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12922 }
12923 {
12924 arg4 = &temp4;
12925 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12926 }
12927 {
12928 PyThreadState* __tstate = wxPyBeginAllowThreads();
12929 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
12930
12931 wxPyEndAllowThreads(__tstate);
12932 if (PyErr_Occurred()) SWIG_fail;
12933 }
12934 Py_INCREF(Py_None); resultobj = Py_None;
12935 return resultobj;
12936 fail:
12937 return NULL;
12938 }
12939
12940
12941 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
12942 PyObject *resultobj = NULL;
12943 wxDC *arg1 = (wxDC *) 0 ;
12944 int arg2 ;
12945 int arg3 ;
12946 int arg4 ;
12947 int arg5 ;
12948 PyObject * obj0 = 0 ;
12949 PyObject * obj1 = 0 ;
12950 PyObject * obj2 = 0 ;
12951 PyObject * obj3 = 0 ;
12952 PyObject * obj4 = 0 ;
12953 char *kwnames[] = {
12954 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12955 };
12956
12957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
12959 if (SWIG_arg_fail(1)) SWIG_fail;
12960 {
12961 arg2 = static_cast<int >(SWIG_As_int(obj1));
12962 if (SWIG_arg_fail(2)) SWIG_fail;
12963 }
12964 {
12965 arg3 = static_cast<int >(SWIG_As_int(obj2));
12966 if (SWIG_arg_fail(3)) SWIG_fail;
12967 }
12968 {
12969 arg4 = static_cast<int >(SWIG_As_int(obj3));
12970 if (SWIG_arg_fail(4)) SWIG_fail;
12971 }
12972 {
12973 arg5 = static_cast<int >(SWIG_As_int(obj4));
12974 if (SWIG_arg_fail(5)) SWIG_fail;
12975 }
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 Py_INCREF(Py_None); resultobj = Py_None;
12984 return resultobj;
12985 fail:
12986 return NULL;
12987 }
12988
12989
12990 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
12991 PyObject *resultobj = NULL;
12992 wxDC *arg1 = (wxDC *) 0 ;
12993 wxRect *arg2 = 0 ;
12994 wxRect temp2 ;
12995 PyObject * obj0 = 0 ;
12996 PyObject * obj1 = 0 ;
12997 char *kwnames[] = {
12998 (char *) "self",(char *) "rect", NULL
12999 };
13000
13001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
13002 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13003 if (SWIG_arg_fail(1)) SWIG_fail;
13004 {
13005 arg2 = &temp2;
13006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13007 }
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 (arg1)->DrawCheckMark((wxRect const &)*arg2);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 Py_INCREF(Py_None); resultobj = Py_None;
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj = NULL;
13024 wxDC *arg1 = (wxDC *) 0 ;
13025 int arg2 ;
13026 int arg3 ;
13027 int arg4 ;
13028 int arg5 ;
13029 double arg6 ;
13030 double arg7 ;
13031 PyObject * obj0 = 0 ;
13032 PyObject * obj1 = 0 ;
13033 PyObject * obj2 = 0 ;
13034 PyObject * obj3 = 0 ;
13035 PyObject * obj4 = 0 ;
13036 PyObject * obj5 = 0 ;
13037 PyObject * obj6 = 0 ;
13038 char *kwnames[] = {
13039 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
13040 };
13041
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13044 if (SWIG_arg_fail(1)) SWIG_fail;
13045 {
13046 arg2 = static_cast<int >(SWIG_As_int(obj1));
13047 if (SWIG_arg_fail(2)) SWIG_fail;
13048 }
13049 {
13050 arg3 = static_cast<int >(SWIG_As_int(obj2));
13051 if (SWIG_arg_fail(3)) SWIG_fail;
13052 }
13053 {
13054 arg4 = static_cast<int >(SWIG_As_int(obj3));
13055 if (SWIG_arg_fail(4)) SWIG_fail;
13056 }
13057 {
13058 arg5 = static_cast<int >(SWIG_As_int(obj4));
13059 if (SWIG_arg_fail(5)) SWIG_fail;
13060 }
13061 {
13062 arg6 = static_cast<double >(SWIG_As_double(obj5));
13063 if (SWIG_arg_fail(6)) SWIG_fail;
13064 }
13065 {
13066 arg7 = static_cast<double >(SWIG_As_double(obj6));
13067 if (SWIG_arg_fail(7)) SWIG_fail;
13068 }
13069 {
13070 PyThreadState* __tstate = wxPyBeginAllowThreads();
13071 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
13072
13073 wxPyEndAllowThreads(__tstate);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 Py_INCREF(Py_None); resultobj = Py_None;
13077 return resultobj;
13078 fail:
13079 return NULL;
13080 }
13081
13082
13083 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj = NULL;
13085 wxDC *arg1 = (wxDC *) 0 ;
13086 wxPoint *arg2 = 0 ;
13087 wxSize *arg3 = 0 ;
13088 double arg4 ;
13089 double arg5 ;
13090 wxPoint temp2 ;
13091 wxSize temp3 ;
13092 PyObject * obj0 = 0 ;
13093 PyObject * obj1 = 0 ;
13094 PyObject * obj2 = 0 ;
13095 PyObject * obj3 = 0 ;
13096 PyObject * obj4 = 0 ;
13097 char *kwnames[] = {
13098 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
13099 };
13100
13101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13103 if (SWIG_arg_fail(1)) SWIG_fail;
13104 {
13105 arg2 = &temp2;
13106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13107 }
13108 {
13109 arg3 = &temp3;
13110 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13111 }
13112 {
13113 arg4 = static_cast<double >(SWIG_As_double(obj3));
13114 if (SWIG_arg_fail(4)) SWIG_fail;
13115 }
13116 {
13117 arg5 = static_cast<double >(SWIG_As_double(obj4));
13118 if (SWIG_arg_fail(5)) SWIG_fail;
13119 }
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 Py_INCREF(Py_None); resultobj = Py_None;
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj = NULL;
13136 wxDC *arg1 = (wxDC *) 0 ;
13137 int arg2 ;
13138 int arg3 ;
13139 PyObject * obj0 = 0 ;
13140 PyObject * obj1 = 0 ;
13141 PyObject * obj2 = 0 ;
13142 char *kwnames[] = {
13143 (char *) "self",(char *) "x",(char *) "y", NULL
13144 };
13145
13146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13147 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13148 if (SWIG_arg_fail(1)) SWIG_fail;
13149 {
13150 arg2 = static_cast<int >(SWIG_As_int(obj1));
13151 if (SWIG_arg_fail(2)) SWIG_fail;
13152 }
13153 {
13154 arg3 = static_cast<int >(SWIG_As_int(obj2));
13155 if (SWIG_arg_fail(3)) SWIG_fail;
13156 }
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 (arg1)->DrawPoint(arg2,arg3);
13160
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 Py_INCREF(Py_None); resultobj = Py_None;
13165 return resultobj;
13166 fail:
13167 return NULL;
13168 }
13169
13170
13171 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13172 PyObject *resultobj = NULL;
13173 wxDC *arg1 = (wxDC *) 0 ;
13174 wxPoint *arg2 = 0 ;
13175 wxPoint temp2 ;
13176 PyObject * obj0 = 0 ;
13177 PyObject * obj1 = 0 ;
13178 char *kwnames[] = {
13179 (char *) "self",(char *) "pt", NULL
13180 };
13181
13182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13183 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13184 if (SWIG_arg_fail(1)) SWIG_fail;
13185 {
13186 arg2 = &temp2;
13187 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13188 }
13189 {
13190 PyThreadState* __tstate = wxPyBeginAllowThreads();
13191 (arg1)->DrawPoint((wxPoint const &)*arg2);
13192
13193 wxPyEndAllowThreads(__tstate);
13194 if (PyErr_Occurred()) SWIG_fail;
13195 }
13196 Py_INCREF(Py_None); resultobj = Py_None;
13197 return resultobj;
13198 fail:
13199 return NULL;
13200 }
13201
13202
13203 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13204 PyObject *resultobj = NULL;
13205 wxDC *arg1 = (wxDC *) 0 ;
13206 int arg2 ;
13207 int arg3 ;
13208 int arg4 ;
13209 int arg5 ;
13210 PyObject * obj0 = 0 ;
13211 PyObject * obj1 = 0 ;
13212 PyObject * obj2 = 0 ;
13213 PyObject * obj3 = 0 ;
13214 PyObject * obj4 = 0 ;
13215 char *kwnames[] = {
13216 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13217 };
13218
13219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13220 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13221 if (SWIG_arg_fail(1)) SWIG_fail;
13222 {
13223 arg2 = static_cast<int >(SWIG_As_int(obj1));
13224 if (SWIG_arg_fail(2)) SWIG_fail;
13225 }
13226 {
13227 arg3 = static_cast<int >(SWIG_As_int(obj2));
13228 if (SWIG_arg_fail(3)) SWIG_fail;
13229 }
13230 {
13231 arg4 = static_cast<int >(SWIG_As_int(obj3));
13232 if (SWIG_arg_fail(4)) SWIG_fail;
13233 }
13234 {
13235 arg5 = static_cast<int >(SWIG_As_int(obj4));
13236 if (SWIG_arg_fail(5)) SWIG_fail;
13237 }
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 Py_INCREF(Py_None); resultobj = Py_None;
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13253 PyObject *resultobj = NULL;
13254 wxDC *arg1 = (wxDC *) 0 ;
13255 wxRect *arg2 = 0 ;
13256 wxRect temp2 ;
13257 PyObject * obj0 = 0 ;
13258 PyObject * obj1 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self",(char *) "rect", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13264 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13265 if (SWIG_arg_fail(1)) SWIG_fail;
13266 {
13267 arg2 = &temp2;
13268 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13269 }
13270 {
13271 PyThreadState* __tstate = wxPyBeginAllowThreads();
13272 (arg1)->DrawRectangle((wxRect const &)*arg2);
13273
13274 wxPyEndAllowThreads(__tstate);
13275 if (PyErr_Occurred()) SWIG_fail;
13276 }
13277 Py_INCREF(Py_None); resultobj = Py_None;
13278 return resultobj;
13279 fail:
13280 return NULL;
13281 }
13282
13283
13284 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13285 PyObject *resultobj = NULL;
13286 wxDC *arg1 = (wxDC *) 0 ;
13287 wxPoint *arg2 = 0 ;
13288 wxSize *arg3 = 0 ;
13289 wxPoint temp2 ;
13290 wxSize temp3 ;
13291 PyObject * obj0 = 0 ;
13292 PyObject * obj1 = 0 ;
13293 PyObject * obj2 = 0 ;
13294 char *kwnames[] = {
13295 (char *) "self",(char *) "pt",(char *) "sz", NULL
13296 };
13297
13298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13299 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13300 if (SWIG_arg_fail(1)) SWIG_fail;
13301 {
13302 arg2 = &temp2;
13303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13304 }
13305 {
13306 arg3 = &temp3;
13307 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13308 }
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
13312
13313 wxPyEndAllowThreads(__tstate);
13314 if (PyErr_Occurred()) SWIG_fail;
13315 }
13316 Py_INCREF(Py_None); resultobj = Py_None;
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj = NULL;
13325 wxDC *arg1 = (wxDC *) 0 ;
13326 int arg2 ;
13327 int arg3 ;
13328 int arg4 ;
13329 int arg5 ;
13330 double arg6 ;
13331 PyObject * obj0 = 0 ;
13332 PyObject * obj1 = 0 ;
13333 PyObject * obj2 = 0 ;
13334 PyObject * obj3 = 0 ;
13335 PyObject * obj4 = 0 ;
13336 PyObject * obj5 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13343 if (SWIG_arg_fail(1)) SWIG_fail;
13344 {
13345 arg2 = static_cast<int >(SWIG_As_int(obj1));
13346 if (SWIG_arg_fail(2)) SWIG_fail;
13347 }
13348 {
13349 arg3 = static_cast<int >(SWIG_As_int(obj2));
13350 if (SWIG_arg_fail(3)) SWIG_fail;
13351 }
13352 {
13353 arg4 = static_cast<int >(SWIG_As_int(obj3));
13354 if (SWIG_arg_fail(4)) SWIG_fail;
13355 }
13356 {
13357 arg5 = static_cast<int >(SWIG_As_int(obj4));
13358 if (SWIG_arg_fail(5)) SWIG_fail;
13359 }
13360 {
13361 arg6 = static_cast<double >(SWIG_As_double(obj5));
13362 if (SWIG_arg_fail(6)) SWIG_fail;
13363 }
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 Py_INCREF(Py_None); resultobj = Py_None;
13372 return resultobj;
13373 fail:
13374 return NULL;
13375 }
13376
13377
13378 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj = NULL;
13380 wxDC *arg1 = (wxDC *) 0 ;
13381 wxRect *arg2 = 0 ;
13382 double arg3 ;
13383 wxRect temp2 ;
13384 PyObject * obj0 = 0 ;
13385 PyObject * obj1 = 0 ;
13386 PyObject * obj2 = 0 ;
13387 char *kwnames[] = {
13388 (char *) "self",(char *) "r",(char *) "radius", NULL
13389 };
13390
13391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13393 if (SWIG_arg_fail(1)) SWIG_fail;
13394 {
13395 arg2 = &temp2;
13396 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13397 }
13398 {
13399 arg3 = static_cast<double >(SWIG_As_double(obj2));
13400 if (SWIG_arg_fail(3)) SWIG_fail;
13401 }
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 Py_INCREF(Py_None); resultobj = Py_None;
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj = NULL;
13418 wxDC *arg1 = (wxDC *) 0 ;
13419 wxPoint *arg2 = 0 ;
13420 wxSize *arg3 = 0 ;
13421 double arg4 ;
13422 wxPoint temp2 ;
13423 wxSize temp3 ;
13424 PyObject * obj0 = 0 ;
13425 PyObject * obj1 = 0 ;
13426 PyObject * obj2 = 0 ;
13427 PyObject * obj3 = 0 ;
13428 char *kwnames[] = {
13429 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
13430 };
13431
13432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13433 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13434 if (SWIG_arg_fail(1)) SWIG_fail;
13435 {
13436 arg2 = &temp2;
13437 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13438 }
13439 {
13440 arg3 = &temp3;
13441 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13442 }
13443 {
13444 arg4 = static_cast<double >(SWIG_As_double(obj3));
13445 if (SWIG_arg_fail(4)) SWIG_fail;
13446 }
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
13450
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 Py_INCREF(Py_None); resultobj = Py_None;
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
13462 PyObject *resultobj = NULL;
13463 wxDC *arg1 = (wxDC *) 0 ;
13464 int arg2 ;
13465 int arg3 ;
13466 int arg4 ;
13467 PyObject * obj0 = 0 ;
13468 PyObject * obj1 = 0 ;
13469 PyObject * obj2 = 0 ;
13470 PyObject * obj3 = 0 ;
13471 char *kwnames[] = {
13472 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
13473 };
13474
13475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13476 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13477 if (SWIG_arg_fail(1)) SWIG_fail;
13478 {
13479 arg2 = static_cast<int >(SWIG_As_int(obj1));
13480 if (SWIG_arg_fail(2)) SWIG_fail;
13481 }
13482 {
13483 arg3 = static_cast<int >(SWIG_As_int(obj2));
13484 if (SWIG_arg_fail(3)) SWIG_fail;
13485 }
13486 {
13487 arg4 = static_cast<int >(SWIG_As_int(obj3));
13488 if (SWIG_arg_fail(4)) SWIG_fail;
13489 }
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 (arg1)->DrawCircle(arg2,arg3,arg4);
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 Py_INCREF(Py_None); resultobj = Py_None;
13498 return resultobj;
13499 fail:
13500 return NULL;
13501 }
13502
13503
13504 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
13505 PyObject *resultobj = NULL;
13506 wxDC *arg1 = (wxDC *) 0 ;
13507 wxPoint *arg2 = 0 ;
13508 int arg3 ;
13509 wxPoint temp2 ;
13510 PyObject * obj0 = 0 ;
13511 PyObject * obj1 = 0 ;
13512 PyObject * obj2 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self",(char *) "pt",(char *) "radius", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13519 if (SWIG_arg_fail(1)) SWIG_fail;
13520 {
13521 arg2 = &temp2;
13522 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13523 }
13524 {
13525 arg3 = static_cast<int >(SWIG_As_int(obj2));
13526 if (SWIG_arg_fail(3)) SWIG_fail;
13527 }
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 Py_INCREF(Py_None); resultobj = Py_None;
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj = NULL;
13544 wxDC *arg1 = (wxDC *) 0 ;
13545 int arg2 ;
13546 int arg3 ;
13547 int arg4 ;
13548 int arg5 ;
13549 PyObject * obj0 = 0 ;
13550 PyObject * obj1 = 0 ;
13551 PyObject * obj2 = 0 ;
13552 PyObject * obj3 = 0 ;
13553 PyObject * obj4 = 0 ;
13554 char *kwnames[] = {
13555 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13556 };
13557
13558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13559 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13560 if (SWIG_arg_fail(1)) SWIG_fail;
13561 {
13562 arg2 = static_cast<int >(SWIG_As_int(obj1));
13563 if (SWIG_arg_fail(2)) SWIG_fail;
13564 }
13565 {
13566 arg3 = static_cast<int >(SWIG_As_int(obj2));
13567 if (SWIG_arg_fail(3)) SWIG_fail;
13568 }
13569 {
13570 arg4 = static_cast<int >(SWIG_As_int(obj3));
13571 if (SWIG_arg_fail(4)) SWIG_fail;
13572 }
13573 {
13574 arg5 = static_cast<int >(SWIG_As_int(obj4));
13575 if (SWIG_arg_fail(5)) SWIG_fail;
13576 }
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
13580
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 Py_INCREF(Py_None); resultobj = Py_None;
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj = NULL;
13593 wxDC *arg1 = (wxDC *) 0 ;
13594 wxRect *arg2 = 0 ;
13595 wxRect temp2 ;
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self",(char *) "rect", NULL
13600 };
13601
13602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
13603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13604 if (SWIG_arg_fail(1)) SWIG_fail;
13605 {
13606 arg2 = &temp2;
13607 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13608 }
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->DrawEllipse((wxRect const &)*arg2);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 Py_INCREF(Py_None); resultobj = Py_None;
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj = NULL;
13625 wxDC *arg1 = (wxDC *) 0 ;
13626 wxPoint *arg2 = 0 ;
13627 wxSize *arg3 = 0 ;
13628 wxPoint temp2 ;
13629 wxSize temp3 ;
13630 PyObject * obj0 = 0 ;
13631 PyObject * obj1 = 0 ;
13632 PyObject * obj2 = 0 ;
13633 char *kwnames[] = {
13634 (char *) "self",(char *) "pt",(char *) "sz", NULL
13635 };
13636
13637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) 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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13643 }
13644 {
13645 arg3 = &temp3;
13646 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13647 }
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
13651
13652 wxPyEndAllowThreads(__tstate);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 Py_INCREF(Py_None); resultobj = Py_None;
13656 return resultobj;
13657 fail:
13658 return NULL;
13659 }
13660
13661
13662 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13663 PyObject *resultobj = NULL;
13664 wxDC *arg1 = (wxDC *) 0 ;
13665 wxIcon *arg2 = 0 ;
13666 int arg3 ;
13667 int arg4 ;
13668 PyObject * obj0 = 0 ;
13669 PyObject * obj1 = 0 ;
13670 PyObject * obj2 = 0 ;
13671 PyObject * obj3 = 0 ;
13672 char *kwnames[] = {
13673 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
13674 };
13675
13676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13677 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13678 if (SWIG_arg_fail(1)) SWIG_fail;
13679 {
13680 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13681 if (SWIG_arg_fail(2)) SWIG_fail;
13682 if (arg2 == NULL) {
13683 SWIG_null_ref("wxIcon");
13684 }
13685 if (SWIG_arg_fail(2)) SWIG_fail;
13686 }
13687 {
13688 arg3 = static_cast<int >(SWIG_As_int(obj2));
13689 if (SWIG_arg_fail(3)) SWIG_fail;
13690 }
13691 {
13692 arg4 = static_cast<int >(SWIG_As_int(obj3));
13693 if (SWIG_arg_fail(4)) SWIG_fail;
13694 }
13695 {
13696 PyThreadState* __tstate = wxPyBeginAllowThreads();
13697 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
13698
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 Py_INCREF(Py_None); resultobj = Py_None;
13703 return resultobj;
13704 fail:
13705 return NULL;
13706 }
13707
13708
13709 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj = NULL;
13711 wxDC *arg1 = (wxDC *) 0 ;
13712 wxIcon *arg2 = 0 ;
13713 wxPoint *arg3 = 0 ;
13714 wxPoint temp3 ;
13715 PyObject * obj0 = 0 ;
13716 PyObject * obj1 = 0 ;
13717 PyObject * obj2 = 0 ;
13718 char *kwnames[] = {
13719 (char *) "self",(char *) "icon",(char *) "pt", NULL
13720 };
13721
13722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13723 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13724 if (SWIG_arg_fail(1)) SWIG_fail;
13725 {
13726 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
13727 if (SWIG_arg_fail(2)) SWIG_fail;
13728 if (arg2 == NULL) {
13729 SWIG_null_ref("wxIcon");
13730 }
13731 if (SWIG_arg_fail(2)) SWIG_fail;
13732 }
13733 {
13734 arg3 = &temp3;
13735 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13736 }
13737 {
13738 PyThreadState* __tstate = wxPyBeginAllowThreads();
13739 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
13740
13741 wxPyEndAllowThreads(__tstate);
13742 if (PyErr_Occurred()) SWIG_fail;
13743 }
13744 Py_INCREF(Py_None); resultobj = Py_None;
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj = NULL;
13753 wxDC *arg1 = (wxDC *) 0 ;
13754 wxBitmap *arg2 = 0 ;
13755 int arg3 ;
13756 int arg4 ;
13757 bool arg5 = (bool) false ;
13758 PyObject * obj0 = 0 ;
13759 PyObject * obj1 = 0 ;
13760 PyObject * obj2 = 0 ;
13761 PyObject * obj3 = 0 ;
13762 PyObject * obj4 = 0 ;
13763 char *kwnames[] = {
13764 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
13765 };
13766
13767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13769 if (SWIG_arg_fail(1)) SWIG_fail;
13770 {
13771 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13772 if (SWIG_arg_fail(2)) SWIG_fail;
13773 if (arg2 == NULL) {
13774 SWIG_null_ref("wxBitmap");
13775 }
13776 if (SWIG_arg_fail(2)) SWIG_fail;
13777 }
13778 {
13779 arg3 = static_cast<int >(SWIG_As_int(obj2));
13780 if (SWIG_arg_fail(3)) SWIG_fail;
13781 }
13782 {
13783 arg4 = static_cast<int >(SWIG_As_int(obj3));
13784 if (SWIG_arg_fail(4)) SWIG_fail;
13785 }
13786 if (obj4) {
13787 {
13788 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
13789 if (SWIG_arg_fail(5)) SWIG_fail;
13790 }
13791 }
13792 {
13793 PyThreadState* __tstate = wxPyBeginAllowThreads();
13794 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
13795
13796 wxPyEndAllowThreads(__tstate);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 Py_INCREF(Py_None); resultobj = Py_None;
13800 return resultobj;
13801 fail:
13802 return NULL;
13803 }
13804
13805
13806 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13807 PyObject *resultobj = NULL;
13808 wxDC *arg1 = (wxDC *) 0 ;
13809 wxBitmap *arg2 = 0 ;
13810 wxPoint *arg3 = 0 ;
13811 bool arg4 = (bool) false ;
13812 wxPoint temp3 ;
13813 PyObject * obj0 = 0 ;
13814 PyObject * obj1 = 0 ;
13815 PyObject * obj2 = 0 ;
13816 PyObject * obj3 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13823 if (SWIG_arg_fail(1)) SWIG_fail;
13824 {
13825 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
13826 if (SWIG_arg_fail(2)) SWIG_fail;
13827 if (arg2 == NULL) {
13828 SWIG_null_ref("wxBitmap");
13829 }
13830 if (SWIG_arg_fail(2)) SWIG_fail;
13831 }
13832 {
13833 arg3 = &temp3;
13834 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13835 }
13836 if (obj3) {
13837 {
13838 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
13839 if (SWIG_arg_fail(4)) SWIG_fail;
13840 }
13841 }
13842 {
13843 PyThreadState* __tstate = wxPyBeginAllowThreads();
13844 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
13845
13846 wxPyEndAllowThreads(__tstate);
13847 if (PyErr_Occurred()) SWIG_fail;
13848 }
13849 Py_INCREF(Py_None); resultobj = Py_None;
13850 return resultobj;
13851 fail:
13852 return NULL;
13853 }
13854
13855
13856 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
13857 PyObject *resultobj = NULL;
13858 wxDC *arg1 = (wxDC *) 0 ;
13859 wxString *arg2 = 0 ;
13860 int arg3 ;
13861 int arg4 ;
13862 bool temp2 = false ;
13863 PyObject * obj0 = 0 ;
13864 PyObject * obj1 = 0 ;
13865 PyObject * obj2 = 0 ;
13866 PyObject * obj3 = 0 ;
13867 char *kwnames[] = {
13868 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
13869 };
13870
13871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13872 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13873 if (SWIG_arg_fail(1)) SWIG_fail;
13874 {
13875 arg2 = wxString_in_helper(obj1);
13876 if (arg2 == NULL) SWIG_fail;
13877 temp2 = true;
13878 }
13879 {
13880 arg3 = static_cast<int >(SWIG_As_int(obj2));
13881 if (SWIG_arg_fail(3)) SWIG_fail;
13882 }
13883 {
13884 arg4 = static_cast<int >(SWIG_As_int(obj3));
13885 if (SWIG_arg_fail(4)) SWIG_fail;
13886 }
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
13890
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 Py_INCREF(Py_None); resultobj = Py_None;
13895 {
13896 if (temp2)
13897 delete arg2;
13898 }
13899 return resultobj;
13900 fail:
13901 {
13902 if (temp2)
13903 delete arg2;
13904 }
13905 return NULL;
13906 }
13907
13908
13909 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13910 PyObject *resultobj = NULL;
13911 wxDC *arg1 = (wxDC *) 0 ;
13912 wxString *arg2 = 0 ;
13913 wxPoint *arg3 = 0 ;
13914 bool temp2 = false ;
13915 wxPoint temp3 ;
13916 PyObject * obj0 = 0 ;
13917 PyObject * obj1 = 0 ;
13918 PyObject * obj2 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self",(char *) "text",(char *) "pt", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13924 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13925 if (SWIG_arg_fail(1)) SWIG_fail;
13926 {
13927 arg2 = wxString_in_helper(obj1);
13928 if (arg2 == NULL) SWIG_fail;
13929 temp2 = true;
13930 }
13931 {
13932 arg3 = &temp3;
13933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13934 }
13935 {
13936 PyThreadState* __tstate = wxPyBeginAllowThreads();
13937 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
13938
13939 wxPyEndAllowThreads(__tstate);
13940 if (PyErr_Occurred()) SWIG_fail;
13941 }
13942 Py_INCREF(Py_None); resultobj = Py_None;
13943 {
13944 if (temp2)
13945 delete arg2;
13946 }
13947 return resultobj;
13948 fail:
13949 {
13950 if (temp2)
13951 delete arg2;
13952 }
13953 return NULL;
13954 }
13955
13956
13957 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
13958 PyObject *resultobj = NULL;
13959 wxDC *arg1 = (wxDC *) 0 ;
13960 wxString *arg2 = 0 ;
13961 int arg3 ;
13962 int arg4 ;
13963 double arg5 ;
13964 bool temp2 = false ;
13965 PyObject * obj0 = 0 ;
13966 PyObject * obj1 = 0 ;
13967 PyObject * obj2 = 0 ;
13968 PyObject * obj3 = 0 ;
13969 PyObject * obj4 = 0 ;
13970 char *kwnames[] = {
13971 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
13972 };
13973
13974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13975 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13976 if (SWIG_arg_fail(1)) SWIG_fail;
13977 {
13978 arg2 = wxString_in_helper(obj1);
13979 if (arg2 == NULL) SWIG_fail;
13980 temp2 = true;
13981 }
13982 {
13983 arg3 = static_cast<int >(SWIG_As_int(obj2));
13984 if (SWIG_arg_fail(3)) SWIG_fail;
13985 }
13986 {
13987 arg4 = static_cast<int >(SWIG_As_int(obj3));
13988 if (SWIG_arg_fail(4)) SWIG_fail;
13989 }
13990 {
13991 arg5 = static_cast<double >(SWIG_As_double(obj4));
13992 if (SWIG_arg_fail(5)) SWIG_fail;
13993 }
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
13997
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 Py_INCREF(Py_None); resultobj = Py_None;
14002 {
14003 if (temp2)
14004 delete arg2;
14005 }
14006 return resultobj;
14007 fail:
14008 {
14009 if (temp2)
14010 delete arg2;
14011 }
14012 return NULL;
14013 }
14014
14015
14016 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14017 PyObject *resultobj = NULL;
14018 wxDC *arg1 = (wxDC *) 0 ;
14019 wxString *arg2 = 0 ;
14020 wxPoint *arg3 = 0 ;
14021 double arg4 ;
14022 bool temp2 = false ;
14023 wxPoint temp3 ;
14024 PyObject * obj0 = 0 ;
14025 PyObject * obj1 = 0 ;
14026 PyObject * obj2 = 0 ;
14027 PyObject * obj3 = 0 ;
14028 char *kwnames[] = {
14029 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
14030 };
14031
14032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14034 if (SWIG_arg_fail(1)) SWIG_fail;
14035 {
14036 arg2 = wxString_in_helper(obj1);
14037 if (arg2 == NULL) SWIG_fail;
14038 temp2 = true;
14039 }
14040 {
14041 arg3 = &temp3;
14042 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14043 }
14044 {
14045 arg4 = static_cast<double >(SWIG_As_double(obj3));
14046 if (SWIG_arg_fail(4)) SWIG_fail;
14047 }
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
14051
14052 wxPyEndAllowThreads(__tstate);
14053 if (PyErr_Occurred()) SWIG_fail;
14054 }
14055 Py_INCREF(Py_None); resultobj = Py_None;
14056 {
14057 if (temp2)
14058 delete arg2;
14059 }
14060 return resultobj;
14061 fail:
14062 {
14063 if (temp2)
14064 delete arg2;
14065 }
14066 return NULL;
14067 }
14068
14069
14070 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj = NULL;
14072 wxDC *arg1 = (wxDC *) 0 ;
14073 int arg2 ;
14074 int arg3 ;
14075 int arg4 ;
14076 int arg5 ;
14077 wxDC *arg6 = (wxDC *) 0 ;
14078 int arg7 ;
14079 int arg8 ;
14080 int arg9 = (int) wxCOPY ;
14081 bool arg10 = (bool) false ;
14082 int arg11 = (int) -1 ;
14083 int arg12 = (int) -1 ;
14084 bool result;
14085 PyObject * obj0 = 0 ;
14086 PyObject * obj1 = 0 ;
14087 PyObject * obj2 = 0 ;
14088 PyObject * obj3 = 0 ;
14089 PyObject * obj4 = 0 ;
14090 PyObject * obj5 = 0 ;
14091 PyObject * obj6 = 0 ;
14092 PyObject * obj7 = 0 ;
14093 PyObject * obj8 = 0 ;
14094 PyObject * obj9 = 0 ;
14095 PyObject * obj10 = 0 ;
14096 PyObject * obj11 = 0 ;
14097 char *kwnames[] = {
14098 (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
14099 };
14100
14101 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;
14102 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14103 if (SWIG_arg_fail(1)) SWIG_fail;
14104 {
14105 arg2 = static_cast<int >(SWIG_As_int(obj1));
14106 if (SWIG_arg_fail(2)) SWIG_fail;
14107 }
14108 {
14109 arg3 = static_cast<int >(SWIG_As_int(obj2));
14110 if (SWIG_arg_fail(3)) SWIG_fail;
14111 }
14112 {
14113 arg4 = static_cast<int >(SWIG_As_int(obj3));
14114 if (SWIG_arg_fail(4)) SWIG_fail;
14115 }
14116 {
14117 arg5 = static_cast<int >(SWIG_As_int(obj4));
14118 if (SWIG_arg_fail(5)) SWIG_fail;
14119 }
14120 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14121 if (SWIG_arg_fail(6)) SWIG_fail;
14122 {
14123 arg7 = static_cast<int >(SWIG_As_int(obj6));
14124 if (SWIG_arg_fail(7)) SWIG_fail;
14125 }
14126 {
14127 arg8 = static_cast<int >(SWIG_As_int(obj7));
14128 if (SWIG_arg_fail(8)) SWIG_fail;
14129 }
14130 if (obj8) {
14131 {
14132 arg9 = static_cast<int >(SWIG_As_int(obj8));
14133 if (SWIG_arg_fail(9)) SWIG_fail;
14134 }
14135 }
14136 if (obj9) {
14137 {
14138 arg10 = static_cast<bool >(SWIG_As_bool(obj9));
14139 if (SWIG_arg_fail(10)) SWIG_fail;
14140 }
14141 }
14142 if (obj10) {
14143 {
14144 arg11 = static_cast<int >(SWIG_As_int(obj10));
14145 if (SWIG_arg_fail(11)) SWIG_fail;
14146 }
14147 }
14148 if (obj11) {
14149 {
14150 arg12 = static_cast<int >(SWIG_As_int(obj11));
14151 if (SWIG_arg_fail(12)) SWIG_fail;
14152 }
14153 }
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14163 }
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj = NULL;
14172 wxDC *arg1 = (wxDC *) 0 ;
14173 wxPoint *arg2 = 0 ;
14174 wxSize *arg3 = 0 ;
14175 wxDC *arg4 = (wxDC *) 0 ;
14176 wxPoint *arg5 = 0 ;
14177 int arg6 = (int) wxCOPY ;
14178 bool arg7 = (bool) false ;
14179 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14180 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14181 bool result;
14182 wxPoint temp2 ;
14183 wxSize temp3 ;
14184 wxPoint temp5 ;
14185 wxPoint temp8 ;
14186 PyObject * obj0 = 0 ;
14187 PyObject * obj1 = 0 ;
14188 PyObject * obj2 = 0 ;
14189 PyObject * obj3 = 0 ;
14190 PyObject * obj4 = 0 ;
14191 PyObject * obj5 = 0 ;
14192 PyObject * obj6 = 0 ;
14193 PyObject * obj7 = 0 ;
14194 char *kwnames[] = {
14195 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
14196 };
14197
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14199 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14200 if (SWIG_arg_fail(1)) SWIG_fail;
14201 {
14202 arg2 = &temp2;
14203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14204 }
14205 {
14206 arg3 = &temp3;
14207 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14208 }
14209 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14210 if (SWIG_arg_fail(4)) SWIG_fail;
14211 {
14212 arg5 = &temp5;
14213 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14214 }
14215 if (obj5) {
14216 {
14217 arg6 = static_cast<int >(SWIG_As_int(obj5));
14218 if (SWIG_arg_fail(6)) SWIG_fail;
14219 }
14220 }
14221 if (obj6) {
14222 {
14223 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
14224 if (SWIG_arg_fail(7)) SWIG_fail;
14225 }
14226 }
14227 if (obj7) {
14228 {
14229 arg8 = &temp8;
14230 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14231 }
14232 }
14233 {
14234 PyThreadState* __tstate = wxPyBeginAllowThreads();
14235 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
14236
14237 wxPyEndAllowThreads(__tstate);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 {
14241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14242 }
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj = NULL;
14251 wxDC *arg1 = (wxDC *) 0 ;
14252 int arg2 ;
14253 int arg3 ;
14254 int arg4 ;
14255 int arg5 ;
14256 PyObject * obj0 = 0 ;
14257 PyObject * obj1 = 0 ;
14258 PyObject * obj2 = 0 ;
14259 PyObject * obj3 = 0 ;
14260 PyObject * obj4 = 0 ;
14261 char *kwnames[] = {
14262 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14263 };
14264
14265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14266 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14267 if (SWIG_arg_fail(1)) SWIG_fail;
14268 {
14269 arg2 = static_cast<int >(SWIG_As_int(obj1));
14270 if (SWIG_arg_fail(2)) SWIG_fail;
14271 }
14272 {
14273 arg3 = static_cast<int >(SWIG_As_int(obj2));
14274 if (SWIG_arg_fail(3)) SWIG_fail;
14275 }
14276 {
14277 arg4 = static_cast<int >(SWIG_As_int(obj3));
14278 if (SWIG_arg_fail(4)) SWIG_fail;
14279 }
14280 {
14281 arg5 = static_cast<int >(SWIG_As_int(obj4));
14282 if (SWIG_arg_fail(5)) SWIG_fail;
14283 }
14284 {
14285 PyThreadState* __tstate = wxPyBeginAllowThreads();
14286 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
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_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14299 PyObject *resultobj = NULL;
14300 wxDC *arg1 = (wxDC *) 0 ;
14301 wxPoint *arg2 = 0 ;
14302 wxSize *arg3 = 0 ;
14303 wxPoint temp2 ;
14304 wxSize temp3 ;
14305 PyObject * obj0 = 0 ;
14306 PyObject * obj1 = 0 ;
14307 PyObject * obj2 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self",(char *) "pt",(char *) "sz", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) 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 arg2 = &temp2;
14317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14318 }
14319 {
14320 arg3 = &temp3;
14321 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14322 }
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
14326
14327 wxPyEndAllowThreads(__tstate);
14328 if (PyErr_Occurred()) SWIG_fail;
14329 }
14330 Py_INCREF(Py_None); resultobj = Py_None;
14331 return resultobj;
14332 fail:
14333 return NULL;
14334 }
14335
14336
14337 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14338 PyObject *resultobj = NULL;
14339 wxDC *arg1 = (wxDC *) 0 ;
14340 wxRegion *arg2 = 0 ;
14341 PyObject * obj0 = 0 ;
14342 PyObject * obj1 = 0 ;
14343 char *kwnames[] = {
14344 (char *) "self",(char *) "region", NULL
14345 };
14346
14347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
14348 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14349 if (SWIG_arg_fail(1)) SWIG_fail;
14350 {
14351 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
14352 if (SWIG_arg_fail(2)) SWIG_fail;
14353 if (arg2 == NULL) {
14354 SWIG_null_ref("wxRegion");
14355 }
14356 if (SWIG_arg_fail(2)) SWIG_fail;
14357 }
14358 {
14359 PyThreadState* __tstate = wxPyBeginAllowThreads();
14360 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
14361
14362 wxPyEndAllowThreads(__tstate);
14363 if (PyErr_Occurred()) SWIG_fail;
14364 }
14365 Py_INCREF(Py_None); resultobj = Py_None;
14366 return resultobj;
14367 fail:
14368 return NULL;
14369 }
14370
14371
14372 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
14373 PyObject *resultobj = NULL;
14374 wxDC *arg1 = (wxDC *) 0 ;
14375 wxRect *arg2 = 0 ;
14376 wxRect temp2 ;
14377 PyObject * obj0 = 0 ;
14378 PyObject * obj1 = 0 ;
14379 char *kwnames[] = {
14380 (char *) "self",(char *) "rect", NULL
14381 };
14382
14383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
14384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14385 if (SWIG_arg_fail(1)) SWIG_fail;
14386 {
14387 arg2 = &temp2;
14388 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14389 }
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 (arg1)->SetClippingRegion((wxRect const &)*arg2);
14393
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 Py_INCREF(Py_None); resultobj = Py_None;
14398 return resultobj;
14399 fail:
14400 return NULL;
14401 }
14402
14403
14404 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj = NULL;
14406 wxDC *arg1 = (wxDC *) 0 ;
14407 int arg2 ;
14408 wxPoint *arg3 = (wxPoint *) 0 ;
14409 int arg4 = (int) 0 ;
14410 int arg5 = (int) 0 ;
14411 PyObject * obj0 = 0 ;
14412 PyObject * obj1 = 0 ;
14413 PyObject * obj2 = 0 ;
14414 PyObject * obj3 = 0 ;
14415 char *kwnames[] = {
14416 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
14417 };
14418
14419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14420 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14421 if (SWIG_arg_fail(1)) SWIG_fail;
14422 {
14423 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14424 if (arg3 == NULL) SWIG_fail;
14425 }
14426 if (obj2) {
14427 {
14428 arg4 = static_cast<int >(SWIG_As_int(obj2));
14429 if (SWIG_arg_fail(4)) SWIG_fail;
14430 }
14431 }
14432 if (obj3) {
14433 {
14434 arg5 = static_cast<int >(SWIG_As_int(obj3));
14435 if (SWIG_arg_fail(5)) SWIG_fail;
14436 }
14437 }
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
14441
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 Py_INCREF(Py_None); resultobj = Py_None;
14446 {
14447 if (arg3) delete [] arg3;
14448 }
14449 return resultobj;
14450 fail:
14451 {
14452 if (arg3) delete [] arg3;
14453 }
14454 return NULL;
14455 }
14456
14457
14458 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj = NULL;
14460 wxDC *arg1 = (wxDC *) 0 ;
14461 int arg2 ;
14462 wxPoint *arg3 = (wxPoint *) 0 ;
14463 int arg4 = (int) 0 ;
14464 int arg5 = (int) 0 ;
14465 int arg6 = (int) wxODDEVEN_RULE ;
14466 PyObject * obj0 = 0 ;
14467 PyObject * obj1 = 0 ;
14468 PyObject * obj2 = 0 ;
14469 PyObject * obj3 = 0 ;
14470 PyObject * obj4 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14476 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14477 if (SWIG_arg_fail(1)) SWIG_fail;
14478 {
14479 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14480 if (arg3 == NULL) SWIG_fail;
14481 }
14482 if (obj2) {
14483 {
14484 arg4 = static_cast<int >(SWIG_As_int(obj2));
14485 if (SWIG_arg_fail(4)) SWIG_fail;
14486 }
14487 }
14488 if (obj3) {
14489 {
14490 arg5 = static_cast<int >(SWIG_As_int(obj3));
14491 if (SWIG_arg_fail(5)) SWIG_fail;
14492 }
14493 }
14494 if (obj4) {
14495 {
14496 arg6 = static_cast<int >(SWIG_As_int(obj4));
14497 if (SWIG_arg_fail(6)) SWIG_fail;
14498 }
14499 }
14500 {
14501 PyThreadState* __tstate = wxPyBeginAllowThreads();
14502 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
14503
14504 wxPyEndAllowThreads(__tstate);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 }
14507 Py_INCREF(Py_None); resultobj = Py_None;
14508 {
14509 if (arg3) delete [] arg3;
14510 }
14511 return resultobj;
14512 fail:
14513 {
14514 if (arg3) delete [] arg3;
14515 }
14516 return NULL;
14517 }
14518
14519
14520 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj = NULL;
14522 wxDC *arg1 = (wxDC *) 0 ;
14523 wxString *arg2 = 0 ;
14524 wxRect *arg3 = 0 ;
14525 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14526 int arg5 = (int) -1 ;
14527 bool temp2 = false ;
14528 wxRect temp3 ;
14529 PyObject * obj0 = 0 ;
14530 PyObject * obj1 = 0 ;
14531 PyObject * obj2 = 0 ;
14532 PyObject * obj3 = 0 ;
14533 PyObject * obj4 = 0 ;
14534 char *kwnames[] = {
14535 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14540 if (SWIG_arg_fail(1)) SWIG_fail;
14541 {
14542 arg2 = wxString_in_helper(obj1);
14543 if (arg2 == NULL) SWIG_fail;
14544 temp2 = true;
14545 }
14546 {
14547 arg3 = &temp3;
14548 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
14549 }
14550 if (obj3) {
14551 {
14552 arg4 = static_cast<int >(SWIG_As_int(obj3));
14553 if (SWIG_arg_fail(4)) SWIG_fail;
14554 }
14555 }
14556 if (obj4) {
14557 {
14558 arg5 = static_cast<int >(SWIG_As_int(obj4));
14559 if (SWIG_arg_fail(5)) SWIG_fail;
14560 }
14561 }
14562 {
14563 PyThreadState* __tstate = wxPyBeginAllowThreads();
14564 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
14565
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 Py_INCREF(Py_None); resultobj = Py_None;
14570 {
14571 if (temp2)
14572 delete arg2;
14573 }
14574 return resultobj;
14575 fail:
14576 {
14577 if (temp2)
14578 delete arg2;
14579 }
14580 return NULL;
14581 }
14582
14583
14584 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14585 PyObject *resultobj = NULL;
14586 wxDC *arg1 = (wxDC *) 0 ;
14587 wxString *arg2 = 0 ;
14588 wxBitmap *arg3 = 0 ;
14589 wxRect *arg4 = 0 ;
14590 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
14591 int arg6 = (int) -1 ;
14592 wxRect result;
14593 bool temp2 = false ;
14594 wxRect temp4 ;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj1 = 0 ;
14597 PyObject * obj2 = 0 ;
14598 PyObject * obj3 = 0 ;
14599 PyObject * obj4 = 0 ;
14600 PyObject * obj5 = 0 ;
14601 char *kwnames[] = {
14602 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
14603 };
14604
14605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14606 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14607 if (SWIG_arg_fail(1)) SWIG_fail;
14608 {
14609 arg2 = wxString_in_helper(obj1);
14610 if (arg2 == NULL) SWIG_fail;
14611 temp2 = true;
14612 }
14613 {
14614 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14615 if (SWIG_arg_fail(3)) SWIG_fail;
14616 if (arg3 == NULL) {
14617 SWIG_null_ref("wxBitmap");
14618 }
14619 if (SWIG_arg_fail(3)) SWIG_fail;
14620 }
14621 {
14622 arg4 = &temp4;
14623 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
14624 }
14625 if (obj4) {
14626 {
14627 arg5 = static_cast<int >(SWIG_As_int(obj4));
14628 if (SWIG_arg_fail(5)) SWIG_fail;
14629 }
14630 }
14631 if (obj5) {
14632 {
14633 arg6 = static_cast<int >(SWIG_As_int(obj5));
14634 if (SWIG_arg_fail(6)) SWIG_fail;
14635 }
14636 }
14637 {
14638 PyThreadState* __tstate = wxPyBeginAllowThreads();
14639 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
14640
14641 wxPyEndAllowThreads(__tstate);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 }
14644 {
14645 wxRect * resultptr;
14646 resultptr = new wxRect(static_cast<wxRect & >(result));
14647 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
14648 }
14649 {
14650 if (temp2)
14651 delete arg2;
14652 }
14653 return resultobj;
14654 fail:
14655 {
14656 if (temp2)
14657 delete arg2;
14658 }
14659 return NULL;
14660 }
14661
14662
14663 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
14664 PyObject *resultobj = NULL;
14665 wxDC *arg1 = (wxDC *) 0 ;
14666 int arg2 ;
14667 wxPoint *arg3 = (wxPoint *) 0 ;
14668 PyObject * obj0 = 0 ;
14669 PyObject * obj1 = 0 ;
14670 char *kwnames[] = {
14671 (char *) "self",(char *) "points", NULL
14672 };
14673
14674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
14675 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14676 if (SWIG_arg_fail(1)) SWIG_fail;
14677 {
14678 arg3 = wxPoint_LIST_helper(obj1, &arg2);
14679 if (arg3 == NULL) SWIG_fail;
14680 }
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 (arg1)->DrawSpline(arg2,arg3);
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 Py_INCREF(Py_None); resultobj = Py_None;
14689 {
14690 if (arg3) delete [] arg3;
14691 }
14692 return resultobj;
14693 fail:
14694 {
14695 if (arg3) delete [] arg3;
14696 }
14697 return NULL;
14698 }
14699
14700
14701 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
14702 PyObject *resultobj = NULL;
14703 wxDC *arg1 = (wxDC *) 0 ;
14704 PyObject * obj0 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
14710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14711 if (SWIG_arg_fail(1)) SWIG_fail;
14712 {
14713 PyThreadState* __tstate = wxPyBeginAllowThreads();
14714 (arg1)->Clear();
14715
14716 wxPyEndAllowThreads(__tstate);
14717 if (PyErr_Occurred()) SWIG_fail;
14718 }
14719 Py_INCREF(Py_None); resultobj = Py_None;
14720 return resultobj;
14721 fail:
14722 return NULL;
14723 }
14724
14725
14726 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
14727 PyObject *resultobj = NULL;
14728 wxDC *arg1 = (wxDC *) 0 ;
14729 wxString *arg2 = 0 ;
14730 bool result;
14731 bool temp2 = false ;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self",(char *) "message", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
14739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14740 if (SWIG_arg_fail(1)) SWIG_fail;
14741 {
14742 arg2 = wxString_in_helper(obj1);
14743 if (arg2 == NULL) SWIG_fail;
14744 temp2 = true;
14745 }
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 {
14754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14755 }
14756 {
14757 if (temp2)
14758 delete arg2;
14759 }
14760 return resultobj;
14761 fail:
14762 {
14763 if (temp2)
14764 delete arg2;
14765 }
14766 return NULL;
14767 }
14768
14769
14770 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
14771 PyObject *resultobj = NULL;
14772 wxDC *arg1 = (wxDC *) 0 ;
14773 PyObject * obj0 = 0 ;
14774 char *kwnames[] = {
14775 (char *) "self", NULL
14776 };
14777
14778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
14779 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14780 if (SWIG_arg_fail(1)) SWIG_fail;
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 (arg1)->EndDoc();
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 Py_INCREF(Py_None); resultobj = Py_None;
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj = NULL;
14797 wxDC *arg1 = (wxDC *) 0 ;
14798 PyObject * obj0 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
14804 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14805 if (SWIG_arg_fail(1)) SWIG_fail;
14806 {
14807 PyThreadState* __tstate = wxPyBeginAllowThreads();
14808 (arg1)->StartPage();
14809
14810 wxPyEndAllowThreads(__tstate);
14811 if (PyErr_Occurred()) SWIG_fail;
14812 }
14813 Py_INCREF(Py_None); resultobj = Py_None;
14814 return resultobj;
14815 fail:
14816 return NULL;
14817 }
14818
14819
14820 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
14821 PyObject *resultobj = NULL;
14822 wxDC *arg1 = (wxDC *) 0 ;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "self", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
14829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14830 if (SWIG_arg_fail(1)) SWIG_fail;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 (arg1)->EndPage();
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 Py_INCREF(Py_None); resultobj = Py_None;
14839 return resultobj;
14840 fail:
14841 return NULL;
14842 }
14843
14844
14845 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj = NULL;
14847 wxDC *arg1 = (wxDC *) 0 ;
14848 wxFont *arg2 = 0 ;
14849 PyObject * obj0 = 0 ;
14850 PyObject * obj1 = 0 ;
14851 char *kwnames[] = {
14852 (char *) "self",(char *) "font", NULL
14853 };
14854
14855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
14856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14857 if (SWIG_arg_fail(1)) SWIG_fail;
14858 {
14859 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
14860 if (SWIG_arg_fail(2)) SWIG_fail;
14861 if (arg2 == NULL) {
14862 SWIG_null_ref("wxFont");
14863 }
14864 if (SWIG_arg_fail(2)) SWIG_fail;
14865 }
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 (arg1)->SetFont((wxFont const &)*arg2);
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 Py_INCREF(Py_None); resultobj = Py_None;
14874 return resultobj;
14875 fail:
14876 return NULL;
14877 }
14878
14879
14880 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj = NULL;
14882 wxDC *arg1 = (wxDC *) 0 ;
14883 wxPen *arg2 = 0 ;
14884 PyObject * obj0 = 0 ;
14885 PyObject * obj1 = 0 ;
14886 char *kwnames[] = {
14887 (char *) "self",(char *) "pen", NULL
14888 };
14889
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
14891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14892 if (SWIG_arg_fail(1)) SWIG_fail;
14893 {
14894 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
14895 if (SWIG_arg_fail(2)) SWIG_fail;
14896 if (arg2 == NULL) {
14897 SWIG_null_ref("wxPen");
14898 }
14899 if (SWIG_arg_fail(2)) SWIG_fail;
14900 }
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 (arg1)->SetPen((wxPen const &)*arg2);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 Py_INCREF(Py_None); resultobj = Py_None;
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj = NULL;
14917 wxDC *arg1 = (wxDC *) 0 ;
14918 wxBrush *arg2 = 0 ;
14919 PyObject * obj0 = 0 ;
14920 PyObject * obj1 = 0 ;
14921 char *kwnames[] = {
14922 (char *) "self",(char *) "brush", NULL
14923 };
14924
14925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
14926 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14927 if (SWIG_arg_fail(1)) SWIG_fail;
14928 {
14929 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14930 if (SWIG_arg_fail(2)) SWIG_fail;
14931 if (arg2 == NULL) {
14932 SWIG_null_ref("wxBrush");
14933 }
14934 if (SWIG_arg_fail(2)) SWIG_fail;
14935 }
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 (arg1)->SetBrush((wxBrush const &)*arg2);
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 Py_INCREF(Py_None); resultobj = Py_None;
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj = NULL;
14952 wxDC *arg1 = (wxDC *) 0 ;
14953 wxBrush *arg2 = 0 ;
14954 PyObject * obj0 = 0 ;
14955 PyObject * obj1 = 0 ;
14956 char *kwnames[] = {
14957 (char *) "self",(char *) "brush", NULL
14958 };
14959
14960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
14961 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14962 if (SWIG_arg_fail(1)) SWIG_fail;
14963 {
14964 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
14965 if (SWIG_arg_fail(2)) SWIG_fail;
14966 if (arg2 == NULL) {
14967 SWIG_null_ref("wxBrush");
14968 }
14969 if (SWIG_arg_fail(2)) SWIG_fail;
14970 }
14971 {
14972 PyThreadState* __tstate = wxPyBeginAllowThreads();
14973 (arg1)->SetBackground((wxBrush const &)*arg2);
14974
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 Py_INCREF(Py_None); resultobj = Py_None;
14979 return resultobj;
14980 fail:
14981 return NULL;
14982 }
14983
14984
14985 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
14986 PyObject *resultobj = NULL;
14987 wxDC *arg1 = (wxDC *) 0 ;
14988 int arg2 ;
14989 PyObject * obj0 = 0 ;
14990 PyObject * obj1 = 0 ;
14991 char *kwnames[] = {
14992 (char *) "self",(char *) "mode", NULL
14993 };
14994
14995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
14996 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14997 if (SWIG_arg_fail(1)) SWIG_fail;
14998 {
14999 arg2 = static_cast<int >(SWIG_As_int(obj1));
15000 if (SWIG_arg_fail(2)) SWIG_fail;
15001 }
15002 {
15003 PyThreadState* __tstate = wxPyBeginAllowThreads();
15004 (arg1)->SetBackgroundMode(arg2);
15005
15006 wxPyEndAllowThreads(__tstate);
15007 if (PyErr_Occurred()) SWIG_fail;
15008 }
15009 Py_INCREF(Py_None); resultobj = Py_None;
15010 return resultobj;
15011 fail:
15012 return NULL;
15013 }
15014
15015
15016 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj = NULL;
15018 wxDC *arg1 = (wxDC *) 0 ;
15019 wxPalette *arg2 = 0 ;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 char *kwnames[] = {
15023 (char *) "self",(char *) "palette", NULL
15024 };
15025
15026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15027 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15028 if (SWIG_arg_fail(1)) SWIG_fail;
15029 {
15030 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
15031 if (SWIG_arg_fail(2)) SWIG_fail;
15032 if (arg2 == NULL) {
15033 SWIG_null_ref("wxPalette");
15034 }
15035 if (SWIG_arg_fail(2)) SWIG_fail;
15036 }
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 (arg1)->SetPalette((wxPalette const &)*arg2);
15040
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 Py_INCREF(Py_None); resultobj = Py_None;
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = NULL;
15053 wxDC *arg1 = (wxDC *) 0 ;
15054 PyObject * obj0 = 0 ;
15055 char *kwnames[] = {
15056 (char *) "self", NULL
15057 };
15058
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15061 if (SWIG_arg_fail(1)) SWIG_fail;
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 (arg1)->DestroyClippingRegion();
15065
15066 wxPyEndAllowThreads(__tstate);
15067 if (PyErr_Occurred()) SWIG_fail;
15068 }
15069 Py_INCREF(Py_None); resultobj = Py_None;
15070 return resultobj;
15071 fail:
15072 return NULL;
15073 }
15074
15075
15076 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15077 PyObject *resultobj = NULL;
15078 wxDC *arg1 = (wxDC *) 0 ;
15079 int *arg2 = (int *) 0 ;
15080 int *arg3 = (int *) 0 ;
15081 int *arg4 = (int *) 0 ;
15082 int *arg5 = (int *) 0 ;
15083 int temp2 ;
15084 int res2 = 0 ;
15085 int temp3 ;
15086 int res3 = 0 ;
15087 int temp4 ;
15088 int res4 = 0 ;
15089 int temp5 ;
15090 int res5 = 0 ;
15091 PyObject * obj0 = 0 ;
15092 char *kwnames[] = {
15093 (char *) "self", NULL
15094 };
15095
15096 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15097 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15098 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15099 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15101 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15102 if (SWIG_arg_fail(1)) SWIG_fail;
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
15106
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 Py_INCREF(Py_None); resultobj = Py_None;
15111 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15112 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15113 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15114 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15115 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15116 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15117 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15118 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15119 return resultobj;
15120 fail:
15121 return NULL;
15122 }
15123
15124
15125 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15126 PyObject *resultobj = NULL;
15127 wxDC *arg1 = (wxDC *) 0 ;
15128 wxRect result;
15129 PyObject * obj0 = 0 ;
15130 char *kwnames[] = {
15131 (char *) "self", NULL
15132 };
15133
15134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15135 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15136 if (SWIG_arg_fail(1)) SWIG_fail;
15137 {
15138 PyThreadState* __tstate = wxPyBeginAllowThreads();
15139 result = wxDC_GetClippingRect(arg1);
15140
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 {
15145 wxRect * resultptr;
15146 resultptr = new wxRect(static_cast<wxRect & >(result));
15147 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15148 }
15149 return resultobj;
15150 fail:
15151 return NULL;
15152 }
15153
15154
15155 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15156 PyObject *resultobj = NULL;
15157 wxDC *arg1 = (wxDC *) 0 ;
15158 int result;
15159 PyObject * obj0 = 0 ;
15160 char *kwnames[] = {
15161 (char *) "self", NULL
15162 };
15163
15164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15166 if (SWIG_arg_fail(1)) SWIG_fail;
15167 {
15168 PyThreadState* __tstate = wxPyBeginAllowThreads();
15169 result = (int)((wxDC const *)arg1)->GetCharHeight();
15170
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 {
15175 resultobj = SWIG_From_int(static_cast<int >(result));
15176 }
15177 return resultobj;
15178 fail:
15179 return NULL;
15180 }
15181
15182
15183 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15184 PyObject *resultobj = NULL;
15185 wxDC *arg1 = (wxDC *) 0 ;
15186 int result;
15187 PyObject * obj0 = 0 ;
15188 char *kwnames[] = {
15189 (char *) "self", NULL
15190 };
15191
15192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15194 if (SWIG_arg_fail(1)) SWIG_fail;
15195 {
15196 PyThreadState* __tstate = wxPyBeginAllowThreads();
15197 result = (int)((wxDC const *)arg1)->GetCharWidth();
15198
15199 wxPyEndAllowThreads(__tstate);
15200 if (PyErr_Occurred()) SWIG_fail;
15201 }
15202 {
15203 resultobj = SWIG_From_int(static_cast<int >(result));
15204 }
15205 return resultobj;
15206 fail:
15207 return NULL;
15208 }
15209
15210
15211 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15212 PyObject *resultobj = NULL;
15213 wxDC *arg1 = (wxDC *) 0 ;
15214 wxString *arg2 = 0 ;
15215 int *arg3 = (int *) 0 ;
15216 int *arg4 = (int *) 0 ;
15217 bool temp2 = false ;
15218 int temp3 ;
15219 int res3 = 0 ;
15220 int temp4 ;
15221 int res4 = 0 ;
15222 PyObject * obj0 = 0 ;
15223 PyObject * obj1 = 0 ;
15224 char *kwnames[] = {
15225 (char *) "self",(char *) "string", NULL
15226 };
15227
15228 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15229 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15231 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15232 if (SWIG_arg_fail(1)) SWIG_fail;
15233 {
15234 arg2 = wxString_in_helper(obj1);
15235 if (arg2 == NULL) SWIG_fail;
15236 temp2 = true;
15237 }
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 Py_INCREF(Py_None); resultobj = Py_None;
15246 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15247 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15248 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15249 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15250 {
15251 if (temp2)
15252 delete arg2;
15253 }
15254 return resultobj;
15255 fail:
15256 {
15257 if (temp2)
15258 delete arg2;
15259 }
15260 return NULL;
15261 }
15262
15263
15264 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15265 PyObject *resultobj = NULL;
15266 wxDC *arg1 = (wxDC *) 0 ;
15267 wxString *arg2 = 0 ;
15268 int *arg3 = (int *) 0 ;
15269 int *arg4 = (int *) 0 ;
15270 int *arg5 = (int *) 0 ;
15271 int *arg6 = (int *) 0 ;
15272 wxFont *arg7 = (wxFont *) NULL ;
15273 bool temp2 = false ;
15274 int temp3 ;
15275 int res3 = 0 ;
15276 int temp4 ;
15277 int res4 = 0 ;
15278 int temp5 ;
15279 int res5 = 0 ;
15280 int temp6 ;
15281 int res6 = 0 ;
15282 PyObject * obj0 = 0 ;
15283 PyObject * obj1 = 0 ;
15284 PyObject * obj2 = 0 ;
15285 char *kwnames[] = {
15286 (char *) "self",(char *) "string",(char *) "font", NULL
15287 };
15288
15289 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15290 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15291 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15292 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15294 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15295 if (SWIG_arg_fail(1)) SWIG_fail;
15296 {
15297 arg2 = wxString_in_helper(obj1);
15298 if (arg2 == NULL) SWIG_fail;
15299 temp2 = true;
15300 }
15301 if (obj2) {
15302 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15303 if (SWIG_arg_fail(7)) SWIG_fail;
15304 }
15305 {
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
15308
15309 wxPyEndAllowThreads(__tstate);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 Py_INCREF(Py_None); resultobj = Py_None;
15313 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15314 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15315 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15316 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15317 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15318 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15319 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
15320 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
15321 {
15322 if (temp2)
15323 delete arg2;
15324 }
15325 return resultobj;
15326 fail:
15327 {
15328 if (temp2)
15329 delete arg2;
15330 }
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj = NULL;
15337 wxDC *arg1 = (wxDC *) 0 ;
15338 wxString *arg2 = 0 ;
15339 int *arg3 = (int *) 0 ;
15340 int *arg4 = (int *) 0 ;
15341 int *arg5 = (int *) 0 ;
15342 wxFont *arg6 = (wxFont *) NULL ;
15343 bool temp2 = false ;
15344 int temp3 ;
15345 int res3 = 0 ;
15346 int temp4 ;
15347 int res4 = 0 ;
15348 int temp5 ;
15349 int res5 = 0 ;
15350 PyObject * obj0 = 0 ;
15351 PyObject * obj1 = 0 ;
15352 PyObject * obj2 = 0 ;
15353 char *kwnames[] = {
15354 (char *) "self",(char *) "text",(char *) "font", NULL
15355 };
15356
15357 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15358 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15359 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15361 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15362 if (SWIG_arg_fail(1)) SWIG_fail;
15363 {
15364 arg2 = wxString_in_helper(obj1);
15365 if (arg2 == NULL) SWIG_fail;
15366 temp2 = true;
15367 }
15368 if (obj2) {
15369 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15370 if (SWIG_arg_fail(6)) SWIG_fail;
15371 }
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 Py_INCREF(Py_None); resultobj = Py_None;
15380 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15381 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15382 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15383 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15384 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15385 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15386 {
15387 if (temp2)
15388 delete arg2;
15389 }
15390 return resultobj;
15391 fail:
15392 {
15393 if (temp2)
15394 delete arg2;
15395 }
15396 return NULL;
15397 }
15398
15399
15400 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
15401 PyObject *resultobj = NULL;
15402 wxDC *arg1 = (wxDC *) 0 ;
15403 wxString *arg2 = 0 ;
15404 wxArrayInt result;
15405 bool temp2 = false ;
15406 PyObject * obj0 = 0 ;
15407 PyObject * obj1 = 0 ;
15408 char *kwnames[] = {
15409 (char *) "self",(char *) "text", NULL
15410 };
15411
15412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
15413 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15414 if (SWIG_arg_fail(1)) SWIG_fail;
15415 {
15416 arg2 = wxString_in_helper(obj1);
15417 if (arg2 == NULL) SWIG_fail;
15418 temp2 = true;
15419 }
15420 {
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
15423
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 {
15428 resultobj = PyList_New(0);
15429 size_t idx;
15430 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
15431 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
15432 PyList_Append(resultobj, val);
15433 Py_DECREF(val);
15434 }
15435 }
15436 {
15437 if (temp2)
15438 delete arg2;
15439 }
15440 return resultobj;
15441 fail:
15442 {
15443 if (temp2)
15444 delete arg2;
15445 }
15446 return NULL;
15447 }
15448
15449
15450 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
15451 PyObject *resultobj = NULL;
15452 wxDC *arg1 = (wxDC *) 0 ;
15453 wxSize result;
15454 PyObject * obj0 = 0 ;
15455 char *kwnames[] = {
15456 (char *) "self", NULL
15457 };
15458
15459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
15460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15461 if (SWIG_arg_fail(1)) SWIG_fail;
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 result = (arg1)->GetSize();
15465
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 {
15470 wxSize * resultptr;
15471 resultptr = new wxSize(static_cast<wxSize & >(result));
15472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15473 }
15474 return resultobj;
15475 fail:
15476 return NULL;
15477 }
15478
15479
15480 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj = NULL;
15482 wxDC *arg1 = (wxDC *) 0 ;
15483 int *arg2 = (int *) 0 ;
15484 int *arg3 = (int *) 0 ;
15485 int temp2 ;
15486 int res2 = 0 ;
15487 int temp3 ;
15488 int res3 = 0 ;
15489 PyObject * obj0 = 0 ;
15490 char *kwnames[] = {
15491 (char *) "self", NULL
15492 };
15493
15494 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15495 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
15497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15498 if (SWIG_arg_fail(1)) SWIG_fail;
15499 {
15500 PyThreadState* __tstate = wxPyBeginAllowThreads();
15501 (arg1)->GetSize(arg2,arg3);
15502
15503 wxPyEndAllowThreads(__tstate);
15504 if (PyErr_Occurred()) SWIG_fail;
15505 }
15506 Py_INCREF(Py_None); resultobj = Py_None;
15507 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15508 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15509 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15510 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15511 return resultobj;
15512 fail:
15513 return NULL;
15514 }
15515
15516
15517 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
15518 PyObject *resultobj = NULL;
15519 wxDC *arg1 = (wxDC *) 0 ;
15520 wxSize result;
15521 PyObject * obj0 = 0 ;
15522 char *kwnames[] = {
15523 (char *) "self", NULL
15524 };
15525
15526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = ((wxDC const *)arg1)->GetSizeMM();
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 {
15537 wxSize * resultptr;
15538 resultptr = new wxSize(static_cast<wxSize & >(result));
15539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15540 }
15541 return resultobj;
15542 fail:
15543 return NULL;
15544 }
15545
15546
15547 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj = NULL;
15549 wxDC *arg1 = (wxDC *) 0 ;
15550 int *arg2 = (int *) 0 ;
15551 int *arg3 = (int *) 0 ;
15552 int temp2 ;
15553 int res2 = 0 ;
15554 int temp3 ;
15555 int res3 = 0 ;
15556 PyObject * obj0 = 0 ;
15557 char *kwnames[] = {
15558 (char *) "self", NULL
15559 };
15560
15561 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15562 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
15564 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15565 if (SWIG_arg_fail(1)) SWIG_fail;
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
15569
15570 wxPyEndAllowThreads(__tstate);
15571 if (PyErr_Occurred()) SWIG_fail;
15572 }
15573 Py_INCREF(Py_None); resultobj = Py_None;
15574 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15575 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15576 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15577 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15578 return resultobj;
15579 fail:
15580 return NULL;
15581 }
15582
15583
15584 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
15585 PyObject *resultobj = NULL;
15586 wxDC *arg1 = (wxDC *) 0 ;
15587 int arg2 ;
15588 int result;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 char *kwnames[] = {
15592 (char *) "self",(char *) "x", NULL
15593 };
15594
15595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
15596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15597 if (SWIG_arg_fail(1)) SWIG_fail;
15598 {
15599 arg2 = static_cast<int >(SWIG_As_int(obj1));
15600 if (SWIG_arg_fail(2)) SWIG_fail;
15601 }
15602 {
15603 PyThreadState* __tstate = wxPyBeginAllowThreads();
15604 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
15605
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 {
15610 resultobj = SWIG_From_int(static_cast<int >(result));
15611 }
15612 return resultobj;
15613 fail:
15614 return NULL;
15615 }
15616
15617
15618 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj = NULL;
15620 wxDC *arg1 = (wxDC *) 0 ;
15621 int arg2 ;
15622 int result;
15623 PyObject * obj0 = 0 ;
15624 PyObject * obj1 = 0 ;
15625 char *kwnames[] = {
15626 (char *) "self",(char *) "y", NULL
15627 };
15628
15629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
15630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15631 if (SWIG_arg_fail(1)) SWIG_fail;
15632 {
15633 arg2 = static_cast<int >(SWIG_As_int(obj1));
15634 if (SWIG_arg_fail(2)) SWIG_fail;
15635 }
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
15639
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 {
15644 resultobj = SWIG_From_int(static_cast<int >(result));
15645 }
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
15653 PyObject *resultobj = NULL;
15654 wxDC *arg1 = (wxDC *) 0 ;
15655 int arg2 ;
15656 int result;
15657 PyObject * obj0 = 0 ;
15658 PyObject * obj1 = 0 ;
15659 char *kwnames[] = {
15660 (char *) "self",(char *) "x", NULL
15661 };
15662
15663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
15664 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15665 if (SWIG_arg_fail(1)) SWIG_fail;
15666 {
15667 arg2 = static_cast<int >(SWIG_As_int(obj1));
15668 if (SWIG_arg_fail(2)) SWIG_fail;
15669 }
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 {
15678 resultobj = SWIG_From_int(static_cast<int >(result));
15679 }
15680 return resultobj;
15681 fail:
15682 return NULL;
15683 }
15684
15685
15686 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
15687 PyObject *resultobj = NULL;
15688 wxDC *arg1 = (wxDC *) 0 ;
15689 int arg2 ;
15690 int result;
15691 PyObject * obj0 = 0 ;
15692 PyObject * obj1 = 0 ;
15693 char *kwnames[] = {
15694 (char *) "self",(char *) "y", NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
15698 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15699 if (SWIG_arg_fail(1)) SWIG_fail;
15700 {
15701 arg2 = static_cast<int >(SWIG_As_int(obj1));
15702 if (SWIG_arg_fail(2)) SWIG_fail;
15703 }
15704 {
15705 PyThreadState* __tstate = wxPyBeginAllowThreads();
15706 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
15707
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 {
15712 resultobj = SWIG_From_int(static_cast<int >(result));
15713 }
15714 return resultobj;
15715 fail:
15716 return NULL;
15717 }
15718
15719
15720 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
15721 PyObject *resultobj = NULL;
15722 wxDC *arg1 = (wxDC *) 0 ;
15723 int arg2 ;
15724 int result;
15725 PyObject * obj0 = 0 ;
15726 PyObject * obj1 = 0 ;
15727 char *kwnames[] = {
15728 (char *) "self",(char *) "x", NULL
15729 };
15730
15731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
15732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15733 if (SWIG_arg_fail(1)) SWIG_fail;
15734 {
15735 arg2 = static_cast<int >(SWIG_As_int(obj1));
15736 if (SWIG_arg_fail(2)) SWIG_fail;
15737 }
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
15741
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 {
15746 resultobj = SWIG_From_int(static_cast<int >(result));
15747 }
15748 return resultobj;
15749 fail:
15750 return NULL;
15751 }
15752
15753
15754 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj = NULL;
15756 wxDC *arg1 = (wxDC *) 0 ;
15757 int arg2 ;
15758 int result;
15759 PyObject * obj0 = 0 ;
15760 PyObject * obj1 = 0 ;
15761 char *kwnames[] = {
15762 (char *) "self",(char *) "y", NULL
15763 };
15764
15765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
15766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15767 if (SWIG_arg_fail(1)) SWIG_fail;
15768 {
15769 arg2 = static_cast<int >(SWIG_As_int(obj1));
15770 if (SWIG_arg_fail(2)) SWIG_fail;
15771 }
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
15775
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 {
15780 resultobj = SWIG_From_int(static_cast<int >(result));
15781 }
15782 return resultobj;
15783 fail:
15784 return NULL;
15785 }
15786
15787
15788 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj = NULL;
15790 wxDC *arg1 = (wxDC *) 0 ;
15791 int arg2 ;
15792 int result;
15793 PyObject * obj0 = 0 ;
15794 PyObject * obj1 = 0 ;
15795 char *kwnames[] = {
15796 (char *) "self",(char *) "x", NULL
15797 };
15798
15799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
15800 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15801 if (SWIG_arg_fail(1)) SWIG_fail;
15802 {
15803 arg2 = static_cast<int >(SWIG_As_int(obj1));
15804 if (SWIG_arg_fail(2)) SWIG_fail;
15805 }
15806 {
15807 PyThreadState* __tstate = wxPyBeginAllowThreads();
15808 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
15809
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15813 {
15814 resultobj = SWIG_From_int(static_cast<int >(result));
15815 }
15816 return resultobj;
15817 fail:
15818 return NULL;
15819 }
15820
15821
15822 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
15823 PyObject *resultobj = NULL;
15824 wxDC *arg1 = (wxDC *) 0 ;
15825 int arg2 ;
15826 int result;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "self",(char *) "y", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
15834 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15835 if (SWIG_arg_fail(1)) SWIG_fail;
15836 {
15837 arg2 = static_cast<int >(SWIG_As_int(obj1));
15838 if (SWIG_arg_fail(2)) SWIG_fail;
15839 }
15840 {
15841 PyThreadState* __tstate = wxPyBeginAllowThreads();
15842 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
15843
15844 wxPyEndAllowThreads(__tstate);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 {
15848 resultobj = SWIG_From_int(static_cast<int >(result));
15849 }
15850 return resultobj;
15851 fail:
15852 return NULL;
15853 }
15854
15855
15856 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
15857 PyObject *resultobj = NULL;
15858 wxDC *arg1 = (wxDC *) 0 ;
15859 bool result;
15860 PyObject * obj0 = 0 ;
15861 char *kwnames[] = {
15862 (char *) "self", NULL
15863 };
15864
15865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
15866 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15867 if (SWIG_arg_fail(1)) SWIG_fail;
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
15871
15872 wxPyEndAllowThreads(__tstate);
15873 if (PyErr_Occurred()) SWIG_fail;
15874 }
15875 {
15876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15877 }
15878 return resultobj;
15879 fail:
15880 return NULL;
15881 }
15882
15883
15884 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15885 PyObject *resultobj = NULL;
15886 wxDC *arg1 = (wxDC *) 0 ;
15887 bool result;
15888 PyObject * obj0 = 0 ;
15889 char *kwnames[] = {
15890 (char *) "self", NULL
15891 };
15892
15893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
15894 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15895 if (SWIG_arg_fail(1)) SWIG_fail;
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 {
15904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15905 }
15906 return resultobj;
15907 fail:
15908 return NULL;
15909 }
15910
15911
15912 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
15913 PyObject *resultobj = NULL;
15914 wxDC *arg1 = (wxDC *) 0 ;
15915 int result;
15916 PyObject * obj0 = 0 ;
15917 char *kwnames[] = {
15918 (char *) "self", NULL
15919 };
15920
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
15922 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15923 if (SWIG_arg_fail(1)) SWIG_fail;
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 result = (int)((wxDC const *)arg1)->GetDepth();
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 {
15932 resultobj = SWIG_From_int(static_cast<int >(result));
15933 }
15934 return resultobj;
15935 fail:
15936 return NULL;
15937 }
15938
15939
15940 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
15941 PyObject *resultobj = NULL;
15942 wxDC *arg1 = (wxDC *) 0 ;
15943 wxSize result;
15944 PyObject * obj0 = 0 ;
15945 char *kwnames[] = {
15946 (char *) "self", NULL
15947 };
15948
15949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
15950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15951 if (SWIG_arg_fail(1)) SWIG_fail;
15952 {
15953 PyThreadState* __tstate = wxPyBeginAllowThreads();
15954 result = ((wxDC const *)arg1)->GetPPI();
15955
15956 wxPyEndAllowThreads(__tstate);
15957 if (PyErr_Occurred()) SWIG_fail;
15958 }
15959 {
15960 wxSize * resultptr;
15961 resultptr = new wxSize(static_cast<wxSize & >(result));
15962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15963 }
15964 return resultobj;
15965 fail:
15966 return NULL;
15967 }
15968
15969
15970 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
15971 PyObject *resultobj = NULL;
15972 wxDC *arg1 = (wxDC *) 0 ;
15973 bool result;
15974 PyObject * obj0 = 0 ;
15975 char *kwnames[] = {
15976 (char *) "self", NULL
15977 };
15978
15979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
15980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15981 if (SWIG_arg_fail(1)) SWIG_fail;
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = (bool)((wxDC const *)arg1)->Ok();
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 {
15990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15991 }
15992 return resultobj;
15993 fail:
15994 return NULL;
15995 }
15996
15997
15998 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
15999 PyObject *resultobj = NULL;
16000 wxDC *arg1 = (wxDC *) 0 ;
16001 int result;
16002 PyObject * obj0 = 0 ;
16003 char *kwnames[] = {
16004 (char *) "self", NULL
16005 };
16006
16007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
16008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16009 if (SWIG_arg_fail(1)) SWIG_fail;
16010 {
16011 PyThreadState* __tstate = wxPyBeginAllowThreads();
16012 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
16013
16014 wxPyEndAllowThreads(__tstate);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 {
16018 resultobj = SWIG_From_int(static_cast<int >(result));
16019 }
16020 return resultobj;
16021 fail:
16022 return NULL;
16023 }
16024
16025
16026 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16027 PyObject *resultobj = NULL;
16028 wxDC *arg1 = (wxDC *) 0 ;
16029 wxBrush *result;
16030 PyObject * obj0 = 0 ;
16031 char *kwnames[] = {
16032 (char *) "self", NULL
16033 };
16034
16035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
16036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16037 if (SWIG_arg_fail(1)) SWIG_fail;
16038 {
16039 PyThreadState* __tstate = wxPyBeginAllowThreads();
16040 {
16041 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
16042 result = (wxBrush *) &_result_ref;
16043 }
16044
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 {
16049 wxBrush* resultptr = new wxBrush(*result);
16050 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16051 }
16052 return resultobj;
16053 fail:
16054 return NULL;
16055 }
16056
16057
16058 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj = NULL;
16060 wxDC *arg1 = (wxDC *) 0 ;
16061 wxBrush *result;
16062 PyObject * obj0 = 0 ;
16063 char *kwnames[] = {
16064 (char *) "self", NULL
16065 };
16066
16067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
16068 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16069 if (SWIG_arg_fail(1)) SWIG_fail;
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 {
16073 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
16074 result = (wxBrush *) &_result_ref;
16075 }
16076
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 {
16081 wxBrush* resultptr = new wxBrush(*result);
16082 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16083 }
16084 return resultobj;
16085 fail:
16086 return NULL;
16087 }
16088
16089
16090 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj = NULL;
16092 wxDC *arg1 = (wxDC *) 0 ;
16093 wxFont *result;
16094 PyObject * obj0 = 0 ;
16095 char *kwnames[] = {
16096 (char *) "self", NULL
16097 };
16098
16099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
16100 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16101 if (SWIG_arg_fail(1)) SWIG_fail;
16102 {
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 {
16105 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
16106 result = (wxFont *) &_result_ref;
16107 }
16108
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 {
16113 wxFont* resultptr = new wxFont(*result);
16114 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16115 }
16116 return resultobj;
16117 fail:
16118 return NULL;
16119 }
16120
16121
16122 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = NULL;
16124 wxDC *arg1 = (wxDC *) 0 ;
16125 wxPen *result;
16126 PyObject * obj0 = 0 ;
16127 char *kwnames[] = {
16128 (char *) "self", NULL
16129 };
16130
16131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16133 if (SWIG_arg_fail(1)) SWIG_fail;
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 {
16137 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16138 result = (wxPen *) &_result_ref;
16139 }
16140
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
16145 wxPen* resultptr = new wxPen(*result);
16146 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
16147 }
16148 return resultobj;
16149 fail:
16150 return NULL;
16151 }
16152
16153
16154 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16155 PyObject *resultobj = NULL;
16156 wxDC *arg1 = (wxDC *) 0 ;
16157 wxColour *result;
16158 PyObject * obj0 = 0 ;
16159 char *kwnames[] = {
16160 (char *) "self", NULL
16161 };
16162
16163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16164 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16165 if (SWIG_arg_fail(1)) SWIG_fail;
16166 {
16167 PyThreadState* __tstate = wxPyBeginAllowThreads();
16168 {
16169 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16170 result = (wxColour *) &_result_ref;
16171 }
16172
16173 wxPyEndAllowThreads(__tstate);
16174 if (PyErr_Occurred()) SWIG_fail;
16175 }
16176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16177 return resultobj;
16178 fail:
16179 return NULL;
16180 }
16181
16182
16183 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16184 PyObject *resultobj = NULL;
16185 wxDC *arg1 = (wxDC *) 0 ;
16186 wxColour *result;
16187 PyObject * obj0 = 0 ;
16188 char *kwnames[] = {
16189 (char *) "self", NULL
16190 };
16191
16192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16194 if (SWIG_arg_fail(1)) SWIG_fail;
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 {
16198 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16199 result = (wxColour *) &_result_ref;
16200 }
16201
16202 wxPyEndAllowThreads(__tstate);
16203 if (PyErr_Occurred()) SWIG_fail;
16204 }
16205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16206 return resultobj;
16207 fail:
16208 return NULL;
16209 }
16210
16211
16212 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16213 PyObject *resultobj = NULL;
16214 wxDC *arg1 = (wxDC *) 0 ;
16215 wxColour *arg2 = 0 ;
16216 wxColour temp2 ;
16217 PyObject * obj0 = 0 ;
16218 PyObject * obj1 = 0 ;
16219 char *kwnames[] = {
16220 (char *) "self",(char *) "colour", NULL
16221 };
16222
16223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16224 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16225 if (SWIG_arg_fail(1)) SWIG_fail;
16226 {
16227 arg2 = &temp2;
16228 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16229 }
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 (arg1)->SetTextForeground((wxColour const &)*arg2);
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 Py_INCREF(Py_None); resultobj = Py_None;
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16245 PyObject *resultobj = NULL;
16246 wxDC *arg1 = (wxDC *) 0 ;
16247 wxColour *arg2 = 0 ;
16248 wxColour temp2 ;
16249 PyObject * obj0 = 0 ;
16250 PyObject * obj1 = 0 ;
16251 char *kwnames[] = {
16252 (char *) "self",(char *) "colour", NULL
16253 };
16254
16255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16257 if (SWIG_arg_fail(1)) SWIG_fail;
16258 {
16259 arg2 = &temp2;
16260 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 (arg1)->SetTextBackground((wxColour const &)*arg2);
16265
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 Py_INCREF(Py_None); resultobj = Py_None;
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj = NULL;
16278 wxDC *arg1 = (wxDC *) 0 ;
16279 int result;
16280 PyObject * obj0 = 0 ;
16281 char *kwnames[] = {
16282 (char *) "self", NULL
16283 };
16284
16285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16286 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16287 if (SWIG_arg_fail(1)) SWIG_fail;
16288 {
16289 PyThreadState* __tstate = wxPyBeginAllowThreads();
16290 result = (int)((wxDC const *)arg1)->GetMapMode();
16291
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 {
16296 resultobj = SWIG_From_int(static_cast<int >(result));
16297 }
16298 return resultobj;
16299 fail:
16300 return NULL;
16301 }
16302
16303
16304 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16305 PyObject *resultobj = NULL;
16306 wxDC *arg1 = (wxDC *) 0 ;
16307 int arg2 ;
16308 PyObject * obj0 = 0 ;
16309 PyObject * obj1 = 0 ;
16310 char *kwnames[] = {
16311 (char *) "self",(char *) "mode", NULL
16312 };
16313
16314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
16315 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16316 if (SWIG_arg_fail(1)) SWIG_fail;
16317 {
16318 arg2 = static_cast<int >(SWIG_As_int(obj1));
16319 if (SWIG_arg_fail(2)) SWIG_fail;
16320 }
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 (arg1)->SetMapMode(arg2);
16324
16325 wxPyEndAllowThreads(__tstate);
16326 if (PyErr_Occurred()) SWIG_fail;
16327 }
16328 Py_INCREF(Py_None); resultobj = Py_None;
16329 return resultobj;
16330 fail:
16331 return NULL;
16332 }
16333
16334
16335 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
16336 PyObject *resultobj = NULL;
16337 wxDC *arg1 = (wxDC *) 0 ;
16338 double *arg2 = (double *) 0 ;
16339 double *arg3 = (double *) 0 ;
16340 double temp2 ;
16341 int res2 = 0 ;
16342 double temp3 ;
16343 int res3 = 0 ;
16344 PyObject * obj0 = 0 ;
16345 char *kwnames[] = {
16346 (char *) "self", NULL
16347 };
16348
16349 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16350 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
16352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16353 if (SWIG_arg_fail(1)) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 Py_INCREF(Py_None); resultobj = Py_None;
16362 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16363 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16364 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16365 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
16366 return resultobj;
16367 fail:
16368 return NULL;
16369 }
16370
16371
16372 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
16373 PyObject *resultobj = NULL;
16374 wxDC *arg1 = (wxDC *) 0 ;
16375 double arg2 ;
16376 double arg3 ;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 PyObject * obj2 = 0 ;
16380 char *kwnames[] = {
16381 (char *) "self",(char *) "x",(char *) "y", NULL
16382 };
16383
16384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16385 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16386 if (SWIG_arg_fail(1)) SWIG_fail;
16387 {
16388 arg2 = static_cast<double >(SWIG_As_double(obj1));
16389 if (SWIG_arg_fail(2)) SWIG_fail;
16390 }
16391 {
16392 arg3 = static_cast<double >(SWIG_As_double(obj2));
16393 if (SWIG_arg_fail(3)) SWIG_fail;
16394 }
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 (arg1)->SetUserScale(arg2,arg3);
16398
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 Py_INCREF(Py_None); resultobj = Py_None;
16403 return resultobj;
16404 fail:
16405 return NULL;
16406 }
16407
16408
16409 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
16410 PyObject *resultobj = NULL;
16411 wxDC *arg1 = (wxDC *) 0 ;
16412 double *arg2 = (double *) 0 ;
16413 double *arg3 = (double *) 0 ;
16414 double temp2 ;
16415 int res2 = 0 ;
16416 double temp3 ;
16417 int res3 = 0 ;
16418 PyObject * obj0 = 0 ;
16419 char *kwnames[] = {
16420 (char *) "self", NULL
16421 };
16422
16423 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16424 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
16426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16427 if (SWIG_arg_fail(1)) SWIG_fail;
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 (arg1)->GetLogicalScale(arg2,arg3);
16431
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 Py_INCREF(Py_None); resultobj = Py_None;
16436 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16437 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
16438 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16439 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
16440 return resultobj;
16441 fail:
16442 return NULL;
16443 }
16444
16445
16446 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
16447 PyObject *resultobj = NULL;
16448 wxDC *arg1 = (wxDC *) 0 ;
16449 double arg2 ;
16450 double arg3 ;
16451 PyObject * obj0 = 0 ;
16452 PyObject * obj1 = 0 ;
16453 PyObject * obj2 = 0 ;
16454 char *kwnames[] = {
16455 (char *) "self",(char *) "x",(char *) "y", NULL
16456 };
16457
16458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
16459 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16460 if (SWIG_arg_fail(1)) SWIG_fail;
16461 {
16462 arg2 = static_cast<double >(SWIG_As_double(obj1));
16463 if (SWIG_arg_fail(2)) SWIG_fail;
16464 }
16465 {
16466 arg3 = static_cast<double >(SWIG_As_double(obj2));
16467 if (SWIG_arg_fail(3)) SWIG_fail;
16468 }
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 (arg1)->SetLogicalScale(arg2,arg3);
16472
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
16476 Py_INCREF(Py_None); resultobj = Py_None;
16477 return resultobj;
16478 fail:
16479 return NULL;
16480 }
16481
16482
16483 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16484 PyObject *resultobj = NULL;
16485 wxDC *arg1 = (wxDC *) 0 ;
16486 wxPoint result;
16487 PyObject * obj0 = 0 ;
16488 char *kwnames[] = {
16489 (char *) "self", NULL
16490 };
16491
16492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
16493 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16494 if (SWIG_arg_fail(1)) SWIG_fail;
16495 {
16496 PyThreadState* __tstate = wxPyBeginAllowThreads();
16497 result = ((wxDC const *)arg1)->GetLogicalOrigin();
16498
16499 wxPyEndAllowThreads(__tstate);
16500 if (PyErr_Occurred()) SWIG_fail;
16501 }
16502 {
16503 wxPoint * resultptr;
16504 resultptr = new wxPoint(static_cast<wxPoint & >(result));
16505 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16506 }
16507 return resultobj;
16508 fail:
16509 return NULL;
16510 }
16511
16512
16513 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16514 PyObject *resultobj = NULL;
16515 wxDC *arg1 = (wxDC *) 0 ;
16516 int *arg2 = (int *) 0 ;
16517 int *arg3 = (int *) 0 ;
16518 int temp2 ;
16519 int res2 = 0 ;
16520 int temp3 ;
16521 int res3 = 0 ;
16522 PyObject * obj0 = 0 ;
16523 char *kwnames[] = {
16524 (char *) "self", NULL
16525 };
16526
16527 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16528 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",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 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 Py_INCREF(Py_None); resultobj = Py_None;
16540 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16541 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16542 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16543 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16544 return resultobj;
16545 fail:
16546 return NULL;
16547 }
16548
16549
16550 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16551 PyObject *resultobj = NULL;
16552 wxDC *arg1 = (wxDC *) 0 ;
16553 int arg2 ;
16554 int arg3 ;
16555 PyObject * obj0 = 0 ;
16556 PyObject * obj1 = 0 ;
16557 PyObject * obj2 = 0 ;
16558 char *kwnames[] = {
16559 (char *) "self",(char *) "x",(char *) "y", NULL
16560 };
16561
16562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16563 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16564 if (SWIG_arg_fail(1)) SWIG_fail;
16565 {
16566 arg2 = static_cast<int >(SWIG_As_int(obj1));
16567 if (SWIG_arg_fail(2)) SWIG_fail;
16568 }
16569 {
16570 arg3 = static_cast<int >(SWIG_As_int(obj2));
16571 if (SWIG_arg_fail(3)) SWIG_fail;
16572 }
16573 {
16574 PyThreadState* __tstate = wxPyBeginAllowThreads();
16575 (arg1)->SetLogicalOrigin(arg2,arg3);
16576
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 Py_INCREF(Py_None); resultobj = Py_None;
16581 return resultobj;
16582 fail:
16583 return NULL;
16584 }
16585
16586
16587 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16588 PyObject *resultobj = NULL;
16589 wxDC *arg1 = (wxDC *) 0 ;
16590 wxPoint *arg2 = 0 ;
16591 wxPoint temp2 ;
16592 PyObject * obj0 = 0 ;
16593 PyObject * obj1 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "self",(char *) "point", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16599 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16600 if (SWIG_arg_fail(1)) SWIG_fail;
16601 {
16602 arg2 = &temp2;
16603 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16604 }
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 Py_INCREF(Py_None); resultobj = Py_None;
16613 return resultobj;
16614 fail:
16615 return NULL;
16616 }
16617
16618
16619 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16620 PyObject *resultobj = NULL;
16621 wxDC *arg1 = (wxDC *) 0 ;
16622 wxPoint result;
16623 PyObject * obj0 = 0 ;
16624 char *kwnames[] = {
16625 (char *) "self", NULL
16626 };
16627
16628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
16629 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16630 if (SWIG_arg_fail(1)) SWIG_fail;
16631 {
16632 PyThreadState* __tstate = wxPyBeginAllowThreads();
16633 result = ((wxDC const *)arg1)->GetDeviceOrigin();
16634
16635 wxPyEndAllowThreads(__tstate);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 {
16639 wxPoint * resultptr;
16640 resultptr = new wxPoint(static_cast<wxPoint & >(result));
16641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16642 }
16643 return resultobj;
16644 fail:
16645 return NULL;
16646 }
16647
16648
16649 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16650 PyObject *resultobj = NULL;
16651 wxDC *arg1 = (wxDC *) 0 ;
16652 int *arg2 = (int *) 0 ;
16653 int *arg3 = (int *) 0 ;
16654 int temp2 ;
16655 int res2 = 0 ;
16656 int temp3 ;
16657 int res3 = 0 ;
16658 PyObject * obj0 = 0 ;
16659 char *kwnames[] = {
16660 (char *) "self", NULL
16661 };
16662
16663 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16664 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
16666 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16667 if (SWIG_arg_fail(1)) SWIG_fail;
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
16670 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
16671
16672 wxPyEndAllowThreads(__tstate);
16673 if (PyErr_Occurred()) SWIG_fail;
16674 }
16675 Py_INCREF(Py_None); resultobj = Py_None;
16676 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16677 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16678 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16679 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16680 return resultobj;
16681 fail:
16682 return NULL;
16683 }
16684
16685
16686 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16687 PyObject *resultobj = NULL;
16688 wxDC *arg1 = (wxDC *) 0 ;
16689 int arg2 ;
16690 int arg3 ;
16691 PyObject * obj0 = 0 ;
16692 PyObject * obj1 = 0 ;
16693 PyObject * obj2 = 0 ;
16694 char *kwnames[] = {
16695 (char *) "self",(char *) "x",(char *) "y", NULL
16696 };
16697
16698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
16699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16700 if (SWIG_arg_fail(1)) SWIG_fail;
16701 {
16702 arg2 = static_cast<int >(SWIG_As_int(obj1));
16703 if (SWIG_arg_fail(2)) SWIG_fail;
16704 }
16705 {
16706 arg3 = static_cast<int >(SWIG_As_int(obj2));
16707 if (SWIG_arg_fail(3)) SWIG_fail;
16708 }
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 (arg1)->SetDeviceOrigin(arg2,arg3);
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 Py_INCREF(Py_None); resultobj = Py_None;
16717 return resultobj;
16718 fail:
16719 return NULL;
16720 }
16721
16722
16723 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj = NULL;
16725 wxDC *arg1 = (wxDC *) 0 ;
16726 wxPoint *arg2 = 0 ;
16727 wxPoint temp2 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "self",(char *) "point", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
16735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16736 if (SWIG_arg_fail(1)) SWIG_fail;
16737 {
16738 arg2 = &temp2;
16739 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16740 }
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
16744
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 Py_INCREF(Py_None); resultobj = Py_None;
16749 return resultobj;
16750 fail:
16751 return NULL;
16752 }
16753
16754
16755 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj = NULL;
16757 wxDC *arg1 = (wxDC *) 0 ;
16758 bool arg2 ;
16759 bool arg3 ;
16760 PyObject * obj0 = 0 ;
16761 PyObject * obj1 = 0 ;
16762 PyObject * obj2 = 0 ;
16763 char *kwnames[] = {
16764 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
16765 };
16766
16767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) 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 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
16772 if (SWIG_arg_fail(2)) SWIG_fail;
16773 }
16774 {
16775 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
16776 if (SWIG_arg_fail(3)) SWIG_fail;
16777 }
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 (arg1)->SetAxisOrientation(arg2,arg3);
16781
16782 wxPyEndAllowThreads(__tstate);
16783 if (PyErr_Occurred()) SWIG_fail;
16784 }
16785 Py_INCREF(Py_None); resultobj = Py_None;
16786 return resultobj;
16787 fail:
16788 return NULL;
16789 }
16790
16791
16792 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
16793 PyObject *resultobj = NULL;
16794 wxDC *arg1 = (wxDC *) 0 ;
16795 int result;
16796 PyObject * obj0 = 0 ;
16797 char *kwnames[] = {
16798 (char *) "self", NULL
16799 };
16800
16801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
16802 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16803 if (SWIG_arg_fail(1)) SWIG_fail;
16804 {
16805 PyThreadState* __tstate = wxPyBeginAllowThreads();
16806 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
16807
16808 wxPyEndAllowThreads(__tstate);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 {
16812 resultobj = SWIG_From_int(static_cast<int >(result));
16813 }
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj = NULL;
16822 wxDC *arg1 = (wxDC *) 0 ;
16823 int arg2 ;
16824 PyObject * obj0 = 0 ;
16825 PyObject * obj1 = 0 ;
16826 char *kwnames[] = {
16827 (char *) "self",(char *) "function", NULL
16828 };
16829
16830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
16831 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16832 if (SWIG_arg_fail(1)) SWIG_fail;
16833 {
16834 arg2 = static_cast<int >(SWIG_As_int(obj1));
16835 if (SWIG_arg_fail(2)) SWIG_fail;
16836 }
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 (arg1)->SetLogicalFunction(arg2);
16840
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 Py_INCREF(Py_None); resultobj = Py_None;
16845 return resultobj;
16846 fail:
16847 return NULL;
16848 }
16849
16850
16851 static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
16852 PyObject *resultobj = NULL;
16853 wxDC *arg1 = (wxDC *) 0 ;
16854 PyObject * obj0 = 0 ;
16855 char *kwnames[] = {
16856 (char *) "self", NULL
16857 };
16858
16859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 (arg1)->ComputeScaleAndOrigin();
16865
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 Py_INCREF(Py_None); resultobj = Py_None;
16870 return resultobj;
16871 fail:
16872 return NULL;
16873 }
16874
16875
16876 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj = NULL;
16878 wxDC *arg1 = (wxDC *) 0 ;
16879 int arg2 ;
16880 int arg3 ;
16881 PyObject * obj0 = 0 ;
16882 PyObject * obj1 = 0 ;
16883 PyObject * obj2 = 0 ;
16884 char *kwnames[] = {
16885 (char *) "self",(char *) "x",(char *) "y", NULL
16886 };
16887
16888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
16889 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16890 if (SWIG_arg_fail(1)) SWIG_fail;
16891 {
16892 arg2 = static_cast<int >(SWIG_As_int(obj1));
16893 if (SWIG_arg_fail(2)) SWIG_fail;
16894 }
16895 {
16896 arg3 = static_cast<int >(SWIG_As_int(obj2));
16897 if (SWIG_arg_fail(3)) SWIG_fail;
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 (arg1)->CalcBoundingBox(arg2,arg3);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 Py_INCREF(Py_None); resultobj = Py_None;
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj = NULL;
16915 wxDC *arg1 = (wxDC *) 0 ;
16916 wxPoint *arg2 = 0 ;
16917 wxPoint temp2 ;
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "self",(char *) "point", NULL
16922 };
16923
16924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
16925 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16926 if (SWIG_arg_fail(1)) SWIG_fail;
16927 {
16928 arg2 = &temp2;
16929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 Py_INCREF(Py_None); resultobj = Py_None;
16939 return resultobj;
16940 fail:
16941 return NULL;
16942 }
16943
16944
16945 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj = NULL;
16947 wxDC *arg1 = (wxDC *) 0 ;
16948 PyObject * obj0 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "self", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
16954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16955 if (SWIG_arg_fail(1)) SWIG_fail;
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 (arg1)->ResetBoundingBox();
16959
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 Py_INCREF(Py_None); resultobj = Py_None;
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
16971 PyObject *resultobj = NULL;
16972 wxDC *arg1 = (wxDC *) 0 ;
16973 int result;
16974 PyObject * obj0 = 0 ;
16975 char *kwnames[] = {
16976 (char *) "self", NULL
16977 };
16978
16979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
16980 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16981 if (SWIG_arg_fail(1)) SWIG_fail;
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 result = (int)((wxDC const *)arg1)->MinX();
16985
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 {
16990 resultobj = SWIG_From_int(static_cast<int >(result));
16991 }
16992 return resultobj;
16993 fail:
16994 return NULL;
16995 }
16996
16997
16998 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
16999 PyObject *resultobj = NULL;
17000 wxDC *arg1 = (wxDC *) 0 ;
17001 int result;
17002 PyObject * obj0 = 0 ;
17003 char *kwnames[] = {
17004 (char *) "self", NULL
17005 };
17006
17007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
17008 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17009 if (SWIG_arg_fail(1)) SWIG_fail;
17010 {
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 result = (int)((wxDC const *)arg1)->MaxX();
17013
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 {
17018 resultobj = SWIG_From_int(static_cast<int >(result));
17019 }
17020 return resultobj;
17021 fail:
17022 return NULL;
17023 }
17024
17025
17026 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
17027 PyObject *resultobj = NULL;
17028 wxDC *arg1 = (wxDC *) 0 ;
17029 int result;
17030 PyObject * obj0 = 0 ;
17031 char *kwnames[] = {
17032 (char *) "self", NULL
17033 };
17034
17035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
17036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17037 if (SWIG_arg_fail(1)) SWIG_fail;
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (int)((wxDC const *)arg1)->MinY();
17041
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 {
17046 resultobj = SWIG_From_int(static_cast<int >(result));
17047 }
17048 return resultobj;
17049 fail:
17050 return NULL;
17051 }
17052
17053
17054 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
17055 PyObject *resultobj = NULL;
17056 wxDC *arg1 = (wxDC *) 0 ;
17057 int result;
17058 PyObject * obj0 = 0 ;
17059 char *kwnames[] = {
17060 (char *) "self", NULL
17061 };
17062
17063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
17064 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17065 if (SWIG_arg_fail(1)) SWIG_fail;
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 result = (int)((wxDC const *)arg1)->MaxY();
17069
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 {
17074 resultobj = SWIG_From_int(static_cast<int >(result));
17075 }
17076 return resultobj;
17077 fail:
17078 return NULL;
17079 }
17080
17081
17082 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17083 PyObject *resultobj = NULL;
17084 wxDC *arg1 = (wxDC *) 0 ;
17085 int *arg2 = (int *) 0 ;
17086 int *arg3 = (int *) 0 ;
17087 int *arg4 = (int *) 0 ;
17088 int *arg5 = (int *) 0 ;
17089 int temp2 ;
17090 int res2 = 0 ;
17091 int temp3 ;
17092 int res3 = 0 ;
17093 int temp4 ;
17094 int res4 = 0 ;
17095 int temp5 ;
17096 int res5 = 0 ;
17097 PyObject * obj0 = 0 ;
17098 char *kwnames[] = {
17099 (char *) "self", NULL
17100 };
17101
17102 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17103 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17104 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17105 arg5 = &temp5; res5 = SWIG_NEWOBJ;
17106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
17107 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17108 if (SWIG_arg_fail(1)) SWIG_fail;
17109 {
17110 PyThreadState* __tstate = wxPyBeginAllowThreads();
17111 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
17112
17113 wxPyEndAllowThreads(__tstate);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 Py_INCREF(Py_None); resultobj = Py_None;
17117 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17118 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17119 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17120 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17121 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17122 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17123 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17124 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
17125 return resultobj;
17126 fail:
17127 return NULL;
17128 }
17129
17130
17131 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
17132 PyObject *resultobj = NULL;
17133 wxDC *arg1 = (wxDC *) 0 ;
17134 PyObject *arg2 = (PyObject *) 0 ;
17135 PyObject *arg3 = (PyObject *) 0 ;
17136 PyObject *arg4 = (PyObject *) 0 ;
17137 PyObject *result;
17138 PyObject * obj0 = 0 ;
17139 PyObject * obj1 = 0 ;
17140 PyObject * obj2 = 0 ;
17141 PyObject * obj3 = 0 ;
17142 char *kwnames[] = {
17143 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17144 };
17145
17146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17147 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17148 if (SWIG_arg_fail(1)) SWIG_fail;
17149 arg2 = obj1;
17150 arg3 = obj2;
17151 arg4 = obj3;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 resultobj = result;
17160 return resultobj;
17161 fail:
17162 return NULL;
17163 }
17164
17165
17166 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj = NULL;
17168 wxDC *arg1 = (wxDC *) 0 ;
17169 PyObject *arg2 = (PyObject *) 0 ;
17170 PyObject *arg3 = (PyObject *) 0 ;
17171 PyObject *arg4 = (PyObject *) 0 ;
17172 PyObject *result;
17173 PyObject * obj0 = 0 ;
17174 PyObject * obj1 = 0 ;
17175 PyObject * obj2 = 0 ;
17176 PyObject * obj3 = 0 ;
17177 char *kwnames[] = {
17178 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17179 };
17180
17181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17183 if (SWIG_arg_fail(1)) SWIG_fail;
17184 arg2 = obj1;
17185 arg3 = obj2;
17186 arg4 = obj3;
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 resultobj = result;
17195 return resultobj;
17196 fail:
17197 return NULL;
17198 }
17199
17200
17201 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj = NULL;
17203 wxDC *arg1 = (wxDC *) 0 ;
17204 PyObject *arg2 = (PyObject *) 0 ;
17205 PyObject *arg3 = (PyObject *) 0 ;
17206 PyObject *arg4 = (PyObject *) 0 ;
17207 PyObject *result;
17208 PyObject * obj0 = 0 ;
17209 PyObject * obj1 = 0 ;
17210 PyObject * obj2 = 0 ;
17211 PyObject * obj3 = 0 ;
17212 char *kwnames[] = {
17213 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17214 };
17215
17216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17217 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17218 if (SWIG_arg_fail(1)) SWIG_fail;
17219 arg2 = obj1;
17220 arg3 = obj2;
17221 arg4 = obj3;
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
17225
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = result;
17230 return resultobj;
17231 fail:
17232 return NULL;
17233 }
17234
17235
17236 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
17237 PyObject *resultobj = NULL;
17238 wxDC *arg1 = (wxDC *) 0 ;
17239 PyObject *arg2 = (PyObject *) 0 ;
17240 PyObject *arg3 = (PyObject *) 0 ;
17241 PyObject *arg4 = (PyObject *) 0 ;
17242 PyObject *result;
17243 PyObject * obj0 = 0 ;
17244 PyObject * obj1 = 0 ;
17245 PyObject * obj2 = 0 ;
17246 PyObject * obj3 = 0 ;
17247 char *kwnames[] = {
17248 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17249 };
17250
17251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17252 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17253 if (SWIG_arg_fail(1)) SWIG_fail;
17254 arg2 = obj1;
17255 arg3 = obj2;
17256 arg4 = obj3;
17257 {
17258 PyThreadState* __tstate = wxPyBeginAllowThreads();
17259 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
17260
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 resultobj = result;
17265 return resultobj;
17266 fail:
17267 return NULL;
17268 }
17269
17270
17271 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj = NULL;
17273 wxDC *arg1 = (wxDC *) 0 ;
17274 PyObject *arg2 = (PyObject *) 0 ;
17275 PyObject *arg3 = (PyObject *) 0 ;
17276 PyObject *arg4 = (PyObject *) 0 ;
17277 PyObject *result;
17278 PyObject * obj0 = 0 ;
17279 PyObject * obj1 = 0 ;
17280 PyObject * obj2 = 0 ;
17281 PyObject * obj3 = 0 ;
17282 char *kwnames[] = {
17283 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17284 };
17285
17286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17287 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17288 if (SWIG_arg_fail(1)) SWIG_fail;
17289 arg2 = obj1;
17290 arg3 = obj2;
17291 arg4 = obj3;
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
17295
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 resultobj = result;
17300 return resultobj;
17301 fail:
17302 return NULL;
17303 }
17304
17305
17306 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
17307 PyObject *resultobj = NULL;
17308 wxDC *arg1 = (wxDC *) 0 ;
17309 PyObject *arg2 = (PyObject *) 0 ;
17310 PyObject *arg3 = (PyObject *) 0 ;
17311 PyObject *arg4 = (PyObject *) 0 ;
17312 PyObject *arg5 = (PyObject *) 0 ;
17313 PyObject *result;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 PyObject * obj2 = 0 ;
17317 PyObject * obj3 = 0 ;
17318 PyObject * obj4 = 0 ;
17319 char *kwnames[] = {
17320 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
17321 };
17322
17323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17325 if (SWIG_arg_fail(1)) SWIG_fail;
17326 arg2 = obj1;
17327 arg3 = obj2;
17328 arg4 = obj3;
17329 arg5 = obj4;
17330 {
17331 PyThreadState* __tstate = wxPyBeginAllowThreads();
17332 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
17333
17334 wxPyEndAllowThreads(__tstate);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 resultobj = result;
17338 return resultobj;
17339 fail:
17340 return NULL;
17341 }
17342
17343
17344 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
17345 PyObject *obj;
17346 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17347 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
17348 Py_INCREF(obj);
17349 return Py_BuildValue((char *)"");
17350 }
17351 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
17352 PyObject *resultobj = NULL;
17353 wxMemoryDC *result;
17354 char *kwnames[] = {
17355 NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
17359 {
17360 if (!wxPyCheckForApp()) SWIG_fail;
17361 PyThreadState* __tstate = wxPyBeginAllowThreads();
17362 result = (wxMemoryDC *)new wxMemoryDC();
17363
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
17368 return resultobj;
17369 fail:
17370 return NULL;
17371 }
17372
17373
17374 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
17375 PyObject *resultobj = NULL;
17376 wxDC *arg1 = (wxDC *) 0 ;
17377 wxMemoryDC *result;
17378 PyObject * obj0 = 0 ;
17379 char *kwnames[] = {
17380 (char *) "oldDC", NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
17384 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17385 if (SWIG_arg_fail(1)) SWIG_fail;
17386 {
17387 if (!wxPyCheckForApp()) SWIG_fail;
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 result = (wxMemoryDC *)new wxMemoryDC(arg1);
17390
17391 wxPyEndAllowThreads(__tstate);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
17395 return resultobj;
17396 fail:
17397 return NULL;
17398 }
17399
17400
17401 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
17402 PyObject *resultobj = NULL;
17403 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
17404 wxBitmap *arg2 = 0 ;
17405 PyObject * obj0 = 0 ;
17406 PyObject * obj1 = 0 ;
17407 char *kwnames[] = {
17408 (char *) "self",(char *) "bitmap", NULL
17409 };
17410
17411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
17412 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
17413 if (SWIG_arg_fail(1)) SWIG_fail;
17414 {
17415 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17416 if (SWIG_arg_fail(2)) SWIG_fail;
17417 if (arg2 == NULL) {
17418 SWIG_null_ref("wxBitmap");
17419 }
17420 if (SWIG_arg_fail(2)) SWIG_fail;
17421 }
17422 {
17423 PyThreadState* __tstate = wxPyBeginAllowThreads();
17424 (arg1)->SelectObject((wxBitmap const &)*arg2);
17425
17426 wxPyEndAllowThreads(__tstate);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
17429 Py_INCREF(Py_None); resultobj = Py_None;
17430 return resultobj;
17431 fail:
17432 return NULL;
17433 }
17434
17435
17436 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
17437 PyObject *obj;
17438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17439 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
17440 Py_INCREF(obj);
17441 return Py_BuildValue((char *)"");
17442 }
17443 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
17444 PyObject *resultobj = NULL;
17445 wxDC *arg1 = (wxDC *) 0 ;
17446 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17447 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
17448 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17449 wxBufferedDC *result;
17450 PyObject * obj0 = 0 ;
17451 PyObject * obj1 = 0 ;
17452 PyObject * obj2 = 0 ;
17453
17454 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
17455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17456 if (SWIG_arg_fail(1)) SWIG_fail;
17457 if (obj1) {
17458 {
17459 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17460 if (SWIG_arg_fail(2)) SWIG_fail;
17461 if (arg2 == NULL) {
17462 SWIG_null_ref("wxBitmap");
17463 }
17464 if (SWIG_arg_fail(2)) SWIG_fail;
17465 }
17466 }
17467 if (obj2) {
17468 {
17469 arg3 = static_cast<int >(SWIG_As_int(obj2));
17470 if (SWIG_arg_fail(3)) SWIG_fail;
17471 }
17472 }
17473 {
17474 if (!wxPyCheckForApp()) SWIG_fail;
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
17477
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
17482 return resultobj;
17483 fail:
17484 return NULL;
17485 }
17486
17487
17488 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
17489 PyObject *resultobj = NULL;
17490 wxDC *arg1 = (wxDC *) 0 ;
17491 wxSize *arg2 = 0 ;
17492 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17493 wxBufferedDC *result;
17494 wxSize temp2 ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 PyObject * obj2 = 0 ;
17498
17499 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
17500 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17501 if (SWIG_arg_fail(1)) SWIG_fail;
17502 {
17503 arg2 = &temp2;
17504 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
17505 }
17506 if (obj2) {
17507 {
17508 arg3 = static_cast<int >(SWIG_As_int(obj2));
17509 if (SWIG_arg_fail(3)) SWIG_fail;
17510 }
17511 }
17512 {
17513 if (!wxPyCheckForApp()) SWIG_fail;
17514 PyThreadState* __tstate = wxPyBeginAllowThreads();
17515 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
17516
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
17528 int argc;
17529 PyObject *argv[4];
17530 int ii;
17531
17532 argc = PyObject_Length(args);
17533 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
17534 argv[ii] = PyTuple_GetItem(args,ii);
17535 }
17536 if ((argc >= 1) && (argc <= 3)) {
17537 int _v;
17538 {
17539 void *ptr;
17540 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17541 _v = 0;
17542 PyErr_Clear();
17543 } else {
17544 _v = 1;
17545 }
17546 }
17547 if (_v) {
17548 if (argc <= 1) {
17549 return _wrap_new_BufferedDC__SWIG_0(self,args);
17550 }
17551 {
17552 void *ptr = 0;
17553 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
17554 _v = 0;
17555 PyErr_Clear();
17556 } else {
17557 _v = (ptr != 0);
17558 }
17559 }
17560 if (_v) {
17561 if (argc <= 2) {
17562 return _wrap_new_BufferedDC__SWIG_0(self,args);
17563 }
17564 _v = SWIG_Check_int(argv[2]);
17565 if (_v) {
17566 return _wrap_new_BufferedDC__SWIG_0(self,args);
17567 }
17568 }
17569 }
17570 }
17571 if ((argc >= 2) && (argc <= 3)) {
17572 int _v;
17573 {
17574 void *ptr;
17575 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
17576 _v = 0;
17577 PyErr_Clear();
17578 } else {
17579 _v = 1;
17580 }
17581 }
17582 if (_v) {
17583 {
17584 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
17585 }
17586 if (_v) {
17587 if (argc <= 2) {
17588 return _wrap_new_BufferedDC__SWIG_1(self,args);
17589 }
17590 _v = SWIG_Check_int(argv[2]);
17591 if (_v) {
17592 return _wrap_new_BufferedDC__SWIG_1(self,args);
17593 }
17594 }
17595 }
17596 }
17597
17598 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
17599 return NULL;
17600 }
17601
17602
17603 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj = NULL;
17605 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
17606 PyObject * obj0 = 0 ;
17607 char *kwnames[] = {
17608 (char *) "self", NULL
17609 };
17610
17611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
17612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17613 if (SWIG_arg_fail(1)) SWIG_fail;
17614 {
17615 PyThreadState* __tstate = wxPyBeginAllowThreads();
17616 delete arg1;
17617
17618 wxPyEndAllowThreads(__tstate);
17619 if (PyErr_Occurred()) SWIG_fail;
17620 }
17621 Py_INCREF(Py_None); resultobj = Py_None;
17622 return resultobj;
17623 fail:
17624 return NULL;
17625 }
17626
17627
17628 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
17629 PyObject *resultobj = NULL;
17630 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
17631 PyObject * obj0 = 0 ;
17632 char *kwnames[] = {
17633 (char *) "self", NULL
17634 };
17635
17636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
17637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
17638 if (SWIG_arg_fail(1)) SWIG_fail;
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->UnMask();
17642
17643 wxPyEndAllowThreads(__tstate);
17644 if (PyErr_Occurred()) SWIG_fail;
17645 }
17646 Py_INCREF(Py_None); resultobj = Py_None;
17647 return resultobj;
17648 fail:
17649 return NULL;
17650 }
17651
17652
17653 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
17654 PyObject *obj;
17655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17656 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
17657 Py_INCREF(obj);
17658 return Py_BuildValue((char *)"");
17659 }
17660 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj = NULL;
17662 wxWindow *arg1 = (wxWindow *) 0 ;
17663 wxBitmap const &arg2_defvalue = wxNullBitmap ;
17664 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
17665 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
17666 wxBufferedPaintDC *result;
17667 PyObject * obj0 = 0 ;
17668 PyObject * obj1 = 0 ;
17669 PyObject * obj2 = 0 ;
17670 char *kwnames[] = {
17671 (char *) "window",(char *) "buffer",(char *) "style", NULL
17672 };
17673
17674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
17675 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17676 if (SWIG_arg_fail(1)) SWIG_fail;
17677 if (obj1) {
17678 {
17679 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
17680 if (SWIG_arg_fail(2)) SWIG_fail;
17681 if (arg2 == NULL) {
17682 SWIG_null_ref("wxBitmap");
17683 }
17684 if (SWIG_arg_fail(2)) SWIG_fail;
17685 }
17686 }
17687 if (obj2) {
17688 {
17689 arg3 = static_cast<int >(SWIG_As_int(obj2));
17690 if (SWIG_arg_fail(3)) SWIG_fail;
17691 }
17692 }
17693 {
17694 if (!wxPyCheckForApp()) SWIG_fail;
17695 PyThreadState* __tstate = wxPyBeginAllowThreads();
17696 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
17697
17698 wxPyEndAllowThreads(__tstate);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 }
17701 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
17709 PyObject *obj;
17710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17711 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
17712 Py_INCREF(obj);
17713 return Py_BuildValue((char *)"");
17714 }
17715 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj = NULL;
17717 wxScreenDC *result;
17718 char *kwnames[] = {
17719 NULL
17720 };
17721
17722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
17723 {
17724 if (!wxPyCheckForApp()) SWIG_fail;
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 result = (wxScreenDC *)new wxScreenDC();
17727
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
17732 return resultobj;
17733 fail:
17734 return NULL;
17735 }
17736
17737
17738 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
17739 PyObject *resultobj = NULL;
17740 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17741 wxWindow *arg2 = (wxWindow *) 0 ;
17742 bool result;
17743 PyObject * obj0 = 0 ;
17744 PyObject * obj1 = 0 ;
17745 char *kwnames[] = {
17746 (char *) "self",(char *) "window", NULL
17747 };
17748
17749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
17750 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17751 if (SWIG_arg_fail(1)) SWIG_fail;
17752 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17753 if (SWIG_arg_fail(2)) SWIG_fail;
17754 {
17755 PyThreadState* __tstate = wxPyBeginAllowThreads();
17756 result = (bool)(arg1)->StartDrawingOnTop(arg2);
17757
17758 wxPyEndAllowThreads(__tstate);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 }
17761 {
17762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17763 }
17764 return resultobj;
17765 fail:
17766 return NULL;
17767 }
17768
17769
17770 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
17771 PyObject *resultobj = NULL;
17772 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17773 wxRect *arg2 = (wxRect *) NULL ;
17774 bool result;
17775 PyObject * obj0 = 0 ;
17776 PyObject * obj1 = 0 ;
17777 char *kwnames[] = {
17778 (char *) "self",(char *) "rect", NULL
17779 };
17780
17781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
17782 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17783 if (SWIG_arg_fail(1)) SWIG_fail;
17784 if (obj1) {
17785 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
17786 if (SWIG_arg_fail(2)) SWIG_fail;
17787 }
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 result = (bool)(arg1)->StartDrawingOnTop(arg2);
17791
17792 wxPyEndAllowThreads(__tstate);
17793 if (PyErr_Occurred()) SWIG_fail;
17794 }
17795 {
17796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17797 }
17798 return resultobj;
17799 fail:
17800 return NULL;
17801 }
17802
17803
17804 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj = NULL;
17806 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
17807 bool result;
17808 PyObject * obj0 = 0 ;
17809 char *kwnames[] = {
17810 (char *) "self", NULL
17811 };
17812
17813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
17814 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
17815 if (SWIG_arg_fail(1)) SWIG_fail;
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (bool)(arg1)->EndDrawingOnTop();
17819
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 {
17824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17825 }
17826 return resultobj;
17827 fail:
17828 return NULL;
17829 }
17830
17831
17832 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
17833 PyObject *obj;
17834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17835 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
17836 Py_INCREF(obj);
17837 return Py_BuildValue((char *)"");
17838 }
17839 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
17840 PyObject *resultobj = NULL;
17841 wxWindow *arg1 = (wxWindow *) 0 ;
17842 wxClientDC *result;
17843 PyObject * obj0 = 0 ;
17844 char *kwnames[] = {
17845 (char *) "win", NULL
17846 };
17847
17848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
17849 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17850 if (SWIG_arg_fail(1)) SWIG_fail;
17851 {
17852 if (!wxPyCheckForApp()) SWIG_fail;
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 result = (wxClientDC *)new wxClientDC(arg1);
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
17860 return resultobj;
17861 fail:
17862 return NULL;
17863 }
17864
17865
17866 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
17867 PyObject *obj;
17868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17869 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
17870 Py_INCREF(obj);
17871 return Py_BuildValue((char *)"");
17872 }
17873 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
17874 PyObject *resultobj = NULL;
17875 wxWindow *arg1 = (wxWindow *) 0 ;
17876 wxPaintDC *result;
17877 PyObject * obj0 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "win", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
17883 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17884 if (SWIG_arg_fail(1)) SWIG_fail;
17885 {
17886 if (!wxPyCheckForApp()) SWIG_fail;
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = (wxPaintDC *)new wxPaintDC(arg1);
17889
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
17901 PyObject *obj;
17902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17903 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
17904 Py_INCREF(obj);
17905 return Py_BuildValue((char *)"");
17906 }
17907 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
17908 PyObject *resultobj = NULL;
17909 wxWindow *arg1 = (wxWindow *) 0 ;
17910 wxWindowDC *result;
17911 PyObject * obj0 = 0 ;
17912 char *kwnames[] = {
17913 (char *) "win", NULL
17914 };
17915
17916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
17917 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
17918 if (SWIG_arg_fail(1)) SWIG_fail;
17919 {
17920 if (!wxPyCheckForApp()) SWIG_fail;
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 result = (wxWindowDC *)new wxWindowDC(arg1);
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
17935 PyObject *obj;
17936 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17937 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
17938 Py_INCREF(obj);
17939 return Py_BuildValue((char *)"");
17940 }
17941 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj = NULL;
17943 wxDC *arg1 = 0 ;
17944 bool arg2 ;
17945 wxMirrorDC *result;
17946 PyObject * obj0 = 0 ;
17947 PyObject * obj1 = 0 ;
17948 char *kwnames[] = {
17949 (char *) "dc",(char *) "mirror", NULL
17950 };
17951
17952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
17953 {
17954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17955 if (SWIG_arg_fail(1)) SWIG_fail;
17956 if (arg1 == NULL) {
17957 SWIG_null_ref("wxDC");
17958 }
17959 if (SWIG_arg_fail(1)) SWIG_fail;
17960 }
17961 {
17962 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17963 if (SWIG_arg_fail(2)) SWIG_fail;
17964 }
17965 {
17966 if (!wxPyCheckForApp()) SWIG_fail;
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
17969
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
17974 return resultobj;
17975 fail:
17976 return NULL;
17977 }
17978
17979
17980 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
17981 PyObject *obj;
17982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17983 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
17984 Py_INCREF(obj);
17985 return Py_BuildValue((char *)"");
17986 }
17987 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
17988 PyObject *resultobj = NULL;
17989 wxPrintData *arg1 = 0 ;
17990 wxPostScriptDC *result;
17991 PyObject * obj0 = 0 ;
17992 char *kwnames[] = {
17993 (char *) "printData", NULL
17994 };
17995
17996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
17997 {
17998 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
17999 if (SWIG_arg_fail(1)) SWIG_fail;
18000 if (arg1 == NULL) {
18001 SWIG_null_ref("wxPrintData");
18002 }
18003 if (SWIG_arg_fail(1)) SWIG_fail;
18004 }
18005 {
18006 if (!wxPyCheckForApp()) SWIG_fail;
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
18009
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
18014 return resultobj;
18015 fail:
18016 return NULL;
18017 }
18018
18019
18020 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj = NULL;
18022 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18023 wxPrintData *result;
18024 PyObject * obj0 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
18030 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18031 if (SWIG_arg_fail(1)) SWIG_fail;
18032 {
18033 PyThreadState* __tstate = wxPyBeginAllowThreads();
18034 {
18035 wxPrintData &_result_ref = (arg1)->GetPrintData();
18036 result = (wxPrintData *) &_result_ref;
18037 }
18038
18039 wxPyEndAllowThreads(__tstate);
18040 if (PyErr_Occurred()) SWIG_fail;
18041 }
18042 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
18043 return resultobj;
18044 fail:
18045 return NULL;
18046 }
18047
18048
18049 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18050 PyObject *resultobj = NULL;
18051 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18052 wxPrintData *arg2 = 0 ;
18053 PyObject * obj0 = 0 ;
18054 PyObject * obj1 = 0 ;
18055 char *kwnames[] = {
18056 (char *) "self",(char *) "data", NULL
18057 };
18058
18059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
18060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18061 if (SWIG_arg_fail(1)) SWIG_fail;
18062 {
18063 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18064 if (SWIG_arg_fail(2)) SWIG_fail;
18065 if (arg2 == NULL) {
18066 SWIG_null_ref("wxPrintData");
18067 }
18068 if (SWIG_arg_fail(2)) SWIG_fail;
18069 }
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 (arg1)->SetPrintData((wxPrintData const &)*arg2);
18073
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 Py_INCREF(Py_None); resultobj = Py_None;
18078 return resultobj;
18079 fail:
18080 return NULL;
18081 }
18082
18083
18084 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18085 PyObject *resultobj = NULL;
18086 int arg1 ;
18087 PyObject * obj0 = 0 ;
18088 char *kwnames[] = {
18089 (char *) "ppi", NULL
18090 };
18091
18092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
18093 {
18094 arg1 = static_cast<int >(SWIG_As_int(obj0));
18095 if (SWIG_arg_fail(1)) SWIG_fail;
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 wxPostScriptDC::SetResolution(arg1);
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 Py_INCREF(Py_None); resultobj = Py_None;
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj = NULL;
18113 int result;
18114 char *kwnames[] = {
18115 NULL
18116 };
18117
18118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
18119 {
18120 PyThreadState* __tstate = wxPyBeginAllowThreads();
18121 result = (int)wxPostScriptDC::GetResolution();
18122
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 {
18127 resultobj = SWIG_From_int(static_cast<int >(result));
18128 }
18129 return resultobj;
18130 fail:
18131 return NULL;
18132 }
18133
18134
18135 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18136 PyObject *obj;
18137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18138 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18139 Py_INCREF(obj);
18140 return Py_BuildValue((char *)"");
18141 }
18142 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj = NULL;
18144 wxString const &arg1_defvalue = wxPyEmptyString ;
18145 wxString *arg1 = (wxString *) &arg1_defvalue ;
18146 wxMetaFile *result;
18147 bool temp1 = false ;
18148 PyObject * obj0 = 0 ;
18149 char *kwnames[] = {
18150 (char *) "filename", NULL
18151 };
18152
18153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18154 if (obj0) {
18155 {
18156 arg1 = wxString_in_helper(obj0);
18157 if (arg1 == NULL) SWIG_fail;
18158 temp1 = true;
18159 }
18160 }
18161 {
18162 if (!wxPyCheckForApp()) SWIG_fail;
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18170 {
18171 if (temp1)
18172 delete arg1;
18173 }
18174 return resultobj;
18175 fail:
18176 {
18177 if (temp1)
18178 delete arg1;
18179 }
18180 return NULL;
18181 }
18182
18183
18184 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj = NULL;
18186 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18187 PyObject * obj0 = 0 ;
18188 char *kwnames[] = {
18189 (char *) "self", NULL
18190 };
18191
18192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
18193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18194 if (SWIG_arg_fail(1)) SWIG_fail;
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 delete arg1;
18198
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 Py_INCREF(Py_None); resultobj = Py_None;
18203 return resultobj;
18204 fail:
18205 return NULL;
18206 }
18207
18208
18209 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
18210 PyObject *resultobj = NULL;
18211 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18212 bool result;
18213 PyObject * obj0 = 0 ;
18214 char *kwnames[] = {
18215 (char *) "self", NULL
18216 };
18217
18218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
18219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18220 if (SWIG_arg_fail(1)) SWIG_fail;
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 result = (bool)(arg1)->Ok();
18224
18225 wxPyEndAllowThreads(__tstate);
18226 if (PyErr_Occurred()) SWIG_fail;
18227 }
18228 {
18229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18230 }
18231 return resultobj;
18232 fail:
18233 return NULL;
18234 }
18235
18236
18237 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
18238 PyObject *resultobj = NULL;
18239 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18240 int arg2 = (int) 0 ;
18241 int arg3 = (int) 0 ;
18242 bool result;
18243 PyObject * obj0 = 0 ;
18244 PyObject * obj1 = 0 ;
18245 PyObject * obj2 = 0 ;
18246 char *kwnames[] = {
18247 (char *) "self",(char *) "width",(char *) "height", NULL
18248 };
18249
18250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
18251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18252 if (SWIG_arg_fail(1)) SWIG_fail;
18253 if (obj1) {
18254 {
18255 arg2 = static_cast<int >(SWIG_As_int(obj1));
18256 if (SWIG_arg_fail(2)) SWIG_fail;
18257 }
18258 }
18259 if (obj2) {
18260 {
18261 arg3 = static_cast<int >(SWIG_As_int(obj2));
18262 if (SWIG_arg_fail(3)) SWIG_fail;
18263 }
18264 }
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 result = (bool)(arg1)->SetClipboard(arg2,arg3);
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 {
18273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18274 }
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = NULL;
18283 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18284 wxSize result;
18285 PyObject * obj0 = 0 ;
18286 char *kwnames[] = {
18287 (char *) "self", NULL
18288 };
18289
18290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
18291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18292 if (SWIG_arg_fail(1)) SWIG_fail;
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 result = (arg1)->GetSize();
18296
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 {
18301 wxSize * resultptr;
18302 resultptr = new wxSize(static_cast<wxSize & >(result));
18303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18304 }
18305 return resultobj;
18306 fail:
18307 return NULL;
18308 }
18309
18310
18311 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj = NULL;
18313 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18314 int result;
18315 PyObject * obj0 = 0 ;
18316 char *kwnames[] = {
18317 (char *) "self", NULL
18318 };
18319
18320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
18321 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18322 if (SWIG_arg_fail(1)) SWIG_fail;
18323 {
18324 PyThreadState* __tstate = wxPyBeginAllowThreads();
18325 result = (int)(arg1)->GetWidth();
18326
18327 wxPyEndAllowThreads(__tstate);
18328 if (PyErr_Occurred()) SWIG_fail;
18329 }
18330 {
18331 resultobj = SWIG_From_int(static_cast<int >(result));
18332 }
18333 return resultobj;
18334 fail:
18335 return NULL;
18336 }
18337
18338
18339 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
18340 PyObject *resultobj = NULL;
18341 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18342 int result;
18343 PyObject * obj0 = 0 ;
18344 char *kwnames[] = {
18345 (char *) "self", NULL
18346 };
18347
18348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
18349 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18350 if (SWIG_arg_fail(1)) SWIG_fail;
18351 {
18352 PyThreadState* __tstate = wxPyBeginAllowThreads();
18353 result = (int)(arg1)->GetHeight();
18354
18355 wxPyEndAllowThreads(__tstate);
18356 if (PyErr_Occurred()) SWIG_fail;
18357 }
18358 {
18359 resultobj = SWIG_From_int(static_cast<int >(result));
18360 }
18361 return resultobj;
18362 fail:
18363 return NULL;
18364 }
18365
18366
18367 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
18368 PyObject *obj;
18369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18370 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
18371 Py_INCREF(obj);
18372 return Py_BuildValue((char *)"");
18373 }
18374 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = NULL;
18376 wxString const &arg1_defvalue = wxPyEmptyString ;
18377 wxString *arg1 = (wxString *) &arg1_defvalue ;
18378 int arg2 = (int) 0 ;
18379 int arg3 = (int) 0 ;
18380 wxString const &arg4_defvalue = wxPyEmptyString ;
18381 wxString *arg4 = (wxString *) &arg4_defvalue ;
18382 wxMetaFileDC *result;
18383 bool temp1 = false ;
18384 bool temp4 = false ;
18385 PyObject * obj0 = 0 ;
18386 PyObject * obj1 = 0 ;
18387 PyObject * obj2 = 0 ;
18388 PyObject * obj3 = 0 ;
18389 char *kwnames[] = {
18390 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
18391 };
18392
18393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18394 if (obj0) {
18395 {
18396 arg1 = wxString_in_helper(obj0);
18397 if (arg1 == NULL) SWIG_fail;
18398 temp1 = true;
18399 }
18400 }
18401 if (obj1) {
18402 {
18403 arg2 = static_cast<int >(SWIG_As_int(obj1));
18404 if (SWIG_arg_fail(2)) SWIG_fail;
18405 }
18406 }
18407 if (obj2) {
18408 {
18409 arg3 = static_cast<int >(SWIG_As_int(obj2));
18410 if (SWIG_arg_fail(3)) SWIG_fail;
18411 }
18412 }
18413 if (obj3) {
18414 {
18415 arg4 = wxString_in_helper(obj3);
18416 if (arg4 == NULL) SWIG_fail;
18417 temp4 = true;
18418 }
18419 }
18420 {
18421 if (!wxPyCheckForApp()) SWIG_fail;
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
18424
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
18429 {
18430 if (temp1)
18431 delete arg1;
18432 }
18433 {
18434 if (temp4)
18435 delete arg4;
18436 }
18437 return resultobj;
18438 fail:
18439 {
18440 if (temp1)
18441 delete arg1;
18442 }
18443 {
18444 if (temp4)
18445 delete arg4;
18446 }
18447 return NULL;
18448 }
18449
18450
18451 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj = NULL;
18453 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
18454 wxMetaFile *result;
18455 PyObject * obj0 = 0 ;
18456 char *kwnames[] = {
18457 (char *) "self", NULL
18458 };
18459
18460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
18461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_EXCEPTION | 0);
18462 if (SWIG_arg_fail(1)) SWIG_fail;
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 result = (wxMetaFile *)(arg1)->Close();
18466
18467 wxPyEndAllowThreads(__tstate);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
18471 return resultobj;
18472 fail:
18473 return NULL;
18474 }
18475
18476
18477 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
18478 PyObject *obj;
18479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18480 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
18481 Py_INCREF(obj);
18482 return Py_BuildValue((char *)"");
18483 }
18484 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
18485 PyObject *resultobj = NULL;
18486 wxPrintData *arg1 = 0 ;
18487 wxPrinterDC *result;
18488 PyObject * obj0 = 0 ;
18489 char *kwnames[] = {
18490 (char *) "printData", NULL
18491 };
18492
18493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
18494 {
18495 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18496 if (SWIG_arg_fail(1)) SWIG_fail;
18497 if (arg1 == NULL) {
18498 SWIG_null_ref("wxPrintData");
18499 }
18500 if (SWIG_arg_fail(1)) SWIG_fail;
18501 }
18502 {
18503 if (!wxPyCheckForApp()) SWIG_fail;
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
18506
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
18518 PyObject *obj;
18519 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18520 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
18521 Py_INCREF(obj);
18522 return Py_BuildValue((char *)"");
18523 }
18524 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj = NULL;
18526 int arg1 ;
18527 int arg2 ;
18528 int arg3 = (int) true ;
18529 int arg4 = (int) 1 ;
18530 wxImageList *result;
18531 PyObject * obj0 = 0 ;
18532 PyObject * obj1 = 0 ;
18533 PyObject * obj2 = 0 ;
18534 PyObject * obj3 = 0 ;
18535 char *kwnames[] = {
18536 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
18537 };
18538
18539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18540 {
18541 arg1 = static_cast<int >(SWIG_As_int(obj0));
18542 if (SWIG_arg_fail(1)) SWIG_fail;
18543 }
18544 {
18545 arg2 = static_cast<int >(SWIG_As_int(obj1));
18546 if (SWIG_arg_fail(2)) SWIG_fail;
18547 }
18548 if (obj2) {
18549 {
18550 arg3 = static_cast<int >(SWIG_As_int(obj2));
18551 if (SWIG_arg_fail(3)) SWIG_fail;
18552 }
18553 }
18554 if (obj3) {
18555 {
18556 arg4 = static_cast<int >(SWIG_As_int(obj3));
18557 if (SWIG_arg_fail(4)) SWIG_fail;
18558 }
18559 }
18560 {
18561 if (!wxPyCheckForApp()) SWIG_fail;
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
18564
18565 wxPyEndAllowThreads(__tstate);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 {
18569 resultobj = wxPyMake_wxObject(result, (bool)1);
18570 }
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj = NULL;
18579 wxImageList *arg1 = (wxImageList *) 0 ;
18580 PyObject * obj0 = 0 ;
18581 char *kwnames[] = {
18582 (char *) "self", NULL
18583 };
18584
18585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
18586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18587 if (SWIG_arg_fail(1)) SWIG_fail;
18588 {
18589 PyThreadState* __tstate = wxPyBeginAllowThreads();
18590 delete arg1;
18591
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 Py_INCREF(Py_None); resultobj = Py_None;
18596 return resultobj;
18597 fail:
18598 return NULL;
18599 }
18600
18601
18602 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj = NULL;
18604 wxImageList *arg1 = (wxImageList *) 0 ;
18605 wxBitmap *arg2 = 0 ;
18606 wxBitmap const &arg3_defvalue = wxNullBitmap ;
18607 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
18608 int result;
18609 PyObject * obj0 = 0 ;
18610 PyObject * obj1 = 0 ;
18611 PyObject * obj2 = 0 ;
18612 char *kwnames[] = {
18613 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
18614 };
18615
18616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
18617 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18618 if (SWIG_arg_fail(1)) SWIG_fail;
18619 {
18620 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18621 if (SWIG_arg_fail(2)) SWIG_fail;
18622 if (arg2 == NULL) {
18623 SWIG_null_ref("wxBitmap");
18624 }
18625 if (SWIG_arg_fail(2)) SWIG_fail;
18626 }
18627 if (obj2) {
18628 {
18629 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18630 if (SWIG_arg_fail(3)) SWIG_fail;
18631 if (arg3 == NULL) {
18632 SWIG_null_ref("wxBitmap");
18633 }
18634 if (SWIG_arg_fail(3)) SWIG_fail;
18635 }
18636 }
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
18640
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 {
18645 resultobj = SWIG_From_int(static_cast<int >(result));
18646 }
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
18654 PyObject *resultobj = NULL;
18655 wxImageList *arg1 = (wxImageList *) 0 ;
18656 wxBitmap *arg2 = 0 ;
18657 wxColour *arg3 = 0 ;
18658 int result;
18659 wxColour temp3 ;
18660 PyObject * obj0 = 0 ;
18661 PyObject * obj1 = 0 ;
18662 PyObject * obj2 = 0 ;
18663 char *kwnames[] = {
18664 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
18665 };
18666
18667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
18668 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18669 if (SWIG_arg_fail(1)) SWIG_fail;
18670 {
18671 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18672 if (SWIG_arg_fail(2)) SWIG_fail;
18673 if (arg2 == NULL) {
18674 SWIG_null_ref("wxBitmap");
18675 }
18676 if (SWIG_arg_fail(2)) SWIG_fail;
18677 }
18678 {
18679 arg3 = &temp3;
18680 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18681 }
18682 {
18683 PyThreadState* __tstate = wxPyBeginAllowThreads();
18684 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
18685
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 {
18690 resultobj = SWIG_From_int(static_cast<int >(result));
18691 }
18692 return resultobj;
18693 fail:
18694 return NULL;
18695 }
18696
18697
18698 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj = NULL;
18700 wxImageList *arg1 = (wxImageList *) 0 ;
18701 wxIcon *arg2 = 0 ;
18702 int result;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 char *kwnames[] = {
18706 (char *) "self",(char *) "icon", NULL
18707 };
18708
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
18710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18711 if (SWIG_arg_fail(1)) SWIG_fail;
18712 {
18713 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
18714 if (SWIG_arg_fail(2)) SWIG_fail;
18715 if (arg2 == NULL) {
18716 SWIG_null_ref("wxIcon");
18717 }
18718 if (SWIG_arg_fail(2)) SWIG_fail;
18719 }
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 result = (int)(arg1)->Add((wxIcon const &)*arg2);
18723
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
18727 {
18728 resultobj = SWIG_From_int(static_cast<int >(result));
18729 }
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = NULL;
18738 wxImageList *arg1 = (wxImageList *) 0 ;
18739 int arg2 ;
18740 SwigValueWrapper<wxBitmap > result;
18741 PyObject * obj0 = 0 ;
18742 PyObject * obj1 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self",(char *) "index", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
18748 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18749 if (SWIG_arg_fail(1)) SWIG_fail;
18750 {
18751 arg2 = static_cast<int >(SWIG_As_int(obj1));
18752 if (SWIG_arg_fail(2)) SWIG_fail;
18753 }
18754 {
18755 PyThreadState* __tstate = wxPyBeginAllowThreads();
18756 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
18757
18758 wxPyEndAllowThreads(__tstate);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 }
18761 {
18762 wxBitmap * resultptr;
18763 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
18764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
18765 }
18766 return resultobj;
18767 fail:
18768 return NULL;
18769 }
18770
18771
18772 static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj = NULL;
18774 wxImageList *arg1 = (wxImageList *) 0 ;
18775 int arg2 ;
18776 wxIcon result;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self",(char *) "index", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
18784 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18785 if (SWIG_arg_fail(1)) SWIG_fail;
18786 {
18787 arg2 = static_cast<int >(SWIG_As_int(obj1));
18788 if (SWIG_arg_fail(2)) SWIG_fail;
18789 }
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 result = ((wxImageList const *)arg1)->GetIcon(arg2);
18793
18794 wxPyEndAllowThreads(__tstate);
18795 if (PyErr_Occurred()) SWIG_fail;
18796 }
18797 {
18798 wxIcon * resultptr;
18799 resultptr = new wxIcon(static_cast<wxIcon & >(result));
18800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
18801 }
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
18809 PyObject *resultobj = NULL;
18810 wxImageList *arg1 = (wxImageList *) 0 ;
18811 int arg2 ;
18812 wxBitmap *arg3 = 0 ;
18813 bool result;
18814 PyObject * obj0 = 0 ;
18815 PyObject * obj1 = 0 ;
18816 PyObject * obj2 = 0 ;
18817 char *kwnames[] = {
18818 (char *) "self",(char *) "index",(char *) "bitmap", NULL
18819 };
18820
18821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
18822 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18823 if (SWIG_arg_fail(1)) SWIG_fail;
18824 {
18825 arg2 = static_cast<int >(SWIG_As_int(obj1));
18826 if (SWIG_arg_fail(2)) SWIG_fail;
18827 }
18828 {
18829 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18830 if (SWIG_arg_fail(3)) SWIG_fail;
18831 if (arg3 == NULL) {
18832 SWIG_null_ref("wxBitmap");
18833 }
18834 if (SWIG_arg_fail(3)) SWIG_fail;
18835 }
18836 {
18837 PyThreadState* __tstate = wxPyBeginAllowThreads();
18838 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
18839
18840 wxPyEndAllowThreads(__tstate);
18841 if (PyErr_Occurred()) SWIG_fail;
18842 }
18843 {
18844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18845 }
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = NULL;
18854 wxImageList *arg1 = (wxImageList *) 0 ;
18855 int arg2 ;
18856 wxDC *arg3 = 0 ;
18857 int arg4 ;
18858 int arg5 ;
18859 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
18860 bool arg7 = (bool) (bool)false ;
18861 bool result;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 PyObject * obj2 = 0 ;
18865 PyObject * obj3 = 0 ;
18866 PyObject * obj4 = 0 ;
18867 PyObject * obj5 = 0 ;
18868 PyObject * obj6 = 0 ;
18869 char *kwnames[] = {
18870 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
18871 };
18872
18873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18874 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18875 if (SWIG_arg_fail(1)) SWIG_fail;
18876 {
18877 arg2 = static_cast<int >(SWIG_As_int(obj1));
18878 if (SWIG_arg_fail(2)) SWIG_fail;
18879 }
18880 {
18881 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18882 if (SWIG_arg_fail(3)) SWIG_fail;
18883 if (arg3 == NULL) {
18884 SWIG_null_ref("wxDC");
18885 }
18886 if (SWIG_arg_fail(3)) SWIG_fail;
18887 }
18888 {
18889 arg4 = static_cast<int >(SWIG_As_int(obj3));
18890 if (SWIG_arg_fail(4)) SWIG_fail;
18891 }
18892 {
18893 arg5 = static_cast<int >(SWIG_As_int(obj4));
18894 if (SWIG_arg_fail(5)) SWIG_fail;
18895 }
18896 if (obj5) {
18897 {
18898 arg6 = static_cast<int >(SWIG_As_int(obj5));
18899 if (SWIG_arg_fail(6)) SWIG_fail;
18900 }
18901 }
18902 if (obj6) {
18903 {
18904 arg7 = static_cast<bool const >(SWIG_As_bool(obj6));
18905 if (SWIG_arg_fail(7)) SWIG_fail;
18906 }
18907 }
18908 {
18909 PyThreadState* __tstate = wxPyBeginAllowThreads();
18910 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
18911
18912 wxPyEndAllowThreads(__tstate);
18913 if (PyErr_Occurred()) SWIG_fail;
18914 }
18915 {
18916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18917 }
18918 return resultobj;
18919 fail:
18920 return NULL;
18921 }
18922
18923
18924 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
18925 PyObject *resultobj = NULL;
18926 wxImageList *arg1 = (wxImageList *) 0 ;
18927 int result;
18928 PyObject * obj0 = 0 ;
18929 char *kwnames[] = {
18930 (char *) "self", NULL
18931 };
18932
18933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
18934 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18935 if (SWIG_arg_fail(1)) SWIG_fail;
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 result = (int)(arg1)->GetImageCount();
18939
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 {
18944 resultobj = SWIG_From_int(static_cast<int >(result));
18945 }
18946 return resultobj;
18947 fail:
18948 return NULL;
18949 }
18950
18951
18952 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
18953 PyObject *resultobj = NULL;
18954 wxImageList *arg1 = (wxImageList *) 0 ;
18955 int arg2 ;
18956 bool result;
18957 PyObject * obj0 = 0 ;
18958 PyObject * obj1 = 0 ;
18959 char *kwnames[] = {
18960 (char *) "self",(char *) "index", NULL
18961 };
18962
18963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
18964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18965 if (SWIG_arg_fail(1)) SWIG_fail;
18966 {
18967 arg2 = static_cast<int >(SWIG_As_int(obj1));
18968 if (SWIG_arg_fail(2)) SWIG_fail;
18969 }
18970 {
18971 PyThreadState* __tstate = wxPyBeginAllowThreads();
18972 result = (bool)(arg1)->Remove(arg2);
18973
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 {
18978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18979 }
18980 return resultobj;
18981 fail:
18982 return NULL;
18983 }
18984
18985
18986 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj = NULL;
18988 wxImageList *arg1 = (wxImageList *) 0 ;
18989 bool result;
18990 PyObject * obj0 = 0 ;
18991 char *kwnames[] = {
18992 (char *) "self", NULL
18993 };
18994
18995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
18996 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
18997 if (SWIG_arg_fail(1)) SWIG_fail;
18998 {
18999 PyThreadState* __tstate = wxPyBeginAllowThreads();
19000 result = (bool)(arg1)->RemoveAll();
19001
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 {
19006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19007 }
19008 return resultobj;
19009 fail:
19010 return NULL;
19011 }
19012
19013
19014 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj = NULL;
19016 wxImageList *arg1 = (wxImageList *) 0 ;
19017 int arg2 ;
19018 int *arg3 = 0 ;
19019 int *arg4 = 0 ;
19020 int temp3 ;
19021 int res3 = 0 ;
19022 int temp4 ;
19023 int res4 = 0 ;
19024 PyObject * obj0 = 0 ;
19025 PyObject * obj1 = 0 ;
19026 char *kwnames[] = {
19027 (char *) "self",(char *) "index", NULL
19028 };
19029
19030 arg3 = &temp3; res3 = SWIG_NEWOBJ;
19031 arg4 = &temp4; res4 = SWIG_NEWOBJ;
19032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
19033 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19034 if (SWIG_arg_fail(1)) SWIG_fail;
19035 {
19036 arg2 = static_cast<int >(SWIG_As_int(obj1));
19037 if (SWIG_arg_fail(2)) SWIG_fail;
19038 }
19039 {
19040 PyThreadState* __tstate = wxPyBeginAllowThreads();
19041 (arg1)->GetSize(arg2,*arg3,*arg4);
19042
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 Py_INCREF(Py_None); resultobj = Py_None;
19047 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
19048 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
19049 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
19050 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
19051 return resultobj;
19052 fail:
19053 return NULL;
19054 }
19055
19056
19057 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
19058 PyObject *obj;
19059 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19060 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
19061 Py_INCREF(obj);
19062 return Py_BuildValue((char *)"");
19063 }
19064 static int _wrap_NORMAL_FONT_set(PyObject *) {
19065 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
19066 return 1;
19067 }
19068
19069
19070 static PyObject *_wrap_NORMAL_FONT_get(void) {
19071 PyObject *pyobj = NULL;
19072
19073 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
19074 return pyobj;
19075 }
19076
19077
19078 static int _wrap_SMALL_FONT_set(PyObject *) {
19079 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
19080 return 1;
19081 }
19082
19083
19084 static PyObject *_wrap_SMALL_FONT_get(void) {
19085 PyObject *pyobj = NULL;
19086
19087 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
19088 return pyobj;
19089 }
19090
19091
19092 static int _wrap_ITALIC_FONT_set(PyObject *) {
19093 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
19094 return 1;
19095 }
19096
19097
19098 static PyObject *_wrap_ITALIC_FONT_get(void) {
19099 PyObject *pyobj = NULL;
19100
19101 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
19102 return pyobj;
19103 }
19104
19105
19106 static int _wrap_SWISS_FONT_set(PyObject *) {
19107 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
19108 return 1;
19109 }
19110
19111
19112 static PyObject *_wrap_SWISS_FONT_get(void) {
19113 PyObject *pyobj = NULL;
19114
19115 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
19116 return pyobj;
19117 }
19118
19119
19120 static int _wrap_RED_PEN_set(PyObject *) {
19121 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
19122 return 1;
19123 }
19124
19125
19126 static PyObject *_wrap_RED_PEN_get(void) {
19127 PyObject *pyobj = NULL;
19128
19129 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
19130 return pyobj;
19131 }
19132
19133
19134 static int _wrap_CYAN_PEN_set(PyObject *) {
19135 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
19136 return 1;
19137 }
19138
19139
19140 static PyObject *_wrap_CYAN_PEN_get(void) {
19141 PyObject *pyobj = NULL;
19142
19143 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
19144 return pyobj;
19145 }
19146
19147
19148 static int _wrap_GREEN_PEN_set(PyObject *) {
19149 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
19150 return 1;
19151 }
19152
19153
19154 static PyObject *_wrap_GREEN_PEN_get(void) {
19155 PyObject *pyobj = NULL;
19156
19157 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
19158 return pyobj;
19159 }
19160
19161
19162 static int _wrap_BLACK_PEN_set(PyObject *) {
19163 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
19164 return 1;
19165 }
19166
19167
19168 static PyObject *_wrap_BLACK_PEN_get(void) {
19169 PyObject *pyobj = NULL;
19170
19171 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
19172 return pyobj;
19173 }
19174
19175
19176 static int _wrap_WHITE_PEN_set(PyObject *) {
19177 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
19178 return 1;
19179 }
19180
19181
19182 static PyObject *_wrap_WHITE_PEN_get(void) {
19183 PyObject *pyobj = NULL;
19184
19185 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
19186 return pyobj;
19187 }
19188
19189
19190 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
19191 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
19192 return 1;
19193 }
19194
19195
19196 static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
19197 PyObject *pyobj = NULL;
19198
19199 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
19200 return pyobj;
19201 }
19202
19203
19204 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
19205 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
19206 return 1;
19207 }
19208
19209
19210 static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
19211 PyObject *pyobj = NULL;
19212
19213 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
19214 return pyobj;
19215 }
19216
19217
19218 static int _wrap_GREY_PEN_set(PyObject *) {
19219 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
19220 return 1;
19221 }
19222
19223
19224 static PyObject *_wrap_GREY_PEN_get(void) {
19225 PyObject *pyobj = NULL;
19226
19227 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
19228 return pyobj;
19229 }
19230
19231
19232 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
19233 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
19234 return 1;
19235 }
19236
19237
19238 static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
19239 PyObject *pyobj = NULL;
19240
19241 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19242 return pyobj;
19243 }
19244
19245
19246 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
19247 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
19248 return 1;
19249 }
19250
19251
19252 static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
19253 PyObject *pyobj = NULL;
19254
19255 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
19256 return pyobj;
19257 }
19258
19259
19260 static int _wrap_BLUE_BRUSH_set(PyObject *) {
19261 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
19262 return 1;
19263 }
19264
19265
19266 static PyObject *_wrap_BLUE_BRUSH_get(void) {
19267 PyObject *pyobj = NULL;
19268
19269 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19270 return pyobj;
19271 }
19272
19273
19274 static int _wrap_GREEN_BRUSH_set(PyObject *) {
19275 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
19276 return 1;
19277 }
19278
19279
19280 static PyObject *_wrap_GREEN_BRUSH_get(void) {
19281 PyObject *pyobj = NULL;
19282
19283 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19284 return pyobj;
19285 }
19286
19287
19288 static int _wrap_WHITE_BRUSH_set(PyObject *) {
19289 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
19290 return 1;
19291 }
19292
19293
19294 static PyObject *_wrap_WHITE_BRUSH_get(void) {
19295 PyObject *pyobj = NULL;
19296
19297 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
19298 return pyobj;
19299 }
19300
19301
19302 static int _wrap_BLACK_BRUSH_set(PyObject *) {
19303 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
19304 return 1;
19305 }
19306
19307
19308 static PyObject *_wrap_BLACK_BRUSH_get(void) {
19309 PyObject *pyobj = NULL;
19310
19311 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
19312 return pyobj;
19313 }
19314
19315
19316 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
19317 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
19318 return 1;
19319 }
19320
19321
19322 static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
19323 PyObject *pyobj = NULL;
19324
19325 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
19326 return pyobj;
19327 }
19328
19329
19330 static int _wrap_CYAN_BRUSH_set(PyObject *) {
19331 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
19332 return 1;
19333 }
19334
19335
19336 static PyObject *_wrap_CYAN_BRUSH_get(void) {
19337 PyObject *pyobj = NULL;
19338
19339 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
19340 return pyobj;
19341 }
19342
19343
19344 static int _wrap_RED_BRUSH_set(PyObject *) {
19345 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
19346 return 1;
19347 }
19348
19349
19350 static PyObject *_wrap_RED_BRUSH_get(void) {
19351 PyObject *pyobj = NULL;
19352
19353 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
19354 return pyobj;
19355 }
19356
19357
19358 static int _wrap_GREY_BRUSH_set(PyObject *) {
19359 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
19360 return 1;
19361 }
19362
19363
19364 static PyObject *_wrap_GREY_BRUSH_get(void) {
19365 PyObject *pyobj = NULL;
19366
19367 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19368 return pyobj;
19369 }
19370
19371
19372 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
19373 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
19374 return 1;
19375 }
19376
19377
19378 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
19379 PyObject *pyobj = NULL;
19380
19381 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19382 return pyobj;
19383 }
19384
19385
19386 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
19387 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
19388 return 1;
19389 }
19390
19391
19392 static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
19393 PyObject *pyobj = NULL;
19394
19395 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
19396 return pyobj;
19397 }
19398
19399
19400 static int _wrap_BLACK_set(PyObject *) {
19401 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
19402 return 1;
19403 }
19404
19405
19406 static PyObject *_wrap_BLACK_get(void) {
19407 PyObject *pyobj = NULL;
19408
19409 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
19410 return pyobj;
19411 }
19412
19413
19414 static int _wrap_WHITE_set(PyObject *) {
19415 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
19416 return 1;
19417 }
19418
19419
19420 static PyObject *_wrap_WHITE_get(void) {
19421 PyObject *pyobj = NULL;
19422
19423 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
19424 return pyobj;
19425 }
19426
19427
19428 static int _wrap_RED_set(PyObject *) {
19429 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
19430 return 1;
19431 }
19432
19433
19434 static PyObject *_wrap_RED_get(void) {
19435 PyObject *pyobj = NULL;
19436
19437 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
19438 return pyobj;
19439 }
19440
19441
19442 static int _wrap_BLUE_set(PyObject *) {
19443 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
19444 return 1;
19445 }
19446
19447
19448 static PyObject *_wrap_BLUE_get(void) {
19449 PyObject *pyobj = NULL;
19450
19451 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
19452 return pyobj;
19453 }
19454
19455
19456 static int _wrap_GREEN_set(PyObject *) {
19457 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
19458 return 1;
19459 }
19460
19461
19462 static PyObject *_wrap_GREEN_get(void) {
19463 PyObject *pyobj = NULL;
19464
19465 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
19466 return pyobj;
19467 }
19468
19469
19470 static int _wrap_CYAN_set(PyObject *) {
19471 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
19472 return 1;
19473 }
19474
19475
19476 static PyObject *_wrap_CYAN_get(void) {
19477 PyObject *pyobj = NULL;
19478
19479 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
19480 return pyobj;
19481 }
19482
19483
19484 static int _wrap_LIGHT_GREY_set(PyObject *) {
19485 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
19486 return 1;
19487 }
19488
19489
19490 static PyObject *_wrap_LIGHT_GREY_get(void) {
19491 PyObject *pyobj = NULL;
19492
19493 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
19494 return pyobj;
19495 }
19496
19497
19498 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
19499 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
19500 return 1;
19501 }
19502
19503
19504 static PyObject *_wrap_STANDARD_CURSOR_get(void) {
19505 PyObject *pyobj = NULL;
19506
19507 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
19508 return pyobj;
19509 }
19510
19511
19512 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
19513 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
19514 return 1;
19515 }
19516
19517
19518 static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
19519 PyObject *pyobj = NULL;
19520
19521 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
19522 return pyobj;
19523 }
19524
19525
19526 static int _wrap_CROSS_CURSOR_set(PyObject *) {
19527 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
19528 return 1;
19529 }
19530
19531
19532 static PyObject *_wrap_CROSS_CURSOR_get(void) {
19533 PyObject *pyobj = NULL;
19534
19535 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
19536 return pyobj;
19537 }
19538
19539
19540 static int _wrap_NullBitmap_set(PyObject *) {
19541 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
19542 return 1;
19543 }
19544
19545
19546 static PyObject *_wrap_NullBitmap_get(void) {
19547 PyObject *pyobj = NULL;
19548
19549 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
19550 return pyobj;
19551 }
19552
19553
19554 static int _wrap_NullIcon_set(PyObject *) {
19555 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
19556 return 1;
19557 }
19558
19559
19560 static PyObject *_wrap_NullIcon_get(void) {
19561 PyObject *pyobj = NULL;
19562
19563 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
19564 return pyobj;
19565 }
19566
19567
19568 static int _wrap_NullCursor_set(PyObject *) {
19569 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
19570 return 1;
19571 }
19572
19573
19574 static PyObject *_wrap_NullCursor_get(void) {
19575 PyObject *pyobj = NULL;
19576
19577 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
19578 return pyobj;
19579 }
19580
19581
19582 static int _wrap_NullPen_set(PyObject *) {
19583 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
19584 return 1;
19585 }
19586
19587
19588 static PyObject *_wrap_NullPen_get(void) {
19589 PyObject *pyobj = NULL;
19590
19591 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
19592 return pyobj;
19593 }
19594
19595
19596 static int _wrap_NullBrush_set(PyObject *) {
19597 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
19598 return 1;
19599 }
19600
19601
19602 static PyObject *_wrap_NullBrush_get(void) {
19603 PyObject *pyobj = NULL;
19604
19605 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
19606 return pyobj;
19607 }
19608
19609
19610 static int _wrap_NullPalette_set(PyObject *) {
19611 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
19612 return 1;
19613 }
19614
19615
19616 static PyObject *_wrap_NullPalette_get(void) {
19617 PyObject *pyobj = NULL;
19618
19619 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
19620 return pyobj;
19621 }
19622
19623
19624 static int _wrap_NullFont_set(PyObject *) {
19625 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
19626 return 1;
19627 }
19628
19629
19630 static PyObject *_wrap_NullFont_get(void) {
19631 PyObject *pyobj = NULL;
19632
19633 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
19634 return pyobj;
19635 }
19636
19637
19638 static int _wrap_NullColour_set(PyObject *) {
19639 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
19640 return 1;
19641 }
19642
19643
19644 static PyObject *_wrap_NullColour_get(void) {
19645 PyObject *pyobj = NULL;
19646
19647 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
19648 return pyobj;
19649 }
19650
19651
19652 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
19653 PyObject *resultobj = NULL;
19654 wxPenList *arg1 = (wxPenList *) 0 ;
19655 wxPen *arg2 = (wxPen *) 0 ;
19656 PyObject * obj0 = 0 ;
19657 PyObject * obj1 = 0 ;
19658 char *kwnames[] = {
19659 (char *) "self",(char *) "pen", NULL
19660 };
19661
19662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
19663 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19664 if (SWIG_arg_fail(1)) SWIG_fail;
19665 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19666 if (SWIG_arg_fail(2)) SWIG_fail;
19667 {
19668 PyThreadState* __tstate = wxPyBeginAllowThreads();
19669 (arg1)->AddPen(arg2);
19670
19671 wxPyEndAllowThreads(__tstate);
19672 if (PyErr_Occurred()) SWIG_fail;
19673 }
19674 Py_INCREF(Py_None); resultobj = Py_None;
19675 return resultobj;
19676 fail:
19677 return NULL;
19678 }
19679
19680
19681 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
19682 PyObject *resultobj = NULL;
19683 wxPenList *arg1 = (wxPenList *) 0 ;
19684 wxColour *arg2 = 0 ;
19685 int arg3 ;
19686 int arg4 ;
19687 wxPen *result;
19688 wxColour temp2 ;
19689 PyObject * obj0 = 0 ;
19690 PyObject * obj1 = 0 ;
19691 PyObject * obj2 = 0 ;
19692 PyObject * obj3 = 0 ;
19693 char *kwnames[] = {
19694 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
19695 };
19696
19697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19698 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19699 if (SWIG_arg_fail(1)) SWIG_fail;
19700 {
19701 arg2 = &temp2;
19702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19703 }
19704 {
19705 arg3 = static_cast<int >(SWIG_As_int(obj2));
19706 if (SWIG_arg_fail(3)) SWIG_fail;
19707 }
19708 {
19709 arg4 = static_cast<int >(SWIG_As_int(obj3));
19710 if (SWIG_arg_fail(4)) SWIG_fail;
19711 }
19712 {
19713 PyThreadState* __tstate = wxPyBeginAllowThreads();
19714 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
19715
19716 wxPyEndAllowThreads(__tstate);
19717 if (PyErr_Occurred()) SWIG_fail;
19718 }
19719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
19720 return resultobj;
19721 fail:
19722 return NULL;
19723 }
19724
19725
19726 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
19727 PyObject *resultobj = NULL;
19728 wxPenList *arg1 = (wxPenList *) 0 ;
19729 wxPen *arg2 = (wxPen *) 0 ;
19730 PyObject * obj0 = 0 ;
19731 PyObject * obj1 = 0 ;
19732 char *kwnames[] = {
19733 (char *) "self",(char *) "pen", NULL
19734 };
19735
19736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
19737 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19738 if (SWIG_arg_fail(1)) SWIG_fail;
19739 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
19740 if (SWIG_arg_fail(2)) SWIG_fail;
19741 {
19742 PyThreadState* __tstate = wxPyBeginAllowThreads();
19743 (arg1)->RemovePen(arg2);
19744
19745 wxPyEndAllowThreads(__tstate);
19746 if (PyErr_Occurred()) SWIG_fail;
19747 }
19748 Py_INCREF(Py_None); resultobj = Py_None;
19749 return resultobj;
19750 fail:
19751 return NULL;
19752 }
19753
19754
19755 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
19756 PyObject *resultobj = NULL;
19757 wxPenList *arg1 = (wxPenList *) 0 ;
19758 int result;
19759 PyObject * obj0 = 0 ;
19760 char *kwnames[] = {
19761 (char *) "self", NULL
19762 };
19763
19764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
19765 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
19766 if (SWIG_arg_fail(1)) SWIG_fail;
19767 {
19768 PyThreadState* __tstate = wxPyBeginAllowThreads();
19769 result = (int)(arg1)->GetCount();
19770
19771 wxPyEndAllowThreads(__tstate);
19772 if (PyErr_Occurred()) SWIG_fail;
19773 }
19774 {
19775 resultobj = SWIG_From_int(static_cast<int >(result));
19776 }
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
19784 PyObject *obj;
19785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19786 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
19787 Py_INCREF(obj);
19788 return Py_BuildValue((char *)"");
19789 }
19790 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19791 PyObject *resultobj = NULL;
19792 wxBrushList *arg1 = (wxBrushList *) 0 ;
19793 wxBrush *arg2 = (wxBrush *) 0 ;
19794 PyObject * obj0 = 0 ;
19795 PyObject * obj1 = 0 ;
19796 char *kwnames[] = {
19797 (char *) "self",(char *) "brush", NULL
19798 };
19799
19800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
19801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19802 if (SWIG_arg_fail(1)) SWIG_fail;
19803 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19804 if (SWIG_arg_fail(2)) SWIG_fail;
19805 {
19806 PyThreadState* __tstate = wxPyBeginAllowThreads();
19807 (arg1)->AddBrush(arg2);
19808
19809 wxPyEndAllowThreads(__tstate);
19810 if (PyErr_Occurred()) SWIG_fail;
19811 }
19812 Py_INCREF(Py_None); resultobj = Py_None;
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = NULL;
19821 wxBrushList *arg1 = (wxBrushList *) 0 ;
19822 wxColour *arg2 = 0 ;
19823 int arg3 = (int) wxSOLID ;
19824 wxBrush *result;
19825 wxColour temp2 ;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 PyObject * obj2 = 0 ;
19829 char *kwnames[] = {
19830 (char *) "self",(char *) "colour",(char *) "style", NULL
19831 };
19832
19833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
19834 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19835 if (SWIG_arg_fail(1)) SWIG_fail;
19836 {
19837 arg2 = &temp2;
19838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19839 }
19840 if (obj2) {
19841 {
19842 arg3 = static_cast<int >(SWIG_As_int(obj2));
19843 if (SWIG_arg_fail(3)) SWIG_fail;
19844 }
19845 }
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj = NULL;
19862 wxBrushList *arg1 = (wxBrushList *) 0 ;
19863 wxBrush *arg2 = (wxBrush *) 0 ;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self",(char *) "brush", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
19871 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19872 if (SWIG_arg_fail(1)) SWIG_fail;
19873 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
19874 if (SWIG_arg_fail(2)) SWIG_fail;
19875 {
19876 PyThreadState* __tstate = wxPyBeginAllowThreads();
19877 (arg1)->RemoveBrush(arg2);
19878
19879 wxPyEndAllowThreads(__tstate);
19880 if (PyErr_Occurred()) SWIG_fail;
19881 }
19882 Py_INCREF(Py_None); resultobj = Py_None;
19883 return resultobj;
19884 fail:
19885 return NULL;
19886 }
19887
19888
19889 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
19890 PyObject *resultobj = NULL;
19891 wxBrushList *arg1 = (wxBrushList *) 0 ;
19892 int result;
19893 PyObject * obj0 = 0 ;
19894 char *kwnames[] = {
19895 (char *) "self", NULL
19896 };
19897
19898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
19899 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
19900 if (SWIG_arg_fail(1)) SWIG_fail;
19901 {
19902 PyThreadState* __tstate = wxPyBeginAllowThreads();
19903 result = (int)(arg1)->GetCount();
19904
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 {
19909 resultobj = SWIG_From_int(static_cast<int >(result));
19910 }
19911 return resultobj;
19912 fail:
19913 return NULL;
19914 }
19915
19916
19917 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
19918 PyObject *obj;
19919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19920 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
19921 Py_INCREF(obj);
19922 return Py_BuildValue((char *)"");
19923 }
19924 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
19925 PyObject *resultobj = NULL;
19926 wxColourDatabase *result;
19927 char *kwnames[] = {
19928 NULL
19929 };
19930
19931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
19932 {
19933 if (!wxPyCheckForApp()) SWIG_fail;
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 result = (wxColourDatabase *)new wxColourDatabase();
19936
19937 wxPyEndAllowThreads(__tstate);
19938 if (PyErr_Occurred()) SWIG_fail;
19939 }
19940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
19941 return resultobj;
19942 fail:
19943 return NULL;
19944 }
19945
19946
19947 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
19948 PyObject *resultobj = NULL;
19949 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19950 PyObject * obj0 = 0 ;
19951 char *kwnames[] = {
19952 (char *) "self", NULL
19953 };
19954
19955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
19956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19957 if (SWIG_arg_fail(1)) SWIG_fail;
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 delete arg1;
19961
19962 wxPyEndAllowThreads(__tstate);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 }
19965 Py_INCREF(Py_None); resultobj = Py_None;
19966 return resultobj;
19967 fail:
19968 return NULL;
19969 }
19970
19971
19972 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
19973 PyObject *resultobj = NULL;
19974 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
19975 wxString *arg2 = 0 ;
19976 wxColour result;
19977 bool temp2 = false ;
19978 PyObject * obj0 = 0 ;
19979 PyObject * obj1 = 0 ;
19980 char *kwnames[] = {
19981 (char *) "self",(char *) "name", NULL
19982 };
19983
19984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
19985 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
19986 if (SWIG_arg_fail(1)) SWIG_fail;
19987 {
19988 arg2 = wxString_in_helper(obj1);
19989 if (arg2 == NULL) SWIG_fail;
19990 temp2 = true;
19991 }
19992 {
19993 PyThreadState* __tstate = wxPyBeginAllowThreads();
19994 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
19995
19996 wxPyEndAllowThreads(__tstate);
19997 if (PyErr_Occurred()) SWIG_fail;
19998 }
19999 {
20000 wxColour * resultptr;
20001 resultptr = new wxColour(static_cast<wxColour & >(result));
20002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20003 }
20004 {
20005 if (temp2)
20006 delete arg2;
20007 }
20008 return resultobj;
20009 fail:
20010 {
20011 if (temp2)
20012 delete arg2;
20013 }
20014 return NULL;
20015 }
20016
20017
20018 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj = NULL;
20020 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20021 wxColour *arg2 = 0 ;
20022 wxString result;
20023 wxColour temp2 ;
20024 PyObject * obj0 = 0 ;
20025 PyObject * obj1 = 0 ;
20026 char *kwnames[] = {
20027 (char *) "self",(char *) "colour", NULL
20028 };
20029
20030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
20031 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20032 if (SWIG_arg_fail(1)) SWIG_fail;
20033 {
20034 arg2 = &temp2;
20035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20036 }
20037 {
20038 PyThreadState* __tstate = wxPyBeginAllowThreads();
20039 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
20040
20041 wxPyEndAllowThreads(__tstate);
20042 if (PyErr_Occurred()) SWIG_fail;
20043 }
20044 {
20045 #if wxUSE_UNICODE
20046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20047 #else
20048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20049 #endif
20050 }
20051 return resultobj;
20052 fail:
20053 return NULL;
20054 }
20055
20056
20057 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
20058 PyObject *resultobj = NULL;
20059 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20060 wxString *arg2 = 0 ;
20061 wxColour *arg3 = 0 ;
20062 bool temp2 = false ;
20063 wxColour temp3 ;
20064 PyObject * obj0 = 0 ;
20065 PyObject * obj1 = 0 ;
20066 PyObject * obj2 = 0 ;
20067 char *kwnames[] = {
20068 (char *) "self",(char *) "name",(char *) "colour", NULL
20069 };
20070
20071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
20072 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20073 if (SWIG_arg_fail(1)) SWIG_fail;
20074 {
20075 arg2 = wxString_in_helper(obj1);
20076 if (arg2 == NULL) SWIG_fail;
20077 temp2 = true;
20078 }
20079 {
20080 arg3 = &temp3;
20081 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20082 }
20083 {
20084 PyThreadState* __tstate = wxPyBeginAllowThreads();
20085 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
20086
20087 wxPyEndAllowThreads(__tstate);
20088 if (PyErr_Occurred()) SWIG_fail;
20089 }
20090 Py_INCREF(Py_None); resultobj = Py_None;
20091 {
20092 if (temp2)
20093 delete arg2;
20094 }
20095 return resultobj;
20096 fail:
20097 {
20098 if (temp2)
20099 delete arg2;
20100 }
20101 return NULL;
20102 }
20103
20104
20105 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
20106 PyObject *resultobj = NULL;
20107 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20108 wxString *arg2 = 0 ;
20109 int arg3 ;
20110 int arg4 ;
20111 int arg5 ;
20112 bool temp2 = false ;
20113 PyObject * obj0 = 0 ;
20114 PyObject * obj1 = 0 ;
20115 PyObject * obj2 = 0 ;
20116 PyObject * obj3 = 0 ;
20117 PyObject * obj4 = 0 ;
20118 char *kwnames[] = {
20119 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
20120 };
20121
20122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20124 if (SWIG_arg_fail(1)) SWIG_fail;
20125 {
20126 arg2 = wxString_in_helper(obj1);
20127 if (arg2 == NULL) SWIG_fail;
20128 temp2 = true;
20129 }
20130 {
20131 arg3 = static_cast<int >(SWIG_As_int(obj2));
20132 if (SWIG_arg_fail(3)) SWIG_fail;
20133 }
20134 {
20135 arg4 = static_cast<int >(SWIG_As_int(obj3));
20136 if (SWIG_arg_fail(4)) SWIG_fail;
20137 }
20138 {
20139 arg5 = static_cast<int >(SWIG_As_int(obj4));
20140 if (SWIG_arg_fail(5)) SWIG_fail;
20141 }
20142 {
20143 PyThreadState* __tstate = wxPyBeginAllowThreads();
20144 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
20145
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 Py_INCREF(Py_None); resultobj = Py_None;
20150 {
20151 if (temp2)
20152 delete arg2;
20153 }
20154 return resultobj;
20155 fail:
20156 {
20157 if (temp2)
20158 delete arg2;
20159 }
20160 return NULL;
20161 }
20162
20163
20164 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
20165 PyObject *obj;
20166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20167 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
20168 Py_INCREF(obj);
20169 return Py_BuildValue((char *)"");
20170 }
20171 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
20172 PyObject *resultobj = NULL;
20173 wxFontList *arg1 = (wxFontList *) 0 ;
20174 wxFont *arg2 = (wxFont *) 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 char *kwnames[] = {
20178 (char *) "self",(char *) "font", NULL
20179 };
20180
20181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
20182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20183 if (SWIG_arg_fail(1)) SWIG_fail;
20184 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20185 if (SWIG_arg_fail(2)) SWIG_fail;
20186 {
20187 PyThreadState* __tstate = wxPyBeginAllowThreads();
20188 (arg1)->AddFont(arg2);
20189
20190 wxPyEndAllowThreads(__tstate);
20191 if (PyErr_Occurred()) SWIG_fail;
20192 }
20193 Py_INCREF(Py_None); resultobj = Py_None;
20194 return resultobj;
20195 fail:
20196 return NULL;
20197 }
20198
20199
20200 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
20201 PyObject *resultobj = NULL;
20202 wxFontList *arg1 = (wxFontList *) 0 ;
20203 int arg2 ;
20204 int arg3 ;
20205 int arg4 ;
20206 int arg5 ;
20207 bool arg6 = (bool) false ;
20208 wxString const &arg7_defvalue = wxPyEmptyString ;
20209 wxString *arg7 = (wxString *) &arg7_defvalue ;
20210 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
20211 wxFont *result;
20212 bool temp7 = false ;
20213 PyObject * obj0 = 0 ;
20214 PyObject * obj1 = 0 ;
20215 PyObject * obj2 = 0 ;
20216 PyObject * obj3 = 0 ;
20217 PyObject * obj4 = 0 ;
20218 PyObject * obj5 = 0 ;
20219 PyObject * obj6 = 0 ;
20220 PyObject * obj7 = 0 ;
20221 char *kwnames[] = {
20222 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
20223 };
20224
20225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20226 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20227 if (SWIG_arg_fail(1)) SWIG_fail;
20228 {
20229 arg2 = static_cast<int >(SWIG_As_int(obj1));
20230 if (SWIG_arg_fail(2)) SWIG_fail;
20231 }
20232 {
20233 arg3 = static_cast<int >(SWIG_As_int(obj2));
20234 if (SWIG_arg_fail(3)) SWIG_fail;
20235 }
20236 {
20237 arg4 = static_cast<int >(SWIG_As_int(obj3));
20238 if (SWIG_arg_fail(4)) SWIG_fail;
20239 }
20240 {
20241 arg5 = static_cast<int >(SWIG_As_int(obj4));
20242 if (SWIG_arg_fail(5)) SWIG_fail;
20243 }
20244 if (obj5) {
20245 {
20246 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
20247 if (SWIG_arg_fail(6)) SWIG_fail;
20248 }
20249 }
20250 if (obj6) {
20251 {
20252 arg7 = wxString_in_helper(obj6);
20253 if (arg7 == NULL) SWIG_fail;
20254 temp7 = true;
20255 }
20256 }
20257 if (obj7) {
20258 {
20259 arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7));
20260 if (SWIG_arg_fail(8)) SWIG_fail;
20261 }
20262 }
20263 {
20264 PyThreadState* __tstate = wxPyBeginAllowThreads();
20265 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
20266
20267 wxPyEndAllowThreads(__tstate);
20268 if (PyErr_Occurred()) SWIG_fail;
20269 }
20270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
20271 {
20272 if (temp7)
20273 delete arg7;
20274 }
20275 return resultobj;
20276 fail:
20277 {
20278 if (temp7)
20279 delete arg7;
20280 }
20281 return NULL;
20282 }
20283
20284
20285 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
20286 PyObject *resultobj = NULL;
20287 wxFontList *arg1 = (wxFontList *) 0 ;
20288 wxFont *arg2 = (wxFont *) 0 ;
20289 PyObject * obj0 = 0 ;
20290 PyObject * obj1 = 0 ;
20291 char *kwnames[] = {
20292 (char *) "self",(char *) "font", NULL
20293 };
20294
20295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
20296 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20297 if (SWIG_arg_fail(1)) SWIG_fail;
20298 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20299 if (SWIG_arg_fail(2)) SWIG_fail;
20300 {
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 (arg1)->RemoveFont(arg2);
20303
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 Py_INCREF(Py_None); resultobj = Py_None;
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj = NULL;
20316 wxFontList *arg1 = (wxFontList *) 0 ;
20317 int result;
20318 PyObject * obj0 = 0 ;
20319 char *kwnames[] = {
20320 (char *) "self", NULL
20321 };
20322
20323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
20324 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20325 if (SWIG_arg_fail(1)) SWIG_fail;
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 result = (int)(arg1)->GetCount();
20329
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 {
20334 resultobj = SWIG_From_int(static_cast<int >(result));
20335 }
20336 return resultobj;
20337 fail:
20338 return NULL;
20339 }
20340
20341
20342 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
20343 PyObject *obj;
20344 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20345 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
20346 Py_INCREF(obj);
20347 return Py_BuildValue((char *)"");
20348 }
20349 static int _wrap_TheFontList_set(PyObject *) {
20350 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
20351 return 1;
20352 }
20353
20354
20355 static PyObject *_wrap_TheFontList_get(void) {
20356 PyObject *pyobj = NULL;
20357
20358 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
20359 return pyobj;
20360 }
20361
20362
20363 static int _wrap_ThePenList_set(PyObject *) {
20364 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
20365 return 1;
20366 }
20367
20368
20369 static PyObject *_wrap_ThePenList_get(void) {
20370 PyObject *pyobj = NULL;
20371
20372 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
20373 return pyobj;
20374 }
20375
20376
20377 static int _wrap_TheBrushList_set(PyObject *) {
20378 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
20379 return 1;
20380 }
20381
20382
20383 static PyObject *_wrap_TheBrushList_get(void) {
20384 PyObject *pyobj = NULL;
20385
20386 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
20387 return pyobj;
20388 }
20389
20390
20391 static int _wrap_TheColourDatabase_set(PyObject *) {
20392 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
20393 return 1;
20394 }
20395
20396
20397 static PyObject *_wrap_TheColourDatabase_get(void) {
20398 PyObject *pyobj = NULL;
20399
20400 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
20401 return pyobj;
20402 }
20403
20404
20405 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
20406 PyObject *resultobj = NULL;
20407 wxEffects *result;
20408 char *kwnames[] = {
20409 NULL
20410 };
20411
20412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 result = (wxEffects *)new wxEffects();
20416
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
20428 PyObject *resultobj = NULL;
20429 wxEffects *arg1 = (wxEffects *) 0 ;
20430 wxColour result;
20431 PyObject * obj0 = 0 ;
20432 char *kwnames[] = {
20433 (char *) "self", NULL
20434 };
20435
20436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
20437 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20438 if (SWIG_arg_fail(1)) SWIG_fail;
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 result = ((wxEffects const *)arg1)->GetHighlightColour();
20442
20443 wxPyEndAllowThreads(__tstate);
20444 if (PyErr_Occurred()) SWIG_fail;
20445 }
20446 {
20447 wxColour * resultptr;
20448 resultptr = new wxColour(static_cast<wxColour & >(result));
20449 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20450 }
20451 return resultobj;
20452 fail:
20453 return NULL;
20454 }
20455
20456
20457 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20458 PyObject *resultobj = NULL;
20459 wxEffects *arg1 = (wxEffects *) 0 ;
20460 wxColour result;
20461 PyObject * obj0 = 0 ;
20462 char *kwnames[] = {
20463 (char *) "self", NULL
20464 };
20465
20466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
20467 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20468 if (SWIG_arg_fail(1)) SWIG_fail;
20469 {
20470 PyThreadState* __tstate = wxPyBeginAllowThreads();
20471 result = ((wxEffects const *)arg1)->GetLightShadow();
20472
20473 wxPyEndAllowThreads(__tstate);
20474 if (PyErr_Occurred()) SWIG_fail;
20475 }
20476 {
20477 wxColour * resultptr;
20478 resultptr = new wxColour(static_cast<wxColour & >(result));
20479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20480 }
20481 return resultobj;
20482 fail:
20483 return NULL;
20484 }
20485
20486
20487 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj = NULL;
20489 wxEffects *arg1 = (wxEffects *) 0 ;
20490 wxColour result;
20491 PyObject * obj0 = 0 ;
20492 char *kwnames[] = {
20493 (char *) "self", NULL
20494 };
20495
20496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
20497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20498 if (SWIG_arg_fail(1)) SWIG_fail;
20499 {
20500 PyThreadState* __tstate = wxPyBeginAllowThreads();
20501 result = ((wxEffects const *)arg1)->GetFaceColour();
20502
20503 wxPyEndAllowThreads(__tstate);
20504 if (PyErr_Occurred()) SWIG_fail;
20505 }
20506 {
20507 wxColour * resultptr;
20508 resultptr = new wxColour(static_cast<wxColour & >(result));
20509 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20510 }
20511 return resultobj;
20512 fail:
20513 return NULL;
20514 }
20515
20516
20517 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj = NULL;
20519 wxEffects *arg1 = (wxEffects *) 0 ;
20520 wxColour result;
20521 PyObject * obj0 = 0 ;
20522 char *kwnames[] = {
20523 (char *) "self", NULL
20524 };
20525
20526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
20527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20528 if (SWIG_arg_fail(1)) SWIG_fail;
20529 {
20530 PyThreadState* __tstate = wxPyBeginAllowThreads();
20531 result = ((wxEffects const *)arg1)->GetMediumShadow();
20532
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 {
20537 wxColour * resultptr;
20538 resultptr = new wxColour(static_cast<wxColour & >(result));
20539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20540 }
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj = NULL;
20549 wxEffects *arg1 = (wxEffects *) 0 ;
20550 wxColour result;
20551 PyObject * obj0 = 0 ;
20552 char *kwnames[] = {
20553 (char *) "self", NULL
20554 };
20555
20556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
20557 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20558 if (SWIG_arg_fail(1)) SWIG_fail;
20559 {
20560 PyThreadState* __tstate = wxPyBeginAllowThreads();
20561 result = ((wxEffects const *)arg1)->GetDarkShadow();
20562
20563 wxPyEndAllowThreads(__tstate);
20564 if (PyErr_Occurred()) SWIG_fail;
20565 }
20566 {
20567 wxColour * resultptr;
20568 resultptr = new wxColour(static_cast<wxColour & >(result));
20569 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20570 }
20571 return resultobj;
20572 fail:
20573 return NULL;
20574 }
20575
20576
20577 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
20578 PyObject *resultobj = NULL;
20579 wxEffects *arg1 = (wxEffects *) 0 ;
20580 wxColour *arg2 = 0 ;
20581 wxColour temp2 ;
20582 PyObject * obj0 = 0 ;
20583 PyObject * obj1 = 0 ;
20584 char *kwnames[] = {
20585 (char *) "self",(char *) "c", NULL
20586 };
20587
20588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
20589 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20590 if (SWIG_arg_fail(1)) SWIG_fail;
20591 {
20592 arg2 = &temp2;
20593 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20594 }
20595 {
20596 PyThreadState* __tstate = wxPyBeginAllowThreads();
20597 (arg1)->SetHighlightColour((wxColour const &)*arg2);
20598
20599 wxPyEndAllowThreads(__tstate);
20600 if (PyErr_Occurred()) SWIG_fail;
20601 }
20602 Py_INCREF(Py_None); resultobj = Py_None;
20603 return resultobj;
20604 fail:
20605 return NULL;
20606 }
20607
20608
20609 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj = NULL;
20611 wxEffects *arg1 = (wxEffects *) 0 ;
20612 wxColour *arg2 = 0 ;
20613 wxColour temp2 ;
20614 PyObject * obj0 = 0 ;
20615 PyObject * obj1 = 0 ;
20616 char *kwnames[] = {
20617 (char *) "self",(char *) "c", NULL
20618 };
20619
20620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
20621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20622 if (SWIG_arg_fail(1)) SWIG_fail;
20623 {
20624 arg2 = &temp2;
20625 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20626 }
20627 {
20628 PyThreadState* __tstate = wxPyBeginAllowThreads();
20629 (arg1)->SetLightShadow((wxColour const &)*arg2);
20630
20631 wxPyEndAllowThreads(__tstate);
20632 if (PyErr_Occurred()) SWIG_fail;
20633 }
20634 Py_INCREF(Py_None); resultobj = Py_None;
20635 return resultobj;
20636 fail:
20637 return NULL;
20638 }
20639
20640
20641 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj = NULL;
20643 wxEffects *arg1 = (wxEffects *) 0 ;
20644 wxColour *arg2 = 0 ;
20645 wxColour temp2 ;
20646 PyObject * obj0 = 0 ;
20647 PyObject * obj1 = 0 ;
20648 char *kwnames[] = {
20649 (char *) "self",(char *) "c", NULL
20650 };
20651
20652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
20653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20654 if (SWIG_arg_fail(1)) SWIG_fail;
20655 {
20656 arg2 = &temp2;
20657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20658 }
20659 {
20660 PyThreadState* __tstate = wxPyBeginAllowThreads();
20661 (arg1)->SetFaceColour((wxColour const &)*arg2);
20662
20663 wxPyEndAllowThreads(__tstate);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 }
20666 Py_INCREF(Py_None); resultobj = Py_None;
20667 return resultobj;
20668 fail:
20669 return NULL;
20670 }
20671
20672
20673 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20674 PyObject *resultobj = NULL;
20675 wxEffects *arg1 = (wxEffects *) 0 ;
20676 wxColour *arg2 = 0 ;
20677 wxColour temp2 ;
20678 PyObject * obj0 = 0 ;
20679 PyObject * obj1 = 0 ;
20680 char *kwnames[] = {
20681 (char *) "self",(char *) "c", NULL
20682 };
20683
20684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
20685 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20686 if (SWIG_arg_fail(1)) SWIG_fail;
20687 {
20688 arg2 = &temp2;
20689 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20690 }
20691 {
20692 PyThreadState* __tstate = wxPyBeginAllowThreads();
20693 (arg1)->SetMediumShadow((wxColour const &)*arg2);
20694
20695 wxPyEndAllowThreads(__tstate);
20696 if (PyErr_Occurred()) SWIG_fail;
20697 }
20698 Py_INCREF(Py_None); resultobj = Py_None;
20699 return resultobj;
20700 fail:
20701 return NULL;
20702 }
20703
20704
20705 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
20706 PyObject *resultobj = NULL;
20707 wxEffects *arg1 = (wxEffects *) 0 ;
20708 wxColour *arg2 = 0 ;
20709 wxColour temp2 ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 char *kwnames[] = {
20713 (char *) "self",(char *) "c", NULL
20714 };
20715
20716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
20717 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20718 if (SWIG_arg_fail(1)) SWIG_fail;
20719 {
20720 arg2 = &temp2;
20721 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20722 }
20723 {
20724 PyThreadState* __tstate = wxPyBeginAllowThreads();
20725 (arg1)->SetDarkShadow((wxColour const &)*arg2);
20726
20727 wxPyEndAllowThreads(__tstate);
20728 if (PyErr_Occurred()) SWIG_fail;
20729 }
20730 Py_INCREF(Py_None); resultobj = Py_None;
20731 return resultobj;
20732 fail:
20733 return NULL;
20734 }
20735
20736
20737 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = NULL;
20739 wxEffects *arg1 = (wxEffects *) 0 ;
20740 wxColour *arg2 = 0 ;
20741 wxColour *arg3 = 0 ;
20742 wxColour *arg4 = 0 ;
20743 wxColour *arg5 = 0 ;
20744 wxColour *arg6 = 0 ;
20745 wxColour temp2 ;
20746 wxColour temp3 ;
20747 wxColour temp4 ;
20748 wxColour temp5 ;
20749 wxColour temp6 ;
20750 PyObject * obj0 = 0 ;
20751 PyObject * obj1 = 0 ;
20752 PyObject * obj2 = 0 ;
20753 PyObject * obj3 = 0 ;
20754 PyObject * obj4 = 0 ;
20755 PyObject * obj5 = 0 ;
20756 char *kwnames[] = {
20757 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
20758 };
20759
20760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
20761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20762 if (SWIG_arg_fail(1)) SWIG_fail;
20763 {
20764 arg2 = &temp2;
20765 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20766 }
20767 {
20768 arg3 = &temp3;
20769 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20770 }
20771 {
20772 arg4 = &temp4;
20773 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
20774 }
20775 {
20776 arg5 = &temp5;
20777 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
20778 }
20779 {
20780 arg6 = &temp6;
20781 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
20782 }
20783 {
20784 PyThreadState* __tstate = wxPyBeginAllowThreads();
20785 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
20786
20787 wxPyEndAllowThreads(__tstate);
20788 if (PyErr_Occurred()) SWIG_fail;
20789 }
20790 Py_INCREF(Py_None); resultobj = Py_None;
20791 return resultobj;
20792 fail:
20793 return NULL;
20794 }
20795
20796
20797 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
20798 PyObject *resultobj = NULL;
20799 wxEffects *arg1 = (wxEffects *) 0 ;
20800 wxDC *arg2 = 0 ;
20801 wxRect *arg3 = 0 ;
20802 int arg4 = (int) 1 ;
20803 wxRect temp3 ;
20804 PyObject * obj0 = 0 ;
20805 PyObject * obj1 = 0 ;
20806 PyObject * obj2 = 0 ;
20807 PyObject * obj3 = 0 ;
20808 char *kwnames[] = {
20809 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
20810 };
20811
20812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20813 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20814 if (SWIG_arg_fail(1)) SWIG_fail;
20815 {
20816 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20817 if (SWIG_arg_fail(2)) SWIG_fail;
20818 if (arg2 == NULL) {
20819 SWIG_null_ref("wxDC");
20820 }
20821 if (SWIG_arg_fail(2)) SWIG_fail;
20822 }
20823 {
20824 arg3 = &temp3;
20825 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20826 }
20827 if (obj3) {
20828 {
20829 arg4 = static_cast<int >(SWIG_As_int(obj3));
20830 if (SWIG_arg_fail(4)) SWIG_fail;
20831 }
20832 }
20833 {
20834 PyThreadState* __tstate = wxPyBeginAllowThreads();
20835 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
20836
20837 wxPyEndAllowThreads(__tstate);
20838 if (PyErr_Occurred()) SWIG_fail;
20839 }
20840 Py_INCREF(Py_None); resultobj = Py_None;
20841 return resultobj;
20842 fail:
20843 return NULL;
20844 }
20845
20846
20847 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
20848 PyObject *resultobj = NULL;
20849 wxEffects *arg1 = (wxEffects *) 0 ;
20850 wxRect *arg2 = 0 ;
20851 wxDC *arg3 = 0 ;
20852 wxBitmap *arg4 = 0 ;
20853 bool result;
20854 wxRect temp2 ;
20855 PyObject * obj0 = 0 ;
20856 PyObject * obj1 = 0 ;
20857 PyObject * obj2 = 0 ;
20858 PyObject * obj3 = 0 ;
20859 char *kwnames[] = {
20860 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
20861 };
20862
20863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20864 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
20865 if (SWIG_arg_fail(1)) SWIG_fail;
20866 {
20867 arg2 = &temp2;
20868 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20869 }
20870 {
20871 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
20872 if (SWIG_arg_fail(3)) SWIG_fail;
20873 if (arg3 == NULL) {
20874 SWIG_null_ref("wxDC");
20875 }
20876 if (SWIG_arg_fail(3)) SWIG_fail;
20877 }
20878 {
20879 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
20880 if (SWIG_arg_fail(4)) SWIG_fail;
20881 if (arg4 == NULL) {
20882 SWIG_null_ref("wxBitmap");
20883 }
20884 if (SWIG_arg_fail(4)) SWIG_fail;
20885 }
20886 {
20887 PyThreadState* __tstate = wxPyBeginAllowThreads();
20888 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
20889
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 {
20894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20895 }
20896 return resultobj;
20897 fail:
20898 return NULL;
20899 }
20900
20901
20902 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
20903 PyObject *obj;
20904 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20905 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
20906 Py_INCREF(obj);
20907 return Py_BuildValue((char *)"");
20908 }
20909 static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = NULL;
20911 int arg1 ;
20912 int arg2 ;
20913 bool arg3 ;
20914 wxSplitterRenderParams *result;
20915 PyObject * obj0 = 0 ;
20916 PyObject * obj1 = 0 ;
20917 PyObject * obj2 = 0 ;
20918 char *kwnames[] = {
20919 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
20920 };
20921
20922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail;
20923 {
20924 arg1 = static_cast<int >(SWIG_As_int(obj0));
20925 if (SWIG_arg_fail(1)) SWIG_fail;
20926 }
20927 {
20928 arg2 = static_cast<int >(SWIG_As_int(obj1));
20929 if (SWIG_arg_fail(2)) SWIG_fail;
20930 }
20931 {
20932 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
20933 if (SWIG_arg_fail(3)) SWIG_fail;
20934 }
20935 {
20936 PyThreadState* __tstate = wxPyBeginAllowThreads();
20937 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
20938
20939 wxPyEndAllowThreads(__tstate);
20940 if (PyErr_Occurred()) SWIG_fail;
20941 }
20942 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1);
20943 return resultobj;
20944 fail:
20945 return NULL;
20946 }
20947
20948
20949 static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
20950 PyObject *resultobj = NULL;
20951 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20952 PyObject * obj0 = 0 ;
20953 char *kwnames[] = {
20954 (char *) "self", NULL
20955 };
20956
20957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail;
20958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20959 if (SWIG_arg_fail(1)) SWIG_fail;
20960 {
20961 PyThreadState* __tstate = wxPyBeginAllowThreads();
20962 delete arg1;
20963
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 Py_INCREF(Py_None); resultobj = Py_None;
20968 return resultobj;
20969 fail:
20970 return NULL;
20971 }
20972
20973
20974 static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj = NULL;
20976 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
20977 int result;
20978 PyObject * obj0 = 0 ;
20979 char *kwnames[] = {
20980 (char *) "self", NULL
20981 };
20982
20983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail;
20984 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
20985 if (SWIG_arg_fail(1)) SWIG_fail;
20986 result = (int)(int) ((arg1)->widthSash);
20987
20988 {
20989 resultobj = SWIG_From_int(static_cast<int >(result));
20990 }
20991 return resultobj;
20992 fail:
20993 return NULL;
20994 }
20995
20996
20997 static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = NULL;
20999 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21000 int result;
21001 PyObject * obj0 = 0 ;
21002 char *kwnames[] = {
21003 (char *) "self", NULL
21004 };
21005
21006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail;
21007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21008 if (SWIG_arg_fail(1)) SWIG_fail;
21009 result = (int)(int) ((arg1)->border);
21010
21011 {
21012 resultobj = SWIG_From_int(static_cast<int >(result));
21013 }
21014 return resultobj;
21015 fail:
21016 return NULL;
21017 }
21018
21019
21020 static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) {
21021 PyObject *resultobj = NULL;
21022 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21023 bool result;
21024 PyObject * obj0 = 0 ;
21025 char *kwnames[] = {
21026 (char *) "self", NULL
21027 };
21028
21029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail;
21030 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21031 if (SWIG_arg_fail(1)) SWIG_fail;
21032 result = (bool)(bool) ((arg1)->isHotSensitive);
21033
21034 {
21035 resultobj = SWIG_From_bool(static_cast<bool >(result));
21036 }
21037 return resultobj;
21038 fail:
21039 return NULL;
21040 }
21041
21042
21043 static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) {
21044 PyObject *obj;
21045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21046 SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj);
21047 Py_INCREF(obj);
21048 return Py_BuildValue((char *)"");
21049 }
21050 static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21051 PyObject *resultobj = NULL;
21052 int arg1 ;
21053 int arg2 ;
21054 wxRendererVersion *result;
21055 PyObject * obj0 = 0 ;
21056 PyObject * obj1 = 0 ;
21057 char *kwnames[] = {
21058 (char *) "version_",(char *) "age_", NULL
21059 };
21060
21061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail;
21062 {
21063 arg1 = static_cast<int >(SWIG_As_int(obj0));
21064 if (SWIG_arg_fail(1)) SWIG_fail;
21065 }
21066 {
21067 arg2 = static_cast<int >(SWIG_As_int(obj1));
21068 if (SWIG_arg_fail(2)) SWIG_fail;
21069 }
21070 {
21071 PyThreadState* __tstate = wxPyBeginAllowThreads();
21072 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
21073
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1);
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj = NULL;
21086 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21087 PyObject * obj0 = 0 ;
21088 char *kwnames[] = {
21089 (char *) "self", NULL
21090 };
21091
21092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail;
21093 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21094 if (SWIG_arg_fail(1)) SWIG_fail;
21095 {
21096 PyThreadState* __tstate = wxPyBeginAllowThreads();
21097 delete arg1;
21098
21099 wxPyEndAllowThreads(__tstate);
21100 if (PyErr_Occurred()) SWIG_fail;
21101 }
21102 Py_INCREF(Py_None); resultobj = Py_None;
21103 return resultobj;
21104 fail:
21105 return NULL;
21106 }
21107
21108
21109 static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) {
21110 PyObject *resultobj = NULL;
21111 wxRendererVersion *arg1 = 0 ;
21112 bool result;
21113 PyObject * obj0 = 0 ;
21114 char *kwnames[] = {
21115 (char *) "ver", NULL
21116 };
21117
21118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail;
21119 {
21120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21121 if (SWIG_arg_fail(1)) SWIG_fail;
21122 if (arg1 == NULL) {
21123 SWIG_null_ref("wxRendererVersion");
21124 }
21125 if (SWIG_arg_fail(1)) SWIG_fail;
21126 }
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
21130
21131 wxPyEndAllowThreads(__tstate);
21132 if (PyErr_Occurred()) SWIG_fail;
21133 }
21134 {
21135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21136 }
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj = NULL;
21145 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21146 int result;
21147 PyObject * obj0 = 0 ;
21148 char *kwnames[] = {
21149 (char *) "self", NULL
21150 };
21151
21152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail;
21153 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21154 if (SWIG_arg_fail(1)) SWIG_fail;
21155 result = (int)(int) ((arg1)->version);
21156
21157 {
21158 resultobj = SWIG_From_int(static_cast<int >(result));
21159 }
21160 return resultobj;
21161 fail:
21162 return NULL;
21163 }
21164
21165
21166 static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) {
21167 PyObject *resultobj = NULL;
21168 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21169 int result;
21170 PyObject * obj0 = 0 ;
21171 char *kwnames[] = {
21172 (char *) "self", NULL
21173 };
21174
21175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail;
21176 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21177 if (SWIG_arg_fail(1)) SWIG_fail;
21178 result = (int)(int) ((arg1)->age);
21179
21180 {
21181 resultobj = SWIG_From_int(static_cast<int >(result));
21182 }
21183 return resultobj;
21184 fail:
21185 return NULL;
21186 }
21187
21188
21189 static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) {
21190 PyObject *obj;
21191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21192 SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj);
21193 Py_INCREF(obj);
21194 return Py_BuildValue((char *)"");
21195 }
21196 static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) {
21197 PyObject *resultobj = NULL;
21198 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21199 wxWindow *arg2 = (wxWindow *) 0 ;
21200 wxDC *arg3 = 0 ;
21201 wxRect *arg4 = 0 ;
21202 int arg5 = (int) 0 ;
21203 wxRect temp4 ;
21204 PyObject * obj0 = 0 ;
21205 PyObject * obj1 = 0 ;
21206 PyObject * obj2 = 0 ;
21207 PyObject * obj3 = 0 ;
21208 PyObject * obj4 = 0 ;
21209 char *kwnames[] = {
21210 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21211 };
21212
21213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21214 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21215 if (SWIG_arg_fail(1)) SWIG_fail;
21216 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21217 if (SWIG_arg_fail(2)) SWIG_fail;
21218 {
21219 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21220 if (SWIG_arg_fail(3)) SWIG_fail;
21221 if (arg3 == NULL) {
21222 SWIG_null_ref("wxDC");
21223 }
21224 if (SWIG_arg_fail(3)) SWIG_fail;
21225 }
21226 {
21227 arg4 = &temp4;
21228 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21229 }
21230 if (obj4) {
21231 {
21232 arg5 = static_cast<int >(SWIG_As_int(obj4));
21233 if (SWIG_arg_fail(5)) SWIG_fail;
21234 }
21235 }
21236 {
21237 PyThreadState* __tstate = wxPyBeginAllowThreads();
21238 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21239
21240 wxPyEndAllowThreads(__tstate);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 Py_INCREF(Py_None); resultobj = Py_None;
21244 return resultobj;
21245 fail:
21246 return NULL;
21247 }
21248
21249
21250 static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) {
21251 PyObject *resultobj = NULL;
21252 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21253 wxWindow *arg2 = (wxWindow *) 0 ;
21254 wxDC *arg3 = 0 ;
21255 wxRect *arg4 = 0 ;
21256 int arg5 = (int) 0 ;
21257 wxRect temp4 ;
21258 PyObject * obj0 = 0 ;
21259 PyObject * obj1 = 0 ;
21260 PyObject * obj2 = 0 ;
21261 PyObject * obj3 = 0 ;
21262 PyObject * obj4 = 0 ;
21263 char *kwnames[] = {
21264 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21265 };
21266
21267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21269 if (SWIG_arg_fail(1)) SWIG_fail;
21270 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21271 if (SWIG_arg_fail(2)) SWIG_fail;
21272 {
21273 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21274 if (SWIG_arg_fail(3)) SWIG_fail;
21275 if (arg3 == NULL) {
21276 SWIG_null_ref("wxDC");
21277 }
21278 if (SWIG_arg_fail(3)) SWIG_fail;
21279 }
21280 {
21281 arg4 = &temp4;
21282 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21283 }
21284 if (obj4) {
21285 {
21286 arg5 = static_cast<int >(SWIG_As_int(obj4));
21287 if (SWIG_arg_fail(5)) SWIG_fail;
21288 }
21289 }
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21293
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 Py_INCREF(Py_None); resultobj = Py_None;
21298 return resultobj;
21299 fail:
21300 return NULL;
21301 }
21302
21303
21304 static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) {
21305 PyObject *resultobj = NULL;
21306 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21307 wxWindow *arg2 = (wxWindow *) 0 ;
21308 wxDC *arg3 = 0 ;
21309 wxRect *arg4 = 0 ;
21310 int arg5 = (int) 0 ;
21311 wxRect temp4 ;
21312 PyObject * obj0 = 0 ;
21313 PyObject * obj1 = 0 ;
21314 PyObject * obj2 = 0 ;
21315 PyObject * obj3 = 0 ;
21316 PyObject * obj4 = 0 ;
21317 char *kwnames[] = {
21318 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21319 };
21320
21321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21323 if (SWIG_arg_fail(1)) SWIG_fail;
21324 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21325 if (SWIG_arg_fail(2)) SWIG_fail;
21326 {
21327 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21328 if (SWIG_arg_fail(3)) SWIG_fail;
21329 if (arg3 == NULL) {
21330 SWIG_null_ref("wxDC");
21331 }
21332 if (SWIG_arg_fail(3)) SWIG_fail;
21333 }
21334 {
21335 arg4 = &temp4;
21336 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21337 }
21338 if (obj4) {
21339 {
21340 arg5 = static_cast<int >(SWIG_As_int(obj4));
21341 if (SWIG_arg_fail(5)) SWIG_fail;
21342 }
21343 }
21344 {
21345 PyThreadState* __tstate = wxPyBeginAllowThreads();
21346 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
21347
21348 wxPyEndAllowThreads(__tstate);
21349 if (PyErr_Occurred()) SWIG_fail;
21350 }
21351 Py_INCREF(Py_None); resultobj = Py_None;
21352 return resultobj;
21353 fail:
21354 return NULL;
21355 }
21356
21357
21358 static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj = NULL;
21360 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21361 wxWindow *arg2 = (wxWindow *) 0 ;
21362 wxDC *arg3 = 0 ;
21363 wxSize *arg4 = 0 ;
21364 int arg5 ;
21365 wxOrientation arg6 ;
21366 int arg7 = (int) 0 ;
21367 wxSize temp4 ;
21368 PyObject * obj0 = 0 ;
21369 PyObject * obj1 = 0 ;
21370 PyObject * obj2 = 0 ;
21371 PyObject * obj3 = 0 ;
21372 PyObject * obj4 = 0 ;
21373 PyObject * obj5 = 0 ;
21374 PyObject * obj6 = 0 ;
21375 char *kwnames[] = {
21376 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
21377 };
21378
21379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21380 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21381 if (SWIG_arg_fail(1)) SWIG_fail;
21382 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21383 if (SWIG_arg_fail(2)) SWIG_fail;
21384 {
21385 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21386 if (SWIG_arg_fail(3)) SWIG_fail;
21387 if (arg3 == NULL) {
21388 SWIG_null_ref("wxDC");
21389 }
21390 if (SWIG_arg_fail(3)) SWIG_fail;
21391 }
21392 {
21393 arg4 = &temp4;
21394 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21395 }
21396 {
21397 arg5 = static_cast<int >(SWIG_As_int(obj4));
21398 if (SWIG_arg_fail(5)) SWIG_fail;
21399 }
21400 {
21401 arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5));
21402 if (SWIG_arg_fail(6)) SWIG_fail;
21403 }
21404 if (obj6) {
21405 {
21406 arg7 = static_cast<int >(SWIG_As_int(obj6));
21407 if (SWIG_arg_fail(7)) SWIG_fail;
21408 }
21409 }
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
21413
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 Py_INCREF(Py_None); resultobj = Py_None;
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) {
21425 PyObject *resultobj = NULL;
21426 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21427 wxWindow *arg2 = (wxWindow *) 0 ;
21428 wxDC *arg3 = 0 ;
21429 wxRect *arg4 = 0 ;
21430 int arg5 = (int) 0 ;
21431 wxRect temp4 ;
21432 PyObject * obj0 = 0 ;
21433 PyObject * obj1 = 0 ;
21434 PyObject * obj2 = 0 ;
21435 PyObject * obj3 = 0 ;
21436 PyObject * obj4 = 0 ;
21437 char *kwnames[] = {
21438 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21439 };
21440
21441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21442 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21443 if (SWIG_arg_fail(1)) SWIG_fail;
21444 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21445 if (SWIG_arg_fail(2)) SWIG_fail;
21446 {
21447 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21448 if (SWIG_arg_fail(3)) SWIG_fail;
21449 if (arg3 == NULL) {
21450 SWIG_null_ref("wxDC");
21451 }
21452 if (SWIG_arg_fail(3)) SWIG_fail;
21453 }
21454 {
21455 arg4 = &temp4;
21456 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21457 }
21458 if (obj4) {
21459 {
21460 arg5 = static_cast<int >(SWIG_As_int(obj4));
21461 if (SWIG_arg_fail(5)) SWIG_fail;
21462 }
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
21467
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 Py_INCREF(Py_None); resultobj = Py_None;
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) {
21479 PyObject *resultobj = NULL;
21480 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21481 wxWindow *arg2 = (wxWindow *) 0 ;
21482 wxDC *arg3 = 0 ;
21483 wxRect *arg4 = 0 ;
21484 int arg5 = (int) 0 ;
21485 wxRect temp4 ;
21486 PyObject * obj0 = 0 ;
21487 PyObject * obj1 = 0 ;
21488 PyObject * obj2 = 0 ;
21489 PyObject * obj3 = 0 ;
21490 PyObject * obj4 = 0 ;
21491 char *kwnames[] = {
21492 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21493 };
21494
21495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21497 if (SWIG_arg_fail(1)) SWIG_fail;
21498 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21499 if (SWIG_arg_fail(2)) SWIG_fail;
21500 {
21501 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21502 if (SWIG_arg_fail(3)) SWIG_fail;
21503 if (arg3 == NULL) {
21504 SWIG_null_ref("wxDC");
21505 }
21506 if (SWIG_arg_fail(3)) SWIG_fail;
21507 }
21508 {
21509 arg4 = &temp4;
21510 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21511 }
21512 if (obj4) {
21513 {
21514 arg5 = static_cast<int >(SWIG_As_int(obj4));
21515 if (SWIG_arg_fail(5)) SWIG_fail;
21516 }
21517 }
21518 {
21519 PyThreadState* __tstate = wxPyBeginAllowThreads();
21520 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
21521
21522 wxPyEndAllowThreads(__tstate);
21523 if (PyErr_Occurred()) SWIG_fail;
21524 }
21525 Py_INCREF(Py_None); resultobj = Py_None;
21526 return resultobj;
21527 fail:
21528 return NULL;
21529 }
21530
21531
21532 static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) {
21533 PyObject *resultobj = NULL;
21534 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21535 wxWindow *arg2 = (wxWindow *) 0 ;
21536 SwigValueWrapper<wxSplitterRenderParams > result;
21537 PyObject * obj0 = 0 ;
21538 PyObject * obj1 = 0 ;
21539 char *kwnames[] = {
21540 (char *) "self",(char *) "win", NULL
21541 };
21542
21543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail;
21544 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21545 if (SWIG_arg_fail(1)) SWIG_fail;
21546 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21547 if (SWIG_arg_fail(2)) SWIG_fail;
21548 {
21549 PyThreadState* __tstate = wxPyBeginAllowThreads();
21550 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
21551
21552 wxPyEndAllowThreads(__tstate);
21553 if (PyErr_Occurred()) SWIG_fail;
21554 }
21555 {
21556 wxSplitterRenderParams * resultptr;
21557 resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result));
21558 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1);
21559 }
21560 return resultobj;
21561 fail:
21562 return NULL;
21563 }
21564
21565
21566 static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) {
21567 PyObject *resultobj = NULL;
21568 wxRendererNative *result;
21569 char *kwnames[] = {
21570 NULL
21571 };
21572
21573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail;
21574 {
21575 PyThreadState* __tstate = wxPyBeginAllowThreads();
21576 {
21577 wxRendererNative &_result_ref = wxRendererNative::Get();
21578 result = (wxRendererNative *) &_result_ref;
21579 }
21580
21581 wxPyEndAllowThreads(__tstate);
21582 if (PyErr_Occurred()) SWIG_fail;
21583 }
21584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21585 return resultobj;
21586 fail:
21587 return NULL;
21588 }
21589
21590
21591 static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
21592 PyObject *resultobj = NULL;
21593 wxRendererNative *result;
21594 char *kwnames[] = {
21595 NULL
21596 };
21597
21598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail;
21599 {
21600 PyThreadState* __tstate = wxPyBeginAllowThreads();
21601 {
21602 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
21603 result = (wxRendererNative *) &_result_ref;
21604 }
21605
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21610 return resultobj;
21611 fail:
21612 return NULL;
21613 }
21614
21615
21616 static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
21617 PyObject *resultobj = NULL;
21618 wxRendererNative *result;
21619 char *kwnames[] = {
21620 NULL
21621 };
21622
21623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail;
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 {
21627 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
21628 result = (wxRendererNative *) &_result_ref;
21629 }
21630
21631 wxPyEndAllowThreads(__tstate);
21632 if (PyErr_Occurred()) SWIG_fail;
21633 }
21634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21635 return resultobj;
21636 fail:
21637 return NULL;
21638 }
21639
21640
21641 static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21642 PyObject *resultobj = NULL;
21643 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21644 wxRendererNative *result;
21645 PyObject * obj0 = 0 ;
21646 char *kwnames[] = {
21647 (char *) "renderer", NULL
21648 };
21649
21650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail;
21651 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21652 if (SWIG_arg_fail(1)) SWIG_fail;
21653 {
21654 PyThreadState* __tstate = wxPyBeginAllowThreads();
21655 result = (wxRendererNative *)wxRendererNative::Set(arg1);
21656
21657 wxPyEndAllowThreads(__tstate);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
21661 return resultobj;
21662 fail:
21663 return NULL;
21664 }
21665
21666
21667 static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21668 PyObject *resultobj = NULL;
21669 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21670 SwigValueWrapper<wxRendererVersion > result;
21671 PyObject * obj0 = 0 ;
21672 char *kwnames[] = {
21673 (char *) "self", NULL
21674 };
21675
21676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail;
21677 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21678 if (SWIG_arg_fail(1)) SWIG_fail;
21679 {
21680 PyThreadState* __tstate = wxPyBeginAllowThreads();
21681 result = ((wxRendererNative const *)arg1)->GetVersion();
21682
21683 wxPyEndAllowThreads(__tstate);
21684 if (PyErr_Occurred()) SWIG_fail;
21685 }
21686 {
21687 wxRendererVersion * resultptr;
21688 resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result));
21689 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1);
21690 }
21691 return resultobj;
21692 fail:
21693 return NULL;
21694 }
21695
21696
21697 static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) {
21698 PyObject *obj;
21699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21700 SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj);
21701 Py_INCREF(obj);
21702 return Py_BuildValue((char *)"");
21703 }
21704 static PyMethodDef SwigMethods[] = {
21705 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
21706 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
21707 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
21708 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
21709 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
21710 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
21711 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
21712 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
21713 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21714 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
21715 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
21716 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
21717 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
21718 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21719 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
21720 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21721 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
21722 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
21723 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21724 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21725 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
21726 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21727 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
21728 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
21729 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
21730 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
21731 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
21732 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
21733 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21734 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
21735 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
21736 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
21737 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
21738 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21739 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
21740 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21741 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21742 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21743 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
21744 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21745 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
21746 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21747 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21748 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21749 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21750 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
21751 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21752 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21753 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
21754 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
21755 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21756 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
21757 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21758 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21759 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
21760 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
21761 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21762 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
21763 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
21764 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21765 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
21766 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
21767 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
21768 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21769 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21770 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21771 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21772 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
21773 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
21774 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
21775 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21776 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21777 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21778 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21779 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21780 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
21781 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
21782 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
21783 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
21784 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21785 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
21786 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
21787 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
21788 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21789 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21790 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21791 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21792 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
21793 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21794 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21795 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
21796 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
21797 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
21798 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
21799 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
21800 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21801 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21802 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21803 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
21804 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21805 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21806 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21807 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21808 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21809 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21810 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
21811 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21812 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
21813 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21814 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
21815 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
21816 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
21817 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
21818 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
21819 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
21820 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
21821 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
21822 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
21823 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21824 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
21825 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21826 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
21827 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
21828 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
21829 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
21830 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
21831 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
21832 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
21833 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21834 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
21835 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
21836 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21837 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
21838 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
21839 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
21840 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
21841 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
21842 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
21843 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
21844 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
21845 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
21846 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
21847 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
21848 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
21849 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21850 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
21851 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
21852 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
21853 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21854 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
21855 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
21856 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21857 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
21858 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
21859 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
21860 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21861 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
21862 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
21863 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
21864 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
21865 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
21866 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
21867 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
21868 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
21869 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21870 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
21871 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
21872 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
21873 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
21874 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
21875 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
21876 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
21877 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
21878 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21879 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21880 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
21881 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
21882 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21883 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21884 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21885 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21886 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21887 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21888 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21889 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21890 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21891 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21892 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21893 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21894 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21895 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21896 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
21897 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
21898 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
21899 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
21900 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
21901 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
21902 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
21903 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
21904 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
21905 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
21906 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21907 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21908 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
21909 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
21910 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
21911 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21912 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21913 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
21914 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
21915 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
21916 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
21917 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21918 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
21919 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21920 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
21921 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
21922 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
21923 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
21924 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
21925 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21926 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
21927 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
21928 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
21929 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
21930 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
21931 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
21932 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21933 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
21934 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
21935 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21936 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21937 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
21938 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
21939 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
21940 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21941 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21942 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
21943 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21944 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21945 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21946 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21947 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21948 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21949 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21950 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
21951 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21952 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21953 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
21954 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
21955 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
21956 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
21957 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
21958 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
21959 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
21960 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21961 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21962 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
21963 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
21964 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
21965 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
21966 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
21967 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
21968 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
21969 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21970 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21971 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
21972 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
21973 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
21974 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
21975 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
21976 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
21977 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
21978 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
21979 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
21980 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
21981 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
21982 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
21983 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
21984 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
21985 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
21986 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
21987 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
21988 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
21989 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
21990 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
21991 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
21992 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
21993 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
21994 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
21995 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
21996 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
21997 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
21998 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
21999 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
22000 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
22001 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
22002 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22003 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
22004 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22005 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22006 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
22007 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
22008 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
22009 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22010 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
22011 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22012 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22013 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22014 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
22015 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22016 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22017 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
22018 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
22019 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
22020 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
22021 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22022 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22023 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22024 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
22025 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22026 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
22027 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22028 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
22029 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22030 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
22031 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
22032 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
22033 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22034 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22035 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22036 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22037 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22038 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22039 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22040 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22041 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22042 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
22043 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22044 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
22045 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
22046 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22047 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22048 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22049 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22050 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22051 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
22052 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22053 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
22054 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22055 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
22056 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22057 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22058 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22059 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22060 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22061 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
22062 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
22063 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22064 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22065 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
22066 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22067 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22068 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22069 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
22070 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
22071 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22072 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22073 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22074 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22075 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22076 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22077 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22078 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22079 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22080 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22081 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22082 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22083 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22084 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22085 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
22086 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22087 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22088 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
22089 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22090 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
22091 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
22092 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22093 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22094 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
22095 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
22096 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22097 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22098 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22099 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22100 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22101 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
22102 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22103 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22104 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22105 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22106 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22107 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22108 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22109 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22110 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22111 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22112 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22113 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22114 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22115 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22116 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22117 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22118 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22119 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22120 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22121 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22122 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22123 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22124 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22125 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22126 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
22127 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22128 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22129 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22130 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22131 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22132 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22133 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
22134 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
22135 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
22136 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
22137 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22138 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
22139 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
22140 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
22141 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
22142 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
22143 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
22144 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
22145 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
22146 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
22147 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
22148 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
22149 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
22150 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
22151 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
22152 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
22153 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22154 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
22155 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
22156 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
22157 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22158 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22159 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
22160 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
22161 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
22162 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22163 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
22164 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
22165 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
22166 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
22167 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
22168 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
22169 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22170 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22171 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22172 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22173 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
22174 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22175 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22176 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22177 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
22178 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22179 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22180 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22181 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
22182 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
22183 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL},
22184 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
22185 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
22186 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
22187 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22188 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22189 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
22190 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
22191 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22192 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22193 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22194 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
22195 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
22196 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
22197 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
22198 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
22199 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22200 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
22201 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
22202 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
22203 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
22204 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22205 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
22206 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22207 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22208 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22209 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22210 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
22211 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22212 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
22213 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
22214 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
22215 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
22216 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
22217 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
22218 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
22219 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
22220 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
22221 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22222 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
22223 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
22224 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22225 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22226 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22227 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22228 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22229 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
22230 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22231 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
22232 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22233 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
22234 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22235 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
22236 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22237 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
22238 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22239 { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
22240 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL},
22241 { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL},
22242 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL},
22243 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
22244 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22245 { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22246 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
22247 { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL},
22248 { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL},
22249 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
22250 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
22251 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
22252 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
22253 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
22254 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
22255 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
22256 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
22257 { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22258 { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
22259 { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL},
22260 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22261 { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
22262 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
22263 { NULL, NULL, 0, NULL }
22264 };
22265
22266
22267 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
22268
22269 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
22270 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
22271 }
22272 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
22273 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
22274 }
22275 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
22276 return (void *)((wxGDIObject *) ((wxIcon *) x));
22277 }
22278 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
22279 return (void *)((wxGDIObject *) ((wxPalette *) x));
22280 }
22281 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
22282 return (void *)((wxGDIObject *) ((wxPen *) x));
22283 }
22284 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
22285 return (void *)((wxGDIObject *) ((wxFont *) x));
22286 }
22287 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
22288 return (void *)((wxGDIObject *) ((wxCursor *) x));
22289 }
22290 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
22291 return (void *)((wxGDIObject *) ((wxBitmap *) x));
22292 }
22293 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
22294 return (void *)((wxGDIObject *) ((wxRegion *) x));
22295 }
22296 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
22297 return (void *)((wxGDIObject *) ((wxBrush *) x));
22298 }
22299 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
22300 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
22301 }
22302 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
22303 return (void *)((wxDC *) ((wxScreenDC *) x));
22304 }
22305 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
22306 return (void *)((wxDC *) ((wxMirrorDC *) x));
22307 }
22308 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
22309 return (void *)((wxDC *) ((wxMemoryDC *) x));
22310 }
22311 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
22312 return (void *)((wxDC *) ((wxWindowDC *) x));
22313 }
22314 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
22315 return (void *)((wxDC *) ((wxMetaFileDC *) x));
22316 }
22317 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
22318 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
22319 }
22320 static void *_p_wxClientDCTo_p_wxDC(void *x) {
22321 return (void *)((wxDC *) ((wxClientDC *) x));
22322 }
22323 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
22324 return (void *)((wxDC *) ((wxPaintDC *) x));
22325 }
22326 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
22327 return (void *)((wxDC *) ((wxPostScriptDC *) x));
22328 }
22329 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
22330 return (void *)((wxDC *) ((wxPrinterDC *) x));
22331 }
22332 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
22333 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
22334 }
22335 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
22336 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
22337 }
22338 static void *_p_wxPenTo_p_wxObject(void *x) {
22339 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
22340 }
22341 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
22342 return (void *)((wxObject *) ((wxRegionIterator *) x));
22343 }
22344 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
22345 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
22346 }
22347 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
22348 return (void *)((wxObject *) ((wxSizerItem *) x));
22349 }
22350 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
22351 return (void *)((wxObject *) ((wxColourDatabase *) x));
22352 }
22353 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
22354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
22355 }
22356 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
22357 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
22358 }
22359 static void *_p_wxIconTo_p_wxObject(void *x) {
22360 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
22361 }
22362 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
22363 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
22364 }
22365 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
22366 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
22367 }
22368 static void *_p_wxSizerTo_p_wxObject(void *x) {
22369 return (void *)((wxObject *) ((wxSizer *) x));
22370 }
22371 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
22372 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
22373 }
22374 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
22375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
22376 }
22377 static void *_p_wxPenListTo_p_wxObject(void *x) {
22378 return (void *)((wxObject *) ((wxPenList *) x));
22379 }
22380 static void *_p_wxEventTo_p_wxObject(void *x) {
22381 return (void *)((wxObject *) ((wxEvent *) x));
22382 }
22383 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
22384 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
22385 }
22386 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
22387 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
22388 }
22389 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
22390 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
22391 }
22392 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
22393 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
22394 }
22395 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
22396 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
22397 }
22398 static void *_p_wxDCTo_p_wxObject(void *x) {
22399 return (void *)((wxObject *) ((wxDC *) x));
22400 }
22401 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
22402 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
22403 }
22404 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
22405 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
22406 }
22407 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
22408 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
22409 }
22410 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
22411 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
22412 }
22413 static void *_p_wxControlTo_p_wxObject(void *x) {
22414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
22415 }
22416 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
22417 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
22418 }
22419 static void *_p_wxClientDCTo_p_wxObject(void *x) {
22420 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
22421 }
22422 static void *_p_wxFSFileTo_p_wxObject(void *x) {
22423 return (void *)((wxObject *) ((wxFSFile *) x));
22424 }
22425 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
22426 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
22427 }
22428 static void *_p_wxRegionTo_p_wxObject(void *x) {
22429 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
22430 }
22431 static void *_p_wxPySizerTo_p_wxObject(void *x) {
22432 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
22433 }
22434 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
22435 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
22436 }
22437 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
22438 return (void *)((wxObject *) ((wxGDIObject *) x));
22439 }
22440 static void *_p_wxEffectsTo_p_wxObject(void *x) {
22441 return (void *)((wxObject *) ((wxEffects *) x));
22442 }
22443 static void *_p_wxPyEventTo_p_wxObject(void *x) {
22444 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
22445 }
22446 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
22447 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
22448 }
22449 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
22450 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
22451 }
22452 static void *_p_wxShowEventTo_p_wxObject(void *x) {
22453 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
22454 }
22455 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
22456 return (void *)((wxObject *) ((wxMenuItem *) x));
22457 }
22458 static void *_p_wxDateEventTo_p_wxObject(void *x) {
22459 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
22460 }
22461 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
22462 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
22463 }
22464 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
22465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
22466 }
22467 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
22468 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
22469 }
22470 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
22471 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
22472 }
22473 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
22474 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
22475 }
22476 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
22477 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
22478 }
22479 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
22480 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
22481 }
22482 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
22483 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
22484 }
22485 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
22486 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
22487 }
22488 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
22489 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
22490 }
22491 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
22492 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
22493 }
22494 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
22495 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
22496 }
22497 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
22498 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
22499 }
22500 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
22501 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
22502 }
22503 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
22504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
22505 }
22506 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
22507 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
22508 }
22509 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
22510 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
22511 }
22512 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
22513 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
22514 }
22515 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
22516 return (void *)((wxObject *) ((wxImageHandler *) x));
22517 }
22518 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
22519 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
22520 }
22521 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
22522 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
22523 }
22524 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
22525 return (void *)((wxObject *) ((wxEvtHandler *) x));
22526 }
22527 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
22528 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
22529 }
22530 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
22531 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
22532 }
22533 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
22534 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
22535 }
22536 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
22537 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
22538 }
22539 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
22540 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
22541 }
22542 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
22543 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
22544 }
22545 static void *_p_wxImageTo_p_wxObject(void *x) {
22546 return (void *)((wxObject *) ((wxImage *) x));
22547 }
22548 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
22549 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
22550 }
22551 static void *_p_wxPaletteTo_p_wxObject(void *x) {
22552 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
22553 }
22554 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
22555 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
22556 }
22557 static void *_p_wxImageListTo_p_wxObject(void *x) {
22558 return (void *)((wxObject *) ((wxImageList *) x));
22559 }
22560 static void *_p_wxCursorTo_p_wxObject(void *x) {
22561 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
22562 }
22563 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
22564 return (void *)((wxObject *) ((wxEncodingConverter *) x));
22565 }
22566 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
22567 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
22568 }
22569 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
22570 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
22571 }
22572 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
22573 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
22574 }
22575 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
22576 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
22577 }
22578 static void *_p_wxWindowTo_p_wxObject(void *x) {
22579 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
22580 }
22581 static void *_p_wxMenuTo_p_wxObject(void *x) {
22582 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
22583 }
22584 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
22585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
22586 }
22587 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
22588 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
22589 }
22590 static void *_p_wxBrushListTo_p_wxObject(void *x) {
22591 return (void *)((wxObject *) ((wxBrushList *) x));
22592 }
22593 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
22594 return (void *)((wxObject *) ((wxFileSystem *) x));
22595 }
22596 static void *_p_wxBitmapTo_p_wxObject(void *x) {
22597 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
22598 }
22599 static void *_p_wxMaskTo_p_wxObject(void *x) {
22600 return (void *)((wxObject *) ((wxMask *) x));
22601 }
22602 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
22603 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
22604 }
22605 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
22606 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
22607 }
22608 static void *_p_wxPyAppTo_p_wxObject(void *x) {
22609 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
22610 }
22611 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
22612 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
22613 }
22614 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
22615 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
22616 }
22617 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
22618 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
22619 }
22620 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
22621 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
22622 }
22623 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
22624 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
22625 }
22626 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
22627 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
22628 }
22629 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
22630 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
22631 }
22632 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
22633 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
22634 }
22635 static void *_p_wxFontTo_p_wxObject(void *x) {
22636 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
22637 }
22638 static void *_p_wxBrushTo_p_wxObject(void *x) {
22639 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
22640 }
22641 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
22642 return (void *)((wxObject *) ((wxMetaFile *) x));
22643 }
22644 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
22645 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
22646 }
22647 static void *_p_wxColourTo_p_wxObject(void *x) {
22648 return (void *)((wxObject *) ((wxColour *) x));
22649 }
22650 static void *_p_wxFontListTo_p_wxObject(void *x) {
22651 return (void *)((wxObject *) ((wxFontList *) x));
22652 }
22653 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
22654 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
22655 }
22656 static void *_p_wxValidatorTo_p_wxObject(void *x) {
22657 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
22658 }
22659 static void *_p_wxControlTo_p_wxWindow(void *x) {
22660 return (void *)((wxWindow *) ((wxControl *) x));
22661 }
22662 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
22663 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
22664 }
22665 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
22666 return (void *)((wxWindow *) ((wxMenuBar *) x));
22667 }
22668 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
22669 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0};
22670 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
22671 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
22672 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
22673 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
22674 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
22675 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
22676 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0};
22677 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0};
22678 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0};
22679 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0};
22680 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0};
22681 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
22682 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0};
22683 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
22684 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
22685 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0};
22686 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
22687 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0};
22688 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0};
22689 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
22690 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0};
22691 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0};
22692 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0};
22693 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
22694 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0};
22695 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0};
22696 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0};
22697 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0};
22698 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0};
22699 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0};
22700 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0};
22701 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0};
22702 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0};
22703 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0};
22704 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0};
22705 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0};
22706 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0};
22707 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
22708 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
22709 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
22710 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
22711 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
22712 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
22713 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
22714 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
22715 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
22716 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
22717 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
22718 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
22719 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
22720 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
22721 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
22722 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
22723 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
22724 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
22725 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
22726 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
22727 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
22728 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
22729 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
22730 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
22731 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
22732 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
22733 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
22734 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
22735 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
22736 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
22737 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
22738 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
22739 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
22740 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
22741 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
22742 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
22743 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
22744 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
22745 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
22746 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
22747 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
22748 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
22749 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
22750 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
22751 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
22752 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
22753 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
22754 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0};
22755 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
22756 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
22757 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
22758 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
22759 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
22760 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
22761 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
22762 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
22763 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
22764 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
22765 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
22766 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
22767 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
22768 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
22769 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
22770 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
22771 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
22772 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
22773 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
22774 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
22775 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
22776 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
22777 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
22778 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
22779 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
22780 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
22781 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
22782 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0};
22783 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0};
22784 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
22785 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0};
22786 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0};
22787 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
22788 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0};
22789 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0};
22790 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0};
22791 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0};
22792 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
22793 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0};
22794 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0};
22795 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0};
22796 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0};
22797 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0};
22798 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
22799 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0};
22800 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
22801 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
22802 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0};
22803 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
22804 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
22805 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
22806
22807 static swig_type_info *swig_type_initial[] = {
22808 &_swigt__p_char,
22809 &_swigt__p_double,
22810 &_swigt__p_form_ops_t,
22811 &_swigt__p_int,
22812 &_swigt__p_unsigned_char,
22813 &_swigt__p_unsigned_int,
22814 &_swigt__p_unsigned_long,
22815 &_swigt__p_wxANIHandler,
22816 &_swigt__p_wxAcceleratorTable,
22817 &_swigt__p_wxActivateEvent,
22818 &_swigt__p_wxBMPHandler,
22819 &_swigt__p_wxBitmap,
22820 &_swigt__p_wxBoxSizer,
22821 &_swigt__p_wxBrush,
22822 &_swigt__p_wxBrushList,
22823 &_swigt__p_wxBufferedDC,
22824 &_swigt__p_wxBufferedPaintDC,
22825 &_swigt__p_wxCURHandler,
22826 &_swigt__p_wxChildFocusEvent,
22827 &_swigt__p_wxClientDC,
22828 &_swigt__p_wxCloseEvent,
22829 &_swigt__p_wxColour,
22830 &_swigt__p_wxColourDatabase,
22831 &_swigt__p_wxCommandEvent,
22832 &_swigt__p_wxContextMenuEvent,
22833 &_swigt__p_wxControl,
22834 &_swigt__p_wxControlWithItems,
22835 &_swigt__p_wxCursor,
22836 &_swigt__p_wxDC,
22837 &_swigt__p_wxDash,
22838 &_swigt__p_wxDateEvent,
22839 &_swigt__p_wxDisplayChangedEvent,
22840 &_swigt__p_wxDropFilesEvent,
22841 &_swigt__p_wxDuplexMode,
22842 &_swigt__p_wxEffects,
22843 &_swigt__p_wxEncodingConverter,
22844 &_swigt__p_wxEraseEvent,
22845 &_swigt__p_wxEvent,
22846 &_swigt__p_wxEvtHandler,
22847 &_swigt__p_wxFSFile,
22848 &_swigt__p_wxFileSystem,
22849 &_swigt__p_wxFlexGridSizer,
22850 &_swigt__p_wxFocusEvent,
22851 &_swigt__p_wxFont,
22852 &_swigt__p_wxFontList,
22853 &_swigt__p_wxFontMapper,
22854 &_swigt__p_wxGBSizerItem,
22855 &_swigt__p_wxGDIObject,
22856 &_swigt__p_wxGIFHandler,
22857 &_swigt__p_wxGridBagSizer,
22858 &_swigt__p_wxGridSizer,
22859 &_swigt__p_wxICOHandler,
22860 &_swigt__p_wxIcon,
22861 &_swigt__p_wxIconBundle,
22862 &_swigt__p_wxIconLocation,
22863 &_swigt__p_wxIconizeEvent,
22864 &_swigt__p_wxIdleEvent,
22865 &_swigt__p_wxImage,
22866 &_swigt__p_wxImageHandler,
22867 &_swigt__p_wxImageList,
22868 &_swigt__p_wxIndividualLayoutConstraint,
22869 &_swigt__p_wxInitDialogEvent,
22870 &_swigt__p_wxJPEGHandler,
22871 &_swigt__p_wxKeyEvent,
22872 &_swigt__p_wxLanguageInfo,
22873 &_swigt__p_wxLayoutConstraints,
22874 &_swigt__p_wxLocale,
22875 &_swigt__p_wxMask,
22876 &_swigt__p_wxMaximizeEvent,
22877 &_swigt__p_wxMemoryDC,
22878 &_swigt__p_wxMenu,
22879 &_swigt__p_wxMenuBar,
22880 &_swigt__p_wxMenuEvent,
22881 &_swigt__p_wxMenuItem,
22882 &_swigt__p_wxMetaFile,
22883 &_swigt__p_wxMetaFileDC,
22884 &_swigt__p_wxMirrorDC,
22885 &_swigt__p_wxMouseCaptureChangedEvent,
22886 &_swigt__p_wxMouseEvent,
22887 &_swigt__p_wxMoveEvent,
22888 &_swigt__p_wxNativeEncodingInfo,
22889 &_swigt__p_wxNativeFontInfo,
22890 &_swigt__p_wxNavigationKeyEvent,
22891 &_swigt__p_wxNcPaintEvent,
22892 &_swigt__p_wxNotifyEvent,
22893 &_swigt__p_wxObject,
22894 &_swigt__p_wxPCXHandler,
22895 &_swigt__p_wxPNGHandler,
22896 &_swigt__p_wxPNMHandler,
22897 &_swigt__p_wxPaintDC,
22898 &_swigt__p_wxPaintEvent,
22899 &_swigt__p_wxPalette,
22900 &_swigt__p_wxPaletteChangedEvent,
22901 &_swigt__p_wxPaperSize,
22902 &_swigt__p_wxPen,
22903 &_swigt__p_wxPenList,
22904 &_swigt__p_wxPoint,
22905 &_swigt__p_wxPostScriptDC,
22906 &_swigt__p_wxPrintData,
22907 &_swigt__p_wxPrinterDC,
22908 &_swigt__p_wxPyApp,
22909 &_swigt__p_wxPyCommandEvent,
22910 &_swigt__p_wxPyEvent,
22911 &_swigt__p_wxPyFontEnumerator,
22912 &_swigt__p_wxPyImageHandler,
22913 &_swigt__p_wxPySizer,
22914 &_swigt__p_wxPyValidator,
22915 &_swigt__p_wxQueryNewPaletteEvent,
22916 &_swigt__p_wxRect,
22917 &_swigt__p_wxRegion,
22918 &_swigt__p_wxRegionIterator,
22919 &_swigt__p_wxRendererNative,
22920 &_swigt__p_wxRendererVersion,
22921 &_swigt__p_wxScreenDC,
22922 &_swigt__p_wxScrollEvent,
22923 &_swigt__p_wxScrollWinEvent,
22924 &_swigt__p_wxSetCursorEvent,
22925 &_swigt__p_wxShowEvent,
22926 &_swigt__p_wxSize,
22927 &_swigt__p_wxSizeEvent,
22928 &_swigt__p_wxSizer,
22929 &_swigt__p_wxSizerItem,
22930 &_swigt__p_wxSplitterRenderParams,
22931 &_swigt__p_wxStaticBoxSizer,
22932 &_swigt__p_wxStdDialogButtonSizer,
22933 &_swigt__p_wxString,
22934 &_swigt__p_wxSysColourChangedEvent,
22935 &_swigt__p_wxTIFFHandler,
22936 &_swigt__p_wxUpdateUIEvent,
22937 &_swigt__p_wxValidator,
22938 &_swigt__p_wxWindow,
22939 &_swigt__p_wxWindowCreateEvent,
22940 &_swigt__p_wxWindowDC,
22941 &_swigt__p_wxWindowDestroyEvent,
22942 &_swigt__p_wxXPMHandler,
22943 &_swigt__ptrdiff_t,
22944 &_swigt__std__ptrdiff_t,
22945 &_swigt__unsigned_int,
22946 };
22947
22948 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
22949 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
22950 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
22951 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
22952 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
22953 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
22954 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
22955 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
22956 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
22957 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
22958 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}};
22959 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
22960 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
22961 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
22962 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
22963 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
22964 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}};
22965 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
22966 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
22967 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
22968 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
22969 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
22970 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
22971 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
22972 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}};
22973 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
22974 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
22975 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
22976 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
22977 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
22978 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
22979 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
22980 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
22981 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}};
22982 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
22983 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
22984 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
22985 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
22986 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
22987 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
22988 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
22989 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
22990 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
22991 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
22992 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
22993 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
22994 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
22995 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
22996 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
22997 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
22998 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
22999 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23000 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23001 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
23002 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23003 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23004 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23005 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23006 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23007 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23008 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
23009 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
23010 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
23011 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
23012 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
23013 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
23014 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
23015 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
23016 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
23017 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
23018 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
23019 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
23020 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23021 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23022 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23023 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
23024 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
23025 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
23026 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
23027 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
23028 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
23029 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23030 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23031 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
23032 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
23033 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
23034 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
23035 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
23036 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
23037 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
23038 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
23039 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
23040 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
23041 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
23042 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
23043 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23044 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23045 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
23046 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
23047 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23048 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23049 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
23050 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
23051 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
23052 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
23053 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23054 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23055 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
23056 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23057 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23058 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
23059 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
23060 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
23061 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}};
23062 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
23063 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
23064 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
23065 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
23066 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
23067 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
23068 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
23069 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
23070 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
23071 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
23072 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
23073 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
23074 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
23075 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
23076 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
23077 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
23078 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
23079 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
23080 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
23081 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}};
23082 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
23083 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23084 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23085 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
23086
23087 static swig_cast_info *swig_cast_initial[] = {
23088 _swigc__p_char,
23089 _swigc__p_double,
23090 _swigc__p_form_ops_t,
23091 _swigc__p_int,
23092 _swigc__p_unsigned_char,
23093 _swigc__p_unsigned_int,
23094 _swigc__p_unsigned_long,
23095 _swigc__p_wxANIHandler,
23096 _swigc__p_wxAcceleratorTable,
23097 _swigc__p_wxActivateEvent,
23098 _swigc__p_wxBMPHandler,
23099 _swigc__p_wxBitmap,
23100 _swigc__p_wxBoxSizer,
23101 _swigc__p_wxBrush,
23102 _swigc__p_wxBrushList,
23103 _swigc__p_wxBufferedDC,
23104 _swigc__p_wxBufferedPaintDC,
23105 _swigc__p_wxCURHandler,
23106 _swigc__p_wxChildFocusEvent,
23107 _swigc__p_wxClientDC,
23108 _swigc__p_wxCloseEvent,
23109 _swigc__p_wxColour,
23110 _swigc__p_wxColourDatabase,
23111 _swigc__p_wxCommandEvent,
23112 _swigc__p_wxContextMenuEvent,
23113 _swigc__p_wxControl,
23114 _swigc__p_wxControlWithItems,
23115 _swigc__p_wxCursor,
23116 _swigc__p_wxDC,
23117 _swigc__p_wxDash,
23118 _swigc__p_wxDateEvent,
23119 _swigc__p_wxDisplayChangedEvent,
23120 _swigc__p_wxDropFilesEvent,
23121 _swigc__p_wxDuplexMode,
23122 _swigc__p_wxEffects,
23123 _swigc__p_wxEncodingConverter,
23124 _swigc__p_wxEraseEvent,
23125 _swigc__p_wxEvent,
23126 _swigc__p_wxEvtHandler,
23127 _swigc__p_wxFSFile,
23128 _swigc__p_wxFileSystem,
23129 _swigc__p_wxFlexGridSizer,
23130 _swigc__p_wxFocusEvent,
23131 _swigc__p_wxFont,
23132 _swigc__p_wxFontList,
23133 _swigc__p_wxFontMapper,
23134 _swigc__p_wxGBSizerItem,
23135 _swigc__p_wxGDIObject,
23136 _swigc__p_wxGIFHandler,
23137 _swigc__p_wxGridBagSizer,
23138 _swigc__p_wxGridSizer,
23139 _swigc__p_wxICOHandler,
23140 _swigc__p_wxIcon,
23141 _swigc__p_wxIconBundle,
23142 _swigc__p_wxIconLocation,
23143 _swigc__p_wxIconizeEvent,
23144 _swigc__p_wxIdleEvent,
23145 _swigc__p_wxImage,
23146 _swigc__p_wxImageHandler,
23147 _swigc__p_wxImageList,
23148 _swigc__p_wxIndividualLayoutConstraint,
23149 _swigc__p_wxInitDialogEvent,
23150 _swigc__p_wxJPEGHandler,
23151 _swigc__p_wxKeyEvent,
23152 _swigc__p_wxLanguageInfo,
23153 _swigc__p_wxLayoutConstraints,
23154 _swigc__p_wxLocale,
23155 _swigc__p_wxMask,
23156 _swigc__p_wxMaximizeEvent,
23157 _swigc__p_wxMemoryDC,
23158 _swigc__p_wxMenu,
23159 _swigc__p_wxMenuBar,
23160 _swigc__p_wxMenuEvent,
23161 _swigc__p_wxMenuItem,
23162 _swigc__p_wxMetaFile,
23163 _swigc__p_wxMetaFileDC,
23164 _swigc__p_wxMirrorDC,
23165 _swigc__p_wxMouseCaptureChangedEvent,
23166 _swigc__p_wxMouseEvent,
23167 _swigc__p_wxMoveEvent,
23168 _swigc__p_wxNativeEncodingInfo,
23169 _swigc__p_wxNativeFontInfo,
23170 _swigc__p_wxNavigationKeyEvent,
23171 _swigc__p_wxNcPaintEvent,
23172 _swigc__p_wxNotifyEvent,
23173 _swigc__p_wxObject,
23174 _swigc__p_wxPCXHandler,
23175 _swigc__p_wxPNGHandler,
23176 _swigc__p_wxPNMHandler,
23177 _swigc__p_wxPaintDC,
23178 _swigc__p_wxPaintEvent,
23179 _swigc__p_wxPalette,
23180 _swigc__p_wxPaletteChangedEvent,
23181 _swigc__p_wxPaperSize,
23182 _swigc__p_wxPen,
23183 _swigc__p_wxPenList,
23184 _swigc__p_wxPoint,
23185 _swigc__p_wxPostScriptDC,
23186 _swigc__p_wxPrintData,
23187 _swigc__p_wxPrinterDC,
23188 _swigc__p_wxPyApp,
23189 _swigc__p_wxPyCommandEvent,
23190 _swigc__p_wxPyEvent,
23191 _swigc__p_wxPyFontEnumerator,
23192 _swigc__p_wxPyImageHandler,
23193 _swigc__p_wxPySizer,
23194 _swigc__p_wxPyValidator,
23195 _swigc__p_wxQueryNewPaletteEvent,
23196 _swigc__p_wxRect,
23197 _swigc__p_wxRegion,
23198 _swigc__p_wxRegionIterator,
23199 _swigc__p_wxRendererNative,
23200 _swigc__p_wxRendererVersion,
23201 _swigc__p_wxScreenDC,
23202 _swigc__p_wxScrollEvent,
23203 _swigc__p_wxScrollWinEvent,
23204 _swigc__p_wxSetCursorEvent,
23205 _swigc__p_wxShowEvent,
23206 _swigc__p_wxSize,
23207 _swigc__p_wxSizeEvent,
23208 _swigc__p_wxSizer,
23209 _swigc__p_wxSizerItem,
23210 _swigc__p_wxSplitterRenderParams,
23211 _swigc__p_wxStaticBoxSizer,
23212 _swigc__p_wxStdDialogButtonSizer,
23213 _swigc__p_wxString,
23214 _swigc__p_wxSysColourChangedEvent,
23215 _swigc__p_wxTIFFHandler,
23216 _swigc__p_wxUpdateUIEvent,
23217 _swigc__p_wxValidator,
23218 _swigc__p_wxWindow,
23219 _swigc__p_wxWindowCreateEvent,
23220 _swigc__p_wxWindowDC,
23221 _swigc__p_wxWindowDestroyEvent,
23222 _swigc__p_wxXPMHandler,
23223 _swigc__ptrdiff_t,
23224 _swigc__std__ptrdiff_t,
23225 _swigc__unsigned_int,
23226 };
23227
23228
23229 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
23230
23231 static swig_const_info swig_const_table[] = {
23232 {0, 0, 0, 0.0, 0, 0}};
23233
23234 #ifdef __cplusplus
23235 }
23236 #endif
23237 /*************************************************************************
23238 * Type initialization:
23239 * This problem is tough by the requirement that no dynamic
23240 * memory is used. Also, since swig_type_info structures store pointers to
23241 * swig_cast_info structures and swig_cast_info structures store pointers back
23242 * to swig_type_info structures, we need some lookup code at initialization.
23243 * The idea is that swig generates all the structures that are needed.
23244 * The runtime then collects these partially filled structures.
23245 * The SWIG_InitializeModule function takes these initial arrays out of
23246 * swig_module, and does all the lookup, filling in the swig_module.types
23247 * array with the correct data and linking the correct swig_cast_info
23248 * structures together.
23249
23250 * The generated swig_type_info structures are assigned staticly to an initial
23251 * array. We just loop though that array, and handle each type individually.
23252 * First we lookup if this type has been already loaded, and if so, use the
23253 * loaded structure instead of the generated one. Then we have to fill in the
23254 * cast linked list. The cast data is initially stored in something like a
23255 * two-dimensional array. Each row corresponds to a type (there are the same
23256 * number of rows as there are in the swig_type_initial array). Each entry in
23257 * a column is one of the swig_cast_info structures for that type.
23258 * The cast_initial array is actually an array of arrays, because each row has
23259 * a variable number of columns. So to actually build the cast linked list,
23260 * we find the array of casts associated with the type, and loop through it
23261 * adding the casts to the list. The one last trick we need to do is making
23262 * sure the type pointer in the swig_cast_info struct is correct.
23263
23264 * First off, we lookup the cast->type name to see if it is already loaded.
23265 * There are three cases to handle:
23266 * 1) If the cast->type has already been loaded AND the type we are adding
23267 * casting info to has not been loaded (it is in this module), THEN we
23268 * replace the cast->type pointer with the type pointer that has already
23269 * been loaded.
23270 * 2) If BOTH types (the one we are adding casting info to, and the
23271 * cast->type) are loaded, THEN the cast info has already been loaded by
23272 * the previous module so we just ignore it.
23273 * 3) Finally, if cast->type has not already been loaded, then we add that
23274 * swig_cast_info to the linked list (because the cast->type) pointer will
23275 * be correct.
23276 **/
23277
23278 #ifdef __cplusplus
23279 extern "C" {
23280 #if 0
23281 } /* c-mode */
23282 #endif
23283 #endif
23284
23285 #if 0
23286 #define SWIGRUNTIME_DEBUG
23287 #endif
23288
23289 SWIGRUNTIME void
23290 SWIG_InitializeModule(void *clientdata) {
23291 size_t i;
23292 swig_module_info *module_head;
23293 static int init_run = 0;
23294
23295 clientdata = clientdata;
23296
23297 if (init_run) return;
23298 init_run = 1;
23299
23300 /* Initialize the swig_module */
23301 swig_module.type_initial = swig_type_initial;
23302 swig_module.cast_initial = swig_cast_initial;
23303
23304 /* Try and load any already created modules */
23305 module_head = SWIG_GetModule(clientdata);
23306 if (module_head) {
23307 swig_module.next = module_head->next;
23308 module_head->next = &swig_module;
23309 } else {
23310 /* This is the first module loaded */
23311 swig_module.next = &swig_module;
23312 SWIG_SetModule(clientdata, &swig_module);
23313 }
23314
23315 /* Now work on filling in swig_module.types */
23316 #ifdef SWIGRUNTIME_DEBUG
23317 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
23318 #endif
23319 for (i = 0; i < swig_module.size; ++i) {
23320 swig_type_info *type = 0;
23321 swig_type_info *ret;
23322 swig_cast_info *cast;
23323
23324 #ifdef SWIGRUNTIME_DEBUG
23325 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
23326 #endif
23327
23328 /* if there is another module already loaded */
23329 if (swig_module.next != &swig_module) {
23330 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
23331 }
23332 if (type) {
23333 /* Overwrite clientdata field */
23334 #ifdef SWIGRUNTIME_DEBUG
23335 printf("SWIG_InitializeModule: found type %s\n", type->name);
23336 #endif
23337 if (swig_module.type_initial[i]->clientdata) {
23338 type->clientdata = swig_module.type_initial[i]->clientdata;
23339 #ifdef SWIGRUNTIME_DEBUG
23340 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
23341 #endif
23342 }
23343 } else {
23344 type = swig_module.type_initial[i];
23345 }
23346
23347 /* Insert casting types */
23348 cast = swig_module.cast_initial[i];
23349 while (cast->type) {
23350 /* Don't need to add information already in the list */
23351 ret = 0;
23352 #ifdef SWIGRUNTIME_DEBUG
23353 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
23354 #endif
23355 if (swig_module.next != &swig_module) {
23356 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
23357 #ifdef SWIGRUNTIME_DEBUG
23358 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
23359 #endif
23360 }
23361 if (ret) {
23362 if (type == swig_module.type_initial[i]) {
23363 #ifdef SWIGRUNTIME_DEBUG
23364 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
23365 #endif
23366 cast->type = ret;
23367 ret = 0;
23368 } else {
23369 /* Check for casting already in the list */
23370 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
23371 #ifdef SWIGRUNTIME_DEBUG
23372 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
23373 #endif
23374 if (!ocast) ret = 0;
23375 }
23376 }
23377
23378 if (!ret) {
23379 #ifdef SWIGRUNTIME_DEBUG
23380 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
23381 #endif
23382 if (type->cast) {
23383 type->cast->prev = cast;
23384 cast->next = type->cast;
23385 }
23386 type->cast = cast;
23387 }
23388 cast++;
23389 }
23390 /* Set entry in modules->types array equal to the type */
23391 swig_module.types[i] = type;
23392 }
23393 swig_module.types[i] = 0;
23394
23395 #ifdef SWIGRUNTIME_DEBUG
23396 printf("**** SWIG_InitializeModule: Cast List ******\n");
23397 for (i = 0; i < swig_module.size; ++i) {
23398 int j = 0;
23399 swig_cast_info *cast = swig_module.cast_initial[i];
23400 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
23401 while (cast->type) {
23402 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
23403 cast++;
23404 ++j;
23405 }
23406 printf("---- Total casts: %d\n",j);
23407 }
23408 printf("**** SWIG_InitializeModule: Cast List ******\n");
23409 #endif
23410 }
23411
23412 /* This function will propagate the clientdata field of type to
23413 * any new swig_type_info structures that have been added into the list
23414 * of equivalent types. It is like calling
23415 * SWIG_TypeClientData(type, clientdata) a second time.
23416 */
23417 SWIGRUNTIME void
23418 SWIG_PropagateClientData(void) {
23419 size_t i;
23420 swig_cast_info *equiv;
23421 static int init_run = 0;
23422
23423 if (init_run) return;
23424 init_run = 1;
23425
23426 for (i = 0; i < swig_module.size; i++) {
23427 if (swig_module.types[i]->clientdata) {
23428 equiv = swig_module.types[i]->cast;
23429 while (equiv) {
23430 if (!equiv->converter) {
23431 if (equiv->type && !equiv->type->clientdata)
23432 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
23433 }
23434 equiv = equiv->next;
23435 }
23436 }
23437 }
23438 }
23439
23440 #ifdef __cplusplus
23441 #if 0
23442 {
23443 /* c-mode */
23444 #endif
23445 }
23446 #endif
23447
23448
23449
23450 #ifdef __cplusplus
23451 extern "C" {
23452 #endif
23453
23454 /* Python-specific SWIG API */
23455 #define SWIG_newvarlink() SWIG_Python_newvarlink()
23456 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
23457 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
23458
23459 /* -----------------------------------------------------------------------------
23460 * global variable support code.
23461 * ----------------------------------------------------------------------------- */
23462
23463 typedef struct swig_globalvar {
23464 char *name; /* Name of global variable */
23465 PyObject *(*get_attr)(void); /* Return the current value */
23466 int (*set_attr)(PyObject *); /* Set the value */
23467 struct swig_globalvar *next;
23468 } swig_globalvar;
23469
23470 typedef struct swig_varlinkobject {
23471 PyObject_HEAD
23472 swig_globalvar *vars;
23473 } swig_varlinkobject;
23474
23475 SWIGINTERN PyObject *
23476 swig_varlink_repr(swig_varlinkobject *v) {
23477 v = v;
23478 return PyString_FromString("<Swig global variables>");
23479 }
23480
23481 SWIGINTERN int
23482 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
23483 swig_globalvar *var;
23484 flags = flags;
23485 fprintf(fp,"Swig global variables { ");
23486 for (var = v->vars; var; var=var->next) {
23487 fprintf(fp,"%s", var->name);
23488 if (var->next) fprintf(fp,", ");
23489 }
23490 fprintf(fp," }\n");
23491 return 0;
23492 }
23493
23494 SWIGINTERN PyObject *
23495 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
23496 swig_globalvar *var = v->vars;
23497 while (var) {
23498 if (strcmp(var->name,n) == 0) {
23499 return (*var->get_attr)();
23500 }
23501 var = var->next;
23502 }
23503 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23504 return NULL;
23505 }
23506
23507 SWIGINTERN int
23508 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
23509 swig_globalvar *var = v->vars;
23510 while (var) {
23511 if (strcmp(var->name,n) == 0) {
23512 return (*var->set_attr)(p);
23513 }
23514 var = var->next;
23515 }
23516 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
23517 return 1;
23518 }
23519
23520 SWIGINTERN PyTypeObject*
23521 swig_varlink_type(void) {
23522 static char varlink__doc__[] = "Swig var link object";
23523 static PyTypeObject varlink_type
23524 #if !defined(__cplusplus)
23525 ;
23526 static int type_init = 0;
23527 if (!type_init) {
23528 PyTypeObject tmp
23529 #endif
23530 = {
23531 PyObject_HEAD_INIT(&PyType_Type)
23532 0, /* Number of items in variable part (ob_size) */
23533 (char *)"swigvarlink", /* Type name (tp_name) */
23534 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
23535 0, /* Itemsize (tp_itemsize) */
23536 0, /* Deallocator (tp_dealloc) */
23537 (printfunc) swig_varlink_print, /* Print (tp_print) */
23538 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
23539 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
23540 0, /* tp_compare */
23541 (reprfunc) swig_varlink_repr, /* tp_repr */
23542 0, /* tp_as_number */
23543 0, /* tp_as_sequence */
23544 0, /* tp_as_mapping */
23545 0, /* tp_hash */
23546 0, /* tp_call */
23547 0, /* tp_str */
23548 0, /* tp_getattro */
23549 0, /* tp_setattro */
23550 0, /* tp_as_buffer */
23551 0, /* tp_flags */
23552 varlink__doc__, /* tp_doc */
23553 #if PY_VERSION_HEX >= 0x02000000
23554 0, /* tp_traverse */
23555 0, /* tp_clear */
23556 #endif
23557 #if PY_VERSION_HEX >= 0x02010000
23558 0, /* tp_richcompare */
23559 0, /* tp_weaklistoffset */
23560 #endif
23561 #if PY_VERSION_HEX >= 0x02020000
23562 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
23563 #endif
23564 #if PY_VERSION_HEX >= 0x02030000
23565 0, /* tp_del */
23566 #endif
23567 #ifdef COUNT_ALLOCS
23568 0,0,0,0 /* tp_alloc -> tp_next */
23569 #endif
23570 };
23571 #if !defined(__cplusplus)
23572 varlink_type = tmp;
23573 type_init = 1;
23574 }
23575 #endif
23576 return &varlink_type;
23577 }
23578
23579 /* Create a variable linking object for use later */
23580 SWIGINTERN PyObject *
23581 SWIG_Python_newvarlink(void) {
23582 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
23583 if (result) {
23584 result->vars = 0;
23585 }
23586 return ((PyObject*) result);
23587 }
23588
23589 SWIGINTERN void
23590 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
23591 swig_varlinkobject *v = (swig_varlinkobject *) p;
23592 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
23593 if (gv) {
23594 size_t size = strlen(name)+1;
23595 gv->name = (char *)malloc(size);
23596 if (gv->name) {
23597 strncpy(gv->name,name,size);
23598 gv->get_attr = get_attr;
23599 gv->set_attr = set_attr;
23600 gv->next = v->vars;
23601 }
23602 }
23603 v->vars = gv;
23604 }
23605
23606 /* -----------------------------------------------------------------------------
23607 * constants/methods manipulation
23608 * ----------------------------------------------------------------------------- */
23609
23610 /* Install Constants */
23611 SWIGINTERN void
23612 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
23613 PyObject *obj = 0;
23614 size_t i;
23615 for (i = 0; constants[i].type; ++i) {
23616 switch(constants[i].type) {
23617 case SWIG_PY_INT:
23618 obj = PyInt_FromLong(constants[i].lvalue);
23619 break;
23620 case SWIG_PY_FLOAT:
23621 obj = PyFloat_FromDouble(constants[i].dvalue);
23622 break;
23623 case SWIG_PY_STRING:
23624 if (constants[i].pvalue) {
23625 obj = PyString_FromString((char *) constants[i].pvalue);
23626 } else {
23627 Py_INCREF(Py_None);
23628 obj = Py_None;
23629 }
23630 break;
23631 case SWIG_PY_POINTER:
23632 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
23633 break;
23634 case SWIG_PY_BINARY:
23635 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
23636 break;
23637 default:
23638 obj = 0;
23639 break;
23640 }
23641 if (obj) {
23642 PyDict_SetItemString(d,constants[i].name,obj);
23643 Py_DECREF(obj);
23644 }
23645 }
23646 }
23647
23648 /* -----------------------------------------------------------------------------*/
23649 /* Fix SwigMethods to carry the callback ptrs when needed */
23650 /* -----------------------------------------------------------------------------*/
23651
23652 SWIGINTERN void
23653 SWIG_Python_FixMethods(PyMethodDef *methods,
23654 swig_const_info *const_table,
23655 swig_type_info **types,
23656 swig_type_info **types_initial) {
23657 size_t i;
23658 for (i = 0; methods[i].ml_name; ++i) {
23659 char *c = methods[i].ml_doc;
23660 if (c && (c = strstr(c, "swig_ptr: "))) {
23661 int j;
23662 swig_const_info *ci = 0;
23663 char *name = c + 10;
23664 for (j = 0; const_table[j].type; ++j) {
23665 if (strncmp(const_table[j].name, name,
23666 strlen(const_table[j].name)) == 0) {
23667 ci = &(const_table[j]);
23668 break;
23669 }
23670 }
23671 if (ci) {
23672 size_t shift = (ci->ptype) - types;
23673 swig_type_info *ty = types_initial[shift];
23674 size_t ldoc = (c - methods[i].ml_doc);
23675 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
23676 char *ndoc = (char*)malloc(ldoc + lptr + 10);
23677 if (ndoc) {
23678 char *buff = ndoc;
23679 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
23680 if (ptr) {
23681 strncpy(buff, methods[i].ml_doc, ldoc);
23682 buff += ldoc;
23683 strncpy(buff, "swig_ptr: ", 10);
23684 buff += 10;
23685 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
23686 methods[i].ml_doc = ndoc;
23687 }
23688 }
23689 }
23690 }
23691 }
23692 }
23693
23694 /* -----------------------------------------------------------------------------*
23695 * Initialize type list
23696 * -----------------------------------------------------------------------------*/
23697
23698 #ifdef __cplusplus
23699 }
23700 #endif
23701
23702 /* -----------------------------------------------------------------------------*
23703 * Partial Init method
23704 * -----------------------------------------------------------------------------*/
23705
23706 #ifdef __cplusplus
23707 extern "C"
23708 #endif
23709 SWIGEXPORT void SWIG_init(void) {
23710 static PyObject *SWIG_globals = 0;
23711 PyObject *m, *d;
23712 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
23713
23714 /* Fix SwigMethods to carry the callback ptrs when needed */
23715 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
23716
23717 m = Py_InitModule((char *) SWIG_name, SwigMethods);
23718 d = PyModule_GetDict(m);
23719
23720 SWIG_InitializeModule(0);
23721 SWIG_InstallConstants(d,swig_const_table);
23722
23723 {
23724 PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion)));
23725 }
23726 {
23727 PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion)));
23728 }
23729 {
23730 PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion)));
23731 }
23732 {
23733 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT)));
23734 }
23735 {
23736 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE)));
23737 }
23738 {
23739 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN)));
23740 }
23741 {
23742 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT)));
23743 }
23744 {
23745 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS)));
23746 }
23747 {
23748 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN)));
23749 }
23750 {
23751 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE)));
23752 }
23753 {
23754 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX)));
23755 }
23756 {
23757 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN)));
23758 }
23759 {
23760 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL)));
23761 }
23762 {
23763 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC)));
23764 }
23765 {
23766 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT)));
23767 }
23768 {
23769 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX)));
23770 }
23771 {
23772 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL)));
23773 }
23774 {
23775 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT)));
23776 }
23777 {
23778 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD)));
23779 }
23780 {
23781 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX)));
23782 }
23783 {
23784 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT)));
23785 }
23786 {
23787 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC)));
23788 }
23789 {
23790 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT)));
23791 }
23792 {
23793 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT)));
23794 }
23795 {
23796 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD)));
23797 }
23798 {
23799 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED)));
23800 }
23801 {
23802 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED)));
23803 }
23804 {
23805 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED)));
23806 }
23807 {
23808 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH)));
23809 }
23810 {
23811 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK)));
23812 }
23813 {
23814 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM)));
23815 }
23816 {
23817 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT)));
23818 }
23819 {
23820 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1)));
23821 }
23822 {
23823 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2)));
23824 }
23825 {
23826 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3)));
23827 }
23828 {
23829 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4)));
23830 }
23831 {
23832 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5)));
23833 }
23834 {
23835 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6)));
23836 }
23837 {
23838 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7)));
23839 }
23840 {
23841 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8)));
23842 }
23843 {
23844 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9)));
23845 }
23846 {
23847 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10)));
23848 }
23849 {
23850 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11)));
23851 }
23852 {
23853 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12)));
23854 }
23855 {
23856 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13)));
23857 }
23858 {
23859 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14)));
23860 }
23861 {
23862 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15)));
23863 }
23864 {
23865 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX)));
23866 }
23867 {
23868 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8)));
23869 }
23870 {
23871 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U)));
23872 }
23873 {
23874 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE)));
23875 }
23876 {
23877 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN)));
23878 }
23879 {
23880 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437)));
23881 }
23882 {
23883 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850)));
23884 }
23885 {
23886 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852)));
23887 }
23888 {
23889 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855)));
23890 }
23891 {
23892 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866)));
23893 }
23894 {
23895 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874)));
23896 }
23897 {
23898 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932)));
23899 }
23900 {
23901 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936)));
23902 }
23903 {
23904 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949)));
23905 }
23906 {
23907 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950)));
23908 }
23909 {
23910 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250)));
23911 }
23912 {
23913 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251)));
23914 }
23915 {
23916 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252)));
23917 }
23918 {
23919 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253)));
23920 }
23921 {
23922 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254)));
23923 }
23924 {
23925 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255)));
23926 }
23927 {
23928 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256)));
23929 }
23930 {
23931 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257)));
23932 }
23933 {
23934 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX)));
23935 }
23936 {
23937 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7)));
23938 }
23939 {
23940 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8)));
23941 }
23942 {
23943 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP)));
23944 }
23945 {
23946 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE)));
23947 }
23948 {
23949 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE)));
23950 }
23951 {
23952 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE)));
23953 }
23954 {
23955 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE)));
23956 }
23957 {
23958 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN)));
23959 }
23960 {
23961 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE)));
23962 }
23963 {
23964 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD)));
23965 }
23966 {
23967 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN)));
23968 }
23969 {
23970 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC)));
23971 }
23972 {
23973 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW)));
23974 }
23975 {
23976 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK)));
23977 }
23978 {
23979 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC)));
23980 }
23981 {
23982 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI)));
23983 }
23984 {
23985 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI)));
23986 }
23987 {
23988 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI)));
23989 }
23990 {
23991 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA)));
23992 }
23993 {
23994 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI)));
23995 }
23996 {
23997 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL)));
23998 }
23999 {
24000 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU)));
24001 }
24002 {
24003 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA)));
24004 }
24005 {
24006 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM)));
24007 }
24008 {
24009 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE)));
24010 }
24011 {
24012 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE)));
24013 }
24014 {
24015 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER)));
24016 }
24017 {
24018 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI)));
24019 }
24020 {
24021 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN)));
24022 }
24023 {
24024 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN)));
24025 }
24026 {
24027 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN)));
24028 }
24029 {
24030 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP)));
24031 }
24032 {
24033 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN)));
24034 }
24035 {
24036 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN)));
24037 }
24038 {
24039 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC)));
24040 }
24041 {
24042 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR)));
24043 }
24044 {
24045 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE)));
24046 }
24047 {
24048 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT)));
24049 }
24050 {
24051 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL)));
24052 }
24053 {
24054 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS)));
24055 }
24056 {
24057 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH)));
24058 }
24059 {
24060 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN)));
24061 }
24062 {
24063 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC)));
24064 }
24065 {
24066 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN)));
24067 }
24068 {
24069 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC)));
24070 }
24071 {
24072 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC)));
24073 }
24074 {
24075 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD)));
24076 }
24077 {
24078 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN)));
24079 }
24080 {
24081 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX)));
24082 }
24083 {
24084 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX)));
24085 }
24086 {
24087 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16)));
24088 }
24089 {
24090 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32)));
24091 }
24092 {
24093 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE)));
24094 }
24095 {
24096 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312)));
24097 }
24098 {
24099 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5)));
24100 }
24101 {
24102 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS)));
24103 }
24104
24105 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
24106
24107 {
24108 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT)));
24109 }
24110 {
24111 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN)));
24112 }
24113 {
24114 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN)));
24115 }
24116 {
24117 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR)));
24118 }
24119 {
24120 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS)));
24121 }
24122 {
24123 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN)));
24124 }
24125 {
24126 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC)));
24127 }
24128 {
24129 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC)));
24130 }
24131 {
24132 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA)));
24133 }
24134 {
24135 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN)));
24136 }
24137 {
24138 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT)));
24139 }
24140 {
24141 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ)));
24142 }
24143 {
24144 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN)));
24145 }
24146 {
24147 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT)));
24148 }
24149 {
24150 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON)));
24151 }
24152 {
24153 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA)));
24154 }
24155 {
24156 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO)));
24157 }
24158 {
24159 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN)));
24160 }
24161 {
24162 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR)));
24163 }
24164 {
24165 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
24166 }
24167 {
24168 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN)));
24169 }
24170 {
24171 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA)));
24172 }
24173 {
24174 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA)));
24175 }
24176 {
24177 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE)));
24178 }
24179 {
24180 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN)));
24181 }
24182 {
24183 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN)));
24184 }
24185 {
24186 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE)));
24187 }
24188 {
24189 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA)));
24190 }
24191 {
24192 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI)));
24193 }
24194 {
24195 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC)));
24196 }
24197 {
24198 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN)));
24199 }
24200 {
24201 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR)));
24202 }
24203 {
24204 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE)));
24205 }
24206 {
24207 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN)));
24208 }
24209 {
24210 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI)));
24211 }
24212 {
24213 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI)));
24214 }
24215 {
24216 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI)));
24217 }
24218 {
24219 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA)));
24220 }
24221 {
24222 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON)));
24223 }
24224 {
24225 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN)));
24226 }
24227 {
24228 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE)));
24229 }
24230 {
24231 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN)));
24232 }
24233 {
24234 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN)));
24235 }
24236 {
24237 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE)));
24238 }
24239 {
24240 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
24241 }
24242 {
24243 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
24244 }
24245 {
24246 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG)));
24247 }
24248 {
24249 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU)));
24250 }
24251 {
24252 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE)));
24253 }
24254 {
24255 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN)));
24256 }
24257 {
24258 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN)));
24259 }
24260 {
24261 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN)));
24262 }
24263 {
24264 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH)));
24265 }
24266 {
24267 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH)));
24268 }
24269 {
24270 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH)));
24271 }
24272 {
24273 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN)));
24274 }
24275 {
24276 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH)));
24277 }
24278 {
24279 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK)));
24280 }
24281 {
24282 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US)));
24283 }
24284 {
24285 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
24286 }
24287 {
24288 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE)));
24289 }
24290 {
24291 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
24292 }
24293 {
24294 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA)));
24295 }
24296 {
24297 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
24298 }
24299 {
24300 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK)));
24301 }
24302 {
24303 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE)));
24304 }
24305 {
24306 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA)));
24307 }
24308 {
24309 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
24310 }
24311 {
24312 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
24313 }
24314 {
24315 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
24316 }
24317 {
24318 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
24319 }
24320 {
24321 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
24322 }
24323 {
24324 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO)));
24325 }
24326 {
24327 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN)));
24328 }
24329 {
24330 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE)));
24331 }
24332 {
24333 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI)));
24334 }
24335 {
24336 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI)));
24337 }
24338 {
24339 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH)));
24340 }
24341 {
24342 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH)));
24343 }
24344 {
24345 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN)));
24346 }
24347 {
24348 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN)));
24349 }
24350 {
24351 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
24352 }
24353 {
24354 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO)));
24355 }
24356 {
24357 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS)));
24358 }
24359 {
24360 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN)));
24361 }
24362 {
24363 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN)));
24364 }
24365 {
24366 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN)));
24367 }
24368 {
24369 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN)));
24370 }
24371 {
24372 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
24373 }
24374 {
24375 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM)));
24376 }
24377 {
24378 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
24379 }
24380 {
24381 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
24382 }
24383 {
24384 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS)));
24385 }
24386 {
24387 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK)));
24388 }
24389 {
24390 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC)));
24391 }
24392 {
24393 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI)));
24394 }
24395 {
24396 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI)));
24397 }
24398 {
24399 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA)));
24400 }
24401 {
24402 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW)));
24403 }
24404 {
24405 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI)));
24406 }
24407 {
24408 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN)));
24409 }
24410 {
24411 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC)));
24412 }
24413 {
24414 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN)));
24415 }
24416 {
24417 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA)));
24418 }
24419 {
24420 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE)));
24421 }
24422 {
24423 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT)));
24424 }
24425 {
24426 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK)));
24427 }
24428 {
24429 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH)));
24430 }
24431 {
24432 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN)));
24433 }
24434 {
24435 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS)));
24436 }
24437 {
24438 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE)));
24439 }
24440 {
24441 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE)));
24442 }
24443 {
24444 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA)));
24445 }
24446 {
24447 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI)));
24448 }
24449 {
24450 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA)));
24451 }
24452 {
24453 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH)));
24454 }
24455 {
24456 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK)));
24457 }
24458 {
24459 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA)));
24460 }
24461 {
24462 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ)));
24463 }
24464 {
24465 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI)));
24466 }
24467 {
24468 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI)));
24469 }
24470 {
24471 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN)));
24472 }
24473 {
24474 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH)));
24475 }
24476 {
24477 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN)));
24478 }
24479 {
24480 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN)));
24481 }
24482 {
24483 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN)));
24484 }
24485 {
24486 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA)));
24487 }
24488 {
24489 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN)));
24490 }
24491 {
24492 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN)));
24493 }
24494 {
24495 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY)));
24496 }
24497 {
24498 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY)));
24499 }
24500 {
24501 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM)));
24502 }
24503 {
24504 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
24505 }
24506 {
24507 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA)));
24508 }
24509 {
24510 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE)));
24511 }
24512 {
24513 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI)));
24514 }
24515 {
24516 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI)));
24517 }
24518 {
24519 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI)));
24520 }
24521 {
24522 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN)));
24523 }
24524 {
24525 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN)));
24526 }
24527 {
24528 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU)));
24529 }
24530 {
24531 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI)));
24532 }
24533 {
24534 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA)));
24535 }
24536 {
24537 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
24538 }
24539 {
24540 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
24541 }
24542 {
24543 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN)));
24544 }
24545 {
24546 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA)));
24547 }
24548 {
24549 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO)));
24550 }
24551 {
24552 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO)));
24553 }
24554 {
24555 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH)));
24556 }
24557 {
24558 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE)));
24559 }
24560 {
24561 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
24562 }
24563 {
24564 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI)));
24565 }
24566 {
24567 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA)));
24568 }
24569 {
24570 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE)));
24571 }
24572 {
24573 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN)));
24574 }
24575 {
24576 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN)));
24577 }
24578 {
24579 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
24580 }
24581 {
24582 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN)));
24583 }
24584 {
24585 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO)));
24586 }
24587 {
24588 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT)));
24589 }
24590 {
24591 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC)));
24592 }
24593 {
24594 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN)));
24595 }
24596 {
24597 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
24598 }
24599 {
24600 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN)));
24601 }
24602 {
24603 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN)));
24604 }
24605 {
24606 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO)));
24607 }
24608 {
24609 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA)));
24610 }
24611 {
24612 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA)));
24613 }
24614 {
24615 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI)));
24616 }
24617 {
24618 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE)));
24619 }
24620 {
24621 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI)));
24622 }
24623 {
24624 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK)));
24625 }
24626 {
24627 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN)));
24628 }
24629 {
24630 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI)));
24631 }
24632 {
24633 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH)));
24634 }
24635 {
24636 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA)));
24637 }
24638 {
24639 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA)));
24640 }
24641 {
24642 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE)));
24643 }
24644 {
24645 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA)));
24646 }
24647 {
24648 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
24649 }
24650 {
24651 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
24652 }
24653 {
24654 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR)));
24655 }
24656 {
24657 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
24658 }
24659 {
24660 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA)));
24661 }
24662 {
24663 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS)));
24664 }
24665 {
24666 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN)));
24667 }
24668 {
24669 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN)));
24670 }
24671 {
24672 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA)));
24673 }
24674 {
24675 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA)));
24676 }
24677 {
24678 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY)));
24679 }
24680 {
24681 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU)));
24682 }
24683 {
24684 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
24685 }
24686 {
24687 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY)));
24688 }
24689 {
24690 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US)));
24691 }
24692 {
24693 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA)));
24694 }
24695 {
24696 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE)));
24697 }
24698 {
24699 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI)));
24700 }
24701 {
24702 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH)));
24703 }
24704 {
24705 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND)));
24706 }
24707 {
24708 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG)));
24709 }
24710 {
24711 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK)));
24712 }
24713 {
24714 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL)));
24715 }
24716 {
24717 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR)));
24718 }
24719 {
24720 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU)));
24721 }
24722 {
24723 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI)));
24724 }
24725 {
24726 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN)));
24727 }
24728 {
24729 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA)));
24730 }
24731 {
24732 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA)));
24733 }
24734 {
24735 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA)));
24736 }
24737 {
24738 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH)));
24739 }
24740 {
24741 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN)));
24742 }
24743 {
24744 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI)));
24745 }
24746 {
24747 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR)));
24748 }
24749 {
24750 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN)));
24751 }
24752 {
24753 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU)));
24754 }
24755 {
24756 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA)));
24757 }
24758 {
24759 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN)));
24760 }
24761 {
24762 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK)));
24763 }
24764 {
24765 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC)));
24766 }
24767 {
24768 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN)));
24769 }
24770 {
24771 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE)));
24772 }
24773 {
24774 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK)));
24775 }
24776 {
24777 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH)));
24778 }
24779 {
24780 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF)));
24781 }
24782 {
24783 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA)));
24784 }
24785 {
24786 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH)));
24787 }
24788 {
24789 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA)));
24790 }
24791 {
24792 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG)));
24793 }
24794 {
24795 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU)));
24796 }
24797 {
24798 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED)));
24799 }
24800 {
24801 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER)));
24802 }
24803 {
24804 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE)));
24805 }
24806 {
24807 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY)));
24808 }
24809 {
24810 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX)));
24811 }
24812 {
24813 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP)));
24814 }
24815 {
24816 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT)));
24817 }
24818 {
24819 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT)));
24820 }
24821 {
24822 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING)));
24823 }
24824 {
24825 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT)));
24826 }
24827 {
24828 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE)));
24829 }
24830 {
24831 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT)));
24832 }
24833 {
24834 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX)));
24835 }
24836 {
24837 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS)));
24838 }
24839 {
24840 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2)));
24841 }
24842 {
24843 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC)));
24844 }
24845 {
24846 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA)));
24847 }
24848 {
24849 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA)));
24850 }
24851 {
24852 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL)));
24853 }
24854 {
24855 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT)));
24856 }
24857 {
24858 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED)));
24859 }
24860 {
24861 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED)));
24862 }
24863 {
24864 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL)));
24865 }
24866 {
24867 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL)));
24868 }
24869 {
24870 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE)));
24871 }
24872 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
24873 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
24874 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
24875 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
24876 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
24877 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
24878 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
24879 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
24880 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
24881 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
24882 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
24883 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
24884 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
24885 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
24886 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
24887 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
24888 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
24889 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
24890 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
24891 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
24892 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
24893 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
24894 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
24895 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
24896 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
24897 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
24898 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
24899 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
24900 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
24901 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
24902 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
24903 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
24904 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
24905 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
24906 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
24907 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
24908 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
24909 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
24910 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
24911 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
24912 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
24913 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
24914 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
24915 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
24916 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
24917 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
24918 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
24919 {
24920 PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED)));
24921 }
24922 {
24923 PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED)));
24924 }
24925 {
24926 PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED)));
24927 }
24928 {
24929 PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT)));
24930 }
24931 {
24932 PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU)));
24933 }
24934 {
24935 PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED)));
24936 }
24937 {
24938 PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT)));
24939 }
24940 {
24941 PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED)));
24942 }
24943 {
24944 PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED)));
24945 }
24946 {
24947 PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE)));
24948 }
24949 {
24950 PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED)));
24951 }
24952 {
24953 PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK)));
24954 }
24955 {
24956 PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY)));
24957 }
24958 {
24959 PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version)));
24960 }
24961 {
24962 PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age)));
24963 }
24964
24965 // Work around a chicken/egg problem in drawlist.cpp
24966 wxPyDrawList_SetAPIPtr();
24967
24968 }
24969