]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Tweaks for demos on MacOSX
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.27
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12
13 #ifdef __cplusplus
14 template<class T> class SwigValueWrapper {
15 T *tt;
16 public:
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
19 SwigValueWrapper(const T& t) : tt(new T(t)) { }
20 ~SwigValueWrapper() { delete tt; }
21 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
22 operator T&() const { return *tt; }
23 T *operator&() { return tt; }
24 private:
25 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
26 };
27 #endif
28
29 /***********************************************************************
30 *
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 *
34 ************************************************************************/
35
36 /* template workaround for compilers that cannot correctly implement the C++ standard */
37 #ifndef SWIGTEMPLATEDISAMBIGUATOR
38 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 #endif
44
45 /* inline attribute */
46 #ifndef SWIGINLINE
47 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
48 # define SWIGINLINE inline
49 # else
50 # define SWIGINLINE
51 # endif
52 #endif
53
54 /* attribute recognised by some compilers to avoid 'unused' warnings */
55 #ifndef SWIGUNUSED
56 # if defined(__GNUC__) || defined(__ICC)
57 # define SWIGUNUSED __attribute__ ((unused))
58 # else
59 # define SWIGUNUSED
60 # endif
61 #endif
62
63 /* internal SWIG method */
64 #ifndef SWIGINTERN
65 # define SWIGINTERN static SWIGUNUSED
66 #endif
67
68 /* internal inline SWIG method */
69 #ifndef SWIGINTERNINLINE
70 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
71 #endif
72
73 /* exporting methods for Windows DLLs */
74 #ifndef SWIGEXPORT
75 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
76 # if defined(STATIC_LINKED)
77 # define SWIGEXPORT
78 # else
79 # define SWIGEXPORT __declspec(dllexport)
80 # endif
81 # else
82 # define SWIGEXPORT
83 # endif
84 #endif
85
86 /* calling conventions for Windows */
87 #ifndef SWIGSTDCALL
88 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
89 # define SWIGSTDCALL __stdcall
90 # else
91 # define SWIGSTDCALL
92 # endif
93 #endif
94
95
96
97 #include <Python.h>
98
99 /***********************************************************************
100 * swigrun.swg
101 *
102 * This file contains generic CAPI SWIG runtime support for pointer
103 * type checking.
104 *
105 ************************************************************************/
106
107 /* This should only be incremented when either the layout of swig_type_info changes,
108 or for whatever reason, the runtime changes incompatibly */
109 #define SWIG_RUNTIME_VERSION "2"
110
111 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
112 #ifdef SWIG_TYPE_TABLE
113 # define SWIG_QUOTE_STRING(x) #x
114 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
115 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
116 #else
117 # define SWIG_TYPE_TABLE_NAME
118 #endif
119
120 /*
121 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
122 creating a static or dynamic library from the swig runtime code.
123 In 99.9% of the cases, swig just needs to declare them as 'static'.
124
125 But only do this if is strictly necessary, ie, if you have problems
126 with your compiler or so.
127 */
128
129 #ifndef SWIGRUNTIME
130 # define SWIGRUNTIME SWIGINTERN
131 #endif
132
133 #ifndef SWIGRUNTIMEINLINE
134 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
135 #endif
136
137 #include <string.h>
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 typedef void *(*swig_converter_func)(void *);
144 typedef struct swig_type_info *(*swig_dycast_func)(void **);
145
146 /* Structure to store inforomation on one type */
147 typedef struct swig_type_info {
148 const char *name; /* mangled name of this type */
149 const char *str; /* human readable name of this type */
150 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
151 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
152 void *clientdata; /* language specific type data */
153 } swig_type_info;
154
155 /* Structure to store a type and conversion function used for casting */
156 typedef struct swig_cast_info {
157 swig_type_info *type; /* pointer to type that is equivalent to this type */
158 swig_converter_func converter; /* function to cast the void pointers */
159 struct swig_cast_info *next; /* pointer to next cast in linked list */
160 struct swig_cast_info *prev; /* pointer to the previous cast */
161 } swig_cast_info;
162
163 /* Structure used to store module information
164 * Each module generates one structure like this, and the runtime collects
165 * all of these structures and stores them in a circularly linked list.*/
166 typedef struct swig_module_info {
167 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
168 size_t size; /* Number of types in this module */
169 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
170 swig_type_info **type_initial; /* Array of initially generated type structures */
171 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
172 void *clientdata; /* Language specific module data */
173 } swig_module_info;
174
175
176 /*
177 Compare two type names skipping the space characters, therefore
178 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
179
180 Return 0 when the two name types are equivalent, as in
181 strncmp, but skipping ' '.
182 */
183 SWIGRUNTIME int
184 SWIG_TypeNameComp(const char *f1, const char *l1,
185 const char *f2, const char *l2) {
186 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
187 while ((*f1 == ' ') && (f1 != l1)) ++f1;
188 while ((*f2 == ' ') && (f2 != l2)) ++f2;
189 if (*f1 != *f2) return (int)(*f1 - *f2);
190 }
191 return (l1 - f1) - (l2 - f2);
192 }
193
194 /*
195 Check type equivalence in a name list like <name1>|<name2>|...
196 Return 0 if not equal, 1 if equal
197 */
198 SWIGRUNTIME int
199 SWIG_TypeEquiv(const char *nb, const char *tb) {
200 int equiv = 0;
201 const char* te = tb + strlen(tb);
202 const char* ne = nb;
203 while (!equiv && *ne) {
204 for (nb = ne; *ne; ++ne) {
205 if (*ne == '|') break;
206 }
207 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
208 if (*ne) ++ne;
209 }
210 return equiv;
211 }
212
213 /*
214 Check type equivalence in a name list like <name1>|<name2>|...
215 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
216 */
217 SWIGRUNTIME int
218 SWIG_TypeCompare(const char *nb, const char *tb) {
219 int equiv = 0;
220 const char* te = tb + strlen(tb);
221 const char* ne = nb;
222 while (!equiv && *ne) {
223 for (nb = ne; *ne; ++ne) {
224 if (*ne == '|') break;
225 }
226 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
227 if (*ne) ++ne;
228 }
229 return equiv;
230 }
231
232
233 /* think of this as a c++ template<> or a scheme macro */
234 #define SWIG_TypeCheck_Template(comparison, ty) \
235 if (ty) { \
236 swig_cast_info *iter = ty->cast; \
237 while (iter) { \
238 if (comparison) { \
239 if (iter == ty->cast) return iter; \
240 /* Move iter to the top of the linked list */ \
241 iter->prev->next = iter->next; \
242 if (iter->next) \
243 iter->next->prev = iter->prev; \
244 iter->next = ty->cast; \
245 iter->prev = 0; \
246 if (ty->cast) ty->cast->prev = iter; \
247 ty->cast = iter; \
248 return iter; \
249 } \
250 iter = iter->next; \
251 } \
252 } \
253 return 0
254
255 /*
256 Check the typename
257 */
258 SWIGRUNTIME swig_cast_info *
259 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
260 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
261 }
262
263 /* Same as previous function, except strcmp is replaced with a pointer comparison */
264 SWIGRUNTIME swig_cast_info *
265 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
266 SWIG_TypeCheck_Template(iter->type == from, into);
267 }
268
269 /*
270 Cast a pointer up an inheritance hierarchy
271 */
272 SWIGRUNTIMEINLINE void *
273 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
274 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
275 }
276
277 /*
278 Dynamic pointer casting. Down an inheritance hierarchy
279 */
280 SWIGRUNTIME swig_type_info *
281 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
282 swig_type_info *lastty = ty;
283 if (!ty || !ty->dcast) return ty;
284 while (ty && (ty->dcast)) {
285 ty = (*ty->dcast)(ptr);
286 if (ty) lastty = ty;
287 }
288 return lastty;
289 }
290
291 /*
292 Return the name associated with this type
293 */
294 SWIGRUNTIMEINLINE const char *
295 SWIG_TypeName(const swig_type_info *ty) {
296 return ty->name;
297 }
298
299 /*
300 Return the pretty name associated with this type,
301 that is an unmangled type name in a form presentable to the user.
302 */
303 SWIGRUNTIME const char *
304 SWIG_TypePrettyName(const swig_type_info *type) {
305 /* The "str" field contains the equivalent pretty names of the
306 type, separated by vertical-bar characters. We choose
307 to print the last name, as it is often (?) the most
308 specific. */
309 if (type->str != NULL) {
310 const char *last_name = type->str;
311 const char *s;
312 for (s = type->str; *s; s++)
313 if (*s == '|') last_name = s+1;
314 return last_name;
315 }
316 else
317 return type->name;
318 }
319
320 /*
321 Set the clientdata field for a type
322 */
323 SWIGRUNTIME void
324 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
325 swig_cast_info *cast = ti->cast;
326 /* if (ti->clientdata == clientdata) return; */
327 ti->clientdata = clientdata;
328
329 while (cast) {
330 if (!cast->converter) {
331 swig_type_info *tc = cast->type;
332 if (!tc->clientdata) {
333 SWIG_TypeClientData(tc, clientdata);
334 }
335 }
336 cast = cast->next;
337 }
338 }
339
340 /*
341 Search for a swig_type_info structure only by mangled name
342 Search is a O(log #types)
343
344 We start searching at module start, and finish searching when start == end.
345 Note: if start == end at the beginning of the function, we go all the way around
346 the circular list.
347 */
348 SWIGRUNTIME swig_type_info *
349 SWIG_MangledTypeQueryModule(swig_module_info *start,
350 swig_module_info *end,
351 const char *name) {
352 swig_module_info *iter = start;
353 do {
354 if (iter->size) {
355 register size_t l = 0;
356 register size_t r = iter->size - 1;
357 do {
358 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
359 register size_t i = (l + r) >> 1;
360 const char *iname = iter->types[i]->name;
361 if (iname) {
362 register int compare = strcmp(name, iname);
363 if (compare == 0) {
364 return iter->types[i];
365 } else if (compare < 0) {
366 if (i) {
367 r = i - 1;
368 } else {
369 break;
370 }
371 } else if (compare > 0) {
372 l = i + 1;
373 }
374 } else {
375 break; /* should never happen */
376 }
377 } while (l <= r);
378 }
379 iter = iter->next;
380 } while (iter != end);
381 return 0;
382 }
383
384 /*
385 Search for a swig_type_info structure for either a mangled name or a human readable name.
386 It first searches the mangled names of the types, which is a O(log #types)
387 If a type is not found it then searches the human readable names, which is O(#types).
388
389 We start searching at module start, and finish searching when start == end.
390 Note: if start == end at the beginning of the function, we go all the way around
391 the circular list.
392 */
393 SWIGRUNTIME swig_type_info *
394 SWIG_TypeQueryModule(swig_module_info *start,
395 swig_module_info *end,
396 const char *name) {
397 /* STEP 1: Search the name field using binary search */
398 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
399 if (ret) {
400 return ret;
401 } else {
402 /* STEP 2: If the type hasn't been found, do a complete search
403 of the str field (the human readable name) */
404 swig_module_info *iter = start;
405 do {
406 register size_t i = 0;
407 for (; i < iter->size; ++i) {
408 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
409 return iter->types[i];
410 }
411 iter = iter->next;
412 } while (iter != end);
413 }
414
415 /* neither found a match */
416 return 0;
417 }
418
419
420 /*
421 Pack binary data into a string
422 */
423 SWIGRUNTIME char *
424 SWIG_PackData(char *c, void *ptr, size_t sz) {
425 static const char hex[17] = "0123456789abcdef";
426 register const unsigned char *u = (unsigned char *) ptr;
427 register const unsigned char *eu = u + sz;
428 for (; u != eu; ++u) {
429 register unsigned char uu = *u;
430 *(c++) = hex[(uu & 0xf0) >> 4];
431 *(c++) = hex[uu & 0xf];
432 }
433 return c;
434 }
435
436 /*
437 Unpack binary data from a string
438 */
439 SWIGRUNTIME const char *
440 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
441 register unsigned char *u = (unsigned char *) ptr;
442 register const unsigned char *eu = u + sz;
443 for (; u != eu; ++u) {
444 register char d = *(c++);
445 register unsigned char uu = 0;
446 if ((d >= '0') && (d <= '9'))
447 uu = ((d - '0') << 4);
448 else if ((d >= 'a') && (d <= 'f'))
449 uu = ((d - ('a'-10)) << 4);
450 else
451 return (char *) 0;
452 d = *(c++);
453 if ((d >= '0') && (d <= '9'))
454 uu |= (d - '0');
455 else if ((d >= 'a') && (d <= 'f'))
456 uu |= (d - ('a'-10));
457 else
458 return (char *) 0;
459 *u = uu;
460 }
461 return c;
462 }
463
464 /*
465 Pack 'void *' into a string buffer.
466 */
467 SWIGRUNTIME char *
468 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
469 char *r = buff;
470 if ((2*sizeof(void *) + 2) > bsz) return 0;
471 *(r++) = '_';
472 r = SWIG_PackData(r,&ptr,sizeof(void *));
473 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
474 strcpy(r,name);
475 return buff;
476 }
477
478 SWIGRUNTIME const char *
479 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
480 if (*c != '_') {
481 if (strcmp(c,"NULL") == 0) {
482 *ptr = (void *) 0;
483 return name;
484 } else {
485 return 0;
486 }
487 }
488 return SWIG_UnpackData(++c,ptr,sizeof(void *));
489 }
490
491 SWIGRUNTIME char *
492 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
493 char *r = buff;
494 size_t lname = (name ? strlen(name) : 0);
495 if ((2*sz + 2 + lname) > bsz) return 0;
496 *(r++) = '_';
497 r = SWIG_PackData(r,ptr,sz);
498 if (lname) {
499 strncpy(r,name,lname+1);
500 } else {
501 *r = 0;
502 }
503 return buff;
504 }
505
506 SWIGRUNTIME const char *
507 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
508 if (*c != '_') {
509 if (strcmp(c,"NULL") == 0) {
510 memset(ptr,0,sz);
511 return name;
512 } else {
513 return 0;
514 }
515 }
516 return SWIG_UnpackData(++c,ptr,sz);
517 }
518
519 #ifdef __cplusplus
520 }
521 #endif
522
523 /* -----------------------------------------------------------------------------
524 * SWIG API. Portion that goes into the runtime
525 * ----------------------------------------------------------------------------- */
526
527 #ifdef __cplusplus
528 extern "C" {
529 #endif
530
531 /* -----------------------------------------------------------------------------
532 * for internal method declarations
533 * ----------------------------------------------------------------------------- */
534
535 #ifndef SWIGINTERN
536 # define SWIGINTERN static SWIGUNUSED
537 #endif
538
539 #ifndef SWIGINTERNINLINE
540 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
541 #endif
542
543 /*
544 Exception handling in wrappers
545 */
546 #define SWIG_fail goto fail
547 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
548 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
549 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
550 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
551 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
552
553 /*
554 Contract support
555 */
556 #define SWIG_contract_assert(expr, msg) \
557 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
558
559 /* -----------------------------------------------------------------------------
560 * Constant declarations
561 * ----------------------------------------------------------------------------- */
562
563 /* Constant Types */
564 #define SWIG_PY_INT 1
565 #define SWIG_PY_FLOAT 2
566 #define SWIG_PY_STRING 3
567 #define SWIG_PY_POINTER 4
568 #define SWIG_PY_BINARY 5
569
570 /* Constant information structure */
571 typedef struct swig_const_info {
572 int type;
573 char *name;
574 long lvalue;
575 double dvalue;
576 void *pvalue;
577 swig_type_info **ptype;
578 } swig_const_info;
579
580
581 /* -----------------------------------------------------------------------------
582 * Alloc. memory flags
583 * ----------------------------------------------------------------------------- */
584 #define SWIG_OLDOBJ 1
585 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
586 #define SWIG_PYSTR SWIG_NEWOBJ + 1
587
588 #ifdef __cplusplus
589 }
590 #endif
591
592
593 /***********************************************************************
594 * pyrun.swg
595 *
596 * This file contains the runtime support for Python modules
597 * and includes code for managing global variables and pointer
598 * type checking.
599 *
600 * Author : David Beazley (beazley@cs.uchicago.edu)
601 ************************************************************************/
602
603 /* Common SWIG API */
604 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
605 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
606 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
607
608
609 /* Python-specific SWIG API */
610 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
611 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
612
613 /* Runtime API */
614 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
615 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
616
617 /* -----------------------------------------------------------------------------
618 * Pointer declarations
619 * ----------------------------------------------------------------------------- */
620 /*
621 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
622 C/C++ pointers in the python side. Very useful for debugging, but
623 not always safe.
624 */
625 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
626 # define SWIG_COBJECT_TYPES
627 #endif
628
629 /* Flags for pointer conversion */
630 #define SWIG_POINTER_EXCEPTION 0x1
631 #define SWIG_POINTER_DISOWN 0x2
632
633
634 /* Add PyOS_snprintf for old Pythons */
635 #if PY_VERSION_HEX < 0x02020000
636 #define PyOS_snprintf snprintf
637 #endif
638
639 #ifdef __cplusplus
640 extern "C" {
641 #endif
642
643 /* -----------------------------------------------------------------------------
644 * Create a new pointer string
645 * ----------------------------------------------------------------------------- */
646 #ifndef SWIG_BUFFER_SIZE
647 #define SWIG_BUFFER_SIZE 1024
648 #endif
649
650 /* A crude PyString_FromFormat implementation for old Pythons */
651 #if PY_VERSION_HEX < 0x02020000
652 static PyObject *
653 PyString_FromFormat(const char *fmt, ...) {
654 va_list ap;
655 char buf[SWIG_BUFFER_SIZE * 2];
656 int res;
657 va_start(ap, fmt);
658 res = vsnprintf(buf, sizeof(buf), fmt, ap);
659 va_end(ap);
660 return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf);
661 }
662 #endif
663
664 #if PY_VERSION_HEX < 0x01060000
665 #define PyObject_Del(op) PyMem_DEL((op))
666 #endif
667
668 #if defined(SWIG_COBJECT_TYPES)
669 #if !defined(SWIG_COBJECT_PYTHON)
670 /* -----------------------------------------------------------------------------
671 * Implements a simple Swig Object type, and use it instead of PyCObject
672 * ----------------------------------------------------------------------------- */
673
674 typedef struct {
675 PyObject_HEAD
676 void *ptr;
677 const char *desc;
678 } PySwigObject;
679
680 /* Declarations for objects of type PySwigObject */
681
682 SWIGRUNTIME int
683 PySwigObject_print(PySwigObject *v, FILE *fp, int flags)
684 {
685 char result[SWIG_BUFFER_SIZE];
686 flags = flags;
687 if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) {
688 fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp);
689 return 0;
690 } else {
691 return 1;
692 }
693 }
694
695 SWIGRUNTIME PyObject *
696 PySwigObject_repr(PySwigObject *v)
697 {
698 char result[SWIG_BUFFER_SIZE];
699 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
700 PyString_FromFormat("<Swig Object at %s>", result) : 0;
701 }
702
703 SWIGRUNTIME PyObject *
704 PySwigObject_str(PySwigObject *v)
705 {
706 char result[SWIG_BUFFER_SIZE];
707 return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ?
708 PyString_FromString(result) : 0;
709 }
710
711 SWIGRUNTIME PyObject *
712 PySwigObject_long(PySwigObject *v)
713 {
714 return PyLong_FromVoidPtr(v->ptr);
715 }
716
717 SWIGRUNTIME PyObject *
718 PySwigObject_format(const char* fmt, PySwigObject *v)
719 {
720 PyObject *res = NULL;
721 PyObject *args = PyTuple_New(1);
722 if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) {
723 PyObject *ofmt = PyString_FromString(fmt);
724 if (ofmt) {
725 res = PyString_Format(ofmt,args);
726 Py_DECREF(ofmt);
727 }
728 Py_DECREF(args);
729 }
730 return res;
731 }
732
733 SWIGRUNTIME PyObject *
734 PySwigObject_oct(PySwigObject *v)
735 {
736 return PySwigObject_format("%o",v);
737 }
738
739 SWIGRUNTIME PyObject *
740 PySwigObject_hex(PySwigObject *v)
741 {
742 return PySwigObject_format("%x",v);
743 }
744
745 SWIGRUNTIME int
746 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
747 {
748 int c = strcmp(v->desc, w->desc);
749 if (c) {
750 return (c > 0) ? 1 : -1;
751 } else {
752 void *i = v->ptr;
753 void *j = w->ptr;
754 return (i < j) ? -1 : ((i > j) ? 1 : 0);
755 }
756 }
757
758 SWIGRUNTIME void
759 PySwigObject_dealloc(PySwigObject *self)
760 {
761 PyObject_Del(self);
762 }
763
764 SWIGRUNTIME PyTypeObject*
765 PySwigObject_type(void) {
766 static char pyswigobject_type__doc__[] =
767 "Swig object carries a C/C++ instance pointer";
768
769 static PyNumberMethods PySwigObject_as_number = {
770 (binaryfunc)0, /*nb_add*/
771 (binaryfunc)0, /*nb_subtract*/
772 (binaryfunc)0, /*nb_multiply*/
773 (binaryfunc)0, /*nb_divide*/
774 (binaryfunc)0, /*nb_remainder*/
775 (binaryfunc)0, /*nb_divmod*/
776 (ternaryfunc)0,/*nb_power*/
777 (unaryfunc)0, /*nb_negative*/
778 (unaryfunc)0, /*nb_positive*/
779 (unaryfunc)0, /*nb_absolute*/
780 (inquiry)0, /*nb_nonzero*/
781 0, /*nb_invert*/
782 0, /*nb_lshift*/
783 0, /*nb_rshift*/
784 0, /*nb_and*/
785 0, /*nb_xor*/
786 0, /*nb_or*/
787 (coercion)0, /*nb_coerce*/
788 (unaryfunc)PySwigObject_long, /*nb_int*/
789 (unaryfunc)PySwigObject_long, /*nb_long*/
790 (unaryfunc)0, /*nb_float*/
791 (unaryfunc)PySwigObject_oct, /*nb_oct*/
792 (unaryfunc)PySwigObject_hex, /*nb_hex*/
793 #if PY_VERSION_HEX >= 0x02020000
794 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
795 #elif PY_VERSION_HEX >= 0x02000000
796 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
797 #endif
798 };
799
800 static PyTypeObject pyswigobject_type
801 #if !defined(__cplusplus)
802 ;
803 static int type_init = 0;
804 if (!type_init) {
805 PyTypeObject tmp
806 #endif
807 = {
808 PyObject_HEAD_INIT(&PyType_Type)
809 0, /*ob_size*/
810 (char *)"PySwigObject", /*tp_name*/
811 sizeof(PySwigObject), /*tp_basicsize*/
812 0, /*tp_itemsize*/
813 /* methods */
814 (destructor)PySwigObject_dealloc, /*tp_dealloc*/
815 (printfunc)PySwigObject_print, /*tp_print*/
816 (getattrfunc)0, /*tp_getattr*/
817 (setattrfunc)0, /*tp_setattr*/
818 (cmpfunc)PySwigObject_compare, /*tp_compare*/
819 (reprfunc)PySwigObject_repr, /*tp_repr*/
820 &PySwigObject_as_number, /*tp_as_number*/
821 0, /*tp_as_sequence*/
822 0, /*tp_as_mapping*/
823 (hashfunc)0, /*tp_hash*/
824 (ternaryfunc)0, /*tp_call*/
825 (reprfunc)PySwigObject_str, /*tp_str*/
826 /* Space for future expansion */
827 0,0,0,0,
828 pyswigobject_type__doc__, /* Documentation string */
829 #if PY_VERSION_HEX >= 0x02000000
830 0, /* tp_traverse */
831 0, /* tp_clear */
832 #endif
833 #if PY_VERSION_HEX >= 0x02010000
834 0, /* tp_richcompare */
835 0, /* tp_weaklistoffset */
836 #endif
837 #if PY_VERSION_HEX >= 0x02020000
838 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
839 #endif
840 #if PY_VERSION_HEX >= 0x02030000
841 0, /* tp_del */
842 #endif
843 #ifdef COUNT_ALLOCS
844 0,0,0,0 /* tp_alloc -> tp_next */
845 #endif
846 };
847 #if !defined(__cplusplus)
848 pyswigobject_type = tmp;
849 type_init = 1;
850 }
851 #endif
852 return &pyswigobject_type;
853 }
854
855 SWIGRUNTIME PyObject *
856 PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc)
857 {
858 PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type());
859 if (self) {
860 self->ptr = ptr;
861 self->desc = desc;
862 }
863 return (PyObject *)self;
864 }
865
866 SWIGRUNTIMEINLINE void *
867 PySwigObject_AsVoidPtr(PyObject *self)
868 {
869 return ((PySwigObject *)self)->ptr;
870 }
871
872 SWIGRUNTIMEINLINE const char *
873 PySwigObject_GetDesc(PyObject *self)
874 {
875 return ((PySwigObject *)self)->desc;
876 }
877
878 SWIGRUNTIMEINLINE int
879 PySwigObject_Check(PyObject *op) {
880 return ((op)->ob_type == PySwigObject_type())
881 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
882 }
883
884 /* -----------------------------------------------------------------------------
885 * Implements a simple Swig Packed type, and use it instead of string
886 * ----------------------------------------------------------------------------- */
887
888 typedef struct {
889 PyObject_HEAD
890 void *pack;
891 const char *desc;
892 size_t size;
893 } PySwigPacked;
894
895 SWIGRUNTIME int
896 PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags)
897 {
898 char result[SWIG_BUFFER_SIZE];
899 flags = flags;
900 fputs("<Swig Packed ", fp);
901 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
902 fputs("at ", fp);
903 fputs(result, fp);
904 }
905 fputs(v->desc,fp);
906 fputs(">", fp);
907 return 0;
908 }
909
910 SWIGRUNTIME PyObject *
911 PySwigPacked_repr(PySwigPacked *v)
912 {
913 char result[SWIG_BUFFER_SIZE];
914 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
915 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc);
916 } else {
917 return PyString_FromFormat("<Swig Packed %s>", v->desc);
918 }
919 }
920
921 SWIGRUNTIME PyObject *
922 PySwigPacked_str(PySwigPacked *v)
923 {
924 char result[SWIG_BUFFER_SIZE];
925 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
926 return PyString_FromFormat("%s%s", result, v->desc);
927 } else {
928 return PyString_FromString(v->desc);
929 }
930 }
931
932 SWIGRUNTIME int
933 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
934 {
935 int c = strcmp(v->desc, w->desc);
936 if (c) {
937 return (c > 0) ? 1 : -1;
938 } else {
939 size_t i = v->size;
940 size_t j = w->size;
941 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
942 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
943 }
944 }
945
946 SWIGRUNTIME void
947 PySwigPacked_dealloc(PySwigPacked *self)
948 {
949 free(self->pack);
950 PyObject_Del(self);
951 }
952
953 SWIGRUNTIME PyTypeObject*
954 PySwigPacked_type(void) {
955 static char pyswigpacked_type__doc__[] =
956 "Swig object carries a C/C++ instance pointer";
957 static PyTypeObject pyswigpacked_type
958 #if !defined(__cplusplus)
959 ;
960 static int type_init = 0;
961 if (!type_init) {
962 PyTypeObject tmp
963 #endif
964 = {
965 PyObject_HEAD_INIT(&PyType_Type)
966 0, /*ob_size*/
967 (char *)"PySwigPacked", /*tp_name*/
968 sizeof(PySwigPacked), /*tp_basicsize*/
969 0, /*tp_itemsize*/
970 /* methods */
971 (destructor)PySwigPacked_dealloc, /*tp_dealloc*/
972 (printfunc)PySwigPacked_print, /*tp_print*/
973 (getattrfunc)0, /*tp_getattr*/
974 (setattrfunc)0, /*tp_setattr*/
975 (cmpfunc)PySwigPacked_compare, /*tp_compare*/
976 (reprfunc)PySwigPacked_repr, /*tp_repr*/
977 0, /*tp_as_number*/
978 0, /*tp_as_sequence*/
979 0, /*tp_as_mapping*/
980 (hashfunc)0, /*tp_hash*/
981 (ternaryfunc)0, /*tp_call*/
982 (reprfunc)PySwigPacked_str, /*tp_str*/
983 /* Space for future expansion */
984 0,0,0,0,
985 pyswigpacked_type__doc__, /* Documentation string */
986 #if PY_VERSION_HEX >= 0x02000000
987 0, /* tp_traverse */
988 0, /* tp_clear */
989 #endif
990 #if PY_VERSION_HEX >= 0x02010000
991 0, /* tp_richcompare */
992 0, /* tp_weaklistoffset */
993 #endif
994 #if PY_VERSION_HEX >= 0x02020000
995 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
996 #endif
997 #if PY_VERSION_HEX >= 0x02030000
998 0, /* tp_del */
999 #endif
1000 #ifdef COUNT_ALLOCS
1001 0,0,0,0 /* tp_alloc -> tp_next */
1002 #endif
1003 };
1004 #if !defined(__cplusplus)
1005 pyswigpacked_type = tmp;
1006 type_init = 1;
1007 }
1008 #endif
1009 return &pyswigpacked_type;
1010 }
1011
1012 SWIGRUNTIME PyObject *
1013 PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc)
1014 {
1015 PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1016 if (self == NULL) {
1017 return NULL;
1018 } else {
1019 void *pack = malloc(size);
1020 if (pack) {
1021 memcpy(pack, ptr, size);
1022 self->pack = pack;
1023 self->desc = desc;
1024 self->size = size;
1025 return (PyObject *) self;
1026 }
1027 return NULL;
1028 }
1029 }
1030
1031 SWIGRUNTIMEINLINE const char *
1032 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1033 {
1034 PySwigPacked *self = (PySwigPacked *)obj;
1035 if (self->size != size) return 0;
1036 memcpy(ptr, self->pack, size);
1037 return self->desc;
1038 }
1039
1040 SWIGRUNTIMEINLINE const char *
1041 PySwigPacked_GetDesc(PyObject *self)
1042 {
1043 return ((PySwigPacked *)self)->desc;
1044 }
1045
1046 SWIGRUNTIMEINLINE int
1047 PySwigPacked_Check(PyObject *op) {
1048 return ((op)->ob_type == PySwigPacked_type())
1049 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1050 }
1051
1052 #else
1053 /* -----------------------------------------------------------------------------
1054 * Use the old Python PyCObject instead of PySwigObject
1055 * ----------------------------------------------------------------------------- */
1056
1057 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1058 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1059 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1060 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1061
1062 #endif
1063
1064 #endif
1065
1066 /* -----------------------------------------------------------------------------
1067 * errors manipulation
1068 * ----------------------------------------------------------------------------- */
1069
1070 SWIGRUNTIME void
1071 SWIG_Python_TypeError(const char *type, PyObject *obj)
1072 {
1073 if (type) {
1074 #if defined(SWIG_COBJECT_TYPES)
1075 if (obj && PySwigObject_Check(obj)) {
1076 const char *otype = (const char *) PySwigObject_GetDesc(obj);
1077 if (otype) {
1078 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
1079 type, otype);
1080 return;
1081 }
1082 } else
1083 #endif
1084 {
1085 const char *otype = (obj ? obj->ob_type->tp_name : 0);
1086 if (otype) {
1087 PyObject *str = PyObject_Str(obj);
1088 const char *cstr = str ? PyString_AsString(str) : 0;
1089 if (cstr) {
1090 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
1091 type, otype, cstr);
1092 } else {
1093 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
1094 type, otype);
1095 }
1096 Py_XDECREF(str);
1097 return;
1098 }
1099 }
1100 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
1101 } else {
1102 PyErr_Format(PyExc_TypeError, "unexpected type is received");
1103 }
1104 }
1105
1106 SWIGRUNTIMEINLINE void
1107 SWIG_Python_NullRef(const char *type)
1108 {
1109 if (type) {
1110 PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type);
1111 } else {
1112 PyErr_Format(PyExc_TypeError, "null reference was received");
1113 }
1114 }
1115
1116 SWIGRUNTIME int
1117 SWIG_Python_AddErrMesg(const char* mesg, int infront)
1118 {
1119 if (PyErr_Occurred()) {
1120 PyObject *type = 0;
1121 PyObject *value = 0;
1122 PyObject *traceback = 0;
1123 PyErr_Fetch(&type, &value, &traceback);
1124 if (value) {
1125 PyObject *old_str = PyObject_Str(value);
1126 Py_XINCREF(type);
1127 PyErr_Clear();
1128 if (infront) {
1129 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
1130 } else {
1131 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
1132 }
1133 Py_DECREF(old_str);
1134 }
1135 return 1;
1136 } else {
1137 return 0;
1138 }
1139 }
1140
1141 SWIGRUNTIME int
1142 SWIG_Python_ArgFail(int argnum)
1143 {
1144 if (PyErr_Occurred()) {
1145 /* add information about failing argument */
1146 char mesg[256];
1147 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
1148 return SWIG_Python_AddErrMesg(mesg, 1);
1149 } else {
1150 return 0;
1151 }
1152 }
1153
1154
1155 /* -----------------------------------------------------------------------------
1156 * pointers/data manipulation
1157 * ----------------------------------------------------------------------------- */
1158
1159 /* Convert a pointer value */
1160 SWIGRUNTIME int
1161 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
1162 swig_cast_info *tc;
1163 const char *c = 0;
1164 static PyObject *SWIG_this = 0;
1165 int newref = 0;
1166 PyObject *pyobj = 0;
1167 void *vptr;
1168
1169 if (!obj) return 0;
1170 if (obj == Py_None) {
1171 *ptr = 0;
1172 return 0;
1173 }
1174
1175 #ifdef SWIG_COBJECT_TYPES
1176 if (!(PySwigObject_Check(obj))) {
1177 if (!SWIG_this)
1178 SWIG_this = PyString_FromString("this");
1179 pyobj = obj;
1180 obj = PyObject_GetAttr(obj,SWIG_this);
1181 newref = 1;
1182 if (!obj) goto type_error;
1183 if (!PySwigObject_Check(obj)) {
1184 Py_DECREF(obj);
1185 goto type_error;
1186 }
1187 }
1188 vptr = PySwigObject_AsVoidPtr(obj);
1189 c = (const char *) PySwigObject_GetDesc(obj);
1190 if (newref) { Py_DECREF(obj); }
1191 goto type_check;
1192 #else
1193 if (!(PyString_Check(obj))) {
1194 if (!SWIG_this)
1195 SWIG_this = PyString_FromString("this");
1196 pyobj = obj;
1197 obj = PyObject_GetAttr(obj,SWIG_this);
1198 newref = 1;
1199 if (!obj) goto type_error;
1200 if (!PyString_Check(obj)) {
1201 Py_DECREF(obj);
1202 goto type_error;
1203 }
1204 }
1205 c = PyString_AsString(obj);
1206 /* Pointer values must start with leading underscore */
1207 c = SWIG_UnpackVoidPtr(c, &vptr, ty->name);
1208 if (newref) { Py_DECREF(obj); }
1209 if (!c) goto type_error;
1210 #endif
1211
1212 type_check:
1213 if (ty) {
1214 tc = SWIG_TypeCheck(c,ty);
1215 if (!tc) goto type_error;
1216 *ptr = SWIG_TypeCast(tc,vptr);
1217 } else {
1218 *ptr = vptr;
1219 }
1220 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
1221 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
1222 }
1223 return 0;
1224
1225 type_error:
1226 PyErr_Clear();
1227 if (pyobj && !obj) {
1228 obj = pyobj;
1229 if (PyCFunction_Check(obj)) {
1230 /* here we get the method pointer for callbacks */
1231 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1232 c = doc ? strstr(doc, "swig_ptr: ") : 0;
1233 if (c) {
1234 c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
1235 if (!c) goto type_error;
1236 goto type_check;
1237 }
1238 }
1239 }
1240 if (flags & SWIG_POINTER_EXCEPTION) {
1241 if (ty) {
1242 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1243 } else {
1244 SWIG_Python_TypeError("C/C++ pointer", obj);
1245 }
1246 }
1247 return -1;
1248 }
1249
1250 /* Convert a pointer value, signal an exception on a type mismatch */
1251 SWIGRUNTIME void *
1252 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
1253 void *result;
1254 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
1255 PyErr_Clear();
1256 if (flags & SWIG_POINTER_EXCEPTION) {
1257 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1258 SWIG_Python_ArgFail(argnum);
1259 }
1260 }
1261 return result;
1262 }
1263
1264 /* Convert a packed value value */
1265 SWIGRUNTIME int
1266 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) {
1267 swig_cast_info *tc;
1268 const char *c = 0;
1269
1270 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1271 c = PySwigPacked_UnpackData(obj, ptr, sz);
1272 #else
1273 if ((!obj) || (!PyString_Check(obj))) goto type_error;
1274 c = PyString_AsString(obj);
1275 /* Pointer values must start with leading underscore */
1276 c = SWIG_UnpackDataName(c, ptr, sz, ty->name);
1277 #endif
1278 if (!c) goto type_error;
1279 if (ty) {
1280 tc = SWIG_TypeCheck(c,ty);
1281 if (!tc) goto type_error;
1282 }
1283 return 0;
1284
1285 type_error:
1286 PyErr_Clear();
1287 if (flags & SWIG_POINTER_EXCEPTION) {
1288 if (ty) {
1289 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
1290 } else {
1291 SWIG_Python_TypeError("C/C++ packed data", obj);
1292 }
1293 }
1294 return -1;
1295 }
1296
1297 /* Create a new array object */
1298 SWIGRUNTIME PyObject *
1299 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
1300 PyObject *robj = 0;
1301 if (!type) {
1302 if (!PyErr_Occurred()) {
1303 PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj");
1304 }
1305 return robj;
1306 }
1307 if (!ptr) {
1308 Py_INCREF(Py_None);
1309 return Py_None;
1310 }
1311 #ifdef SWIG_COBJECT_TYPES
1312 robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);
1313 #else
1314 {
1315 char result[SWIG_BUFFER_SIZE];
1316 robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ?
1317 PyString_FromString(result) : 0;
1318 }
1319 #endif
1320 if (!robj || (robj == Py_None)) return robj;
1321 if (type->clientdata) {
1322 PyObject *inst;
1323 PyObject *args = Py_BuildValue((char*)"(O)", robj);
1324 Py_DECREF(robj);
1325 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
1326 Py_DECREF(args);
1327 if (inst) {
1328 if (own) {
1329 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
1330 }
1331 robj = inst;
1332 }
1333 }
1334 return robj;
1335 }
1336
1337 SWIGRUNTIME PyObject *
1338 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1339 PyObject *robj = 0;
1340 if (!ptr) {
1341 Py_INCREF(Py_None);
1342 return Py_None;
1343 }
1344 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1345 robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);
1346 #else
1347 {
1348 char result[SWIG_BUFFER_SIZE];
1349 robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ?
1350 PyString_FromString(result) : 0;
1351 }
1352 #endif
1353 return robj;
1354 }
1355
1356 /* -----------------------------------------------------------------------------*
1357 * Get type list
1358 * -----------------------------------------------------------------------------*/
1359
1360 #ifdef SWIG_LINK_RUNTIME
1361 void *SWIG_ReturnGlobalTypeList(void *);
1362 #endif
1363
1364 SWIGRUNTIME swig_module_info *
1365 SWIG_Python_GetModule(void) {
1366 static void *type_pointer = (void *)0;
1367 /* first check if module already created */
1368 if (!type_pointer) {
1369 #ifdef SWIG_LINK_RUNTIME
1370 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
1371 #else
1372 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1373 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
1374 if (PyErr_Occurred()) {
1375 PyErr_Clear();
1376 type_pointer = (void *)0;
1377 }
1378 #endif
1379 }
1380 return (swig_module_info *) type_pointer;
1381 }
1382
1383 #if PY_MAJOR_VERSION < 2
1384 /* PyModule_AddObject function was introduced in Python 2.0. The following function
1385 is copied out of Python/modsupport.c in python version 2.3.4 */
1386 SWIGINTERN int
1387 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
1388 {
1389 PyObject *dict;
1390 if (!PyModule_Check(m)) {
1391 PyErr_SetString(PyExc_TypeError,
1392 "PyModule_AddObject() needs module as first arg");
1393 return -1;
1394 }
1395 if (!o) {
1396 PyErr_SetString(PyExc_TypeError,
1397 "PyModule_AddObject() needs non-NULL value");
1398 return -1;
1399 }
1400
1401 dict = PyModule_GetDict(m);
1402 if (dict == NULL) {
1403 /* Internal error -- modules must have a dict! */
1404 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
1405 PyModule_GetName(m));
1406 return -1;
1407 }
1408 if (PyDict_SetItemString(dict, name, o))
1409 return -1;
1410 Py_DECREF(o);
1411 return 0;
1412 }
1413 #endif
1414
1415 SWIGRUNTIME void
1416 SWIG_Python_SetModule(swig_module_info *swig_module) {
1417 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
1418
1419 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
1420 swig_empty_runtime_method_table);
1421 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL);
1422 if (pointer && module) {
1423 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1424 }
1425 }
1426
1427 #ifdef __cplusplus
1428 }
1429 #endif
1430
1431
1432 /* -------- TYPES TABLE (BEGIN) -------- */
1433
1434 #define SWIGTYPE_p_char swig_types[0]
1435 #define SWIGTYPE_p_double swig_types[1]
1436 #define SWIGTYPE_p_form_ops_t swig_types[2]
1437 #define SWIGTYPE_p_int swig_types[3]
1438 #define SWIGTYPE_p_unsigned_char swig_types[4]
1439 #define SWIGTYPE_p_unsigned_int swig_types[5]
1440 #define SWIGTYPE_p_unsigned_long swig_types[6]
1441 #define SWIGTYPE_p_wxANIHandler swig_types[7]
1442 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
1443 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
1444 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
1445 #define SWIGTYPE_p_wxBitmap swig_types[11]
1446 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
1447 #define SWIGTYPE_p_wxBrush swig_types[13]
1448 #define SWIGTYPE_p_wxBrushList swig_types[14]
1449 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
1450 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
1451 #define SWIGTYPE_p_wxCURHandler swig_types[17]
1452 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
1453 #define SWIGTYPE_p_wxClientDC swig_types[19]
1454 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
1455 #define SWIGTYPE_p_wxColour swig_types[21]
1456 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
1457 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
1458 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
1459 #define SWIGTYPE_p_wxControl swig_types[25]
1460 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
1461 #define SWIGTYPE_p_wxCursor swig_types[27]
1462 #define SWIGTYPE_p_wxDC swig_types[28]
1463 #define SWIGTYPE_p_wxDash swig_types[29]
1464 #define SWIGTYPE_p_wxDateEvent swig_types[30]
1465 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
1466 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
1467 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
1468 #define SWIGTYPE_p_wxEffects swig_types[34]
1469 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
1470 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
1471 #define SWIGTYPE_p_wxEvent swig_types[37]
1472 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
1473 #define SWIGTYPE_p_wxFSFile swig_types[39]
1474 #define SWIGTYPE_p_wxFileSystem swig_types[40]
1475 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
1476 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
1477 #define SWIGTYPE_p_wxFont swig_types[43]
1478 #define SWIGTYPE_p_wxFontList swig_types[44]
1479 #define SWIGTYPE_p_wxFontMapper swig_types[45]
1480 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
1481 #define SWIGTYPE_p_wxGDIObject swig_types[47]
1482 #define SWIGTYPE_p_wxGIFHandler swig_types[48]
1483 #define SWIGTYPE_p_wxGridBagSizer swig_types[49]
1484 #define SWIGTYPE_p_wxGridSizer swig_types[50]
1485 #define SWIGTYPE_p_wxICOHandler swig_types[51]
1486 #define SWIGTYPE_p_wxIcon swig_types[52]
1487 #define SWIGTYPE_p_wxIconBundle swig_types[53]
1488 #define SWIGTYPE_p_wxIconLocation swig_types[54]
1489 #define SWIGTYPE_p_wxIconizeEvent swig_types[55]
1490 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
1491 #define SWIGTYPE_p_wxImage swig_types[57]
1492 #define SWIGTYPE_p_wxImageHandler swig_types[58]
1493 #define SWIGTYPE_p_wxImageList swig_types[59]
1494 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60]
1495 #define SWIGTYPE_p_wxInitDialogEvent swig_types[61]
1496 #define SWIGTYPE_p_wxJPEGHandler swig_types[62]
1497 #define SWIGTYPE_p_wxKeyEvent swig_types[63]
1498 #define SWIGTYPE_p_wxLanguageInfo swig_types[64]
1499 #define SWIGTYPE_p_wxLayoutConstraints swig_types[65]
1500 #define SWIGTYPE_p_wxLocale swig_types[66]
1501 #define SWIGTYPE_p_wxMask swig_types[67]
1502 #define SWIGTYPE_p_wxMaximizeEvent swig_types[68]
1503 #define SWIGTYPE_p_wxMemoryDC swig_types[69]
1504 #define SWIGTYPE_p_wxMenu swig_types[70]
1505 #define SWIGTYPE_p_wxMenuBar swig_types[71]
1506 #define SWIGTYPE_p_wxMenuEvent swig_types[72]
1507 #define SWIGTYPE_p_wxMenuItem swig_types[73]
1508 #define SWIGTYPE_p_wxMetaFile swig_types[74]
1509 #define SWIGTYPE_p_wxMetaFileDC swig_types[75]
1510 #define SWIGTYPE_p_wxMirrorDC swig_types[76]
1511 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
1512 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
1513 #define SWIGTYPE_p_wxMoveEvent swig_types[79]
1514 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80]
1515 #define SWIGTYPE_p_wxNativeFontInfo swig_types[81]
1516 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
1517 #define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
1518 #define SWIGTYPE_p_wxNotifyEvent swig_types[84]
1519 #define SWIGTYPE_p_wxObject swig_types[85]
1520 #define SWIGTYPE_p_wxPCXHandler swig_types[86]
1521 #define SWIGTYPE_p_wxPNGHandler swig_types[87]
1522 #define SWIGTYPE_p_wxPNMHandler swig_types[88]
1523 #define SWIGTYPE_p_wxPaintDC swig_types[89]
1524 #define SWIGTYPE_p_wxPaintEvent swig_types[90]
1525 #define SWIGTYPE_p_wxPalette swig_types[91]
1526 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92]
1527 #define SWIGTYPE_p_wxPaperSize swig_types[93]
1528 #define SWIGTYPE_p_wxPen swig_types[94]
1529 #define SWIGTYPE_p_wxPenList swig_types[95]
1530 #define SWIGTYPE_p_wxPoint swig_types[96]
1531 #define SWIGTYPE_p_wxPostScriptDC swig_types[97]
1532 #define SWIGTYPE_p_wxPrintData swig_types[98]
1533 #define SWIGTYPE_p_wxPrinterDC swig_types[99]
1534 #define SWIGTYPE_p_wxPyApp swig_types[100]
1535 #define SWIGTYPE_p_wxPyCommandEvent swig_types[101]
1536 #define SWIGTYPE_p_wxPyEvent swig_types[102]
1537 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103]
1538 #define SWIGTYPE_p_wxPyImageHandler swig_types[104]
1539 #define SWIGTYPE_p_wxPySizer swig_types[105]
1540 #define SWIGTYPE_p_wxPyValidator swig_types[106]
1541 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
1542 #define SWIGTYPE_p_wxRect swig_types[108]
1543 #define SWIGTYPE_p_wxRegion swig_types[109]
1544 #define SWIGTYPE_p_wxRegionIterator swig_types[110]
1545 #define SWIGTYPE_p_wxRendererNative swig_types[111]
1546 #define SWIGTYPE_p_wxRendererVersion swig_types[112]
1547 #define SWIGTYPE_p_wxScreenDC swig_types[113]
1548 #define SWIGTYPE_p_wxScrollEvent swig_types[114]
1549 #define SWIGTYPE_p_wxScrollWinEvent swig_types[115]
1550 #define SWIGTYPE_p_wxSetCursorEvent swig_types[116]
1551 #define SWIGTYPE_p_wxShowEvent swig_types[117]
1552 #define SWIGTYPE_p_wxSize swig_types[118]
1553 #define SWIGTYPE_p_wxSizeEvent swig_types[119]
1554 #define SWIGTYPE_p_wxSizer swig_types[120]
1555 #define SWIGTYPE_p_wxSizerItem swig_types[121]
1556 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122]
1557 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123]
1558 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124]
1559 #define SWIGTYPE_p_wxString swig_types[125]
1560 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126]
1561 #define SWIGTYPE_p_wxTIFFHandler swig_types[127]
1562 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
1563 #define SWIGTYPE_p_wxValidator swig_types[129]
1564 #define SWIGTYPE_p_wxWindow swig_types[130]
1565 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
1566 #define SWIGTYPE_p_wxWindowDC swig_types[132]
1567 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
1568 #define SWIGTYPE_p_wxXPMHandler swig_types[134]
1569 #define SWIGTYPE_ptrdiff_t swig_types[135]
1570 #define SWIGTYPE_std__ptrdiff_t swig_types[136]
1571 #define SWIGTYPE_unsigned_int swig_types[137]
1572 static swig_type_info *swig_types[139];
1573 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
1574 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1575 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1576
1577 /* -------- TYPES TABLE (END) -------- */
1578
1579
1580 /*-----------------------------------------------
1581 @(target):= _gdi_.so
1582 ------------------------------------------------*/
1583 #define SWIG_init init_gdi_
1584
1585 #define SWIG_name "_gdi_"
1586
1587 #include "wx/wxPython/wxPython.h"
1588 #include "wx/wxPython/pyclasses.h"
1589
1590
1591 static const wxString wxPyEmptyString(wxEmptyString);
1592
1593 #include <limits.h>
1594
1595
1596 SWIGINTERN int
1597 SWIG_CheckLongInRange(long value, long min_value, long max_value,
1598 const char *errmsg)
1599 {
1600 if (value < min_value) {
1601 if (errmsg) {
1602 PyErr_Format(PyExc_OverflowError,
1603 "value %ld is less than '%s' minimum %ld",
1604 value, errmsg, min_value);
1605 }
1606 return 0;
1607 } else if (value > max_value) {
1608 if (errmsg) {
1609 PyErr_Format(PyExc_OverflowError,
1610 "value %ld is greater than '%s' maximum %ld",
1611 value, errmsg, max_value);
1612 }
1613 return 0;
1614 }
1615 return 1;
1616 }
1617
1618
1619 SWIGINTERN int
1620 SWIG_AsVal_long(PyObject* obj, long* val)
1621 {
1622 if (PyNumber_Check(obj)) {
1623 if (val) *val = PyInt_AsLong(obj);
1624 return 1;
1625 }
1626 else {
1627 SWIG_Python_TypeError("number", obj);
1628 }
1629 return 0;
1630 }
1631
1632
1633 #if INT_MAX != LONG_MAX
1634 SWIGINTERN int
1635 SWIG_AsVal_int(PyObject *obj, int *val)
1636 {
1637 const char* errmsg = val ? "int" : (char*)0;
1638 long v;
1639 if (SWIG_AsVal_long(obj, &v)) {
1640 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
1641 if (val) *val = static_cast<int >(v);
1642 return 1;
1643 } else {
1644 return 0;
1645 }
1646 } else {
1647 PyErr_Clear();
1648 }
1649 if (val) {
1650 SWIG_type_error(errmsg, obj);
1651 }
1652 return 0;
1653 }
1654 #else
1655 SWIGINTERNINLINE int
1656 SWIG_AsVal_int(PyObject *obj, int *val)
1657 {
1658 return SWIG_AsVal_long(obj,(long*)val);
1659 }
1660 #endif
1661
1662
1663 SWIGINTERN int
1664 SWIG_AsVal_bool(PyObject *obj, bool *val)
1665 {
1666 if (obj == Py_True) {
1667 if (val) *val = true;
1668 return 1;
1669 }
1670 if (obj == Py_False) {
1671 if (val) *val = false;
1672 return 1;
1673 }
1674 int res = 0;
1675 if (SWIG_AsVal_int(obj, &res)) {
1676 if (val) *val = res ? true : false;
1677 return 1;
1678 } else {
1679 PyErr_Clear();
1680 }
1681 if (val) {
1682 SWIG_type_error("bool", obj);
1683 }
1684 return 0;
1685 }
1686
1687
1688 SWIGINTERNINLINE bool
1689 SWIG_As_bool(PyObject* obj)
1690 {
1691 bool v;
1692 if (!SWIG_AsVal_bool(obj, &v)) {
1693 /*
1694 this is needed to make valgrind/purify happier.
1695 */
1696 memset((void*)&v, 0, sizeof(bool));
1697 }
1698 return v;
1699 }
1700
1701
1702 SWIGINTERNINLINE int
1703 SWIG_Check_bool(PyObject* obj)
1704 {
1705 return SWIG_AsVal_bool(obj, (bool*)0);
1706 }
1707
1708
1709 SWIGINTERN int
1710 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
1711 {
1712 long v = 0;
1713 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1714 SWIG_Python_TypeError("unsigned number", obj);
1715 }
1716 else if (val)
1717 *val = (unsigned long)v;
1718 return 1;
1719 }
1720
1721
1722 SWIGINTERNINLINE int
1723 SWIG_CheckUnsignedLongInRange(unsigned long value,
1724 unsigned long max_value,
1725 const char *errmsg)
1726 {
1727 if (value > max_value) {
1728 if (errmsg) {
1729 PyErr_Format(PyExc_OverflowError,
1730 "value %lu is greater than '%s' minimum %lu",
1731 value, errmsg, max_value);
1732 }
1733 return 0;
1734 }
1735 return 1;
1736 }
1737
1738
1739 SWIGINTERN int
1740 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1741 {
1742 const char* errmsg = val ? "unsigned char" : (char*)0;
1743 unsigned long v;
1744 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1745 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1746 if (val) *val = static_cast<unsigned char >(v);
1747 return 1;
1748 } else {
1749 return 0;
1750 }
1751 } else {
1752 PyErr_Clear();
1753 }
1754 if (val) {
1755 SWIG_type_error(errmsg, obj);
1756 }
1757 return 0;
1758 }
1759
1760
1761 SWIGINTERNINLINE unsigned char
1762 SWIG_As_unsigned_SS_char(PyObject* obj)
1763 {
1764 unsigned char v;
1765 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1766 /*
1767 this is needed to make valgrind/purify happier.
1768 */
1769 memset((void*)&v, 0, sizeof(unsigned char));
1770 }
1771 return v;
1772 }
1773
1774
1775 SWIGINTERNINLINE int
1776 SWIG_Check_unsigned_SS_char(PyObject* obj)
1777 {
1778 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1779 }
1780
1781
1782 SWIGINTERNINLINE unsigned long
1783 SWIG_As_unsigned_SS_long(PyObject* obj)
1784 {
1785 unsigned long v;
1786 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1787 /*
1788 this is needed to make valgrind/purify happier.
1789 */
1790 memset((void*)&v, 0, sizeof(unsigned long));
1791 }
1792 return v;
1793 }
1794
1795
1796 SWIGINTERNINLINE int
1797 SWIG_Check_unsigned_SS_long(PyObject* obj)
1798 {
1799 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
1800 }
1801
1802
1803 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1804 #define SWIG_From_unsigned_SS_char PyInt_FromLong
1805 /*@@*/
1806
1807
1808 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1809 #define SWIG_From_long PyInt_FromLong
1810 /*@@*/
1811
1812 static PyObject *wxColour_Get(wxColour *self){
1813 PyObject* rv = PyTuple_New(3);
1814 int red = -1;
1815 int green = -1;
1816 int blue = -1;
1817 if (self->Ok()) {
1818 red = self->Red();
1819 green = self->Green();
1820 blue = self->Blue();
1821 }
1822 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
1823 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
1824 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
1825 return rv;
1826 }
1827 static unsigned long wxColour_GetRGB(wxColour *self){
1828 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
1829 }
1830
1831 SWIGINTERNINLINE PyObject*
1832 SWIG_From_unsigned_SS_long(unsigned long value)
1833 {
1834 return (value > LONG_MAX) ?
1835 PyLong_FromUnsignedLong(value)
1836 : PyInt_FromLong(static_cast<long >(value));
1837 }
1838
1839
1840 SWIGINTERNINLINE int
1841 SWIG_As_int(PyObject* obj)
1842 {
1843 int v;
1844 if (!SWIG_AsVal_int(obj, &v)) {
1845 /*
1846 this is needed to make valgrind/purify happier.
1847 */
1848 memset((void*)&v, 0, sizeof(int));
1849 }
1850 return v;
1851 }
1852
1853
1854 SWIGINTERNINLINE int
1855 SWIG_Check_int(PyObject* obj)
1856 {
1857 return SWIG_AsVal_int(obj, (int*)0);
1858 }
1859
1860
1861 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
1862 #define SWIG_From_int PyInt_FromLong
1863 /*@@*/
1864
1865
1866 static PyObject* t_output_helper(PyObject* result, PyObject* obj)
1867 {
1868 PyObject* o2;
1869 PyObject* o3;
1870 if (!result) {
1871 result = obj;
1872 } else if (result == Py_None) {
1873 Py_DECREF(result);
1874 result = obj;
1875 } else {
1876 if (!PyTuple_Check(result)) {
1877 o2 = result;
1878 result = PyTuple_New(1);
1879 PyTuple_SET_ITEM(result, 0, o2);
1880 }
1881 o3 = PyTuple_New(1);
1882 PyTuple_SetItem(o3, 0, obj);
1883 o2 = result;
1884 result = PySequence_Concat(o2, o3);
1885 Py_DECREF(o2);
1886 Py_DECREF(o3);
1887 }
1888 return result;
1889 }
1890
1891
1892 static PyObject *wxPen_GetDashes(wxPen *self){
1893 wxDash* dashes;
1894 int count = self->GetDashes(&dashes);
1895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1896 PyObject* retval = PyList_New(0);
1897 for (int x=0; x<count; x++) {
1898 PyObject* pyint = PyInt_FromLong(dashes[x]);
1899 PyList_Append(retval, pyint);
1900 Py_DECREF(pyint);
1901 }
1902 wxPyEndBlockThreads(blocked);
1903 return retval;
1904 }
1905 static void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
1906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
1907 int size = PyList_Size(pyDashes);
1908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
1909
1910 // black magic warning! The array of wxDashes needs to exist as
1911 // long as the pen does because wxPen does not copy the array. So
1912 // stick a copy in a Python string object and attach it to _self,
1913 // and then call SetDashes with a pointer to that array. Then
1914 // when the Python pen object is destroyed the array will be
1915 // cleaned up too.
1916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
1917 PyObject_SetAttrString(_self, "_dashes", strDashes);
1918
1919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
1920 delete [] dashes;
1921 Py_DECREF(strDashes);
1922 wxPyEndBlockThreads(blocked);
1923 }
1924 static bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
1925 static bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
1926
1927 #include <wx/image.h>
1928
1929 static char** ConvertListOfStrings(PyObject* listOfStrings) {
1930 char** cArray = NULL;
1931 int count;
1932
1933 if (!PyList_Check(listOfStrings)) {
1934 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
1935 return NULL;
1936 }
1937 count = PyList_Size(listOfStrings);
1938 cArray = new char*[count];
1939
1940 for(int x=0; x<count; x++) {
1941 // TODO: Need some validation and error checking here
1942 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
1943 }
1944 return cArray;
1945 }
1946
1947
1948 static wxBitmap *new_wxBitmap(PyObject *listOfStrings){
1949 char** cArray = NULL;
1950 wxBitmap* bmp;
1951
1952 cArray = ConvertListOfStrings(listOfStrings);
1953 if (! cArray)
1954 return NULL;
1955 bmp = new wxBitmap(cArray);
1956 delete [] cArray;
1957 return bmp;
1958 }
1959 static wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
1960 char* buf;
1961 int length;
1962 PyString_AsStringAndSize(bits, &buf, &length);
1963 return new wxBitmap(buf, width, height, depth);
1964 }
1965
1966 SWIGINTERNINLINE long
1967 SWIG_As_long(PyObject* obj)
1968 {
1969 long v;
1970 if (!SWIG_AsVal_long(obj, &v)) {
1971 /*
1972 this is needed to make valgrind/purify happier.
1973 */
1974 memset((void*)&v, 0, sizeof(long));
1975 }
1976 return v;
1977 }
1978
1979
1980 SWIGINTERNINLINE int
1981 SWIG_Check_long(PyObject* obj)
1982 {
1983 return SWIG_AsVal_long(obj, (long*)0);
1984 }
1985
1986 static void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
1987 static wxSize wxBitmap_GetSize(wxBitmap *self){
1988 wxSize size(self->GetWidth(), self->GetHeight());
1989 return size;
1990 }
1991 static void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
1992 wxMask *mask = new wxMask(*self, colour);
1993 self->SetMask(mask);
1994 }
1995 static void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
1996 self->SetWidth(size.x);
1997 self->SetHeight(size.y);
1998 }
1999 static bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2000 static bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2001 static wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2002 if ( !colour.Ok() )
2003 return new wxMask(bitmap, *wxBLACK);
2004 else
2005 return new wxMask(bitmap, colour);
2006 }
2007
2008 #include <wx/iconbndl.h>
2009
2010 static wxIcon *new_wxIcon(wxBitmap const &bmp){
2011 wxIcon* icon = new wxIcon();
2012 icon->CopyFromBitmap(bmp);
2013 return icon;
2014 }
2015 static wxIcon *new_wxIcon(PyObject *listOfStrings){
2016 char** cArray = NULL;
2017 wxIcon* icon;
2018
2019 cArray = ConvertListOfStrings(listOfStrings);
2020 if (! cArray)
2021 return NULL;
2022 icon = new wxIcon(cArray);
2023 delete [] cArray;
2024 return icon;
2025 }
2026 static void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2027 static wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2028
2029 return new wxIconLocation(*filename, num);
2030
2031
2032
2033 }
2034 static void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2035
2036 self->SetIndex(num);
2037
2038
2039
2040 }
2041 static int wxIconLocation_GetIndex(wxIconLocation *self){
2042
2043 return self->GetIndex();
2044
2045
2046
2047 }
2048 static wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2049 #ifdef __WXGTK__
2050 wxImage img(cursorName, type);
2051 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2052 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2053 return new wxCursor(img);
2054 #else
2055 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2056 #endif
2057 }
2058 static void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2059
2060
2061 static void wxRegionIterator_Next(wxRegionIterator *self){
2062 (*self) ++;
2063 }
2064 static bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2065 return self->operator bool();
2066 }
2067
2068 #include <wx/fontutil.h>
2069 #include <wx/fontmap.h>
2070 #include <wx/fontenum.h>
2071
2072 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
2073 return self->ToString();
2074 }
2075
2076 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
2077 { wxPyRaiseNotImplemented(); return NULL; }
2078
2079 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
2080 { wxPyRaiseNotImplemented(); return false; }
2081
2082 static PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
2083 wxFontEncoding alt_enc;
2084 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
2085 return PyInt_FromLong(alt_enc);
2086 else {
2087 Py_INCREF(Py_None);
2088 return Py_None;
2089 }
2090 }
2091 static wxFont *new_wxFont(wxString const &info){
2092 wxNativeFontInfo nfi;
2093 nfi.FromString(info);
2094 return new wxFont(nfi);
2095 }
2096 static wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2097 return wxFont::New(pointSize, family, flags, face, encoding);
2098 }
2099 static wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2100 return wxFontBase::New(pixelSize, family,
2101 style, weight, underlined,
2102 face, encoding);
2103 }
2104 static wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
2105 return wxFontBase::New(pixelSize, family, flags, face, encoding);
2106 }
2107 static bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
2108 static bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
2109
2110 class wxPyFontEnumerator : public wxFontEnumerator {
2111 public:
2112 wxPyFontEnumerator() {}
2113 ~wxPyFontEnumerator() {}
2114
2115 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
2116 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
2117
2118 PYPRIVATE;
2119 };
2120
2121 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
2122 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
2123
2124
2125 static PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
2126 wxArrayString* arr = self->GetEncodings();
2127 if (arr)
2128 return wxArrayString2PyList_helper(*arr);
2129 else
2130 return PyList_New(0);
2131 }
2132 static PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
2133 wxArrayString* arr = self->GetFacenames();
2134 if (arr)
2135 return wxArrayString2PyList_helper(*arr);
2136 else
2137 return PyList_New(0);
2138 }
2139
2140 #include <locale.h>
2141
2142 static wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2143 wxLocale* loc;
2144 if (language == -1)
2145 loc = new wxLocale();
2146 else
2147 loc = new wxLocale(language, flags);
2148 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2149 // for the floating point conversions and such to work right.
2150 #if PY_VERSION_HEX < 0x02040000
2151 setlocale(LC_NUMERIC, "C");
2152 #endif
2153 return loc;
2154 }
2155 static bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
2156 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
2157 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2158 // for the floating point conversions and such to work right.
2159 #if PY_VERSION_HEX < 0x02040000
2160 setlocale(LC_NUMERIC, "C");
2161 #endif
2162 return rc;
2163 }
2164 static bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
2165 bool rc = self->Init(language, flags);
2166 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
2167 // for the floating point conversions and such to work right.
2168 #if PY_VERSION_HEX < 0x02040000
2169 setlocale(LC_NUMERIC, "C");
2170 #endif
2171 return rc;
2172 }
2173
2174 #include "wx/wxPython/pydrawxxx.h"
2175
2176 static wxColour wxDC_GetPixel(wxDC *self,int x,int y){
2177 wxColour col;
2178 self->GetPixel(x, y, &col);
2179 return col;
2180 }
2181 static wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
2182 wxColour col;
2183 self->GetPixel(pt, &col);
2184 return col;
2185 }
2186
2187 SWIGINTERN int
2188 SWIG_AsVal_double(PyObject *obj, double* val)
2189 {
2190 if (PyNumber_Check(obj)) {
2191 if (val) *val = PyFloat_AsDouble(obj);
2192 return 1;
2193 }
2194 else {
2195 SWIG_Python_TypeError("number", obj);
2196 }
2197 return 0;
2198 }
2199
2200
2201 SWIGINTERNINLINE double
2202 SWIG_As_double(PyObject* obj)
2203 {
2204 double v;
2205 if (!SWIG_AsVal_double(obj, &v)) {
2206 /*
2207 this is needed to make valgrind/purify happier.
2208 */
2209 memset((void*)&v, 0, sizeof(double));
2210 }
2211 return v;
2212 }
2213
2214
2215 SWIGINTERNINLINE int
2216 SWIG_Check_double(PyObject* obj)
2217 {
2218 return SWIG_AsVal_double(obj, (double*)0);
2219 }
2220
2221 static wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
2222 wxRect rv;
2223 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
2224 return rv;
2225 }
2226
2227 static wxRect wxDC_GetClippingRect(wxDC *self){
2228 wxRect rect;
2229 self->GetClippingBox(rect);
2230 return rect;
2231 }
2232 static wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
2233 wxArrayInt widths;
2234 self->GetPartialTextExtents(text, widths);
2235 return widths;
2236 }
2237
2238 /*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
2239 #define SWIG_From_double PyFloat_FromDouble
2240 /*@@*/
2241
2242
2243 static void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
2244 self->SetLogicalOrigin(point.x, point.y);
2245 }
2246 static void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
2247 self->SetDeviceOrigin(point.x, point.y);
2248 }
2249 static void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
2250 self->CalcBoundingBox(point.x, point.y);
2251 }
2252 static PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2253 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
2254 }
2255 static PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2256 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
2257 }
2258 static PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2259 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
2260 }
2261 static PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2262 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
2263 }
2264 static PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
2265 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
2266 }
2267 static PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
2268 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
2269 }
2270
2271 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
2272 *x1 = dc->MinX();
2273 *y1 = dc->MinY();
2274 *x2 = dc->MaxX();
2275 *y2 = dc->MaxY();
2276 }
2277
2278
2279 #include <wx/dcbuffer.h>
2280
2281
2282 #include <wx/dcps.h>
2283
2284
2285 #include <wx/metafile.h>
2286
2287
2288
2289 static void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
2290 self->AddColour(name, wxColour(red, green, blue));
2291 }
2292
2293 #include <wx/effects.h>
2294
2295
2296 #include "wx/renderer.h"
2297
2298
2299 SWIGINTERNINLINE PyObject*
2300 SWIG_From_bool(bool value)
2301 {
2302 PyObject *obj = value ? Py_True : Py_False;
2303 Py_INCREF(obj);
2304 return obj;
2305 }
2306
2307 #ifdef __cplusplus
2308 extern "C" {
2309 #endif
2310 static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2311 PyObject *resultobj = NULL;
2312 wxGDIObject *result;
2313 char *kwnames[] = {
2314 NULL
2315 };
2316
2317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
2318 {
2319 if (!wxPyCheckForApp()) SWIG_fail;
2320 PyThreadState* __tstate = wxPyBeginAllowThreads();
2321 result = (wxGDIObject *)new wxGDIObject();
2322
2323 wxPyEndAllowThreads(__tstate);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 }
2326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
2327 return resultobj;
2328 fail:
2329 return NULL;
2330 }
2331
2332
2333 static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj = NULL;
2335 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2336 PyObject * obj0 = 0 ;
2337 char *kwnames[] = {
2338 (char *) "self", NULL
2339 };
2340
2341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
2342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2343 if (SWIG_arg_fail(1)) SWIG_fail;
2344 {
2345 PyThreadState* __tstate = wxPyBeginAllowThreads();
2346 delete arg1;
2347
2348 wxPyEndAllowThreads(__tstate);
2349 if (PyErr_Occurred()) SWIG_fail;
2350 }
2351 Py_INCREF(Py_None); resultobj = Py_None;
2352 return resultobj;
2353 fail:
2354 return NULL;
2355 }
2356
2357
2358 static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj = NULL;
2360 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2361 bool result;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
2368 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2369 if (SWIG_arg_fail(1)) SWIG_fail;
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 result = (bool)(arg1)->GetVisible();
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 {
2378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2379 }
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj = NULL;
2388 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2389 bool arg2 ;
2390 PyObject * obj0 = 0 ;
2391 PyObject * obj1 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "self",(char *) "visible", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
2397 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2398 if (SWIG_arg_fail(1)) SWIG_fail;
2399 {
2400 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
2401 if (SWIG_arg_fail(2)) SWIG_fail;
2402 }
2403 {
2404 PyThreadState* __tstate = wxPyBeginAllowThreads();
2405 (arg1)->SetVisible(arg2);
2406
2407 wxPyEndAllowThreads(__tstate);
2408 if (PyErr_Occurred()) SWIG_fail;
2409 }
2410 Py_INCREF(Py_None); resultobj = Py_None;
2411 return resultobj;
2412 fail:
2413 return NULL;
2414 }
2415
2416
2417 static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
2418 PyObject *resultobj = NULL;
2419 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
2420 bool result;
2421 PyObject * obj0 = 0 ;
2422 char *kwnames[] = {
2423 (char *) "self", NULL
2424 };
2425
2426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
2427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGDIObject, SWIG_POINTER_EXCEPTION | 0);
2428 if (SWIG_arg_fail(1)) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 result = (bool)(arg1)->IsNull();
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 {
2437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2438 }
2439 return resultobj;
2440 fail:
2441 return NULL;
2442 }
2443
2444
2445 static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) {
2446 PyObject *obj;
2447 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2448 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
2449 Py_INCREF(obj);
2450 return Py_BuildValue((char *)"");
2451 }
2452 static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2453 PyObject *resultobj = NULL;
2454 byte arg1 = (byte) 0 ;
2455 byte arg2 = (byte) 0 ;
2456 byte arg3 = (byte) 0 ;
2457 wxColour *result;
2458 PyObject * obj0 = 0 ;
2459 PyObject * obj1 = 0 ;
2460 PyObject * obj2 = 0 ;
2461 char *kwnames[] = {
2462 (char *) "red",(char *) "green",(char *) "blue", NULL
2463 };
2464
2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
2466 if (obj0) {
2467 {
2468 arg1 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj0));
2469 if (SWIG_arg_fail(1)) SWIG_fail;
2470 }
2471 }
2472 if (obj1) {
2473 {
2474 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2475 if (SWIG_arg_fail(2)) SWIG_fail;
2476 }
2477 }
2478 if (obj2) {
2479 {
2480 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2481 if (SWIG_arg_fail(3)) SWIG_fail;
2482 }
2483 }
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 result = (wxColour *)new wxColour(arg1,arg2,arg3);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj = NULL;
2500 wxString *arg1 = 0 ;
2501 wxColour *result;
2502 bool temp1 = false ;
2503 PyObject * obj0 = 0 ;
2504 char *kwnames[] = {
2505 (char *) "colorName", NULL
2506 };
2507
2508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
2509 {
2510 arg1 = wxString_in_helper(obj0);
2511 if (arg1 == NULL) SWIG_fail;
2512 temp1 = true;
2513 }
2514 {
2515 if (!wxPyCheckForApp()) SWIG_fail;
2516 PyThreadState* __tstate = wxPyBeginAllowThreads();
2517 result = (wxColour *)new wxColour((wxString const &)*arg1);
2518
2519 wxPyEndAllowThreads(__tstate);
2520 if (PyErr_Occurred()) SWIG_fail;
2521 }
2522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2523 {
2524 if (temp1)
2525 delete arg1;
2526 }
2527 return resultobj;
2528 fail:
2529 {
2530 if (temp1)
2531 delete arg1;
2532 }
2533 return NULL;
2534 }
2535
2536
2537 static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj = NULL;
2539 unsigned long arg1 ;
2540 wxColour *result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "colRGB", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
2547 {
2548 arg1 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj0));
2549 if (SWIG_arg_fail(1)) SWIG_fail;
2550 }
2551 {
2552 PyThreadState* __tstate = wxPyBeginAllowThreads();
2553 result = (wxColour *)new wxColour(arg1);
2554
2555 wxPyEndAllowThreads(__tstate);
2556 if (PyErr_Occurred()) SWIG_fail;
2557 }
2558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
2559 return resultobj;
2560 fail:
2561 return NULL;
2562 }
2563
2564
2565 static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) {
2566 PyObject *resultobj = NULL;
2567 wxColour *arg1 = (wxColour *) 0 ;
2568 PyObject * obj0 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
2574 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2575 if (SWIG_arg_fail(1)) SWIG_fail;
2576 {
2577 PyThreadState* __tstate = wxPyBeginAllowThreads();
2578 delete arg1;
2579
2580 wxPyEndAllowThreads(__tstate);
2581 if (PyErr_Occurred()) SWIG_fail;
2582 }
2583 Py_INCREF(Py_None); resultobj = Py_None;
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj = NULL;
2592 wxColour *arg1 = (wxColour *) 0 ;
2593 byte result;
2594 PyObject * obj0 = 0 ;
2595 char *kwnames[] = {
2596 (char *) "self", NULL
2597 };
2598
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
2600 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2601 if (SWIG_arg_fail(1)) SWIG_fail;
2602 {
2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
2604 result = (byte)(arg1)->Red();
2605
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) SWIG_fail;
2608 }
2609 {
2610 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2611 }
2612 return resultobj;
2613 fail:
2614 return NULL;
2615 }
2616
2617
2618 static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) {
2619 PyObject *resultobj = NULL;
2620 wxColour *arg1 = (wxColour *) 0 ;
2621 byte result;
2622 PyObject * obj0 = 0 ;
2623 char *kwnames[] = {
2624 (char *) "self", NULL
2625 };
2626
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
2628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2629 if (SWIG_arg_fail(1)) SWIG_fail;
2630 {
2631 PyThreadState* __tstate = wxPyBeginAllowThreads();
2632 result = (byte)(arg1)->Green();
2633
2634 wxPyEndAllowThreads(__tstate);
2635 if (PyErr_Occurred()) SWIG_fail;
2636 }
2637 {
2638 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2639 }
2640 return resultobj;
2641 fail:
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj = NULL;
2648 wxColour *arg1 = (wxColour *) 0 ;
2649 byte result;
2650 PyObject * obj0 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "self", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
2656 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2657 if (SWIG_arg_fail(1)) SWIG_fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (byte)(arg1)->Blue();
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 {
2666 resultobj = SWIG_From_unsigned_SS_char(static_cast<unsigned char >(result));
2667 }
2668 return resultobj;
2669 fail:
2670 return NULL;
2671 }
2672
2673
2674 static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj = NULL;
2676 wxColour *arg1 = (wxColour *) 0 ;
2677 bool result;
2678 PyObject * obj0 = 0 ;
2679 char *kwnames[] = {
2680 (char *) "self", NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
2684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2685 if (SWIG_arg_fail(1)) SWIG_fail;
2686 {
2687 PyThreadState* __tstate = wxPyBeginAllowThreads();
2688 result = (bool)(arg1)->Ok();
2689
2690 wxPyEndAllowThreads(__tstate);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 }
2693 {
2694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2695 }
2696 return resultobj;
2697 fail:
2698 return NULL;
2699 }
2700
2701
2702 static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) {
2703 PyObject *resultobj = NULL;
2704 wxColour *arg1 = (wxColour *) 0 ;
2705 byte arg2 ;
2706 byte arg3 ;
2707 byte arg4 ;
2708 PyObject * obj0 = 0 ;
2709 PyObject * obj1 = 0 ;
2710 PyObject * obj2 = 0 ;
2711 PyObject * obj3 = 0 ;
2712 char *kwnames[] = {
2713 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2717 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2718 if (SWIG_arg_fail(1)) SWIG_fail;
2719 {
2720 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
2721 if (SWIG_arg_fail(2)) SWIG_fail;
2722 }
2723 {
2724 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
2725 if (SWIG_arg_fail(3)) SWIG_fail;
2726 }
2727 {
2728 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
2729 if (SWIG_arg_fail(4)) SWIG_fail;
2730 }
2731 {
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 (arg1)->Set(arg2,arg3,arg4);
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 Py_INCREF(Py_None); resultobj = Py_None;
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj = NULL;
2747 wxColour *arg1 = (wxColour *) 0 ;
2748 unsigned long arg2 ;
2749 PyObject * obj0 = 0 ;
2750 PyObject * obj1 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "self",(char *) "colRGB", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
2756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2757 if (SWIG_arg_fail(1)) SWIG_fail;
2758 {
2759 arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1));
2760 if (SWIG_arg_fail(2)) SWIG_fail;
2761 }
2762 {
2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
2764 (arg1)->Set(arg2);
2765
2766 wxPyEndAllowThreads(__tstate);
2767 if (PyErr_Occurred()) SWIG_fail;
2768 }
2769 Py_INCREF(Py_None); resultobj = Py_None;
2770 return resultobj;
2771 fail:
2772 return NULL;
2773 }
2774
2775
2776 static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj = NULL;
2778 wxColour *arg1 = (wxColour *) 0 ;
2779 wxString *arg2 = 0 ;
2780 bool temp2 = false ;
2781 PyObject * obj0 = 0 ;
2782 PyObject * obj1 = 0 ;
2783 char *kwnames[] = {
2784 (char *) "self",(char *) "colourName", NULL
2785 };
2786
2787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
2788 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2789 if (SWIG_arg_fail(1)) SWIG_fail;
2790 {
2791 arg2 = wxString_in_helper(obj1);
2792 if (arg2 == NULL) SWIG_fail;
2793 temp2 = true;
2794 }
2795 {
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 (arg1)->InitFromName((wxString const &)*arg2);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) SWIG_fail;
2801 }
2802 Py_INCREF(Py_None); resultobj = Py_None;
2803 {
2804 if (temp2)
2805 delete arg2;
2806 }
2807 return resultobj;
2808 fail:
2809 {
2810 if (temp2)
2811 delete arg2;
2812 }
2813 return NULL;
2814 }
2815
2816
2817 static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
2818 PyObject *resultobj = NULL;
2819 wxColour *arg1 = (wxColour *) 0 ;
2820 long result;
2821 PyObject * obj0 = 0 ;
2822 char *kwnames[] = {
2823 (char *) "self", NULL
2824 };
2825
2826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
2827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2828 if (SWIG_arg_fail(1)) SWIG_fail;
2829 {
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
2831 result = (long)((wxColour const *)arg1)->GetPixel();
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) SWIG_fail;
2835 }
2836 {
2837 resultobj = SWIG_From_long(static_cast<long >(result));
2838 }
2839 return resultobj;
2840 fail:
2841 return NULL;
2842 }
2843
2844
2845 static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
2846 PyObject *resultobj = NULL;
2847 wxColour *arg1 = (wxColour *) 0 ;
2848 wxColour *arg2 = 0 ;
2849 bool result;
2850 wxColour temp2 ;
2851 PyObject * obj0 = 0 ;
2852 PyObject * obj1 = 0 ;
2853 char *kwnames[] = {
2854 (char *) "self",(char *) "colour", NULL
2855 };
2856
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
2858 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2859 if (SWIG_arg_fail(1)) SWIG_fail;
2860 {
2861 arg2 = &temp2;
2862 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 {
2872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2873 }
2874 return resultobj;
2875 fail:
2876 return NULL;
2877 }
2878
2879
2880 static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
2881 PyObject *resultobj = NULL;
2882 wxColour *arg1 = (wxColour *) 0 ;
2883 wxColour *arg2 = 0 ;
2884 bool result;
2885 wxColour temp2 ;
2886 PyObject * obj0 = 0 ;
2887 PyObject * obj1 = 0 ;
2888 char *kwnames[] = {
2889 (char *) "self",(char *) "colour", NULL
2890 };
2891
2892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
2893 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2894 if (SWIG_arg_fail(1)) SWIG_fail;
2895 {
2896 arg2 = &temp2;
2897 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2898 }
2899 {
2900 PyThreadState* __tstate = wxPyBeginAllowThreads();
2901 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
2902
2903 wxPyEndAllowThreads(__tstate);
2904 if (PyErr_Occurred()) SWIG_fail;
2905 }
2906 {
2907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2908 }
2909 return resultobj;
2910 fail:
2911 return NULL;
2912 }
2913
2914
2915 static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) {
2916 PyObject *resultobj = NULL;
2917 wxColour *arg1 = (wxColour *) 0 ;
2918 PyObject *result;
2919 PyObject * obj0 = 0 ;
2920 char *kwnames[] = {
2921 (char *) "self", NULL
2922 };
2923
2924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
2925 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2926 if (SWIG_arg_fail(1)) SWIG_fail;
2927 {
2928 PyThreadState* __tstate = wxPyBeginAllowThreads();
2929 result = (PyObject *)wxColour_Get(arg1);
2930
2931 wxPyEndAllowThreads(__tstate);
2932 if (PyErr_Occurred()) SWIG_fail;
2933 }
2934 resultobj = result;
2935 return resultobj;
2936 fail:
2937 return NULL;
2938 }
2939
2940
2941 static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
2942 PyObject *resultobj = NULL;
2943 wxColour *arg1 = (wxColour *) 0 ;
2944 unsigned long result;
2945 PyObject * obj0 = 0 ;
2946 char *kwnames[] = {
2947 (char *) "self", NULL
2948 };
2949
2950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
2951 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColour, SWIG_POINTER_EXCEPTION | 0);
2952 if (SWIG_arg_fail(1)) SWIG_fail;
2953 {
2954 PyThreadState* __tstate = wxPyBeginAllowThreads();
2955 result = (unsigned long)wxColour_GetRGB(arg1);
2956
2957 wxPyEndAllowThreads(__tstate);
2958 if (PyErr_Occurred()) SWIG_fail;
2959 }
2960 {
2961 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
2962 }
2963 return resultobj;
2964 fail:
2965 return NULL;
2966 }
2967
2968
2969 static PyObject * Colour_swigregister(PyObject *, PyObject *args) {
2970 PyObject *obj;
2971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2972 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
2973 Py_INCREF(obj);
2974 return Py_BuildValue((char *)"");
2975 }
2976 static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
2977 PyObject *resultobj = NULL;
2978 int arg1 ;
2979 unsigned char *arg2 = (unsigned char *) 0 ;
2980 unsigned char *arg3 = (unsigned char *) 0 ;
2981 unsigned char *arg4 = (unsigned char *) 0 ;
2982 wxPalette *result;
2983 PyObject * obj0 = 0 ;
2984 PyObject * obj1 = 0 ;
2985 PyObject * obj2 = 0 ;
2986 PyObject * obj3 = 0 ;
2987 char *kwnames[] = {
2988 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
2989 };
2990
2991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2992 {
2993 arg1 = static_cast<int >(SWIG_As_int(obj0));
2994 if (SWIG_arg_fail(1)) SWIG_fail;
2995 }
2996 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2997 if (SWIG_arg_fail(2)) SWIG_fail;
2998 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
2999 if (SWIG_arg_fail(3)) SWIG_fail;
3000 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_unsigned_char, SWIG_POINTER_EXCEPTION | 0);
3001 if (SWIG_arg_fail(4)) SWIG_fail;
3002 {
3003 if (!wxPyCheckForApp()) SWIG_fail;
3004 PyThreadState* __tstate = wxPyBeginAllowThreads();
3005 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3006
3007 wxPyEndAllowThreads(__tstate);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
3011 return resultobj;
3012 fail:
3013 return NULL;
3014 }
3015
3016
3017 static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) {
3018 PyObject *resultobj = NULL;
3019 wxPalette *arg1 = (wxPalette *) 0 ;
3020 PyObject * obj0 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
3026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3027 if (SWIG_arg_fail(1)) SWIG_fail;
3028 {
3029 PyThreadState* __tstate = wxPyBeginAllowThreads();
3030 delete arg1;
3031
3032 wxPyEndAllowThreads(__tstate);
3033 if (PyErr_Occurred()) SWIG_fail;
3034 }
3035 Py_INCREF(Py_None); resultobj = Py_None;
3036 return resultobj;
3037 fail:
3038 return NULL;
3039 }
3040
3041
3042 static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
3043 PyObject *resultobj = NULL;
3044 wxPalette *arg1 = (wxPalette *) 0 ;
3045 byte arg2 ;
3046 byte arg3 ;
3047 byte arg4 ;
3048 int result;
3049 PyObject * obj0 = 0 ;
3050 PyObject * obj1 = 0 ;
3051 PyObject * obj2 = 0 ;
3052 PyObject * obj3 = 0 ;
3053 char *kwnames[] = {
3054 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3055 };
3056
3057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3058 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3059 if (SWIG_arg_fail(1)) SWIG_fail;
3060 {
3061 arg2 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj1));
3062 if (SWIG_arg_fail(2)) SWIG_fail;
3063 }
3064 {
3065 arg3 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj2));
3066 if (SWIG_arg_fail(3)) SWIG_fail;
3067 }
3068 {
3069 arg4 = static_cast<byte >(SWIG_As_unsigned_SS_char(obj3));
3070 if (SWIG_arg_fail(4)) SWIG_fail;
3071 }
3072 {
3073 PyThreadState* __tstate = wxPyBeginAllowThreads();
3074 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
3075
3076 wxPyEndAllowThreads(__tstate);
3077 if (PyErr_Occurred()) SWIG_fail;
3078 }
3079 {
3080 resultobj = SWIG_From_int(static_cast<int >(result));
3081 }
3082 return resultobj;
3083 fail:
3084 return NULL;
3085 }
3086
3087
3088 static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
3089 PyObject *resultobj = NULL;
3090 wxPalette *arg1 = (wxPalette *) 0 ;
3091 int arg2 ;
3092 byte *arg3 = (byte *) 0 ;
3093 byte *arg4 = (byte *) 0 ;
3094 byte *arg5 = (byte *) 0 ;
3095 bool result;
3096 byte temp3 ;
3097 int res3 = 0 ;
3098 byte temp4 ;
3099 int res4 = 0 ;
3100 byte temp5 ;
3101 int res5 = 0 ;
3102 PyObject * obj0 = 0 ;
3103 PyObject * obj1 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "self",(char *) "pixel", NULL
3106 };
3107
3108 arg3 = &temp3; res3 = SWIG_NEWOBJ;
3109 arg4 = &temp4; res4 = SWIG_NEWOBJ;
3110 arg5 = &temp5; res5 = SWIG_NEWOBJ;
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
3112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3113 if (SWIG_arg_fail(1)) SWIG_fail;
3114 {
3115 arg2 = static_cast<int >(SWIG_As_int(obj1));
3116 if (SWIG_arg_fail(2)) SWIG_fail;
3117 }
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
3121
3122 wxPyEndAllowThreads(__tstate);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
3125 {
3126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3127 }
3128 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
3129 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
3130 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
3131 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
3132 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
3133 SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, 0)));
3134 return resultobj;
3135 fail:
3136 return NULL;
3137 }
3138
3139
3140 static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) {
3141 PyObject *resultobj = NULL;
3142 wxPalette *arg1 = (wxPalette *) 0 ;
3143 int result;
3144 PyObject * obj0 = 0 ;
3145 char *kwnames[] = {
3146 (char *) "self", NULL
3147 };
3148
3149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail;
3150 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3151 if (SWIG_arg_fail(1)) SWIG_fail;
3152 {
3153 PyThreadState* __tstate = wxPyBeginAllowThreads();
3154 result = (int)((wxPalette const *)arg1)->GetColoursCount();
3155
3156 wxPyEndAllowThreads(__tstate);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 }
3159 {
3160 resultobj = SWIG_From_int(static_cast<int >(result));
3161 }
3162 return resultobj;
3163 fail:
3164 return NULL;
3165 }
3166
3167
3168 static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3169 PyObject *resultobj = NULL;
3170 wxPalette *arg1 = (wxPalette *) 0 ;
3171 bool result;
3172 PyObject * obj0 = 0 ;
3173 char *kwnames[] = {
3174 (char *) "self", NULL
3175 };
3176
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
3178 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
3179 if (SWIG_arg_fail(1)) SWIG_fail;
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
3182 result = (bool)(arg1)->Ok();
3183
3184 wxPyEndAllowThreads(__tstate);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 {
3188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3189 }
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject * Palette_swigregister(PyObject *, PyObject *args) {
3197 PyObject *obj;
3198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3199 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
3200 Py_INCREF(obj);
3201 return Py_BuildValue((char *)"");
3202 }
3203 static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3204 PyObject *resultobj = NULL;
3205 wxColour *arg1 = 0 ;
3206 int arg2 = (int) 1 ;
3207 int arg3 = (int) wxSOLID ;
3208 wxPen *result;
3209 wxColour temp1 ;
3210 PyObject * obj0 = 0 ;
3211 PyObject * obj1 = 0 ;
3212 PyObject * obj2 = 0 ;
3213 char *kwnames[] = {
3214 (char *) "colour",(char *) "width",(char *) "style", NULL
3215 };
3216
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
3218 {
3219 arg1 = &temp1;
3220 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3221 }
3222 if (obj1) {
3223 {
3224 arg2 = static_cast<int >(SWIG_As_int(obj1));
3225 if (SWIG_arg_fail(2)) SWIG_fail;
3226 }
3227 }
3228 if (obj2) {
3229 {
3230 arg3 = static_cast<int >(SWIG_As_int(obj2));
3231 if (SWIG_arg_fail(3)) SWIG_fail;
3232 }
3233 }
3234 {
3235 if (!wxPyCheckForApp()) SWIG_fail;
3236 PyThreadState* __tstate = wxPyBeginAllowThreads();
3237 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
3238
3239 wxPyEndAllowThreads(__tstate);
3240 if (PyErr_Occurred()) SWIG_fail;
3241 }
3242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
3243 return resultobj;
3244 fail:
3245 return NULL;
3246 }
3247
3248
3249 static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) {
3250 PyObject *resultobj = NULL;
3251 wxPen *arg1 = (wxPen *) 0 ;
3252 PyObject * obj0 = 0 ;
3253 char *kwnames[] = {
3254 (char *) "self", NULL
3255 };
3256
3257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
3258 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3259 if (SWIG_arg_fail(1)) SWIG_fail;
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 delete arg1;
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) SWIG_fail;
3266 }
3267 Py_INCREF(Py_None); resultobj = Py_None;
3268 return resultobj;
3269 fail:
3270 return NULL;
3271 }
3272
3273
3274 static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3275 PyObject *resultobj = NULL;
3276 wxPen *arg1 = (wxPen *) 0 ;
3277 int result;
3278 PyObject * obj0 = 0 ;
3279 char *kwnames[] = {
3280 (char *) "self", NULL
3281 };
3282
3283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
3284 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3285 if (SWIG_arg_fail(1)) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (int)(arg1)->GetCap();
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 {
3294 resultobj = SWIG_From_int(static_cast<int >(result));
3295 }
3296 return resultobj;
3297 fail:
3298 return NULL;
3299 }
3300
3301
3302 static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj = NULL;
3304 wxPen *arg1 = (wxPen *) 0 ;
3305 wxColour result;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
3312 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3313 if (SWIG_arg_fail(1)) SWIG_fail;
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 result = (arg1)->GetColour();
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 {
3322 wxColour * resultptr;
3323 resultptr = new wxColour(static_cast<wxColour & >(result));
3324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
3325 }
3326 return resultobj;
3327 fail:
3328 return NULL;
3329 }
3330
3331
3332 static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3333 PyObject *resultobj = NULL;
3334 wxPen *arg1 = (wxPen *) 0 ;
3335 int result;
3336 PyObject * obj0 = 0 ;
3337 char *kwnames[] = {
3338 (char *) "self", NULL
3339 };
3340
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
3342 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3343 if (SWIG_arg_fail(1)) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 result = (int)(arg1)->GetJoin();
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 {
3352 resultobj = SWIG_From_int(static_cast<int >(result));
3353 }
3354 return resultobj;
3355 fail:
3356 return NULL;
3357 }
3358
3359
3360 static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3361 PyObject *resultobj = NULL;
3362 wxPen *arg1 = (wxPen *) 0 ;
3363 int result;
3364 PyObject * obj0 = 0 ;
3365 char *kwnames[] = {
3366 (char *) "self", NULL
3367 };
3368
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
3370 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3371 if (SWIG_arg_fail(1)) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (int)(arg1)->GetStyle();
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 {
3380 resultobj = SWIG_From_int(static_cast<int >(result));
3381 }
3382 return resultobj;
3383 fail:
3384 return NULL;
3385 }
3386
3387
3388 static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3389 PyObject *resultobj = NULL;
3390 wxPen *arg1 = (wxPen *) 0 ;
3391 int result;
3392 PyObject * obj0 = 0 ;
3393 char *kwnames[] = {
3394 (char *) "self", NULL
3395 };
3396
3397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
3398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3399 if (SWIG_arg_fail(1)) SWIG_fail;
3400 {
3401 PyThreadState* __tstate = wxPyBeginAllowThreads();
3402 result = (int)(arg1)->GetWidth();
3403
3404 wxPyEndAllowThreads(__tstate);
3405 if (PyErr_Occurred()) SWIG_fail;
3406 }
3407 {
3408 resultobj = SWIG_From_int(static_cast<int >(result));
3409 }
3410 return resultobj;
3411 fail:
3412 return NULL;
3413 }
3414
3415
3416 static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
3417 PyObject *resultobj = NULL;
3418 wxPen *arg1 = (wxPen *) 0 ;
3419 bool result;
3420 PyObject * obj0 = 0 ;
3421 char *kwnames[] = {
3422 (char *) "self", NULL
3423 };
3424
3425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
3426 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3427 if (SWIG_arg_fail(1)) SWIG_fail;
3428 {
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 result = (bool)(arg1)->Ok();
3431
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 {
3436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3437 }
3438 return resultobj;
3439 fail:
3440 return NULL;
3441 }
3442
3443
3444 static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) {
3445 PyObject *resultobj = NULL;
3446 wxPen *arg1 = (wxPen *) 0 ;
3447 int arg2 ;
3448 PyObject * obj0 = 0 ;
3449 PyObject * obj1 = 0 ;
3450 char *kwnames[] = {
3451 (char *) "self",(char *) "cap_style", NULL
3452 };
3453
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
3455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3456 if (SWIG_arg_fail(1)) SWIG_fail;
3457 {
3458 arg2 = static_cast<int >(SWIG_As_int(obj1));
3459 if (SWIG_arg_fail(2)) SWIG_fail;
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 (arg1)->SetCap(arg2);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 Py_INCREF(Py_None); resultobj = Py_None;
3469 return resultobj;
3470 fail:
3471 return NULL;
3472 }
3473
3474
3475 static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3476 PyObject *resultobj = NULL;
3477 wxPen *arg1 = (wxPen *) 0 ;
3478 wxColour *arg2 = 0 ;
3479 wxColour temp2 ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 char *kwnames[] = {
3483 (char *) "self",(char *) "colour", NULL
3484 };
3485
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
3487 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3488 if (SWIG_arg_fail(1)) SWIG_fail;
3489 {
3490 arg2 = &temp2;
3491 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3492 }
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 (arg1)->SetColour(*arg2);
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 Py_INCREF(Py_None); resultobj = Py_None;
3501 return resultobj;
3502 fail:
3503 return NULL;
3504 }
3505
3506
3507 static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) {
3508 PyObject *resultobj = NULL;
3509 wxPen *arg1 = (wxPen *) 0 ;
3510 int arg2 ;
3511 PyObject * obj0 = 0 ;
3512 PyObject * obj1 = 0 ;
3513 char *kwnames[] = {
3514 (char *) "self",(char *) "join_style", NULL
3515 };
3516
3517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
3518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3519 if (SWIG_arg_fail(1)) SWIG_fail;
3520 {
3521 arg2 = static_cast<int >(SWIG_As_int(obj1));
3522 if (SWIG_arg_fail(2)) SWIG_fail;
3523 }
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 (arg1)->SetJoin(arg2);
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 Py_INCREF(Py_None); resultobj = Py_None;
3532 return resultobj;
3533 fail:
3534 return NULL;
3535 }
3536
3537
3538 static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj = NULL;
3540 wxPen *arg1 = (wxPen *) 0 ;
3541 int arg2 ;
3542 PyObject * obj0 = 0 ;
3543 PyObject * obj1 = 0 ;
3544 char *kwnames[] = {
3545 (char *) "self",(char *) "style", NULL
3546 };
3547
3548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3549 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3550 if (SWIG_arg_fail(1)) SWIG_fail;
3551 {
3552 arg2 = static_cast<int >(SWIG_As_int(obj1));
3553 if (SWIG_arg_fail(2)) SWIG_fail;
3554 }
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 (arg1)->SetStyle(arg2);
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 Py_INCREF(Py_None); resultobj = Py_None;
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj = NULL;
3571 wxPen *arg1 = (wxPen *) 0 ;
3572 int arg2 ;
3573 PyObject * obj0 = 0 ;
3574 PyObject * obj1 = 0 ;
3575 char *kwnames[] = {
3576 (char *) "self",(char *) "width", NULL
3577 };
3578
3579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3581 if (SWIG_arg_fail(1)) SWIG_fail;
3582 {
3583 arg2 = static_cast<int >(SWIG_As_int(obj1));
3584 if (SWIG_arg_fail(2)) SWIG_fail;
3585 }
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 (arg1)->SetWidth(arg2);
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 Py_INCREF(Py_None); resultobj = Py_None;
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj = NULL;
3602 wxPen *arg1 = (wxPen *) 0 ;
3603 int arg2 ;
3604 wxDash *arg3 = (wxDash *) 0 ;
3605 PyObject * obj0 = 0 ;
3606 PyObject * obj1 = 0 ;
3607 char *kwnames[] = {
3608 (char *) "self",(char *) "dashes", NULL
3609 };
3610
3611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
3612 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3613 if (SWIG_arg_fail(1)) SWIG_fail;
3614 {
3615 arg2 = PyList_Size(obj1);
3616 arg3 = (wxDash*)byte_LIST_helper(obj1);
3617 if (arg3 == NULL) SWIG_fail;
3618 }
3619 {
3620 PyThreadState* __tstate = wxPyBeginAllowThreads();
3621 (arg1)->SetDashes(arg2,arg3);
3622
3623 wxPyEndAllowThreads(__tstate);
3624 if (PyErr_Occurred()) SWIG_fail;
3625 }
3626 Py_INCREF(Py_None); resultobj = Py_None;
3627 {
3628 if (arg3) delete [] arg3;
3629 }
3630 return resultobj;
3631 fail:
3632 {
3633 if (arg3) delete [] arg3;
3634 }
3635 return NULL;
3636 }
3637
3638
3639 static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3640 PyObject *resultobj = NULL;
3641 wxPen *arg1 = (wxPen *) 0 ;
3642 PyObject *result;
3643 PyObject * obj0 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "self", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
3649 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3650 if (SWIG_arg_fail(1)) SWIG_fail;
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (PyObject *)wxPen_GetDashes(arg1);
3654
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 resultobj = result;
3659 return resultobj;
3660 fail:
3661 return NULL;
3662 }
3663
3664
3665 static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) {
3666 PyObject *resultobj = NULL;
3667 wxPen *arg1 = (wxPen *) 0 ;
3668 PyObject *arg2 = (PyObject *) 0 ;
3669 PyObject *arg3 = (PyObject *) 0 ;
3670 PyObject * obj0 = 0 ;
3671 PyObject * obj1 = 0 ;
3672 PyObject * obj2 = 0 ;
3673 char *kwnames[] = {
3674 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
3675 };
3676
3677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
3678 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3679 if (SWIG_arg_fail(1)) SWIG_fail;
3680 arg2 = obj1;
3681 arg3 = obj2;
3682 {
3683 PyThreadState* __tstate = wxPyBeginAllowThreads();
3684 wxPen__SetDashes(arg1,arg2,arg3);
3685
3686 wxPyEndAllowThreads(__tstate);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 Py_INCREF(Py_None); resultobj = Py_None;
3690 return resultobj;
3691 fail:
3692 return NULL;
3693 }
3694
3695
3696 static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) {
3697 PyObject *resultobj = NULL;
3698 wxPen *arg1 = (wxPen *) 0 ;
3699 int result;
3700 PyObject * obj0 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
3706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3707 if (SWIG_arg_fail(1)) SWIG_fail;
3708 {
3709 PyThreadState* __tstate = wxPyBeginAllowThreads();
3710 result = (int)((wxPen const *)arg1)->GetDashCount();
3711
3712 wxPyEndAllowThreads(__tstate);
3713 if (PyErr_Occurred()) SWIG_fail;
3714 }
3715 {
3716 resultobj = SWIG_From_int(static_cast<int >(result));
3717 }
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_Pen_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj = NULL;
3726 wxPen *arg1 = (wxPen *) 0 ;
3727 wxBitmap *result;
3728 PyObject * obj0 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "self", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
3734 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3735 if (SWIG_arg_fail(1)) SWIG_fail;
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 result = (wxBitmap *)(arg1)->GetStipple();
3739
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
3744 return resultobj;
3745 fail:
3746 return NULL;
3747 }
3748
3749
3750 static PyObject *_wrap_Pen_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
3751 PyObject *resultobj = NULL;
3752 wxPen *arg1 = (wxPen *) 0 ;
3753 wxBitmap *arg2 = 0 ;
3754 PyObject * obj0 = 0 ;
3755 PyObject * obj1 = 0 ;
3756 char *kwnames[] = {
3757 (char *) "self",(char *) "stipple", NULL
3758 };
3759
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
3761 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3762 if (SWIG_arg_fail(1)) SWIG_fail;
3763 {
3764 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3765 if (SWIG_arg_fail(2)) SWIG_fail;
3766 if (arg2 == NULL) {
3767 SWIG_null_ref("wxBitmap");
3768 }
3769 if (SWIG_arg_fail(2)) SWIG_fail;
3770 }
3771 {
3772 PyThreadState* __tstate = wxPyBeginAllowThreads();
3773 (arg1)->SetStipple(*arg2);
3774
3775 wxPyEndAllowThreads(__tstate);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 Py_INCREF(Py_None); resultobj = Py_None;
3779 return resultobj;
3780 fail:
3781 return NULL;
3782 }
3783
3784
3785 static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
3786 PyObject *resultobj = NULL;
3787 wxPen *arg1 = (wxPen *) 0 ;
3788 wxPen *arg2 = (wxPen *) 0 ;
3789 bool result;
3790 PyObject * obj0 = 0 ;
3791 PyObject * obj1 = 0 ;
3792 char *kwnames[] = {
3793 (char *) "self",(char *) "other", NULL
3794 };
3795
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
3797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3798 if (SWIG_arg_fail(1)) SWIG_fail;
3799 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3800 if (SWIG_arg_fail(2)) SWIG_fail;
3801 {
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
3804
3805 wxPyEndAllowThreads(__tstate);
3806 if (PyErr_Occurred()) SWIG_fail;
3807 }
3808 {
3809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3810 }
3811 return resultobj;
3812 fail:
3813 return NULL;
3814 }
3815
3816
3817 static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
3818 PyObject *resultobj = NULL;
3819 wxPen *arg1 = (wxPen *) 0 ;
3820 wxPen *arg2 = (wxPen *) 0 ;
3821 bool result;
3822 PyObject * obj0 = 0 ;
3823 PyObject * obj1 = 0 ;
3824 char *kwnames[] = {
3825 (char *) "self",(char *) "other", NULL
3826 };
3827
3828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
3829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3830 if (SWIG_arg_fail(1)) SWIG_fail;
3831 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
3832 if (SWIG_arg_fail(2)) SWIG_fail;
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
3835 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
3836
3837 wxPyEndAllowThreads(__tstate);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 {
3841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3842 }
3843 return resultobj;
3844 fail:
3845 return NULL;
3846 }
3847
3848
3849 static PyObject * Pen_swigregister(PyObject *, PyObject *args) {
3850 PyObject *obj;
3851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3852 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
3853 Py_INCREF(obj);
3854 return Py_BuildValue((char *)"");
3855 }
3856 static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3857 PyObject *resultobj = NULL;
3858 wxColour *arg1 = 0 ;
3859 int arg2 = (int) wxSOLID ;
3860 wxBrush *result;
3861 wxColour temp1 ;
3862 PyObject * obj0 = 0 ;
3863 PyObject * obj1 = 0 ;
3864 char *kwnames[] = {
3865 (char *) "colour",(char *) "style", NULL
3866 };
3867
3868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
3869 {
3870 arg1 = &temp1;
3871 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
3872 }
3873 if (obj1) {
3874 {
3875 arg2 = static_cast<int >(SWIG_As_int(obj1));
3876 if (SWIG_arg_fail(2)) SWIG_fail;
3877 }
3878 }
3879 {
3880 if (!wxPyCheckForApp()) SWIG_fail;
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_new_BrushFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj = NULL;
3896 wxBitmap *arg1 = 0 ;
3897 wxBrush *result;
3898 PyObject * obj0 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "stippleBitmap", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) goto fail;
3904 {
3905 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
3906 if (SWIG_arg_fail(1)) SWIG_fail;
3907 if (arg1 == NULL) {
3908 SWIG_null_ref("wxBitmap");
3909 }
3910 if (SWIG_arg_fail(1)) SWIG_fail;
3911 }
3912 {
3913 if (!wxPyCheckForApp()) SWIG_fail;
3914 PyThreadState* __tstate = wxPyBeginAllowThreads();
3915 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
3916
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) {
3928 PyObject *resultobj = NULL;
3929 wxBrush *arg1 = (wxBrush *) 0 ;
3930 PyObject * obj0 = 0 ;
3931 char *kwnames[] = {
3932 (char *) "self", NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
3936 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3937 if (SWIG_arg_fail(1)) SWIG_fail;
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 delete arg1;
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 Py_INCREF(Py_None); resultobj = Py_None;
3946 return resultobj;
3947 fail:
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj = NULL;
3954 wxBrush *arg1 = (wxBrush *) 0 ;
3955 wxColour *arg2 = 0 ;
3956 wxColour temp2 ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959 char *kwnames[] = {
3960 (char *) "self",(char *) "col", NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
3964 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3965 if (SWIG_arg_fail(1)) SWIG_fail;
3966 {
3967 arg2 = &temp2;
3968 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 (arg1)->SetColour((wxColour const &)*arg2);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 Py_INCREF(Py_None); resultobj = Py_None;
3978 return resultobj;
3979 fail:
3980 return NULL;
3981 }
3982
3983
3984 static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
3985 PyObject *resultobj = NULL;
3986 wxBrush *arg1 = (wxBrush *) 0 ;
3987 int arg2 ;
3988 PyObject * obj0 = 0 ;
3989 PyObject * obj1 = 0 ;
3990 char *kwnames[] = {
3991 (char *) "self",(char *) "style", NULL
3992 };
3993
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
3995 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
3996 if (SWIG_arg_fail(1)) SWIG_fail;
3997 {
3998 arg2 = static_cast<int >(SWIG_As_int(obj1));
3999 if (SWIG_arg_fail(2)) SWIG_fail;
4000 }
4001 {
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 (arg1)->SetStyle(arg2);
4004
4005 wxPyEndAllowThreads(__tstate);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 Py_INCREF(Py_None); resultobj = Py_None;
4009 return resultobj;
4010 fail:
4011 return NULL;
4012 }
4013
4014
4015 static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4016 PyObject *resultobj = NULL;
4017 wxBrush *arg1 = (wxBrush *) 0 ;
4018 wxBitmap *arg2 = 0 ;
4019 PyObject * obj0 = 0 ;
4020 PyObject * obj1 = 0 ;
4021 char *kwnames[] = {
4022 (char *) "self",(char *) "stipple", NULL
4023 };
4024
4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
4026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4027 if (SWIG_arg_fail(1)) SWIG_fail;
4028 {
4029 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4030 if (SWIG_arg_fail(2)) SWIG_fail;
4031 if (arg2 == NULL) {
4032 SWIG_null_ref("wxBitmap");
4033 }
4034 if (SWIG_arg_fail(2)) SWIG_fail;
4035 }
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 (arg1)->SetStipple((wxBitmap const &)*arg2);
4039
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 Py_INCREF(Py_None); resultobj = Py_None;
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj = NULL;
4052 wxBrush *arg1 = (wxBrush *) 0 ;
4053 wxColour result;
4054 PyObject * obj0 = 0 ;
4055 char *kwnames[] = {
4056 (char *) "self", NULL
4057 };
4058
4059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
4060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4061 if (SWIG_arg_fail(1)) SWIG_fail;
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 result = ((wxBrush const *)arg1)->GetColour();
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 {
4070 wxColour * resultptr;
4071 resultptr = new wxColour(static_cast<wxColour & >(result));
4072 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
4073 }
4074 return resultobj;
4075 fail:
4076 return NULL;
4077 }
4078
4079
4080 static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
4081 PyObject *resultobj = NULL;
4082 wxBrush *arg1 = (wxBrush *) 0 ;
4083 int result;
4084 PyObject * obj0 = 0 ;
4085 char *kwnames[] = {
4086 (char *) "self", NULL
4087 };
4088
4089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
4090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4091 if (SWIG_arg_fail(1)) SWIG_fail;
4092 {
4093 PyThreadState* __tstate = wxPyBeginAllowThreads();
4094 result = (int)((wxBrush const *)arg1)->GetStyle();
4095
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 {
4100 resultobj = SWIG_From_int(static_cast<int >(result));
4101 }
4102 return resultobj;
4103 fail:
4104 return NULL;
4105 }
4106
4107
4108 static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj = NULL;
4110 wxBrush *arg1 = (wxBrush *) 0 ;
4111 wxBitmap *result;
4112 PyObject * obj0 = 0 ;
4113 char *kwnames[] = {
4114 (char *) "self", NULL
4115 };
4116
4117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
4118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4119 if (SWIG_arg_fail(1)) SWIG_fail;
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
4123
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
4128 return resultobj;
4129 fail:
4130 return NULL;
4131 }
4132
4133
4134 static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) {
4135 PyObject *resultobj = NULL;
4136 wxBrush *arg1 = (wxBrush *) 0 ;
4137 bool result;
4138 PyObject * obj0 = 0 ;
4139 char *kwnames[] = {
4140 (char *) "self", NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail;
4144 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4145 if (SWIG_arg_fail(1)) SWIG_fail;
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (bool)((wxBrush const *)arg1)->IsHatch();
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
4154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4155 }
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj = NULL;
4164 wxBrush *arg1 = (wxBrush *) 0 ;
4165 bool result;
4166 PyObject * obj0 = 0 ;
4167 char *kwnames[] = {
4168 (char *) "self", NULL
4169 };
4170
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
4172 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
4173 if (SWIG_arg_fail(1)) SWIG_fail;
4174 {
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 result = (bool)(arg1)->Ok();
4177
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
4181 {
4182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4183 }
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 static PyObject * Brush_swigregister(PyObject *, PyObject *args) {
4191 PyObject *obj;
4192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4193 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
4194 Py_INCREF(obj);
4195 return Py_BuildValue((char *)"");
4196 }
4197 static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4198 PyObject *resultobj = NULL;
4199 wxString *arg1 = 0 ;
4200 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
4201 wxBitmap *result;
4202 bool temp1 = false ;
4203 PyObject * obj0 = 0 ;
4204 PyObject * obj1 = 0 ;
4205 char *kwnames[] = {
4206 (char *) "name",(char *) "type", NULL
4207 };
4208
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
4210 {
4211 arg1 = wxString_in_helper(obj0);
4212 if (arg1 == NULL) SWIG_fail;
4213 temp1 = true;
4214 }
4215 if (obj1) {
4216 {
4217 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
4218 if (SWIG_arg_fail(2)) SWIG_fail;
4219 }
4220 }
4221 {
4222 if (!wxPyCheckForApp()) SWIG_fail;
4223 PyThreadState* __tstate = wxPyBeginAllowThreads();
4224 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
4225
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4230 {
4231 if (temp1)
4232 delete arg1;
4233 }
4234 return resultobj;
4235 fail:
4236 {
4237 if (temp1)
4238 delete arg1;
4239 }
4240 return NULL;
4241 }
4242
4243
4244 static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4245 PyObject *resultobj = NULL;
4246 wxBitmap *arg1 = (wxBitmap *) 0 ;
4247 PyObject * obj0 = 0 ;
4248 char *kwnames[] = {
4249 (char *) "self", NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
4253 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4254 if (SWIG_arg_fail(1)) SWIG_fail;
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 delete arg1;
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 Py_INCREF(Py_None); resultobj = Py_None;
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj = NULL;
4271 int arg1 ;
4272 int arg2 ;
4273 int arg3 = (int) -1 ;
4274 wxBitmap *result;
4275 PyObject * obj0 = 0 ;
4276 PyObject * obj1 = 0 ;
4277 PyObject * obj2 = 0 ;
4278 char *kwnames[] = {
4279 (char *) "width",(char *) "height",(char *) "depth", NULL
4280 };
4281
4282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4283 {
4284 arg1 = static_cast<int >(SWIG_As_int(obj0));
4285 if (SWIG_arg_fail(1)) SWIG_fail;
4286 }
4287 {
4288 arg2 = static_cast<int >(SWIG_As_int(obj1));
4289 if (SWIG_arg_fail(2)) SWIG_fail;
4290 }
4291 if (obj2) {
4292 {
4293 arg3 = static_cast<int >(SWIG_As_int(obj2));
4294 if (SWIG_arg_fail(3)) SWIG_fail;
4295 }
4296 }
4297 {
4298 if (!wxPyCheckForApp()) SWIG_fail;
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj = NULL;
4314 wxIcon *arg1 = 0 ;
4315 wxBitmap *result;
4316 PyObject * obj0 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "icon", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
4322 {
4323 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4324 if (SWIG_arg_fail(1)) SWIG_fail;
4325 if (arg1 == NULL) {
4326 SWIG_null_ref("wxIcon");
4327 }
4328 if (SWIG_arg_fail(1)) SWIG_fail;
4329 }
4330 {
4331 if (!wxPyCheckForApp()) SWIG_fail;
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
4334
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = NULL;
4347 wxImage *arg1 = 0 ;
4348 int arg2 = (int) -1 ;
4349 wxBitmap *result;
4350 PyObject * obj0 = 0 ;
4351 PyObject * obj1 = 0 ;
4352 char *kwnames[] = {
4353 (char *) "image",(char *) "depth", NULL
4354 };
4355
4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
4357 {
4358 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
4359 if (SWIG_arg_fail(1)) SWIG_fail;
4360 if (arg1 == NULL) {
4361 SWIG_null_ref("wxImage");
4362 }
4363 if (SWIG_arg_fail(1)) SWIG_fail;
4364 }
4365 if (obj1) {
4366 {
4367 arg2 = static_cast<int >(SWIG_As_int(obj1));
4368 if (SWIG_arg_fail(2)) SWIG_fail;
4369 }
4370 }
4371 {
4372 if (!wxPyCheckForApp()) SWIG_fail;
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
4375
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = NULL;
4388 PyObject *arg1 = (PyObject *) 0 ;
4389 wxBitmap *result;
4390 PyObject * obj0 = 0 ;
4391 char *kwnames[] = {
4392 (char *) "listOfStrings", NULL
4393 };
4394
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
4396 arg1 = obj0;
4397 {
4398 if (!wxPyCheckForApp()) SWIG_fail;
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 result = (wxBitmap *)new_wxBitmap(arg1);
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4406 return resultobj;
4407 fail:
4408 return NULL;
4409 }
4410
4411
4412 static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj = NULL;
4414 PyObject *arg1 = (PyObject *) 0 ;
4415 int arg2 ;
4416 int arg3 ;
4417 int arg4 = (int) 1 ;
4418 wxBitmap *result;
4419 PyObject * obj0 = 0 ;
4420 PyObject * obj1 = 0 ;
4421 PyObject * obj2 = 0 ;
4422 PyObject * obj3 = 0 ;
4423 char *kwnames[] = {
4424 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
4425 };
4426
4427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4428 arg1 = obj0;
4429 {
4430 arg2 = static_cast<int >(SWIG_As_int(obj1));
4431 if (SWIG_arg_fail(2)) SWIG_fail;
4432 }
4433 {
4434 arg3 = static_cast<int >(SWIG_As_int(obj2));
4435 if (SWIG_arg_fail(3)) SWIG_fail;
4436 }
4437 if (obj3) {
4438 {
4439 arg4 = static_cast<int >(SWIG_As_int(obj3));
4440 if (SWIG_arg_fail(4)) SWIG_fail;
4441 }
4442 }
4443 {
4444 if (!wxPyCheckForApp()) SWIG_fail;
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject *_wrap_Bitmap_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj = NULL;
4460 wxBitmap *arg1 = (wxBitmap *) 0 ;
4461 long result;
4462 PyObject * obj0 = 0 ;
4463 char *kwnames[] = {
4464 (char *) "self", NULL
4465 };
4466
4467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
4468 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4469 if (SWIG_arg_fail(1)) SWIG_fail;
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 result = (long)(arg1)->GetHandle();
4473
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 {
4478 resultobj = SWIG_From_long(static_cast<long >(result));
4479 }
4480 return resultobj;
4481 fail:
4482 return NULL;
4483 }
4484
4485
4486 static PyObject *_wrap_Bitmap_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
4487 PyObject *resultobj = NULL;
4488 wxBitmap *arg1 = (wxBitmap *) 0 ;
4489 long arg2 ;
4490 PyObject * obj0 = 0 ;
4491 PyObject * obj1 = 0 ;
4492 char *kwnames[] = {
4493 (char *) "self",(char *) "handle", NULL
4494 };
4495
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4497 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4498 if (SWIG_arg_fail(1)) SWIG_fail;
4499 {
4500 arg2 = static_cast<long >(SWIG_As_long(obj1));
4501 if (SWIG_arg_fail(2)) SWIG_fail;
4502 }
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 wxBitmap_SetHandle(arg1,arg2);
4506
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 Py_INCREF(Py_None); resultobj = Py_None;
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = NULL;
4519 wxBitmap *arg1 = (wxBitmap *) 0 ;
4520 bool result;
4521 PyObject * obj0 = 0 ;
4522 char *kwnames[] = {
4523 (char *) "self", NULL
4524 };
4525
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
4527 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4528 if (SWIG_arg_fail(1)) SWIG_fail;
4529 {
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 result = (bool)(arg1)->Ok();
4532
4533 wxPyEndAllowThreads(__tstate);
4534 if (PyErr_Occurred()) SWIG_fail;
4535 }
4536 {
4537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4538 }
4539 return resultobj;
4540 fail:
4541 return NULL;
4542 }
4543
4544
4545 static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4546 PyObject *resultobj = NULL;
4547 wxBitmap *arg1 = (wxBitmap *) 0 ;
4548 int result;
4549 PyObject * obj0 = 0 ;
4550 char *kwnames[] = {
4551 (char *) "self", NULL
4552 };
4553
4554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
4555 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4556 if (SWIG_arg_fail(1)) SWIG_fail;
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 result = (int)(arg1)->GetWidth();
4560
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 {
4565 resultobj = SWIG_From_int(static_cast<int >(result));
4566 }
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj = NULL;
4575 wxBitmap *arg1 = (wxBitmap *) 0 ;
4576 int result;
4577 PyObject * obj0 = 0 ;
4578 char *kwnames[] = {
4579 (char *) "self", NULL
4580 };
4581
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
4583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4584 if (SWIG_arg_fail(1)) SWIG_fail;
4585 {
4586 PyThreadState* __tstate = wxPyBeginAllowThreads();
4587 result = (int)(arg1)->GetHeight();
4588
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 {
4593 resultobj = SWIG_From_int(static_cast<int >(result));
4594 }
4595 return resultobj;
4596 fail:
4597 return NULL;
4598 }
4599
4600
4601 static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4602 PyObject *resultobj = NULL;
4603 wxBitmap *arg1 = (wxBitmap *) 0 ;
4604 int result;
4605 PyObject * obj0 = 0 ;
4606 char *kwnames[] = {
4607 (char *) "self", NULL
4608 };
4609
4610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
4611 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4612 if (SWIG_arg_fail(1)) SWIG_fail;
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (int)(arg1)->GetDepth();
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 {
4621 resultobj = SWIG_From_int(static_cast<int >(result));
4622 }
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = NULL;
4631 wxBitmap *arg1 = (wxBitmap *) 0 ;
4632 wxSize result;
4633 PyObject * obj0 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self", NULL
4636 };
4637
4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
4639 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4640 if (SWIG_arg_fail(1)) SWIG_fail;
4641 {
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
4643 result = wxBitmap_GetSize(arg1);
4644
4645 wxPyEndAllowThreads(__tstate);
4646 if (PyErr_Occurred()) SWIG_fail;
4647 }
4648 {
4649 wxSize * resultptr;
4650 resultptr = new wxSize(static_cast<wxSize & >(result));
4651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4652 }
4653 return resultobj;
4654 fail:
4655 return NULL;
4656 }
4657
4658
4659 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) {
4660 PyObject *resultobj = NULL;
4661 wxBitmap *arg1 = (wxBitmap *) 0 ;
4662 SwigValueWrapper<wxImage > result;
4663 PyObject * obj0 = 0 ;
4664 char *kwnames[] = {
4665 (char *) "self", NULL
4666 };
4667
4668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
4669 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4670 if (SWIG_arg_fail(1)) SWIG_fail;
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 result = ((wxBitmap const *)arg1)->ConvertToImage();
4674
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 {
4679 wxImage * resultptr;
4680 resultptr = new wxImage(static_cast<wxImage & >(result));
4681 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
4682 }
4683 return resultobj;
4684 fail:
4685 return NULL;
4686 }
4687
4688
4689 static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4690 PyObject *resultobj = NULL;
4691 wxBitmap *arg1 = (wxBitmap *) 0 ;
4692 wxMask *result;
4693 PyObject * obj0 = 0 ;
4694 char *kwnames[] = {
4695 (char *) "self", NULL
4696 };
4697
4698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
4699 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4700 if (SWIG_arg_fail(1)) SWIG_fail;
4701 {
4702 PyThreadState* __tstate = wxPyBeginAllowThreads();
4703 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
4704
4705 wxPyEndAllowThreads(__tstate);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
4709 return resultobj;
4710 fail:
4711 return NULL;
4712 }
4713
4714
4715 static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
4716 PyObject *resultobj = NULL;
4717 wxBitmap *arg1 = (wxBitmap *) 0 ;
4718 wxMask *arg2 = (wxMask *) 0 ;
4719 PyObject * obj0 = 0 ;
4720 PyObject * obj1 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "self",(char *) "mask", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
4726 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4727 if (SWIG_arg_fail(1)) SWIG_fail;
4728 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMask, SWIG_POINTER_EXCEPTION | 0);
4729 if (SWIG_arg_fail(2)) SWIG_fail;
4730 {
4731 PyThreadState* __tstate = wxPyBeginAllowThreads();
4732 (arg1)->SetMask(arg2);
4733
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 Py_INCREF(Py_None); resultobj = Py_None;
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj = NULL;
4746 wxBitmap *arg1 = (wxBitmap *) 0 ;
4747 wxColour *arg2 = 0 ;
4748 wxColour temp2 ;
4749 PyObject * obj0 = 0 ;
4750 PyObject * obj1 = 0 ;
4751 char *kwnames[] = {
4752 (char *) "self",(char *) "colour", NULL
4753 };
4754
4755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
4756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4757 if (SWIG_arg_fail(1)) SWIG_fail;
4758 {
4759 arg2 = &temp2;
4760 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4761 }
4762 {
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 Py_INCREF(Py_None); resultobj = Py_None;
4770 return resultobj;
4771 fail:
4772 return NULL;
4773 }
4774
4775
4776 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj = NULL;
4778 wxBitmap *arg1 = (wxBitmap *) 0 ;
4779 wxRect *arg2 = 0 ;
4780 SwigValueWrapper<wxBitmap > result;
4781 wxRect temp2 ;
4782 PyObject * obj0 = 0 ;
4783 PyObject * obj1 = 0 ;
4784 char *kwnames[] = {
4785 (char *) "self",(char *) "rect", NULL
4786 };
4787
4788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) 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 = &temp2;
4793 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4794 }
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 {
4803 wxBitmap * resultptr;
4804 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
4805 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
4806 }
4807 return resultobj;
4808 fail:
4809 return NULL;
4810 }
4811
4812
4813 static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
4814 PyObject *resultobj = NULL;
4815 wxBitmap *arg1 = (wxBitmap *) 0 ;
4816 wxString *arg2 = 0 ;
4817 wxBitmapType arg3 ;
4818 wxPalette *arg4 = (wxPalette *) NULL ;
4819 bool result;
4820 bool temp2 = false ;
4821 PyObject * obj0 = 0 ;
4822 PyObject * obj1 = 0 ;
4823 PyObject * obj2 = 0 ;
4824 PyObject * obj3 = 0 ;
4825 char *kwnames[] = {
4826 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
4827 };
4828
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4830 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4831 if (SWIG_arg_fail(1)) SWIG_fail;
4832 {
4833 arg2 = wxString_in_helper(obj1);
4834 if (arg2 == NULL) SWIG_fail;
4835 temp2 = true;
4836 }
4837 {
4838 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4839 if (SWIG_arg_fail(3)) SWIG_fail;
4840 }
4841 if (obj3) {
4842 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4843 if (SWIG_arg_fail(4)) SWIG_fail;
4844 }
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
4848
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 {
4856 if (temp2)
4857 delete arg2;
4858 }
4859 return resultobj;
4860 fail:
4861 {
4862 if (temp2)
4863 delete arg2;
4864 }
4865 return NULL;
4866 }
4867
4868
4869 static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj = NULL;
4871 wxBitmap *arg1 = (wxBitmap *) 0 ;
4872 wxString *arg2 = 0 ;
4873 wxBitmapType arg3 ;
4874 bool result;
4875 bool temp2 = false ;
4876 PyObject * obj0 = 0 ;
4877 PyObject * obj1 = 0 ;
4878 PyObject * obj2 = 0 ;
4879 char *kwnames[] = {
4880 (char *) "self",(char *) "name",(char *) "type", NULL
4881 };
4882
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4884 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4885 if (SWIG_arg_fail(1)) SWIG_fail;
4886 {
4887 arg2 = wxString_in_helper(obj1);
4888 if (arg2 == NULL) SWIG_fail;
4889 temp2 = true;
4890 }
4891 {
4892 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
4893 if (SWIG_arg_fail(3)) SWIG_fail;
4894 }
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 {
4906 if (temp2)
4907 delete arg2;
4908 }
4909 return resultobj;
4910 fail:
4911 {
4912 if (temp2)
4913 delete arg2;
4914 }
4915 return NULL;
4916 }
4917
4918
4919 static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj = NULL;
4921 wxBitmap *arg1 = (wxBitmap *) 0 ;
4922 wxPalette *result;
4923 PyObject * obj0 = 0 ;
4924 char *kwnames[] = {
4925 (char *) "self", NULL
4926 };
4927
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail;
4929 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4930 if (SWIG_arg_fail(1)) SWIG_fail;
4931 {
4932 PyThreadState* __tstate = wxPyBeginAllowThreads();
4933 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
4934
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0);
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 static PyObject *_wrap_Bitmap_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
4946 PyObject *resultobj = NULL;
4947 wxBitmap *arg1 = (wxBitmap *) 0 ;
4948 wxPalette *arg2 = 0 ;
4949 PyObject * obj0 = 0 ;
4950 PyObject * obj1 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self",(char *) "palette", NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
4956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4957 if (SWIG_arg_fail(1)) SWIG_fail;
4958 {
4959 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
4960 if (SWIG_arg_fail(2)) SWIG_fail;
4961 if (arg2 == NULL) {
4962 SWIG_null_ref("wxPalette");
4963 }
4964 if (SWIG_arg_fail(2)) SWIG_fail;
4965 }
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 (arg1)->SetPalette((wxPalette const &)*arg2);
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 Py_INCREF(Py_None); resultobj = Py_None;
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
4981 PyObject *resultobj = NULL;
4982 wxBitmap *arg1 = (wxBitmap *) 0 ;
4983 wxIcon *arg2 = 0 ;
4984 bool result;
4985 PyObject * obj0 = 0 ;
4986 PyObject * obj1 = 0 ;
4987 char *kwnames[] = {
4988 (char *) "self",(char *) "icon", NULL
4989 };
4990
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
4992 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
4993 if (SWIG_arg_fail(1)) SWIG_fail;
4994 {
4995 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
4996 if (SWIG_arg_fail(2)) SWIG_fail;
4997 if (arg2 == NULL) {
4998 SWIG_null_ref("wxIcon");
4999 }
5000 if (SWIG_arg_fail(2)) SWIG_fail;
5001 }
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
5005
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 {
5010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5011 }
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj = NULL;
5020 wxBitmap *arg1 = (wxBitmap *) 0 ;
5021 int arg2 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char *kwnames[] = {
5025 (char *) "self",(char *) "height", NULL
5026 };
5027
5028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5029 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5030 if (SWIG_arg_fail(1)) SWIG_fail;
5031 {
5032 arg2 = static_cast<int >(SWIG_As_int(obj1));
5033 if (SWIG_arg_fail(2)) SWIG_fail;
5034 }
5035 {
5036 PyThreadState* __tstate = wxPyBeginAllowThreads();
5037 (arg1)->SetHeight(arg2);
5038
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 Py_INCREF(Py_None); resultobj = Py_None;
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj = NULL;
5051 wxBitmap *arg1 = (wxBitmap *) 0 ;
5052 int arg2 ;
5053 PyObject * obj0 = 0 ;
5054 PyObject * obj1 = 0 ;
5055 char *kwnames[] = {
5056 (char *) "self",(char *) "width", NULL
5057 };
5058
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5060 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5061 if (SWIG_arg_fail(1)) SWIG_fail;
5062 {
5063 arg2 = static_cast<int >(SWIG_As_int(obj1));
5064 if (SWIG_arg_fail(2)) SWIG_fail;
5065 }
5066 {
5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
5068 (arg1)->SetWidth(arg2);
5069
5070 wxPyEndAllowThreads(__tstate);
5071 if (PyErr_Occurred()) SWIG_fail;
5072 }
5073 Py_INCREF(Py_None); resultobj = Py_None;
5074 return resultobj;
5075 fail:
5076 return NULL;
5077 }
5078
5079
5080 static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj = NULL;
5082 wxBitmap *arg1 = (wxBitmap *) 0 ;
5083 int arg2 ;
5084 PyObject * obj0 = 0 ;
5085 PyObject * obj1 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "self",(char *) "depth", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5091 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5092 if (SWIG_arg_fail(1)) SWIG_fail;
5093 {
5094 arg2 = static_cast<int >(SWIG_As_int(obj1));
5095 if (SWIG_arg_fail(2)) SWIG_fail;
5096 }
5097 {
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 (arg1)->SetDepth(arg2);
5100
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 Py_INCREF(Py_None); resultobj = Py_None;
5105 return resultobj;
5106 fail:
5107 return NULL;
5108 }
5109
5110
5111 static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj = NULL;
5113 wxBitmap *arg1 = (wxBitmap *) 0 ;
5114 wxSize *arg2 = 0 ;
5115 wxSize temp2 ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char *kwnames[] = {
5119 (char *) "self",(char *) "size", NULL
5120 };
5121
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
5123 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5124 if (SWIG_arg_fail(1)) SWIG_fail;
5125 {
5126 arg2 = &temp2;
5127 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5128 }
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
5132
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 Py_INCREF(Py_None); resultobj = Py_None;
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5144 PyObject *resultobj = NULL;
5145 wxBitmap *arg1 = (wxBitmap *) 0 ;
5146 wxCursor *arg2 = 0 ;
5147 bool result;
5148 PyObject * obj0 = 0 ;
5149 PyObject * obj1 = 0 ;
5150 char *kwnames[] = {
5151 (char *) "self",(char *) "cursor", NULL
5152 };
5153
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
5155 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5156 if (SWIG_arg_fail(1)) SWIG_fail;
5157 {
5158 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
5159 if (SWIG_arg_fail(2)) SWIG_fail;
5160 if (arg2 == NULL) {
5161 SWIG_null_ref("wxCursor");
5162 }
5163 if (SWIG_arg_fail(2)) SWIG_fail;
5164 }
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 {
5173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5174 }
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj = NULL;
5183 wxBitmap *arg1 = (wxBitmap *) 0 ;
5184 wxBitmap *arg2 = (wxBitmap *) 0 ;
5185 bool result;
5186 PyObject * obj0 = 0 ;
5187 PyObject * obj1 = 0 ;
5188 char *kwnames[] = {
5189 (char *) "self",(char *) "other", NULL
5190 };
5191
5192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
5193 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5194 if (SWIG_arg_fail(1)) SWIG_fail;
5195 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5196 if (SWIG_arg_fail(2)) SWIG_fail;
5197 {
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
5200
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 {
5205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5206 }
5207 return resultobj;
5208 fail:
5209 return NULL;
5210 }
5211
5212
5213 static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
5214 PyObject *resultobj = NULL;
5215 wxBitmap *arg1 = (wxBitmap *) 0 ;
5216 wxBitmap *arg2 = (wxBitmap *) 0 ;
5217 bool result;
5218 PyObject * obj0 = 0 ;
5219 PyObject * obj1 = 0 ;
5220 char *kwnames[] = {
5221 (char *) "self",(char *) "other", NULL
5222 };
5223
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
5225 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5226 if (SWIG_arg_fail(1)) SWIG_fail;
5227 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5228 if (SWIG_arg_fail(2)) SWIG_fail;
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 {
5237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5238 }
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) {
5246 PyObject *obj;
5247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5248 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
5249 Py_INCREF(obj);
5250 return Py_BuildValue((char *)"");
5251 }
5252 static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) {
5253 PyObject *resultobj = NULL;
5254 wxBitmap *arg1 = 0 ;
5255 wxColour const &arg2_defvalue = wxNullColour ;
5256 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5257 wxMask *result;
5258 wxColour temp2 ;
5259 PyObject * obj0 = 0 ;
5260 PyObject * obj1 = 0 ;
5261 char *kwnames[] = {
5262 (char *) "bitmap",(char *) "colour", NULL
5263 };
5264
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
5266 {
5267 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5268 if (SWIG_arg_fail(1)) SWIG_fail;
5269 if (arg1 == NULL) {
5270 SWIG_null_ref("wxBitmap");
5271 }
5272 if (SWIG_arg_fail(1)) SWIG_fail;
5273 }
5274 if (obj1) {
5275 {
5276 arg2 = &temp2;
5277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5278 }
5279 }
5280 {
5281 if (!wxPyCheckForApp()) SWIG_fail;
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
5289 return resultobj;
5290 fail:
5291 return NULL;
5292 }
5293
5294
5295 static PyObject * Mask_swigregister(PyObject *, PyObject *args) {
5296 PyObject *obj;
5297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5298 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
5299 Py_INCREF(obj);
5300 return Py_BuildValue((char *)"");
5301 }
5302 static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5303 PyObject *resultobj = NULL;
5304 wxString *arg1 = 0 ;
5305 wxBitmapType arg2 ;
5306 int arg3 = (int) -1 ;
5307 int arg4 = (int) -1 ;
5308 wxIcon *result;
5309 bool temp1 = false ;
5310 PyObject * obj0 = 0 ;
5311 PyObject * obj1 = 0 ;
5312 PyObject * obj2 = 0 ;
5313 PyObject * obj3 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5319 {
5320 arg1 = wxString_in_helper(obj0);
5321 if (arg1 == NULL) SWIG_fail;
5322 temp1 = true;
5323 }
5324 {
5325 arg2 = static_cast<wxBitmapType >(SWIG_As_int(obj1));
5326 if (SWIG_arg_fail(2)) SWIG_fail;
5327 }
5328 if (obj2) {
5329 {
5330 arg3 = static_cast<int >(SWIG_As_int(obj2));
5331 if (SWIG_arg_fail(3)) SWIG_fail;
5332 }
5333 }
5334 if (obj3) {
5335 {
5336 arg4 = static_cast<int >(SWIG_As_int(obj3));
5337 if (SWIG_arg_fail(4)) SWIG_fail;
5338 }
5339 }
5340 {
5341 if (!wxPyCheckForApp()) SWIG_fail;
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5349 {
5350 if (temp1)
5351 delete arg1;
5352 }
5353 return resultobj;
5354 fail:
5355 {
5356 if (temp1)
5357 delete arg1;
5358 }
5359 return NULL;
5360 }
5361
5362
5363 static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj = NULL;
5365 wxIcon *arg1 = (wxIcon *) 0 ;
5366 PyObject * obj0 = 0 ;
5367 char *kwnames[] = {
5368 (char *) "self", NULL
5369 };
5370
5371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
5372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5373 if (SWIG_arg_fail(1)) SWIG_fail;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 delete arg1;
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 Py_INCREF(Py_None); resultobj = Py_None;
5382 return resultobj;
5383 fail:
5384 return NULL;
5385 }
5386
5387
5388 static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj = NULL;
5390 wxIcon *result;
5391 char *kwnames[] = {
5392 NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
5396 {
5397 if (!wxPyCheckForApp()) SWIG_fail;
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 result = (wxIcon *)new wxIcon();
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj = NULL;
5413 wxIconLocation *arg1 = 0 ;
5414 wxIcon *result;
5415 PyObject * obj0 = 0 ;
5416 char *kwnames[] = {
5417 (char *) "loc", NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
5421 {
5422 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5423 if (SWIG_arg_fail(1)) SWIG_fail;
5424 if (arg1 == NULL) {
5425 SWIG_null_ref("wxIconLocation");
5426 }
5427 if (SWIG_arg_fail(1)) SWIG_fail;
5428 }
5429 {
5430 if (!wxPyCheckForApp()) SWIG_fail;
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5438 return resultobj;
5439 fail:
5440 return NULL;
5441 }
5442
5443
5444 static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5445 PyObject *resultobj = NULL;
5446 wxBitmap *arg1 = 0 ;
5447 wxIcon *result;
5448 PyObject * obj0 = 0 ;
5449 char *kwnames[] = {
5450 (char *) "bmp", NULL
5451 };
5452
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
5454 {
5455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5456 if (SWIG_arg_fail(1)) SWIG_fail;
5457 if (arg1 == NULL) {
5458 SWIG_null_ref("wxBitmap");
5459 }
5460 if (SWIG_arg_fail(1)) SWIG_fail;
5461 }
5462 {
5463 if (!wxPyCheckForApp()) SWIG_fail;
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
5466
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5471 return resultobj;
5472 fail:
5473 return NULL;
5474 }
5475
5476
5477 static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) {
5478 PyObject *resultobj = NULL;
5479 PyObject *arg1 = (PyObject *) 0 ;
5480 wxIcon *result;
5481 PyObject * obj0 = 0 ;
5482 char *kwnames[] = {
5483 (char *) "listOfStrings", NULL
5484 };
5485
5486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
5487 arg1 = obj0;
5488 {
5489 if (!wxPyCheckForApp()) SWIG_fail;
5490 PyThreadState* __tstate = wxPyBeginAllowThreads();
5491 result = (wxIcon *)new_wxIcon(arg1);
5492
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj = NULL;
5505 wxIcon *arg1 = (wxIcon *) 0 ;
5506 wxString *arg2 = 0 ;
5507 wxBitmapType arg3 ;
5508 bool result;
5509 bool temp2 = false ;
5510 PyObject * obj0 = 0 ;
5511 PyObject * obj1 = 0 ;
5512 PyObject * obj2 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self",(char *) "name",(char *) "type", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
5518 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5519 if (SWIG_arg_fail(1)) SWIG_fail;
5520 {
5521 arg2 = wxString_in_helper(obj1);
5522 if (arg2 == NULL) SWIG_fail;
5523 temp2 = true;
5524 }
5525 {
5526 arg3 = static_cast<wxBitmapType >(SWIG_As_int(obj2));
5527 if (SWIG_arg_fail(3)) SWIG_fail;
5528 }
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 {
5537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5538 }
5539 {
5540 if (temp2)
5541 delete arg2;
5542 }
5543 return resultobj;
5544 fail:
5545 {
5546 if (temp2)
5547 delete arg2;
5548 }
5549 return NULL;
5550 }
5551
5552
5553 static PyObject *_wrap_Icon_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5554 PyObject *resultobj = NULL;
5555 wxIcon *arg1 = (wxIcon *) 0 ;
5556 long result;
5557 PyObject * obj0 = 0 ;
5558 char *kwnames[] = {
5559 (char *) "self", NULL
5560 };
5561
5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
5563 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5564 if (SWIG_arg_fail(1)) SWIG_fail;
5565 {
5566 PyThreadState* __tstate = wxPyBeginAllowThreads();
5567 result = (long)(arg1)->GetHandle();
5568
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 {
5573 resultobj = SWIG_From_long(static_cast<long >(result));
5574 }
5575 return resultobj;
5576 fail:
5577 return NULL;
5578 }
5579
5580
5581 static PyObject *_wrap_Icon_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
5582 PyObject *resultobj = NULL;
5583 wxIcon *arg1 = (wxIcon *) 0 ;
5584 long arg2 ;
5585 PyObject * obj0 = 0 ;
5586 PyObject * obj1 = 0 ;
5587 char *kwnames[] = {
5588 (char *) "self",(char *) "handle", NULL
5589 };
5590
5591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
5592 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5593 if (SWIG_arg_fail(1)) SWIG_fail;
5594 {
5595 arg2 = static_cast<long >(SWIG_As_long(obj1));
5596 if (SWIG_arg_fail(2)) SWIG_fail;
5597 }
5598 {
5599 PyThreadState* __tstate = wxPyBeginAllowThreads();
5600 wxIcon_SetHandle(arg1,arg2);
5601
5602 wxPyEndAllowThreads(__tstate);
5603 if (PyErr_Occurred()) SWIG_fail;
5604 }
5605 Py_INCREF(Py_None); resultobj = Py_None;
5606 return resultobj;
5607 fail:
5608 return NULL;
5609 }
5610
5611
5612 static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
5613 PyObject *resultobj = NULL;
5614 wxIcon *arg1 = (wxIcon *) 0 ;
5615 bool result;
5616 PyObject * obj0 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
5622 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5623 if (SWIG_arg_fail(1)) SWIG_fail;
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (bool)(arg1)->Ok();
5627
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 {
5632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5633 }
5634 return resultobj;
5635 fail:
5636 return NULL;
5637 }
5638
5639
5640 static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5641 PyObject *resultobj = NULL;
5642 wxIcon *arg1 = (wxIcon *) 0 ;
5643 int result;
5644 PyObject * obj0 = 0 ;
5645 char *kwnames[] = {
5646 (char *) "self", NULL
5647 };
5648
5649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
5650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5651 if (SWIG_arg_fail(1)) SWIG_fail;
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = (int)(arg1)->GetWidth();
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 {
5660 resultobj = SWIG_From_int(static_cast<int >(result));
5661 }
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj = NULL;
5670 wxIcon *arg1 = (wxIcon *) 0 ;
5671 int result;
5672 PyObject * obj0 = 0 ;
5673 char *kwnames[] = {
5674 (char *) "self", NULL
5675 };
5676
5677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
5678 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5679 if (SWIG_arg_fail(1)) SWIG_fail;
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 result = (int)(arg1)->GetHeight();
5683
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 {
5688 resultobj = SWIG_From_int(static_cast<int >(result));
5689 }
5690 return resultobj;
5691 fail:
5692 return NULL;
5693 }
5694
5695
5696 static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj = NULL;
5698 wxIcon *arg1 = (wxIcon *) 0 ;
5699 int result;
5700 PyObject * obj0 = 0 ;
5701 char *kwnames[] = {
5702 (char *) "self", NULL
5703 };
5704
5705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
5706 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5707 if (SWIG_arg_fail(1)) SWIG_fail;
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = (int)(arg1)->GetDepth();
5711
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 {
5716 resultobj = SWIG_From_int(static_cast<int >(result));
5717 }
5718 return resultobj;
5719 fail:
5720 return NULL;
5721 }
5722
5723
5724 static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
5725 PyObject *resultobj = NULL;
5726 wxIcon *arg1 = (wxIcon *) 0 ;
5727 int arg2 ;
5728 PyObject * obj0 = 0 ;
5729 PyObject * obj1 = 0 ;
5730 char *kwnames[] = {
5731 (char *) "self",(char *) "w", NULL
5732 };
5733
5734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5736 if (SWIG_arg_fail(1)) SWIG_fail;
5737 {
5738 arg2 = static_cast<int >(SWIG_As_int(obj1));
5739 if (SWIG_arg_fail(2)) SWIG_fail;
5740 }
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 (arg1)->SetWidth(arg2);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 Py_INCREF(Py_None); resultobj = Py_None;
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj = NULL;
5757 wxIcon *arg1 = (wxIcon *) 0 ;
5758 int arg2 ;
5759 PyObject * obj0 = 0 ;
5760 PyObject * obj1 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self",(char *) "h", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5766 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5767 if (SWIG_arg_fail(1)) SWIG_fail;
5768 {
5769 arg2 = static_cast<int >(SWIG_As_int(obj1));
5770 if (SWIG_arg_fail(2)) SWIG_fail;
5771 }
5772 {
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 (arg1)->SetHeight(arg2);
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 Py_INCREF(Py_None); resultobj = Py_None;
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
5787 PyObject *resultobj = NULL;
5788 wxIcon *arg1 = (wxIcon *) 0 ;
5789 int arg2 ;
5790 PyObject * obj0 = 0 ;
5791 PyObject * obj1 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self",(char *) "d", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5797 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5798 if (SWIG_arg_fail(1)) SWIG_fail;
5799 {
5800 arg2 = static_cast<int >(SWIG_As_int(obj1));
5801 if (SWIG_arg_fail(2)) SWIG_fail;
5802 }
5803 {
5804 PyThreadState* __tstate = wxPyBeginAllowThreads();
5805 (arg1)->SetDepth(arg2);
5806
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 Py_INCREF(Py_None); resultobj = Py_None;
5811 return resultobj;
5812 fail:
5813 return NULL;
5814 }
5815
5816
5817 static PyObject *_wrap_Icon_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj = NULL;
5819 wxIcon *arg1 = (wxIcon *) 0 ;
5820 wxSize *arg2 = 0 ;
5821 wxSize temp2 ;
5822 PyObject * obj0 = 0 ;
5823 PyObject * obj1 = 0 ;
5824 char *kwnames[] = {
5825 (char *) "self",(char *) "size", NULL
5826 };
5827
5828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
5829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5830 if (SWIG_arg_fail(1)) SWIG_fail;
5831 {
5832 arg2 = &temp2;
5833 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5834 }
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 (arg1)->SetSize((wxSize const &)*arg2);
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 Py_INCREF(Py_None); resultobj = Py_None;
5843 return resultobj;
5844 fail:
5845 return NULL;
5846 }
5847
5848
5849 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj = NULL;
5851 wxIcon *arg1 = (wxIcon *) 0 ;
5852 wxBitmap *arg2 = 0 ;
5853 PyObject * obj0 = 0 ;
5854 PyObject * obj1 = 0 ;
5855 char *kwnames[] = {
5856 (char *) "self",(char *) "bmp", NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
5860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
5861 if (SWIG_arg_fail(1)) SWIG_fail;
5862 {
5863 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
5864 if (SWIG_arg_fail(2)) SWIG_fail;
5865 if (arg2 == NULL) {
5866 SWIG_null_ref("wxBitmap");
5867 }
5868 if (SWIG_arg_fail(2)) SWIG_fail;
5869 }
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 Py_INCREF(Py_None); resultobj = Py_None;
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 static PyObject * Icon_swigregister(PyObject *, PyObject *args) {
5885 PyObject *obj;
5886 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5887 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
5888 Py_INCREF(obj);
5889 return Py_BuildValue((char *)"");
5890 }
5891 static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5892 PyObject *resultobj = NULL;
5893 wxString *arg1 = (wxString *) &wxPyEmptyString ;
5894 int arg2 = (int) 0 ;
5895 wxIconLocation *result;
5896 bool temp1 = false ;
5897 PyObject * obj0 = 0 ;
5898 PyObject * obj1 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "filename",(char *) "num", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
5904 if (obj0) {
5905 {
5906 arg1 = wxString_in_helper(obj0);
5907 if (arg1 == NULL) SWIG_fail;
5908 temp1 = true;
5909 }
5910 }
5911 if (obj1) {
5912 {
5913 arg2 = static_cast<int >(SWIG_As_int(obj1));
5914 if (SWIG_arg_fail(2)) SWIG_fail;
5915 }
5916 }
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
5925 {
5926 if (temp1)
5927 delete arg1;
5928 }
5929 return resultobj;
5930 fail:
5931 {
5932 if (temp1)
5933 delete arg1;
5934 }
5935 return NULL;
5936 }
5937
5938
5939 static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) {
5940 PyObject *resultobj = NULL;
5941 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5942 PyObject * obj0 = 0 ;
5943 char *kwnames[] = {
5944 (char *) "self", NULL
5945 };
5946
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
5948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5949 if (SWIG_arg_fail(1)) SWIG_fail;
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 delete arg1;
5953
5954 wxPyEndAllowThreads(__tstate);
5955 if (PyErr_Occurred()) SWIG_fail;
5956 }
5957 Py_INCREF(Py_None); resultobj = Py_None;
5958 return resultobj;
5959 fail:
5960 return NULL;
5961 }
5962
5963
5964 static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5965 PyObject *resultobj = NULL;
5966 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5967 bool result;
5968 PyObject * obj0 = 0 ;
5969 char *kwnames[] = {
5970 (char *) "self", NULL
5971 };
5972
5973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
5974 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
5975 if (SWIG_arg_fail(1)) SWIG_fail;
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 result = (bool)((wxIconLocation const *)arg1)->IsOk();
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 {
5984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5985 }
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj = NULL;
5994 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
5995 wxString *arg2 = 0 ;
5996 bool temp2 = false ;
5997 PyObject * obj0 = 0 ;
5998 PyObject * obj1 = 0 ;
5999 char *kwnames[] = {
6000 (char *) "self",(char *) "filename", NULL
6001 };
6002
6003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
6004 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6005 if (SWIG_arg_fail(1)) SWIG_fail;
6006 {
6007 arg2 = wxString_in_helper(obj1);
6008 if (arg2 == NULL) SWIG_fail;
6009 temp2 = true;
6010 }
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 (arg1)->SetFileName((wxString const &)*arg2);
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 Py_INCREF(Py_None); resultobj = Py_None;
6019 {
6020 if (temp2)
6021 delete arg2;
6022 }
6023 return resultobj;
6024 fail:
6025 {
6026 if (temp2)
6027 delete arg2;
6028 }
6029 return NULL;
6030 }
6031
6032
6033 static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj = NULL;
6035 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6036 wxString *result;
6037 PyObject * obj0 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
6043 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6044 if (SWIG_arg_fail(1)) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 {
6048 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
6049 result = (wxString *) &_result_ref;
6050 }
6051
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 {
6056 #if wxUSE_UNICODE
6057 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6058 #else
6059 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6060 #endif
6061 }
6062 return resultobj;
6063 fail:
6064 return NULL;
6065 }
6066
6067
6068 static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
6069 PyObject *resultobj = NULL;
6070 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6071 int arg2 ;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 char *kwnames[] = {
6075 (char *) "self",(char *) "num", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
6079 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6080 if (SWIG_arg_fail(1)) SWIG_fail;
6081 {
6082 arg2 = static_cast<int >(SWIG_As_int(obj1));
6083 if (SWIG_arg_fail(2)) SWIG_fail;
6084 }
6085 {
6086 PyThreadState* __tstate = wxPyBeginAllowThreads();
6087 wxIconLocation_SetIndex(arg1,arg2);
6088
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 Py_INCREF(Py_None); resultobj = Py_None;
6093 return resultobj;
6094 fail:
6095 return NULL;
6096 }
6097
6098
6099 static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj = NULL;
6101 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6102 int result;
6103 PyObject * obj0 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
6109 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconLocation, SWIG_POINTER_EXCEPTION | 0);
6110 if (SWIG_arg_fail(1)) SWIG_fail;
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 result = (int)wxIconLocation_GetIndex(arg1);
6114
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 {
6119 resultobj = SWIG_From_int(static_cast<int >(result));
6120 }
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) {
6128 PyObject *obj;
6129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6130 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
6131 Py_INCREF(obj);
6132 return Py_BuildValue((char *)"");
6133 }
6134 static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = NULL;
6136 wxIconBundle *result;
6137 char *kwnames[] = {
6138 NULL
6139 };
6140
6141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 result = (wxIconBundle *)new wxIconBundle();
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj = NULL;
6158 wxString *arg1 = 0 ;
6159 long arg2 ;
6160 wxIconBundle *result;
6161 bool temp1 = false ;
6162 PyObject * obj0 = 0 ;
6163 PyObject * obj1 = 0 ;
6164 char *kwnames[] = {
6165 (char *) "file",(char *) "type", NULL
6166 };
6167
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
6169 {
6170 arg1 = wxString_in_helper(obj0);
6171 if (arg1 == NULL) SWIG_fail;
6172 temp1 = true;
6173 }
6174 {
6175 arg2 = static_cast<long >(SWIG_As_long(obj1));
6176 if (SWIG_arg_fail(2)) SWIG_fail;
6177 }
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6186 {
6187 if (temp1)
6188 delete arg1;
6189 }
6190 return resultobj;
6191 fail:
6192 {
6193 if (temp1)
6194 delete arg1;
6195 }
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj = NULL;
6202 wxIcon *arg1 = 0 ;
6203 wxIconBundle *result;
6204 PyObject * obj0 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "icon", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
6210 {
6211 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6212 if (SWIG_arg_fail(1)) SWIG_fail;
6213 if (arg1 == NULL) {
6214 SWIG_null_ref("wxIcon");
6215 }
6216 if (SWIG_arg_fail(1)) SWIG_fail;
6217 }
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
6221
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
6225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj = NULL;
6234 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6235 PyObject * obj0 = 0 ;
6236 char *kwnames[] = {
6237 (char *) "self", NULL
6238 };
6239
6240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
6241 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6242 if (SWIG_arg_fail(1)) SWIG_fail;
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 delete arg1;
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 Py_INCREF(Py_None); resultobj = Py_None;
6251 return resultobj;
6252 fail:
6253 return NULL;
6254 }
6255
6256
6257 static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6258 PyObject *resultobj = NULL;
6259 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6260 wxIcon *arg2 = 0 ;
6261 PyObject * obj0 = 0 ;
6262 PyObject * obj1 = 0 ;
6263 char *kwnames[] = {
6264 (char *) "self",(char *) "icon", NULL
6265 };
6266
6267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
6268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6269 if (SWIG_arg_fail(1)) SWIG_fail;
6270 {
6271 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
6272 if (SWIG_arg_fail(2)) SWIG_fail;
6273 if (arg2 == NULL) {
6274 SWIG_null_ref("wxIcon");
6275 }
6276 if (SWIG_arg_fail(2)) SWIG_fail;
6277 }
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 (arg1)->AddIcon((wxIcon const &)*arg2);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 Py_INCREF(Py_None); resultobj = Py_None;
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj = NULL;
6294 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6295 wxString *arg2 = 0 ;
6296 long arg3 ;
6297 bool temp2 = false ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 PyObject * obj2 = 0 ;
6301 char *kwnames[] = {
6302 (char *) "self",(char *) "file",(char *) "type", NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6306 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6307 if (SWIG_arg_fail(1)) SWIG_fail;
6308 {
6309 arg2 = wxString_in_helper(obj1);
6310 if (arg2 == NULL) SWIG_fail;
6311 temp2 = true;
6312 }
6313 {
6314 arg3 = static_cast<long >(SWIG_As_long(obj2));
6315 if (SWIG_arg_fail(3)) SWIG_fail;
6316 }
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 (arg1)->AddIcon((wxString const &)*arg2,arg3);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 Py_INCREF(Py_None); resultobj = Py_None;
6325 {
6326 if (temp2)
6327 delete arg2;
6328 }
6329 return resultobj;
6330 fail:
6331 {
6332 if (temp2)
6333 delete arg2;
6334 }
6335 return NULL;
6336 }
6337
6338
6339 static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj = NULL;
6341 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
6342 wxSize *arg2 = 0 ;
6343 wxIcon *result;
6344 wxSize temp2 ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6347 char *kwnames[] = {
6348 (char *) "self",(char *) "size", NULL
6349 };
6350
6351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
6352 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIconBundle, SWIG_POINTER_EXCEPTION | 0);
6353 if (SWIG_arg_fail(1)) SWIG_fail;
6354 {
6355 arg2 = &temp2;
6356 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6357 }
6358 {
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 {
6361 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
6362 result = (wxIcon *) &_result_ref;
6363 }
6364
6365 wxPyEndAllowThreads(__tstate);
6366 if (PyErr_Occurred()) SWIG_fail;
6367 }
6368 {
6369 wxIcon* resultptr = new wxIcon(*result);
6370 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
6371 }
6372 return resultobj;
6373 fail:
6374 return NULL;
6375 }
6376
6377
6378 static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) {
6379 PyObject *obj;
6380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6381 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
6382 Py_INCREF(obj);
6383 return Py_BuildValue((char *)"");
6384 }
6385 static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj = NULL;
6387 wxString *arg1 = 0 ;
6388 long arg2 ;
6389 int arg3 = (int) 0 ;
6390 int arg4 = (int) 0 ;
6391 wxCursor *result;
6392 bool temp1 = false ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 PyObject * obj2 = 0 ;
6396 PyObject * obj3 = 0 ;
6397 char *kwnames[] = {
6398 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
6399 };
6400
6401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6402 {
6403 arg1 = wxString_in_helper(obj0);
6404 if (arg1 == NULL) SWIG_fail;
6405 temp1 = true;
6406 }
6407 {
6408 arg2 = static_cast<long >(SWIG_As_long(obj1));
6409 if (SWIG_arg_fail(2)) SWIG_fail;
6410 }
6411 if (obj2) {
6412 {
6413 arg3 = static_cast<int >(SWIG_As_int(obj2));
6414 if (SWIG_arg_fail(3)) SWIG_fail;
6415 }
6416 }
6417 if (obj3) {
6418 {
6419 arg4 = static_cast<int >(SWIG_As_int(obj3));
6420 if (SWIG_arg_fail(4)) SWIG_fail;
6421 }
6422 }
6423 {
6424 if (!wxPyCheckForApp()) SWIG_fail;
6425 PyThreadState* __tstate = wxPyBeginAllowThreads();
6426 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
6427
6428 wxPyEndAllowThreads(__tstate);
6429 if (PyErr_Occurred()) SWIG_fail;
6430 }
6431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6432 {
6433 if (temp1)
6434 delete arg1;
6435 }
6436 return resultobj;
6437 fail:
6438 {
6439 if (temp1)
6440 delete arg1;
6441 }
6442 return NULL;
6443 }
6444
6445
6446 static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) {
6447 PyObject *resultobj = NULL;
6448 wxCursor *arg1 = (wxCursor *) 0 ;
6449 PyObject * obj0 = 0 ;
6450 char *kwnames[] = {
6451 (char *) "self", NULL
6452 };
6453
6454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
6455 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6456 if (SWIG_arg_fail(1)) SWIG_fail;
6457 {
6458 PyThreadState* __tstate = wxPyBeginAllowThreads();
6459 delete arg1;
6460
6461 wxPyEndAllowThreads(__tstate);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 }
6464 Py_INCREF(Py_None); resultobj = Py_None;
6465 return resultobj;
6466 fail:
6467 return NULL;
6468 }
6469
6470
6471 static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) {
6472 PyObject *resultobj = NULL;
6473 int arg1 ;
6474 wxCursor *result;
6475 PyObject * obj0 = 0 ;
6476 char *kwnames[] = {
6477 (char *) "id", NULL
6478 };
6479
6480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
6481 {
6482 arg1 = static_cast<int >(SWIG_As_int(obj0));
6483 if (SWIG_arg_fail(1)) SWIG_fail;
6484 }
6485 {
6486 if (!wxPyCheckForApp()) SWIG_fail;
6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
6488 result = (wxCursor *)new wxCursor(arg1);
6489
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6494 return resultobj;
6495 fail:
6496 return NULL;
6497 }
6498
6499
6500 static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj = NULL;
6502 wxImage *arg1 = 0 ;
6503 wxCursor *result;
6504 PyObject * obj0 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "image", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
6510 {
6511 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImage, SWIG_POINTER_EXCEPTION | 0);
6512 if (SWIG_arg_fail(1)) SWIG_fail;
6513 if (arg1 == NULL) {
6514 SWIG_null_ref("wxImage");
6515 }
6516 if (SWIG_arg_fail(1)) SWIG_fail;
6517 }
6518 {
6519 if (!wxPyCheckForApp()) SWIG_fail;
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject *_wrap_Cursor_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj = NULL;
6535 wxCursor *arg1 = (wxCursor *) 0 ;
6536 long result;
6537 PyObject * obj0 = 0 ;
6538 char *kwnames[] = {
6539 (char *) "self", NULL
6540 };
6541
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
6543 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6544 if (SWIG_arg_fail(1)) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = (long)(arg1)->GetHandle();
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 {
6553 resultobj = SWIG_From_long(static_cast<long >(result));
6554 }
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 static PyObject *_wrap_Cursor_SetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = NULL;
6563 wxCursor *arg1 = (wxCursor *) 0 ;
6564 long arg2 ;
6565 PyObject * obj0 = 0 ;
6566 PyObject * obj1 = 0 ;
6567 char *kwnames[] = {
6568 (char *) "self",(char *) "handle", NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
6572 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6573 if (SWIG_arg_fail(1)) SWIG_fail;
6574 {
6575 arg2 = static_cast<long >(SWIG_As_long(obj1));
6576 if (SWIG_arg_fail(2)) SWIG_fail;
6577 }
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 wxCursor_SetHandle(arg1,arg2);
6581
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 Py_INCREF(Py_None); resultobj = Py_None;
6586 return resultobj;
6587 fail:
6588 return NULL;
6589 }
6590
6591
6592 static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
6593 PyObject *resultobj = NULL;
6594 wxCursor *arg1 = (wxCursor *) 0 ;
6595 bool result;
6596 PyObject * obj0 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
6602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6603 if (SWIG_arg_fail(1)) SWIG_fail;
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 result = (bool)(arg1)->Ok();
6607
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 {
6612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6613 }
6614 return resultobj;
6615 fail:
6616 return NULL;
6617 }
6618
6619
6620 static PyObject *_wrap_Cursor_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj = NULL;
6622 wxCursor *arg1 = (wxCursor *) 0 ;
6623 int result;
6624 PyObject * obj0 = 0 ;
6625 char *kwnames[] = {
6626 (char *) "self", NULL
6627 };
6628
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
6630 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6631 if (SWIG_arg_fail(1)) SWIG_fail;
6632 {
6633 PyThreadState* __tstate = wxPyBeginAllowThreads();
6634 result = (int)(arg1)->GetWidth();
6635
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = SWIG_From_int(static_cast<int >(result));
6641 }
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 static PyObject *_wrap_Cursor_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj = NULL;
6650 wxCursor *arg1 = (wxCursor *) 0 ;
6651 int result;
6652 PyObject * obj0 = 0 ;
6653 char *kwnames[] = {
6654 (char *) "self", NULL
6655 };
6656
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
6658 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6659 if (SWIG_arg_fail(1)) SWIG_fail;
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (int)(arg1)->GetHeight();
6663
6664 wxPyEndAllowThreads(__tstate);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 {
6668 resultobj = SWIG_From_int(static_cast<int >(result));
6669 }
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_Cursor_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = NULL;
6678 wxCursor *arg1 = (wxCursor *) 0 ;
6679 int result;
6680 PyObject * obj0 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
6686 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6687 if (SWIG_arg_fail(1)) SWIG_fail;
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = (int)(arg1)->GetDepth();
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = SWIG_From_int(static_cast<int >(result));
6697 }
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 static PyObject *_wrap_Cursor_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj = NULL;
6706 wxCursor *arg1 = (wxCursor *) 0 ;
6707 int arg2 ;
6708 PyObject * obj0 = 0 ;
6709 PyObject * obj1 = 0 ;
6710 char *kwnames[] = {
6711 (char *) "self",(char *) "w", NULL
6712 };
6713
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
6715 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6716 if (SWIG_arg_fail(1)) SWIG_fail;
6717 {
6718 arg2 = static_cast<int >(SWIG_As_int(obj1));
6719 if (SWIG_arg_fail(2)) SWIG_fail;
6720 }
6721 {
6722 PyThreadState* __tstate = wxPyBeginAllowThreads();
6723 (arg1)->SetWidth(arg2);
6724
6725 wxPyEndAllowThreads(__tstate);
6726 if (PyErr_Occurred()) SWIG_fail;
6727 }
6728 Py_INCREF(Py_None); resultobj = Py_None;
6729 return resultobj;
6730 fail:
6731 return NULL;
6732 }
6733
6734
6735 static PyObject *_wrap_Cursor_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj = NULL;
6737 wxCursor *arg1 = (wxCursor *) 0 ;
6738 int arg2 ;
6739 PyObject * obj0 = 0 ;
6740 PyObject * obj1 = 0 ;
6741 char *kwnames[] = {
6742 (char *) "self",(char *) "h", NULL
6743 };
6744
6745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
6746 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6747 if (SWIG_arg_fail(1)) SWIG_fail;
6748 {
6749 arg2 = static_cast<int >(SWIG_As_int(obj1));
6750 if (SWIG_arg_fail(2)) SWIG_fail;
6751 }
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 (arg1)->SetHeight(arg2);
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 Py_INCREF(Py_None); resultobj = Py_None;
6760 return resultobj;
6761 fail:
6762 return NULL;
6763 }
6764
6765
6766 static PyObject *_wrap_Cursor_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
6767 PyObject *resultobj = NULL;
6768 wxCursor *arg1 = (wxCursor *) 0 ;
6769 int arg2 ;
6770 PyObject * obj0 = 0 ;
6771 PyObject * obj1 = 0 ;
6772 char *kwnames[] = {
6773 (char *) "self",(char *) "d", NULL
6774 };
6775
6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
6777 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6778 if (SWIG_arg_fail(1)) SWIG_fail;
6779 {
6780 arg2 = static_cast<int >(SWIG_As_int(obj1));
6781 if (SWIG_arg_fail(2)) SWIG_fail;
6782 }
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 (arg1)->SetDepth(arg2);
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 Py_INCREF(Py_None); resultobj = Py_None;
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_Cursor_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj = NULL;
6799 wxCursor *arg1 = (wxCursor *) 0 ;
6800 wxSize *arg2 = 0 ;
6801 wxSize temp2 ;
6802 PyObject * obj0 = 0 ;
6803 PyObject * obj1 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "self",(char *) "size", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
6809 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0);
6810 if (SWIG_arg_fail(1)) SWIG_fail;
6811 {
6812 arg2 = &temp2;
6813 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6814 }
6815 {
6816 PyThreadState* __tstate = wxPyBeginAllowThreads();
6817 (arg1)->SetSize((wxSize const &)*arg2);
6818
6819 wxPyEndAllowThreads(__tstate);
6820 if (PyErr_Occurred()) SWIG_fail;
6821 }
6822 Py_INCREF(Py_None); resultobj = Py_None;
6823 return resultobj;
6824 fail:
6825 return NULL;
6826 }
6827
6828
6829 static PyObject * Cursor_swigregister(PyObject *, PyObject *args) {
6830 PyObject *obj;
6831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6832 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
6833 Py_INCREF(obj);
6834 return Py_BuildValue((char *)"");
6835 }
6836 static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) {
6837 PyObject *resultobj = NULL;
6838 int arg1 = (int) 0 ;
6839 int arg2 = (int) 0 ;
6840 int arg3 = (int) 0 ;
6841 int arg4 = (int) 0 ;
6842 wxRegion *result;
6843 PyObject * obj0 = 0 ;
6844 PyObject * obj1 = 0 ;
6845 PyObject * obj2 = 0 ;
6846 PyObject * obj3 = 0 ;
6847 char *kwnames[] = {
6848 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
6849 };
6850
6851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6852 if (obj0) {
6853 {
6854 arg1 = static_cast<int >(SWIG_As_int(obj0));
6855 if (SWIG_arg_fail(1)) SWIG_fail;
6856 }
6857 }
6858 if (obj1) {
6859 {
6860 arg2 = static_cast<int >(SWIG_As_int(obj1));
6861 if (SWIG_arg_fail(2)) SWIG_fail;
6862 }
6863 }
6864 if (obj2) {
6865 {
6866 arg3 = static_cast<int >(SWIG_As_int(obj2));
6867 if (SWIG_arg_fail(3)) SWIG_fail;
6868 }
6869 }
6870 if (obj3) {
6871 {
6872 arg4 = static_cast<int >(SWIG_As_int(obj3));
6873 if (SWIG_arg_fail(4)) SWIG_fail;
6874 }
6875 }
6876 {
6877 if (!wxPyCheckForApp()) SWIG_fail;
6878 PyThreadState* __tstate = wxPyBeginAllowThreads();
6879 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
6880
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj = NULL;
6893 wxBitmap *arg1 = 0 ;
6894 wxRegion *result;
6895 PyObject * obj0 = 0 ;
6896 char *kwnames[] = {
6897 (char *) "bmp", NULL
6898 };
6899
6900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
6901 {
6902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6903 if (SWIG_arg_fail(1)) SWIG_fail;
6904 if (arg1 == NULL) {
6905 SWIG_null_ref("wxBitmap");
6906 }
6907 if (SWIG_arg_fail(1)) SWIG_fail;
6908 }
6909 {
6910 if (!wxPyCheckForApp()) SWIG_fail;
6911 PyThreadState* __tstate = wxPyBeginAllowThreads();
6912 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
6913
6914 wxPyEndAllowThreads(__tstate);
6915 if (PyErr_Occurred()) SWIG_fail;
6916 }
6917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6918 return resultobj;
6919 fail:
6920 return NULL;
6921 }
6922
6923
6924 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
6925 PyObject *resultobj = NULL;
6926 wxBitmap *arg1 = 0 ;
6927 wxColour *arg2 = 0 ;
6928 int arg3 = (int) 0 ;
6929 wxRegion *result;
6930 wxColour temp2 ;
6931 PyObject * obj0 = 0 ;
6932 PyObject * obj1 = 0 ;
6933 PyObject * obj2 = 0 ;
6934 char *kwnames[] = {
6935 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6939 {
6940 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
6941 if (SWIG_arg_fail(1)) SWIG_fail;
6942 if (arg1 == NULL) {
6943 SWIG_null_ref("wxBitmap");
6944 }
6945 if (SWIG_arg_fail(1)) SWIG_fail;
6946 }
6947 {
6948 arg2 = &temp2;
6949 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6950 }
6951 if (obj2) {
6952 {
6953 arg3 = static_cast<int >(SWIG_As_int(obj2));
6954 if (SWIG_arg_fail(3)) SWIG_fail;
6955 }
6956 }
6957 {
6958 if (!wxPyCheckForApp()) SWIG_fail;
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
6961
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = NULL;
6974 int arg1 ;
6975 wxPoint *arg2 = (wxPoint *) 0 ;
6976 int arg3 = (int) wxWINDING_RULE ;
6977 wxRegion *result;
6978 PyObject * obj0 = 0 ;
6979 PyObject * obj1 = 0 ;
6980 char *kwnames[] = {
6981 (char *) "points",(char *) "fillStyle", NULL
6982 };
6983
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
6985 {
6986 arg2 = wxPoint_LIST_helper(obj0, &arg1);
6987 if (arg2 == NULL) SWIG_fail;
6988 }
6989 if (obj1) {
6990 {
6991 arg3 = static_cast<int >(SWIG_As_int(obj1));
6992 if (SWIG_arg_fail(3)) SWIG_fail;
6993 }
6994 }
6995 {
6996 if (!wxPyCheckForApp()) SWIG_fail;
6997 PyThreadState* __tstate = wxPyBeginAllowThreads();
6998 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
6999
7000 wxPyEndAllowThreads(__tstate);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
7004 {
7005 if (arg2) delete [] arg2;
7006 }
7007 return resultobj;
7008 fail:
7009 {
7010 if (arg2) delete [] arg2;
7011 }
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj = NULL;
7018 wxRegion *arg1 = (wxRegion *) 0 ;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
7025 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7026 if (SWIG_arg_fail(1)) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 delete arg1;
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 Py_INCREF(Py_None); resultobj = Py_None;
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = NULL;
7043 wxRegion *arg1 = (wxRegion *) 0 ;
7044 PyObject * obj0 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "self", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
7050 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7051 if (SWIG_arg_fail(1)) SWIG_fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 (arg1)->Clear();
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 Py_INCREF(Py_None); resultobj = Py_None;
7060 return resultobj;
7061 fail:
7062 return NULL;
7063 }
7064
7065
7066 static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj = NULL;
7068 wxRegion *arg1 = (wxRegion *) 0 ;
7069 int arg2 ;
7070 int arg3 ;
7071 bool result;
7072 PyObject * obj0 = 0 ;
7073 PyObject * obj1 = 0 ;
7074 PyObject * obj2 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "self",(char *) "x",(char *) "y", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
7080 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7081 if (SWIG_arg_fail(1)) SWIG_fail;
7082 {
7083 arg2 = static_cast<int >(SWIG_As_int(obj1));
7084 if (SWIG_arg_fail(2)) SWIG_fail;
7085 }
7086 {
7087 arg3 = static_cast<int >(SWIG_As_int(obj2));
7088 if (SWIG_arg_fail(3)) SWIG_fail;
7089 }
7090 {
7091 PyThreadState* __tstate = wxPyBeginAllowThreads();
7092 result = (bool)(arg1)->Offset(arg2,arg3);
7093
7094 wxPyEndAllowThreads(__tstate);
7095 if (PyErr_Occurred()) SWIG_fail;
7096 }
7097 {
7098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7099 }
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = NULL;
7108 wxRegion *arg1 = (wxRegion *) 0 ;
7109 int arg2 ;
7110 int arg3 ;
7111 wxRegionContain result;
7112 PyObject * obj0 = 0 ;
7113 PyObject * obj1 = 0 ;
7114 PyObject * obj2 = 0 ;
7115 char *kwnames[] = {
7116 (char *) "self",(char *) "x",(char *) "y", NULL
7117 };
7118
7119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
7120 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7121 if (SWIG_arg_fail(1)) SWIG_fail;
7122 {
7123 arg2 = static_cast<int >(SWIG_As_int(obj1));
7124 if (SWIG_arg_fail(2)) SWIG_fail;
7125 }
7126 {
7127 arg3 = static_cast<int >(SWIG_As_int(obj2));
7128 if (SWIG_arg_fail(3)) SWIG_fail;
7129 }
7130 {
7131 PyThreadState* __tstate = wxPyBeginAllowThreads();
7132 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
7133
7134 wxPyEndAllowThreads(__tstate);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 resultobj = SWIG_From_int((result));
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj = NULL;
7146 wxRegion *arg1 = (wxRegion *) 0 ;
7147 wxPoint *arg2 = 0 ;
7148 wxRegionContain result;
7149 wxPoint temp2 ;
7150 PyObject * obj0 = 0 ;
7151 PyObject * obj1 = 0 ;
7152 char *kwnames[] = {
7153 (char *) "self",(char *) "pt", NULL
7154 };
7155
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
7157 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7158 if (SWIG_arg_fail(1)) SWIG_fail;
7159 {
7160 arg2 = &temp2;
7161 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7162 }
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
7166
7167 wxPyEndAllowThreads(__tstate);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 resultobj = SWIG_From_int((result));
7171 return resultobj;
7172 fail:
7173 return NULL;
7174 }
7175
7176
7177 static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) {
7178 PyObject *resultobj = NULL;
7179 wxRegion *arg1 = (wxRegion *) 0 ;
7180 wxRect *arg2 = 0 ;
7181 wxRegionContain result;
7182 wxRect temp2 ;
7183 PyObject * obj0 = 0 ;
7184 PyObject * obj1 = 0 ;
7185 char *kwnames[] = {
7186 (char *) "self",(char *) "rect", NULL
7187 };
7188
7189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
7190 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7191 if (SWIG_arg_fail(1)) SWIG_fail;
7192 {
7193 arg2 = &temp2;
7194 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7195 }
7196 {
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_From_int((result));
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) {
7211 PyObject *resultobj = NULL;
7212 wxRegion *arg1 = (wxRegion *) 0 ;
7213 int arg2 ;
7214 int arg3 ;
7215 int arg4 ;
7216 int arg5 ;
7217 wxRegionContain result;
7218 PyObject * obj0 = 0 ;
7219 PyObject * obj1 = 0 ;
7220 PyObject * obj2 = 0 ;
7221 PyObject * obj3 = 0 ;
7222 PyObject * obj4 = 0 ;
7223 char *kwnames[] = {
7224 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
7225 };
7226
7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7228 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7229 if (SWIG_arg_fail(1)) SWIG_fail;
7230 {
7231 arg2 = static_cast<int >(SWIG_As_int(obj1));
7232 if (SWIG_arg_fail(2)) SWIG_fail;
7233 }
7234 {
7235 arg3 = static_cast<int >(SWIG_As_int(obj2));
7236 if (SWIG_arg_fail(3)) SWIG_fail;
7237 }
7238 {
7239 arg4 = static_cast<int >(SWIG_As_int(obj3));
7240 if (SWIG_arg_fail(4)) SWIG_fail;
7241 }
7242 {
7243 arg5 = static_cast<int >(SWIG_As_int(obj4));
7244 if (SWIG_arg_fail(5)) SWIG_fail;
7245 }
7246 {
7247 PyThreadState* __tstate = wxPyBeginAllowThreads();
7248 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
7249
7250 wxPyEndAllowThreads(__tstate);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 resultobj = SWIG_From_int((result));
7254 return resultobj;
7255 fail:
7256 return NULL;
7257 }
7258
7259
7260 static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) {
7261 PyObject *resultobj = NULL;
7262 wxRegion *arg1 = (wxRegion *) 0 ;
7263 wxRect result;
7264 PyObject * obj0 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "self", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
7270 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7271 if (SWIG_arg_fail(1)) SWIG_fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 result = (arg1)->GetBox();
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 {
7280 wxRect * resultptr;
7281 resultptr = new wxRect(static_cast<wxRect & >(result));
7282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
7283 }
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj = NULL;
7292 wxRegion *arg1 = (wxRegion *) 0 ;
7293 int arg2 ;
7294 int arg3 ;
7295 int arg4 ;
7296 int arg5 ;
7297 bool result;
7298 PyObject * obj0 = 0 ;
7299 PyObject * obj1 = 0 ;
7300 PyObject * obj2 = 0 ;
7301 PyObject * obj3 = 0 ;
7302 PyObject * obj4 = 0 ;
7303 char *kwnames[] = {
7304 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7305 };
7306
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7308 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7309 if (SWIG_arg_fail(1)) SWIG_fail;
7310 {
7311 arg2 = static_cast<int >(SWIG_As_int(obj1));
7312 if (SWIG_arg_fail(2)) SWIG_fail;
7313 }
7314 {
7315 arg3 = static_cast<int >(SWIG_As_int(obj2));
7316 if (SWIG_arg_fail(3)) SWIG_fail;
7317 }
7318 {
7319 arg4 = static_cast<int >(SWIG_As_int(obj3));
7320 if (SWIG_arg_fail(4)) SWIG_fail;
7321 }
7322 {
7323 arg5 = static_cast<int >(SWIG_As_int(obj4));
7324 if (SWIG_arg_fail(5)) SWIG_fail;
7325 }
7326 {
7327 PyThreadState* __tstate = wxPyBeginAllowThreads();
7328 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
7329
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 {
7334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7335 }
7336 return resultobj;
7337 fail:
7338 return NULL;
7339 }
7340
7341
7342 static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj = NULL;
7344 wxRegion *arg1 = (wxRegion *) 0 ;
7345 wxRect *arg2 = 0 ;
7346 bool result;
7347 wxRect temp2 ;
7348 PyObject * obj0 = 0 ;
7349 PyObject * obj1 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self",(char *) "rect", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
7355 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7356 if (SWIG_arg_fail(1)) SWIG_fail;
7357 {
7358 arg2 = &temp2;
7359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7360 }
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 {
7369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7370 }
7371 return resultobj;
7372 fail:
7373 return NULL;
7374 }
7375
7376
7377 static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7378 PyObject *resultobj = NULL;
7379 wxRegion *arg1 = (wxRegion *) 0 ;
7380 wxRegion *arg2 = 0 ;
7381 bool result;
7382 PyObject * obj0 = 0 ;
7383 PyObject * obj1 = 0 ;
7384 char *kwnames[] = {
7385 (char *) "self",(char *) "region", NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
7389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7390 if (SWIG_arg_fail(1)) SWIG_fail;
7391 {
7392 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7393 if (SWIG_arg_fail(2)) SWIG_fail;
7394 if (arg2 == NULL) {
7395 SWIG_null_ref("wxRegion");
7396 }
7397 if (SWIG_arg_fail(2)) SWIG_fail;
7398 }
7399 {
7400 PyThreadState* __tstate = wxPyBeginAllowThreads();
7401 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
7402
7403 wxPyEndAllowThreads(__tstate);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
7406 {
7407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7408 }
7409 return resultobj;
7410 fail:
7411 return NULL;
7412 }
7413
7414
7415 static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj = NULL;
7417 wxRegion *arg1 = (wxRegion *) 0 ;
7418 bool result;
7419 PyObject * obj0 = 0 ;
7420 char *kwnames[] = {
7421 (char *) "self", NULL
7422 };
7423
7424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
7425 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7426 if (SWIG_arg_fail(1)) SWIG_fail;
7427 {
7428 PyThreadState* __tstate = wxPyBeginAllowThreads();
7429 result = (bool)(arg1)->IsEmpty();
7430
7431 wxPyEndAllowThreads(__tstate);
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 {
7435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7436 }
7437 return resultobj;
7438 fail:
7439 return NULL;
7440 }
7441
7442
7443 static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj = NULL;
7445 wxRegion *arg1 = (wxRegion *) 0 ;
7446 int arg2 ;
7447 int arg3 ;
7448 int arg4 ;
7449 int arg5 ;
7450 bool result;
7451 PyObject * obj0 = 0 ;
7452 PyObject * obj1 = 0 ;
7453 PyObject * obj2 = 0 ;
7454 PyObject * obj3 = 0 ;
7455 PyObject * obj4 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7461 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7462 if (SWIG_arg_fail(1)) SWIG_fail;
7463 {
7464 arg2 = static_cast<int >(SWIG_As_int(obj1));
7465 if (SWIG_arg_fail(2)) SWIG_fail;
7466 }
7467 {
7468 arg3 = static_cast<int >(SWIG_As_int(obj2));
7469 if (SWIG_arg_fail(3)) SWIG_fail;
7470 }
7471 {
7472 arg4 = static_cast<int >(SWIG_As_int(obj3));
7473 if (SWIG_arg_fail(4)) SWIG_fail;
7474 }
7475 {
7476 arg5 = static_cast<int >(SWIG_As_int(obj4));
7477 if (SWIG_arg_fail(5)) SWIG_fail;
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 {
7487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7488 }
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj = NULL;
7497 wxRegion *arg1 = (wxRegion *) 0 ;
7498 wxRect *arg2 = 0 ;
7499 bool result;
7500 wxRect temp2 ;
7501 PyObject * obj0 = 0 ;
7502 PyObject * obj1 = 0 ;
7503 char *kwnames[] = {
7504 (char *) "self",(char *) "rect", NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
7508 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7509 if (SWIG_arg_fail(1)) SWIG_fail;
7510 {
7511 arg2 = &temp2;
7512 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7513 }
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 result = (bool)(arg1)->Union((wxRect const &)*arg2);
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 {
7522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7523 }
7524 return resultobj;
7525 fail:
7526 return NULL;
7527 }
7528
7529
7530 static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7531 PyObject *resultobj = NULL;
7532 wxRegion *arg1 = (wxRegion *) 0 ;
7533 wxRegion *arg2 = 0 ;
7534 bool result;
7535 PyObject * obj0 = 0 ;
7536 PyObject * obj1 = 0 ;
7537 char *kwnames[] = {
7538 (char *) "self",(char *) "region", NULL
7539 };
7540
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
7542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7543 if (SWIG_arg_fail(1)) SWIG_fail;
7544 {
7545 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7546 if (SWIG_arg_fail(2)) SWIG_fail;
7547 if (arg2 == NULL) {
7548 SWIG_null_ref("wxRegion");
7549 }
7550 if (SWIG_arg_fail(2)) SWIG_fail;
7551 }
7552 {
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
7555
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 {
7560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7561 }
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj = NULL;
7570 wxRegion *arg1 = (wxRegion *) 0 ;
7571 int arg2 ;
7572 int arg3 ;
7573 int arg4 ;
7574 int arg5 ;
7575 bool result;
7576 PyObject * obj0 = 0 ;
7577 PyObject * obj1 = 0 ;
7578 PyObject * obj2 = 0 ;
7579 PyObject * obj3 = 0 ;
7580 PyObject * obj4 = 0 ;
7581 char *kwnames[] = {
7582 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7583 };
7584
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7587 if (SWIG_arg_fail(1)) SWIG_fail;
7588 {
7589 arg2 = static_cast<int >(SWIG_As_int(obj1));
7590 if (SWIG_arg_fail(2)) SWIG_fail;
7591 }
7592 {
7593 arg3 = static_cast<int >(SWIG_As_int(obj2));
7594 if (SWIG_arg_fail(3)) SWIG_fail;
7595 }
7596 {
7597 arg4 = static_cast<int >(SWIG_As_int(obj3));
7598 if (SWIG_arg_fail(4)) SWIG_fail;
7599 }
7600 {
7601 arg5 = static_cast<int >(SWIG_As_int(obj4));
7602 if (SWIG_arg_fail(5)) SWIG_fail;
7603 }
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
7607
7608 wxPyEndAllowThreads(__tstate);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 {
7612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7613 }
7614 return resultobj;
7615 fail:
7616 return NULL;
7617 }
7618
7619
7620 static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) {
7621 PyObject *resultobj = NULL;
7622 wxRegion *arg1 = (wxRegion *) 0 ;
7623 wxRect *arg2 = 0 ;
7624 bool result;
7625 wxRect temp2 ;
7626 PyObject * obj0 = 0 ;
7627 PyObject * obj1 = 0 ;
7628 char *kwnames[] = {
7629 (char *) "self",(char *) "rect", NULL
7630 };
7631
7632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
7633 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7634 if (SWIG_arg_fail(1)) SWIG_fail;
7635 {
7636 arg2 = &temp2;
7637 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7638 }
7639 {
7640 PyThreadState* __tstate = wxPyBeginAllowThreads();
7641 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
7642
7643 wxPyEndAllowThreads(__tstate);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 {
7647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7648 }
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj = NULL;
7657 wxRegion *arg1 = (wxRegion *) 0 ;
7658 wxRegion *arg2 = 0 ;
7659 bool result;
7660 PyObject * obj0 = 0 ;
7661 PyObject * obj1 = 0 ;
7662 char *kwnames[] = {
7663 (char *) "self",(char *) "region", NULL
7664 };
7665
7666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
7667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7668 if (SWIG_arg_fail(1)) SWIG_fail;
7669 {
7670 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7671 if (SWIG_arg_fail(2)) SWIG_fail;
7672 if (arg2 == NULL) {
7673 SWIG_null_ref("wxRegion");
7674 }
7675 if (SWIG_arg_fail(2)) SWIG_fail;
7676 }
7677 {
7678 PyThreadState* __tstate = wxPyBeginAllowThreads();
7679 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
7680
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 {
7685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7686 }
7687 return resultobj;
7688 fail:
7689 return NULL;
7690 }
7691
7692
7693 static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) {
7694 PyObject *resultobj = NULL;
7695 wxRegion *arg1 = (wxRegion *) 0 ;
7696 int arg2 ;
7697 int arg3 ;
7698 int arg4 ;
7699 int arg5 ;
7700 bool result;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 PyObject * obj3 = 0 ;
7705 PyObject * obj4 = 0 ;
7706 char *kwnames[] = {
7707 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7711 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7712 if (SWIG_arg_fail(1)) SWIG_fail;
7713 {
7714 arg2 = static_cast<int >(SWIG_As_int(obj1));
7715 if (SWIG_arg_fail(2)) SWIG_fail;
7716 }
7717 {
7718 arg3 = static_cast<int >(SWIG_As_int(obj2));
7719 if (SWIG_arg_fail(3)) SWIG_fail;
7720 }
7721 {
7722 arg4 = static_cast<int >(SWIG_As_int(obj3));
7723 if (SWIG_arg_fail(4)) SWIG_fail;
7724 }
7725 {
7726 arg5 = static_cast<int >(SWIG_As_int(obj4));
7727 if (SWIG_arg_fail(5)) SWIG_fail;
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 {
7737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7738 }
7739 return resultobj;
7740 fail:
7741 return NULL;
7742 }
7743
7744
7745 static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj = NULL;
7747 wxRegion *arg1 = (wxRegion *) 0 ;
7748 wxRect *arg2 = 0 ;
7749 bool result;
7750 wxRect temp2 ;
7751 PyObject * obj0 = 0 ;
7752 PyObject * obj1 = 0 ;
7753 char *kwnames[] = {
7754 (char *) "self",(char *) "rect", NULL
7755 };
7756
7757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
7758 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7759 if (SWIG_arg_fail(1)) SWIG_fail;
7760 {
7761 arg2 = &temp2;
7762 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
7763 }
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 {
7772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7773 }
7774 return resultobj;
7775 fail:
7776 return NULL;
7777 }
7778
7779
7780 static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) {
7781 PyObject *resultobj = NULL;
7782 wxRegion *arg1 = (wxRegion *) 0 ;
7783 wxRegion *arg2 = 0 ;
7784 bool result;
7785 PyObject * obj0 = 0 ;
7786 PyObject * obj1 = 0 ;
7787 char *kwnames[] = {
7788 (char *) "self",(char *) "region", NULL
7789 };
7790
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
7792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7793 if (SWIG_arg_fail(1)) SWIG_fail;
7794 {
7795 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7796 if (SWIG_arg_fail(2)) SWIG_fail;
7797 if (arg2 == NULL) {
7798 SWIG_null_ref("wxRegion");
7799 }
7800 if (SWIG_arg_fail(2)) SWIG_fail;
7801 }
7802 {
7803 PyThreadState* __tstate = wxPyBeginAllowThreads();
7804 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
7805
7806 wxPyEndAllowThreads(__tstate);
7807 if (PyErr_Occurred()) SWIG_fail;
7808 }
7809 {
7810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7811 }
7812 return resultobj;
7813 fail:
7814 return NULL;
7815 }
7816
7817
7818 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7819 PyObject *resultobj = NULL;
7820 wxRegion *arg1 = (wxRegion *) 0 ;
7821 SwigValueWrapper<wxBitmap > result;
7822 PyObject * obj0 = 0 ;
7823 char *kwnames[] = {
7824 (char *) "self", NULL
7825 };
7826
7827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
7828 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7829 if (SWIG_arg_fail(1)) SWIG_fail;
7830 {
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (arg1)->ConvertToBitmap();
7833
7834 wxPyEndAllowThreads(__tstate);
7835 if (PyErr_Occurred()) SWIG_fail;
7836 }
7837 {
7838 wxBitmap * resultptr;
7839 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
7840 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
7841 }
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj = NULL;
7850 wxRegion *arg1 = (wxRegion *) 0 ;
7851 wxBitmap *arg2 = 0 ;
7852 bool result;
7853 PyObject * obj0 = 0 ;
7854 PyObject * obj1 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "self",(char *) "bmp", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
7860 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7861 if (SWIG_arg_fail(1)) SWIG_fail;
7862 {
7863 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7864 if (SWIG_arg_fail(2)) SWIG_fail;
7865 if (arg2 == NULL) {
7866 SWIG_null_ref("wxBitmap");
7867 }
7868 if (SWIG_arg_fail(2)) SWIG_fail;
7869 }
7870 {
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
7873
7874 wxPyEndAllowThreads(__tstate);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 {
7878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7879 }
7880 return resultobj;
7881 fail:
7882 return NULL;
7883 }
7884
7885
7886 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) {
7887 PyObject *resultobj = NULL;
7888 wxRegion *arg1 = (wxRegion *) 0 ;
7889 wxBitmap *arg2 = 0 ;
7890 wxColour *arg3 = 0 ;
7891 int arg4 = (int) 0 ;
7892 bool result;
7893 wxColour temp3 ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896 PyObject * obj2 = 0 ;
7897 PyObject * obj3 = 0 ;
7898 char *kwnames[] = {
7899 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7903 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7904 if (SWIG_arg_fail(1)) SWIG_fail;
7905 {
7906 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
7907 if (SWIG_arg_fail(2)) SWIG_fail;
7908 if (arg2 == NULL) {
7909 SWIG_null_ref("wxBitmap");
7910 }
7911 if (SWIG_arg_fail(2)) SWIG_fail;
7912 }
7913 {
7914 arg3 = &temp3;
7915 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
7916 }
7917 if (obj3) {
7918 {
7919 arg4 = static_cast<int >(SWIG_As_int(obj3));
7920 if (SWIG_arg_fail(4)) SWIG_fail;
7921 }
7922 }
7923 {
7924 PyThreadState* __tstate = wxPyBeginAllowThreads();
7925 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
7926
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 {
7931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7932 }
7933 return resultobj;
7934 fail:
7935 return NULL;
7936 }
7937
7938
7939 static PyObject * Region_swigregister(PyObject *, PyObject *args) {
7940 PyObject *obj;
7941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7942 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
7943 Py_INCREF(obj);
7944 return Py_BuildValue((char *)"");
7945 }
7946 static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj = NULL;
7948 wxRegion *arg1 = 0 ;
7949 wxRegionIterator *result;
7950 PyObject * obj0 = 0 ;
7951 char *kwnames[] = {
7952 (char *) "region", NULL
7953 };
7954
7955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
7956 {
7957 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
7958 if (SWIG_arg_fail(1)) SWIG_fail;
7959 if (arg1 == NULL) {
7960 SWIG_null_ref("wxRegion");
7961 }
7962 if (SWIG_arg_fail(1)) SWIG_fail;
7963 }
7964 {
7965 if (!wxPyCheckForApp()) SWIG_fail;
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
7968
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj = NULL;
7981 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
7982 PyObject * obj0 = 0 ;
7983 char *kwnames[] = {
7984 (char *) "self", NULL
7985 };
7986
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
7988 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
7989 if (SWIG_arg_fail(1)) SWIG_fail;
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 delete arg1;
7993
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 Py_INCREF(Py_None); resultobj = Py_None;
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj = NULL;
8006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8007 int result;
8008 PyObject * obj0 = 0 ;
8009 char *kwnames[] = {
8010 (char *) "self", NULL
8011 };
8012
8013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
8014 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8015 if (SWIG_arg_fail(1)) SWIG_fail;
8016 {
8017 PyThreadState* __tstate = wxPyBeginAllowThreads();
8018 result = (int)(arg1)->GetX();
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 {
8024 resultobj = SWIG_From_int(static_cast<int >(result));
8025 }
8026 return resultobj;
8027 fail:
8028 return NULL;
8029 }
8030
8031
8032 static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
8033 PyObject *resultobj = NULL;
8034 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8035 int result;
8036 PyObject * obj0 = 0 ;
8037 char *kwnames[] = {
8038 (char *) "self", NULL
8039 };
8040
8041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
8042 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8043 if (SWIG_arg_fail(1)) SWIG_fail;
8044 {
8045 PyThreadState* __tstate = wxPyBeginAllowThreads();
8046 result = (int)(arg1)->GetY();
8047
8048 wxPyEndAllowThreads(__tstate);
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 {
8052 resultobj = SWIG_From_int(static_cast<int >(result));
8053 }
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) {
8061 PyObject *resultobj = NULL;
8062 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8063 int result;
8064 PyObject * obj0 = 0 ;
8065 char *kwnames[] = {
8066 (char *) "self", NULL
8067 };
8068
8069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
8070 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8071 if (SWIG_arg_fail(1)) SWIG_fail;
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 result = (int)(arg1)->GetW();
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 {
8080 resultobj = SWIG_From_int(static_cast<int >(result));
8081 }
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj = NULL;
8090 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8091 int result;
8092 PyObject * obj0 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "self", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
8098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8099 if (SWIG_arg_fail(1)) SWIG_fail;
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 result = (int)(arg1)->GetWidth();
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 {
8108 resultobj = SWIG_From_int(static_cast<int >(result));
8109 }
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj = NULL;
8118 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8119 int result;
8120 PyObject * obj0 = 0 ;
8121 char *kwnames[] = {
8122 (char *) "self", NULL
8123 };
8124
8125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
8126 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8127 if (SWIG_arg_fail(1)) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (int)(arg1)->GetH();
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 {
8136 resultobj = SWIG_From_int(static_cast<int >(result));
8137 }
8138 return resultobj;
8139 fail:
8140 return NULL;
8141 }
8142
8143
8144 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj = NULL;
8146 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8147 int result;
8148 PyObject * obj0 = 0 ;
8149 char *kwnames[] = {
8150 (char *) "self", NULL
8151 };
8152
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
8154 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8155 if (SWIG_arg_fail(1)) SWIG_fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (int)(arg1)->GetHeight();
8159
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 {
8164 resultobj = SWIG_From_int(static_cast<int >(result));
8165 }
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj = NULL;
8174 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8175 wxRect result;
8176 PyObject * obj0 = 0 ;
8177 char *kwnames[] = {
8178 (char *) "self", NULL
8179 };
8180
8181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
8182 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8183 if (SWIG_arg_fail(1)) SWIG_fail;
8184 {
8185 PyThreadState* __tstate = wxPyBeginAllowThreads();
8186 result = (arg1)->GetRect();
8187
8188 wxPyEndAllowThreads(__tstate);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 {
8192 wxRect * resultptr;
8193 resultptr = new wxRect(static_cast<wxRect & >(result));
8194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
8195 }
8196 return resultobj;
8197 fail:
8198 return NULL;
8199 }
8200
8201
8202 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj = NULL;
8204 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8205 bool result;
8206 PyObject * obj0 = 0 ;
8207 char *kwnames[] = {
8208 (char *) "self", NULL
8209 };
8210
8211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
8212 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8213 if (SWIG_arg_fail(1)) SWIG_fail;
8214 {
8215 PyThreadState* __tstate = wxPyBeginAllowThreads();
8216 result = (bool)(arg1)->HaveRects();
8217
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 }
8221 {
8222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8223 }
8224 return resultobj;
8225 fail:
8226 return NULL;
8227 }
8228
8229
8230 static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) {
8231 PyObject *resultobj = NULL;
8232 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8233 PyObject * obj0 = 0 ;
8234 char *kwnames[] = {
8235 (char *) "self", NULL
8236 };
8237
8238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
8239 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8240 if (SWIG_arg_fail(1)) SWIG_fail;
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 (arg1)->Reset();
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 Py_INCREF(Py_None); resultobj = Py_None;
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj = NULL;
8257 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "self", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
8264 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8265 if (SWIG_arg_fail(1)) SWIG_fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 wxRegionIterator_Next(arg1);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj = NULL;
8282 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8283 bool result;
8284 PyObject * obj0 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
8290 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_EXCEPTION | 0);
8291 if (SWIG_arg_fail(1)) SWIG_fail;
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 result = (bool)wxRegionIterator___nonzero__(arg1);
8295
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 {
8300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8301 }
8302 return resultobj;
8303 fail:
8304 return NULL;
8305 }
8306
8307
8308 static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) {
8309 PyObject *obj;
8310 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8311 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
8312 Py_INCREF(obj);
8313 return Py_BuildValue((char *)"");
8314 }
8315 static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj = NULL;
8317 wxNativeFontInfo *result;
8318 char *kwnames[] = {
8319 NULL
8320 };
8321
8322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = (wxNativeFontInfo *)new wxNativeFontInfo();
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
8331 return resultobj;
8332 fail:
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj = NULL;
8339 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8340 PyObject * obj0 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
8346 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8347 if (SWIG_arg_fail(1)) SWIG_fail;
8348 {
8349 PyThreadState* __tstate = wxPyBeginAllowThreads();
8350 delete arg1;
8351
8352 wxPyEndAllowThreads(__tstate);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 }
8355 Py_INCREF(Py_None); resultobj = Py_None;
8356 return resultobj;
8357 fail:
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj = NULL;
8364 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8365 PyObject * obj0 = 0 ;
8366 char *kwnames[] = {
8367 (char *) "self", NULL
8368 };
8369
8370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
8371 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8372 if (SWIG_arg_fail(1)) SWIG_fail;
8373 {
8374 PyThreadState* __tstate = wxPyBeginAllowThreads();
8375 (arg1)->Init();
8376
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 Py_INCREF(Py_None); resultobj = Py_None;
8381 return resultobj;
8382 fail:
8383 return NULL;
8384 }
8385
8386
8387 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj = NULL;
8389 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8390 wxFont *arg2 = 0 ;
8391 PyObject * obj0 = 0 ;
8392 PyObject * obj1 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "self",(char *) "font", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
8398 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8399 if (SWIG_arg_fail(1)) SWIG_fail;
8400 {
8401 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
8402 if (SWIG_arg_fail(2)) SWIG_fail;
8403 if (arg2 == NULL) {
8404 SWIG_null_ref("wxFont");
8405 }
8406 if (SWIG_arg_fail(2)) SWIG_fail;
8407 }
8408 {
8409 PyThreadState* __tstate = wxPyBeginAllowThreads();
8410 (arg1)->InitFromFont((wxFont const &)*arg2);
8411
8412 wxPyEndAllowThreads(__tstate);
8413 if (PyErr_Occurred()) SWIG_fail;
8414 }
8415 Py_INCREF(Py_None); resultobj = Py_None;
8416 return resultobj;
8417 fail:
8418 return NULL;
8419 }
8420
8421
8422 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj = NULL;
8424 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8425 int result;
8426 PyObject * obj0 = 0 ;
8427 char *kwnames[] = {
8428 (char *) "self", NULL
8429 };
8430
8431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
8432 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8433 if (SWIG_arg_fail(1)) SWIG_fail;
8434 {
8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
8436 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
8437
8438 wxPyEndAllowThreads(__tstate);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 {
8442 resultobj = SWIG_From_int(static_cast<int >(result));
8443 }
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj = NULL;
8452 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8453 wxSize result;
8454 PyObject * obj0 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPixelSize",kwnames,&obj0)) goto fail;
8460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8461 if (SWIG_arg_fail(1)) SWIG_fail;
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
8464 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 {
8470 wxSize * resultptr;
8471 resultptr = new wxSize(static_cast<wxSize & >(result));
8472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
8473 }
8474 return resultobj;
8475 fail:
8476 return NULL;
8477 }
8478
8479
8480 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8481 PyObject *resultobj = NULL;
8482 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8483 wxFontStyle result;
8484 PyObject * obj0 = 0 ;
8485 char *kwnames[] = {
8486 (char *) "self", NULL
8487 };
8488
8489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
8490 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8491 if (SWIG_arg_fail(1)) SWIG_fail;
8492 {
8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
8494 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
8495
8496 wxPyEndAllowThreads(__tstate);
8497 if (PyErr_Occurred()) SWIG_fail;
8498 }
8499 resultobj = SWIG_From_int((result));
8500 return resultobj;
8501 fail:
8502 return NULL;
8503 }
8504
8505
8506 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8507 PyObject *resultobj = NULL;
8508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8509 wxFontWeight result;
8510 PyObject * obj0 = 0 ;
8511 char *kwnames[] = {
8512 (char *) "self", NULL
8513 };
8514
8515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
8516 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8517 if (SWIG_arg_fail(1)) SWIG_fail;
8518 {
8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
8520 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
8521
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 resultobj = SWIG_From_int((result));
8526 return resultobj;
8527 fail:
8528 return NULL;
8529 }
8530
8531
8532 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8533 PyObject *resultobj = NULL;
8534 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8535 bool result;
8536 PyObject * obj0 = 0 ;
8537 char *kwnames[] = {
8538 (char *) "self", NULL
8539 };
8540
8541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
8542 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8543 if (SWIG_arg_fail(1)) SWIG_fail;
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
8547
8548 wxPyEndAllowThreads(__tstate);
8549 if (PyErr_Occurred()) SWIG_fail;
8550 }
8551 {
8552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8553 }
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8561 PyObject *resultobj = NULL;
8562 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8563 wxString result;
8564 PyObject * obj0 = 0 ;
8565 char *kwnames[] = {
8566 (char *) "self", NULL
8567 };
8568
8569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
8570 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8571 if (SWIG_arg_fail(1)) SWIG_fail;
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) SWIG_fail;
8578 }
8579 {
8580 #if wxUSE_UNICODE
8581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8582 #else
8583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8584 #endif
8585 }
8586 return resultobj;
8587 fail:
8588 return NULL;
8589 }
8590
8591
8592 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj = NULL;
8594 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8595 wxFontFamily result;
8596 PyObject * obj0 = 0 ;
8597 char *kwnames[] = {
8598 (char *) "self", NULL
8599 };
8600
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
8602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8603 if (SWIG_arg_fail(1)) SWIG_fail;
8604 {
8605 PyThreadState* __tstate = wxPyBeginAllowThreads();
8606 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
8607
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 resultobj = SWIG_From_int((result));
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj = NULL;
8620 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8621 wxFontEncoding result;
8622 PyObject * obj0 = 0 ;
8623 char *kwnames[] = {
8624 (char *) "self", NULL
8625 };
8626
8627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
8628 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8629 if (SWIG_arg_fail(1)) SWIG_fail;
8630 {
8631 PyThreadState* __tstate = wxPyBeginAllowThreads();
8632 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
8633
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 resultobj = SWIG_From_int((result));
8638 return resultobj;
8639 fail:
8640 return NULL;
8641 }
8642
8643
8644 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
8645 PyObject *resultobj = NULL;
8646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8647 int arg2 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 char *kwnames[] = {
8651 (char *) "self",(char *) "pointsize", NULL
8652 };
8653
8654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8656 if (SWIG_arg_fail(1)) SWIG_fail;
8657 {
8658 arg2 = static_cast<int >(SWIG_As_int(obj1));
8659 if (SWIG_arg_fail(2)) SWIG_fail;
8660 }
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 (arg1)->SetPointSize(arg2);
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 Py_INCREF(Py_None); resultobj = Py_None;
8669 return resultobj;
8670 fail:
8671 return NULL;
8672 }
8673
8674
8675 static PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj = NULL;
8677 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8678 wxSize *arg2 = 0 ;
8679 wxSize temp2 ;
8680 PyObject * obj0 = 0 ;
8681 PyObject * obj1 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "self",(char *) "pixelSize", NULL
8684 };
8685
8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
8687 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8688 if (SWIG_arg_fail(1)) SWIG_fail;
8689 {
8690 arg2 = &temp2;
8691 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8692 }
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 (arg1)->SetPixelSize((wxSize const &)*arg2);
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 Py_INCREF(Py_None); resultobj = Py_None;
8701 return resultobj;
8702 fail:
8703 return NULL;
8704 }
8705
8706
8707 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj = NULL;
8709 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8710 wxFontStyle arg2 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self",(char *) "style", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8719 if (SWIG_arg_fail(1)) SWIG_fail;
8720 {
8721 arg2 = static_cast<wxFontStyle >(SWIG_As_int(obj1));
8722 if (SWIG_arg_fail(2)) SWIG_fail;
8723 }
8724 {
8725 PyThreadState* __tstate = wxPyBeginAllowThreads();
8726 (arg1)->SetStyle(arg2);
8727
8728 wxPyEndAllowThreads(__tstate);
8729 if (PyErr_Occurred()) SWIG_fail;
8730 }
8731 Py_INCREF(Py_None); resultobj = Py_None;
8732 return resultobj;
8733 fail:
8734 return NULL;
8735 }
8736
8737
8738 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj = NULL;
8740 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8741 wxFontWeight arg2 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 char *kwnames[] = {
8745 (char *) "self",(char *) "weight", NULL
8746 };
8747
8748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8749 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8750 if (SWIG_arg_fail(1)) SWIG_fail;
8751 {
8752 arg2 = static_cast<wxFontWeight >(SWIG_As_int(obj1));
8753 if (SWIG_arg_fail(2)) SWIG_fail;
8754 }
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 (arg1)->SetWeight(arg2);
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 Py_INCREF(Py_None); resultobj = Py_None;
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj = NULL;
8771 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8772 bool arg2 ;
8773 PyObject * obj0 = 0 ;
8774 PyObject * obj1 = 0 ;
8775 char *kwnames[] = {
8776 (char *) "self",(char *) "underlined", NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8781 if (SWIG_arg_fail(1)) SWIG_fail;
8782 {
8783 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
8784 if (SWIG_arg_fail(2)) SWIG_fail;
8785 }
8786 {
8787 PyThreadState* __tstate = wxPyBeginAllowThreads();
8788 (arg1)->SetUnderlined(arg2);
8789
8790 wxPyEndAllowThreads(__tstate);
8791 if (PyErr_Occurred()) SWIG_fail;
8792 }
8793 Py_INCREF(Py_None); resultobj = Py_None;
8794 return resultobj;
8795 fail:
8796 return NULL;
8797 }
8798
8799
8800 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj = NULL;
8802 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8803 wxString arg2 ;
8804 PyObject * obj0 = 0 ;
8805 PyObject * obj1 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self",(char *) "facename", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8811 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8812 if (SWIG_arg_fail(1)) SWIG_fail;
8813 {
8814 wxString* sptr = wxString_in_helper(obj1);
8815 if (sptr == NULL) SWIG_fail;
8816 arg2 = *sptr;
8817 delete sptr;
8818 }
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 (arg1)->SetFaceName(arg2);
8822
8823 wxPyEndAllowThreads(__tstate);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 }
8826 Py_INCREF(Py_None); resultobj = Py_None;
8827 return resultobj;
8828 fail:
8829 return NULL;
8830 }
8831
8832
8833 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
8834 PyObject *resultobj = NULL;
8835 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8836 wxFontFamily arg2 ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self",(char *) "family", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8844 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8845 if (SWIG_arg_fail(1)) SWIG_fail;
8846 {
8847 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
8848 if (SWIG_arg_fail(2)) SWIG_fail;
8849 }
8850 {
8851 PyThreadState* __tstate = wxPyBeginAllowThreads();
8852 (arg1)->SetFamily(arg2);
8853
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 Py_INCREF(Py_None); resultobj = Py_None;
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj = NULL;
8866 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8867 wxFontEncoding arg2 ;
8868 PyObject * obj0 = 0 ;
8869 PyObject * obj1 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self",(char *) "encoding", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8876 if (SWIG_arg_fail(1)) SWIG_fail;
8877 {
8878 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
8879 if (SWIG_arg_fail(2)) SWIG_fail;
8880 }
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 (arg1)->SetEncoding(arg2);
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 Py_INCREF(Py_None); resultobj = Py_None;
8889 return resultobj;
8890 fail:
8891 return NULL;
8892 }
8893
8894
8895 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
8896 PyObject *resultobj = NULL;
8897 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8898 wxString *arg2 = 0 ;
8899 bool result;
8900 bool temp2 = false ;
8901 PyObject * obj0 = 0 ;
8902 PyObject * obj1 = 0 ;
8903 char *kwnames[] = {
8904 (char *) "self",(char *) "s", NULL
8905 };
8906
8907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
8908 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8909 if (SWIG_arg_fail(1)) SWIG_fail;
8910 {
8911 arg2 = wxString_in_helper(obj1);
8912 if (arg2 == NULL) SWIG_fail;
8913 temp2 = true;
8914 }
8915 {
8916 PyThreadState* __tstate = wxPyBeginAllowThreads();
8917 result = (bool)(arg1)->FromString((wxString const &)*arg2);
8918
8919 wxPyEndAllowThreads(__tstate);
8920 if (PyErr_Occurred()) SWIG_fail;
8921 }
8922 {
8923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8924 }
8925 {
8926 if (temp2)
8927 delete arg2;
8928 }
8929 return resultobj;
8930 fail:
8931 {
8932 if (temp2)
8933 delete arg2;
8934 }
8935 return NULL;
8936 }
8937
8938
8939 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj = NULL;
8941 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8942 wxString result;
8943 PyObject * obj0 = 0 ;
8944 char *kwnames[] = {
8945 (char *) "self", NULL
8946 };
8947
8948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
8949 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8950 if (SWIG_arg_fail(1)) SWIG_fail;
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = ((wxNativeFontInfo const *)arg1)->ToString();
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
8958 {
8959 #if wxUSE_UNICODE
8960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8961 #else
8962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8963 #endif
8964 }
8965 return resultobj;
8966 fail:
8967 return NULL;
8968 }
8969
8970
8971 static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj = NULL;
8973 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
8974 wxString result;
8975 PyObject * obj0 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
8981 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
8982 if (SWIG_arg_fail(1)) SWIG_fail;
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = wxNativeFontInfo___str__(arg1);
8986
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 {
8991 #if wxUSE_UNICODE
8992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8993 #else
8994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8995 #endif
8996 }
8997 return resultobj;
8998 fail:
8999 return NULL;
9000 }
9001
9002
9003 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj = NULL;
9005 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9006 wxString *arg2 = 0 ;
9007 bool result;
9008 bool temp2 = false ;
9009 PyObject * obj0 = 0 ;
9010 PyObject * obj1 = 0 ;
9011 char *kwnames[] = {
9012 (char *) "self",(char *) "s", NULL
9013 };
9014
9015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
9016 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9017 if (SWIG_arg_fail(1)) SWIG_fail;
9018 {
9019 arg2 = wxString_in_helper(obj1);
9020 if (arg2 == NULL) SWIG_fail;
9021 temp2 = true;
9022 }
9023 {
9024 PyThreadState* __tstate = wxPyBeginAllowThreads();
9025 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
9026
9027 wxPyEndAllowThreads(__tstate);
9028 if (PyErr_Occurred()) SWIG_fail;
9029 }
9030 {
9031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9032 }
9033 {
9034 if (temp2)
9035 delete arg2;
9036 }
9037 return resultobj;
9038 fail:
9039 {
9040 if (temp2)
9041 delete arg2;
9042 }
9043 return NULL;
9044 }
9045
9046
9047 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj = NULL;
9049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9050 wxString result;
9051 PyObject * obj0 = 0 ;
9052 char *kwnames[] = {
9053 (char *) "self", NULL
9054 };
9055
9056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
9057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
9058 if (SWIG_arg_fail(1)) SWIG_fail;
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
9062
9063 wxPyEndAllowThreads(__tstate);
9064 if (PyErr_Occurred()) SWIG_fail;
9065 }
9066 {
9067 #if wxUSE_UNICODE
9068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9069 #else
9070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9071 #endif
9072 }
9073 return resultobj;
9074 fail:
9075 return NULL;
9076 }
9077
9078
9079 static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) {
9080 PyObject *obj;
9081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9082 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
9083 Py_INCREF(obj);
9084 return Py_BuildValue((char *)"");
9085 }
9086 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = NULL;
9088 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9089 wxString *arg2 = (wxString *) 0 ;
9090 bool temp2 = false ;
9091 PyObject * obj0 = 0 ;
9092 PyObject * obj1 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self",(char *) "facename", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
9098 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9099 if (SWIG_arg_fail(1)) SWIG_fail;
9100 {
9101 arg2 = wxString_in_helper(obj1);
9102 if (arg2 == NULL) SWIG_fail;
9103 temp2 = true;
9104 }
9105 if (arg1) (arg1)->facename = *arg2;
9106
9107 Py_INCREF(Py_None); resultobj = Py_None;
9108 {
9109 if (temp2)
9110 delete arg2;
9111 }
9112 return resultobj;
9113 fail:
9114 {
9115 if (temp2)
9116 delete arg2;
9117 }
9118 return NULL;
9119 }
9120
9121
9122 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) {
9123 PyObject *resultobj = NULL;
9124 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9125 wxString *result;
9126 PyObject * obj0 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
9132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9133 if (SWIG_arg_fail(1)) SWIG_fail;
9134 result = (wxString *)& ((arg1)->facename);
9135
9136 {
9137 #if wxUSE_UNICODE
9138 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9139 #else
9140 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9141 #endif
9142 }
9143 return resultobj;
9144 fail:
9145 return NULL;
9146 }
9147
9148
9149 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) {
9150 PyObject *resultobj = NULL;
9151 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9152 wxFontEncoding arg2 ;
9153 PyObject * obj0 = 0 ;
9154 PyObject * obj1 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "encoding", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
9160 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9161 if (SWIG_arg_fail(1)) SWIG_fail;
9162 {
9163 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9164 if (SWIG_arg_fail(2)) SWIG_fail;
9165 }
9166 if (arg1) (arg1)->encoding = arg2;
9167
9168 Py_INCREF(Py_None); resultobj = Py_None;
9169 return resultobj;
9170 fail:
9171 return NULL;
9172 }
9173
9174
9175 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = NULL;
9177 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9178 wxFontEncoding result;
9179 PyObject * obj0 = 0 ;
9180 char *kwnames[] = {
9181 (char *) "self", NULL
9182 };
9183
9184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
9185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9186 if (SWIG_arg_fail(1)) SWIG_fail;
9187 result = (wxFontEncoding) ((arg1)->encoding);
9188
9189 resultobj = SWIG_From_int((result));
9190 return resultobj;
9191 fail:
9192 return NULL;
9193 }
9194
9195
9196 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj = NULL;
9198 wxNativeEncodingInfo *result;
9199 char *kwnames[] = {
9200 NULL
9201 };
9202
9203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
9207
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
9212 return resultobj;
9213 fail:
9214 return NULL;
9215 }
9216
9217
9218 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = NULL;
9220 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9221 PyObject * obj0 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
9227 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9228 if (SWIG_arg_fail(1)) SWIG_fail;
9229 {
9230 PyThreadState* __tstate = wxPyBeginAllowThreads();
9231 delete arg1;
9232
9233 wxPyEndAllowThreads(__tstate);
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 Py_INCREF(Py_None); resultobj = Py_None;
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj = NULL;
9245 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9246 wxString *arg2 = 0 ;
9247 bool result;
9248 bool temp2 = false ;
9249 PyObject * obj0 = 0 ;
9250 PyObject * obj1 = 0 ;
9251 char *kwnames[] = {
9252 (char *) "self",(char *) "s", NULL
9253 };
9254
9255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
9256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9257 if (SWIG_arg_fail(1)) SWIG_fail;
9258 {
9259 arg2 = wxString_in_helper(obj1);
9260 if (arg2 == NULL) SWIG_fail;
9261 temp2 = true;
9262 }
9263 {
9264 PyThreadState* __tstate = wxPyBeginAllowThreads();
9265 result = (bool)(arg1)->FromString((wxString const &)*arg2);
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 (temp2)
9275 delete arg2;
9276 }
9277 return resultobj;
9278 fail:
9279 {
9280 if (temp2)
9281 delete arg2;
9282 }
9283 return NULL;
9284 }
9285
9286
9287 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) {
9288 PyObject *resultobj = NULL;
9289 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
9290 wxString result;
9291 PyObject * obj0 = 0 ;
9292 char *kwnames[] = {
9293 (char *) "self", NULL
9294 };
9295
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
9297 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9298 if (SWIG_arg_fail(1)) SWIG_fail;
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
9302
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 {
9307 #if wxUSE_UNICODE
9308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9309 #else
9310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9311 #endif
9312 }
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) {
9320 PyObject *obj;
9321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9322 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
9323 Py_INCREF(obj);
9324 return Py_BuildValue((char *)"");
9325 }
9326 static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj = NULL;
9328 wxFontEncoding arg1 ;
9329 wxNativeEncodingInfo *result;
9330 PyObject * obj0 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "encoding", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
9336 {
9337 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9338 if (SWIG_arg_fail(1)) SWIG_fail;
9339 }
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
9343
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
9348 return resultobj;
9349 fail:
9350 return NULL;
9351 }
9352
9353
9354 static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9355 PyObject *resultobj = NULL;
9356 wxNativeEncodingInfo *arg1 = 0 ;
9357 bool result;
9358 PyObject * obj0 = 0 ;
9359 char *kwnames[] = {
9360 (char *) "info", NULL
9361 };
9362
9363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
9364 {
9365 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_EXCEPTION | 0);
9366 if (SWIG_arg_fail(1)) SWIG_fail;
9367 if (arg1 == NULL) {
9368 SWIG_null_ref("wxNativeEncodingInfo");
9369 }
9370 if (SWIG_arg_fail(1)) SWIG_fail;
9371 }
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 {
9380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9381 }
9382 return resultobj;
9383 fail:
9384 return NULL;
9385 }
9386
9387
9388 static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj = NULL;
9390 wxFontMapper *result;
9391 char *kwnames[] = {
9392 NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 result = (wxFontMapper *)new wxFontMapper();
9399
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
9404 return resultobj;
9405 fail:
9406 return NULL;
9407 }
9408
9409
9410 static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj = NULL;
9412 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9413 PyObject * obj0 = 0 ;
9414 char *kwnames[] = {
9415 (char *) "self", NULL
9416 };
9417
9418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
9419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9420 if (SWIG_arg_fail(1)) SWIG_fail;
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 delete arg1;
9424
9425 wxPyEndAllowThreads(__tstate);
9426 if (PyErr_Occurred()) SWIG_fail;
9427 }
9428 Py_INCREF(Py_None); resultobj = Py_None;
9429 return resultobj;
9430 fail:
9431 return NULL;
9432 }
9433
9434
9435 static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) {
9436 PyObject *resultobj = NULL;
9437 wxFontMapper *result;
9438 char *kwnames[] = {
9439 NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (wxFontMapper *)wxFontMapper::Get();
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj = NULL;
9459 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9460 wxFontMapper *result;
9461 PyObject * obj0 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "mapper", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
9467 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9468 if (SWIG_arg_fail(1)) SWIG_fail;
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 result = (wxFontMapper *)wxFontMapper::Set(arg1);
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = NULL;
9485 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9486 wxString *arg2 = 0 ;
9487 bool arg3 = (bool) true ;
9488 wxFontEncoding result;
9489 bool temp2 = false ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 PyObject * obj2 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self",(char *) "charset",(char *) "interactive", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
9498 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9499 if (SWIG_arg_fail(1)) SWIG_fail;
9500 {
9501 arg2 = wxString_in_helper(obj1);
9502 if (arg2 == NULL) SWIG_fail;
9503 temp2 = true;
9504 }
9505 if (obj2) {
9506 {
9507 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
9508 if (SWIG_arg_fail(3)) SWIG_fail;
9509 }
9510 }
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
9514
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 resultobj = SWIG_From_int((result));
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj = NULL;
9535 size_t result;
9536 char *kwnames[] = {
9537 NULL
9538 };
9539
9540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 {
9549 resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result));
9550 }
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj = NULL;
9559 size_t arg1 ;
9560 wxFontEncoding result;
9561 PyObject * obj0 = 0 ;
9562 char *kwnames[] = {
9563 (char *) "n", NULL
9564 };
9565
9566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
9567 {
9568 arg1 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj0));
9569 if (SWIG_arg_fail(1)) SWIG_fail;
9570 }
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
9574
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 resultobj = SWIG_From_int((result));
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
9586 PyObject *resultobj = NULL;
9587 wxFontEncoding arg1 ;
9588 wxString result;
9589 PyObject * obj0 = 0 ;
9590 char *kwnames[] = {
9591 (char *) "encoding", NULL
9592 };
9593
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
9595 {
9596 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9597 if (SWIG_arg_fail(1)) SWIG_fail;
9598 }
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 result = wxFontMapper::GetEncodingName(arg1);
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 {
9607 #if wxUSE_UNICODE
9608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9609 #else
9610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9611 #endif
9612 }
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj = NULL;
9621 wxFontEncoding arg1 ;
9622 wxString result;
9623 PyObject * obj0 = 0 ;
9624 char *kwnames[] = {
9625 (char *) "encoding", NULL
9626 };
9627
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
9629 {
9630 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
9631 if (SWIG_arg_fail(1)) SWIG_fail;
9632 }
9633 {
9634 PyThreadState* __tstate = wxPyBeginAllowThreads();
9635 result = wxFontMapper::GetEncodingDescription(arg1);
9636
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 {
9641 #if wxUSE_UNICODE
9642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9643 #else
9644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9645 #endif
9646 }
9647 return resultobj;
9648 fail:
9649 return NULL;
9650 }
9651
9652
9653 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) {
9654 PyObject *resultobj = NULL;
9655 wxString *arg1 = 0 ;
9656 wxFontEncoding result;
9657 bool temp1 = false ;
9658 PyObject * obj0 = 0 ;
9659 char *kwnames[] = {
9660 (char *) "name", NULL
9661 };
9662
9663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
9664 {
9665 arg1 = wxString_in_helper(obj0);
9666 if (arg1 == NULL) SWIG_fail;
9667 temp1 = true;
9668 }
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
9672
9673 wxPyEndAllowThreads(__tstate);
9674 if (PyErr_Occurred()) SWIG_fail;
9675 }
9676 resultobj = SWIG_From_int((result));
9677 {
9678 if (temp1)
9679 delete arg1;
9680 }
9681 return resultobj;
9682 fail:
9683 {
9684 if (temp1)
9685 delete arg1;
9686 }
9687 return NULL;
9688 }
9689
9690
9691 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9692 PyObject *resultobj = NULL;
9693 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9694 wxString *arg2 = 0 ;
9695 bool temp2 = false ;
9696 PyObject * obj0 = 0 ;
9697 PyObject * obj1 = 0 ;
9698 char *kwnames[] = {
9699 (char *) "self",(char *) "prefix", NULL
9700 };
9701
9702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
9703 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9704 if (SWIG_arg_fail(1)) SWIG_fail;
9705 {
9706 arg2 = wxString_in_helper(obj1);
9707 if (arg2 == NULL) SWIG_fail;
9708 temp2 = true;
9709 }
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 (arg1)->SetConfigPath((wxString const &)*arg2);
9713
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) SWIG_fail;
9716 }
9717 Py_INCREF(Py_None); resultobj = Py_None;
9718 {
9719 if (temp2)
9720 delete arg2;
9721 }
9722 return resultobj;
9723 fail:
9724 {
9725 if (temp2)
9726 delete arg2;
9727 }
9728 return NULL;
9729 }
9730
9731
9732 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = NULL;
9734 wxString result;
9735 char *kwnames[] = {
9736 NULL
9737 };
9738
9739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 result = wxFontMapper::GetDefaultConfigPath();
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 {
9748 #if wxUSE_UNICODE
9749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9750 #else
9751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9752 #endif
9753 }
9754 return resultobj;
9755 fail:
9756 return NULL;
9757 }
9758
9759
9760 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj = NULL;
9762 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9763 wxFontEncoding arg2 ;
9764 wxString const &arg3_defvalue = wxPyEmptyString ;
9765 wxString *arg3 = (wxString *) &arg3_defvalue ;
9766 bool arg4 = (bool) true ;
9767 PyObject *result;
9768 bool temp3 = false ;
9769 PyObject * obj0 = 0 ;
9770 PyObject * obj1 = 0 ;
9771 PyObject * obj2 = 0 ;
9772 PyObject * obj3 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9778 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9779 if (SWIG_arg_fail(1)) SWIG_fail;
9780 {
9781 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9782 if (SWIG_arg_fail(2)) SWIG_fail;
9783 }
9784 if (obj2) {
9785 {
9786 arg3 = wxString_in_helper(obj2);
9787 if (arg3 == NULL) SWIG_fail;
9788 temp3 = true;
9789 }
9790 }
9791 if (obj3) {
9792 {
9793 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
9794 if (SWIG_arg_fail(4)) SWIG_fail;
9795 }
9796 }
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
9800
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 resultobj = result;
9805 {
9806 if (temp3)
9807 delete arg3;
9808 }
9809 return resultobj;
9810 fail:
9811 {
9812 if (temp3)
9813 delete arg3;
9814 }
9815 return NULL;
9816 }
9817
9818
9819 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9820 PyObject *resultobj = NULL;
9821 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9822 wxFontEncoding arg2 ;
9823 wxString const &arg3_defvalue = wxPyEmptyString ;
9824 wxString *arg3 = (wxString *) &arg3_defvalue ;
9825 bool result;
9826 bool temp3 = false ;
9827 PyObject * obj0 = 0 ;
9828 PyObject * obj1 = 0 ;
9829 PyObject * obj2 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self",(char *) "encoding",(char *) "facename", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
9835 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9836 if (SWIG_arg_fail(1)) SWIG_fail;
9837 {
9838 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
9839 if (SWIG_arg_fail(2)) SWIG_fail;
9840 }
9841 if (obj2) {
9842 {
9843 arg3 = wxString_in_helper(obj2);
9844 if (arg3 == NULL) SWIG_fail;
9845 temp3 = true;
9846 }
9847 }
9848 {
9849 PyThreadState* __tstate = wxPyBeginAllowThreads();
9850 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
9851
9852 wxPyEndAllowThreads(__tstate);
9853 if (PyErr_Occurred()) SWIG_fail;
9854 }
9855 {
9856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9857 }
9858 {
9859 if (temp3)
9860 delete arg3;
9861 }
9862 return resultobj;
9863 fail:
9864 {
9865 if (temp3)
9866 delete arg3;
9867 }
9868 return NULL;
9869 }
9870
9871
9872 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj = NULL;
9874 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9875 wxWindow *arg2 = (wxWindow *) 0 ;
9876 PyObject * obj0 = 0 ;
9877 PyObject * obj1 = 0 ;
9878 char *kwnames[] = {
9879 (char *) "self",(char *) "parent", NULL
9880 };
9881
9882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
9883 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9884 if (SWIG_arg_fail(1)) SWIG_fail;
9885 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
9886 if (SWIG_arg_fail(2)) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 (arg1)->SetDialogParent(arg2);
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 Py_INCREF(Py_None); resultobj = Py_None;
9895 return resultobj;
9896 fail:
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) {
9902 PyObject *resultobj = NULL;
9903 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
9904 wxString *arg2 = 0 ;
9905 bool temp2 = false ;
9906 PyObject * obj0 = 0 ;
9907 PyObject * obj1 = 0 ;
9908 char *kwnames[] = {
9909 (char *) "self",(char *) "title", NULL
9910 };
9911
9912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
9913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontMapper, SWIG_POINTER_EXCEPTION | 0);
9914 if (SWIG_arg_fail(1)) SWIG_fail;
9915 {
9916 arg2 = wxString_in_helper(obj1);
9917 if (arg2 == NULL) SWIG_fail;
9918 temp2 = true;
9919 }
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 (arg1)->SetDialogTitle((wxString const &)*arg2);
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 Py_INCREF(Py_None); resultobj = Py_None;
9928 {
9929 if (temp2)
9930 delete arg2;
9931 }
9932 return resultobj;
9933 fail:
9934 {
9935 if (temp2)
9936 delete arg2;
9937 }
9938 return NULL;
9939 }
9940
9941
9942 static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) {
9943 PyObject *obj;
9944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9945 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
9946 Py_INCREF(obj);
9947 return Py_BuildValue((char *)"");
9948 }
9949 static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj = NULL;
9951 int arg1 ;
9952 int arg2 ;
9953 int arg3 ;
9954 int arg4 ;
9955 bool arg5 = (bool) false ;
9956 wxString const &arg6_defvalue = wxPyEmptyString ;
9957 wxString *arg6 = (wxString *) &arg6_defvalue ;
9958 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
9959 wxFont *result;
9960 bool temp6 = false ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 PyObject * obj2 = 0 ;
9964 PyObject * obj3 = 0 ;
9965 PyObject * obj4 = 0 ;
9966 PyObject * obj5 = 0 ;
9967 PyObject * obj6 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
9973 {
9974 arg1 = static_cast<int >(SWIG_As_int(obj0));
9975 if (SWIG_arg_fail(1)) SWIG_fail;
9976 }
9977 {
9978 arg2 = static_cast<int >(SWIG_As_int(obj1));
9979 if (SWIG_arg_fail(2)) SWIG_fail;
9980 }
9981 {
9982 arg3 = static_cast<int >(SWIG_As_int(obj2));
9983 if (SWIG_arg_fail(3)) SWIG_fail;
9984 }
9985 {
9986 arg4 = static_cast<int >(SWIG_As_int(obj3));
9987 if (SWIG_arg_fail(4)) SWIG_fail;
9988 }
9989 if (obj4) {
9990 {
9991 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
9992 if (SWIG_arg_fail(5)) SWIG_fail;
9993 }
9994 }
9995 if (obj5) {
9996 {
9997 arg6 = wxString_in_helper(obj5);
9998 if (arg6 == NULL) SWIG_fail;
9999 temp6 = true;
10000 }
10001 }
10002 if (obj6) {
10003 {
10004 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
10005 if (SWIG_arg_fail(7)) SWIG_fail;
10006 }
10007 }
10008 {
10009 if (!wxPyCheckForApp()) SWIG_fail;
10010 PyThreadState* __tstate = wxPyBeginAllowThreads();
10011 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
10012
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10017 {
10018 if (temp6)
10019 delete arg6;
10020 }
10021 return resultobj;
10022 fail:
10023 {
10024 if (temp6)
10025 delete arg6;
10026 }
10027 return NULL;
10028 }
10029
10030
10031 static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj = NULL;
10033 wxFont *arg1 = (wxFont *) 0 ;
10034 PyObject * obj0 = 0 ;
10035 char *kwnames[] = {
10036 (char *) "self", NULL
10037 };
10038
10039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
10040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10041 if (SWIG_arg_fail(1)) SWIG_fail;
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 delete arg1;
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 Py_INCREF(Py_None); resultobj = Py_None;
10050 return resultobj;
10051 fail:
10052 return NULL;
10053 }
10054
10055
10056 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj = NULL;
10058 wxNativeFontInfo *arg1 = 0 ;
10059 wxFont *result;
10060 PyObject * obj0 = 0 ;
10061 char *kwnames[] = {
10062 (char *) "info", NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
10066 {
10067 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
10068 if (SWIG_arg_fail(1)) SWIG_fail;
10069 if (arg1 == NULL) {
10070 SWIG_null_ref("wxNativeFontInfo");
10071 }
10072 if (SWIG_arg_fail(1)) SWIG_fail;
10073 }
10074 {
10075 if (!wxPyCheckForApp()) SWIG_fail;
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
10078
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj = NULL;
10091 wxString *arg1 = 0 ;
10092 wxFont *result;
10093 bool temp1 = false ;
10094 PyObject * obj0 = 0 ;
10095 char *kwnames[] = {
10096 (char *) "info", NULL
10097 };
10098
10099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
10100 {
10101 arg1 = wxString_in_helper(obj0);
10102 if (arg1 == NULL) SWIG_fail;
10103 temp1 = true;
10104 }
10105 {
10106 if (!wxPyCheckForApp()) SWIG_fail;
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (wxFont *)new_wxFont((wxString const &)*arg1);
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10114 {
10115 if (temp1)
10116 delete arg1;
10117 }
10118 return resultobj;
10119 fail:
10120 {
10121 if (temp1)
10122 delete arg1;
10123 }
10124 return NULL;
10125 }
10126
10127
10128 static PyObject *_wrap_new_FFont(PyObject *, PyObject *args, PyObject *kwargs) {
10129 PyObject *resultobj = NULL;
10130 int arg1 ;
10131 wxFontFamily arg2 ;
10132 int arg3 = (int) wxFONTFLAG_DEFAULT ;
10133 wxString const &arg4_defvalue = wxPyEmptyString ;
10134 wxString *arg4 = (wxString *) &arg4_defvalue ;
10135 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10136 wxFont *result;
10137 bool temp4 = false ;
10138 PyObject * obj0 = 0 ;
10139 PyObject * obj1 = 0 ;
10140 PyObject * obj2 = 0 ;
10141 PyObject * obj3 = 0 ;
10142 PyObject * obj4 = 0 ;
10143 char *kwnames[] = {
10144 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
10145 };
10146
10147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10148 {
10149 arg1 = static_cast<int >(SWIG_As_int(obj0));
10150 if (SWIG_arg_fail(1)) SWIG_fail;
10151 }
10152 {
10153 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
10154 if (SWIG_arg_fail(2)) SWIG_fail;
10155 }
10156 if (obj2) {
10157 {
10158 arg3 = static_cast<int >(SWIG_As_int(obj2));
10159 if (SWIG_arg_fail(3)) SWIG_fail;
10160 }
10161 }
10162 if (obj3) {
10163 {
10164 arg4 = wxString_in_helper(obj3);
10165 if (arg4 == NULL) SWIG_fail;
10166 temp4 = true;
10167 }
10168 }
10169 if (obj4) {
10170 {
10171 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
10172 if (SWIG_arg_fail(5)) SWIG_fail;
10173 }
10174 }
10175 {
10176 if (!wxPyCheckForApp()) SWIG_fail;
10177 PyThreadState* __tstate = wxPyBeginAllowThreads();
10178 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
10179
10180 wxPyEndAllowThreads(__tstate);
10181 if (PyErr_Occurred()) SWIG_fail;
10182 }
10183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10184 {
10185 if (temp4)
10186 delete arg4;
10187 }
10188 return resultobj;
10189 fail:
10190 {
10191 if (temp4)
10192 delete arg4;
10193 }
10194 return NULL;
10195 }
10196
10197
10198 static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10199 PyObject *resultobj = NULL;
10200 wxSize *arg1 = 0 ;
10201 int arg2 ;
10202 int arg3 ;
10203 int arg4 ;
10204 bool arg5 = (bool) false ;
10205 wxString const &arg6_defvalue = wxEmptyString ;
10206 wxString *arg6 = (wxString *) &arg6_defvalue ;
10207 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10208 wxFont *result;
10209 wxSize temp1 ;
10210 bool temp6 = false ;
10211 PyObject * obj0 = 0 ;
10212 PyObject * obj1 = 0 ;
10213 PyObject * obj2 = 0 ;
10214 PyObject * obj3 = 0 ;
10215 PyObject * obj4 = 0 ;
10216 PyObject * obj5 = 0 ;
10217 PyObject * obj6 = 0 ;
10218 char *kwnames[] = {
10219 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10223 {
10224 arg1 = &temp1;
10225 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10226 }
10227 {
10228 arg2 = static_cast<int >(SWIG_As_int(obj1));
10229 if (SWIG_arg_fail(2)) SWIG_fail;
10230 }
10231 {
10232 arg3 = static_cast<int >(SWIG_As_int(obj2));
10233 if (SWIG_arg_fail(3)) SWIG_fail;
10234 }
10235 {
10236 arg4 = static_cast<int >(SWIG_As_int(obj3));
10237 if (SWIG_arg_fail(4)) SWIG_fail;
10238 }
10239 if (obj4) {
10240 {
10241 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
10242 if (SWIG_arg_fail(5)) SWIG_fail;
10243 }
10244 }
10245 if (obj5) {
10246 {
10247 arg6 = wxString_in_helper(obj5);
10248 if (arg6 == NULL) SWIG_fail;
10249 temp6 = true;
10250 }
10251 }
10252 if (obj6) {
10253 {
10254 arg7 = static_cast<wxFontEncoding >(SWIG_As_int(obj6));
10255 if (SWIG_arg_fail(7)) SWIG_fail;
10256 }
10257 }
10258 {
10259 if (!wxPyCheckForApp()) SWIG_fail;
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
10262
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10267 {
10268 if (temp6)
10269 delete arg6;
10270 }
10271 return resultobj;
10272 fail:
10273 {
10274 if (temp6)
10275 delete arg6;
10276 }
10277 return NULL;
10278 }
10279
10280
10281 static PyObject *_wrap_new_FFontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj = NULL;
10283 wxSize *arg1 = 0 ;
10284 wxFontFamily arg2 ;
10285 int arg3 = (int) wxFONTFLAG_DEFAULT ;
10286 wxString const &arg4_defvalue = wxEmptyString ;
10287 wxString *arg4 = (wxString *) &arg4_defvalue ;
10288 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
10289 wxFont *result;
10290 wxSize temp1 ;
10291 bool temp4 = false ;
10292 PyObject * obj0 = 0 ;
10293 PyObject * obj1 = 0 ;
10294 PyObject * obj2 = 0 ;
10295 PyObject * obj3 = 0 ;
10296 PyObject * obj4 = 0 ;
10297 char *kwnames[] = {
10298 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
10299 };
10300
10301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10302 {
10303 arg1 = &temp1;
10304 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
10305 }
10306 {
10307 arg2 = static_cast<wxFontFamily >(SWIG_As_int(obj1));
10308 if (SWIG_arg_fail(2)) SWIG_fail;
10309 }
10310 if (obj2) {
10311 {
10312 arg3 = static_cast<int >(SWIG_As_int(obj2));
10313 if (SWIG_arg_fail(3)) SWIG_fail;
10314 }
10315 }
10316 if (obj3) {
10317 {
10318 arg4 = wxString_in_helper(obj3);
10319 if (arg4 == NULL) SWIG_fail;
10320 temp4 = true;
10321 }
10322 }
10323 if (obj4) {
10324 {
10325 arg5 = static_cast<wxFontEncoding >(SWIG_As_int(obj4));
10326 if (SWIG_arg_fail(5)) SWIG_fail;
10327 }
10328 }
10329 {
10330 if (!wxPyCheckForApp()) SWIG_fail;
10331 PyThreadState* __tstate = wxPyBeginAllowThreads();
10332 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
10333
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
10338 {
10339 if (temp4)
10340 delete arg4;
10341 }
10342 return resultobj;
10343 fail:
10344 {
10345 if (temp4)
10346 delete arg4;
10347 }
10348 return NULL;
10349 }
10350
10351
10352 static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
10353 PyObject *resultobj = NULL;
10354 wxFont *arg1 = (wxFont *) 0 ;
10355 bool result;
10356 PyObject * obj0 = 0 ;
10357 char *kwnames[] = {
10358 (char *) "self", NULL
10359 };
10360
10361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
10362 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10363 if (SWIG_arg_fail(1)) SWIG_fail;
10364 {
10365 PyThreadState* __tstate = wxPyBeginAllowThreads();
10366 result = (bool)((wxFont const *)arg1)->Ok();
10367
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 {
10372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10373 }
10374 return resultobj;
10375 fail:
10376 return NULL;
10377 }
10378
10379
10380 static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
10381 PyObject *resultobj = NULL;
10382 wxFont *arg1 = (wxFont *) 0 ;
10383 wxFont *arg2 = (wxFont *) 0 ;
10384 bool result;
10385 PyObject * obj0 = 0 ;
10386 PyObject * obj1 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "self",(char *) "other", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
10392 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10393 if (SWIG_arg_fail(1)) SWIG_fail;
10394 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10395 if (SWIG_arg_fail(2)) SWIG_fail;
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
10399
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 {
10404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10405 }
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj = NULL;
10414 wxFont *arg1 = (wxFont *) 0 ;
10415 wxFont *arg2 = (wxFont *) 0 ;
10416 bool result;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 char *kwnames[] = {
10420 (char *) "self",(char *) "other", NULL
10421 };
10422
10423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
10424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10425 if (SWIG_arg_fail(1)) SWIG_fail;
10426 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10427 if (SWIG_arg_fail(2)) SWIG_fail;
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
10431
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 {
10436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10437 }
10438 return resultobj;
10439 fail:
10440 return NULL;
10441 }
10442
10443
10444 static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10445 PyObject *resultobj = NULL;
10446 wxFont *arg1 = (wxFont *) 0 ;
10447 int result;
10448 PyObject * obj0 = 0 ;
10449 char *kwnames[] = {
10450 (char *) "self", NULL
10451 };
10452
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
10454 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10455 if (SWIG_arg_fail(1)) SWIG_fail;
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 result = (int)((wxFont const *)arg1)->GetPointSize();
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 {
10464 resultobj = SWIG_From_int(static_cast<int >(result));
10465 }
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj = NULL;
10474 wxFont *arg1 = (wxFont *) 0 ;
10475 wxSize result;
10476 PyObject * obj0 = 0 ;
10477 char *kwnames[] = {
10478 (char *) "self", NULL
10479 };
10480
10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail;
10482 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10483 if (SWIG_arg_fail(1)) SWIG_fail;
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = ((wxFont const *)arg1)->GetPixelSize();
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 {
10492 wxSize * resultptr;
10493 resultptr = new wxSize(static_cast<wxSize & >(result));
10494 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10495 }
10496 return resultobj;
10497 fail:
10498 return NULL;
10499 }
10500
10501
10502 static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) {
10503 PyObject *resultobj = NULL;
10504 wxFont *arg1 = (wxFont *) 0 ;
10505 bool result;
10506 PyObject * obj0 = 0 ;
10507 char *kwnames[] = {
10508 (char *) "self", NULL
10509 };
10510
10511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail;
10512 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10513 if (SWIG_arg_fail(1)) SWIG_fail;
10514 {
10515 PyThreadState* __tstate = wxPyBeginAllowThreads();
10516 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
10517
10518 wxPyEndAllowThreads(__tstate);
10519 if (PyErr_Occurred()) SWIG_fail;
10520 }
10521 {
10522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10523 }
10524 return resultobj;
10525 fail:
10526 return NULL;
10527 }
10528
10529
10530 static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10531 PyObject *resultobj = NULL;
10532 wxFont *arg1 = (wxFont *) 0 ;
10533 int result;
10534 PyObject * obj0 = 0 ;
10535 char *kwnames[] = {
10536 (char *) "self", NULL
10537 };
10538
10539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
10540 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10541 if (SWIG_arg_fail(1)) SWIG_fail;
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 result = (int)((wxFont const *)arg1)->GetFamily();
10545
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 {
10550 resultobj = SWIG_From_int(static_cast<int >(result));
10551 }
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj = NULL;
10560 wxFont *arg1 = (wxFont *) 0 ;
10561 int result;
10562 PyObject * obj0 = 0 ;
10563 char *kwnames[] = {
10564 (char *) "self", NULL
10565 };
10566
10567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
10568 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10569 if (SWIG_arg_fail(1)) SWIG_fail;
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (int)((wxFont const *)arg1)->GetStyle();
10573
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 {
10578 resultobj = SWIG_From_int(static_cast<int >(result));
10579 }
10580 return resultobj;
10581 fail:
10582 return NULL;
10583 }
10584
10585
10586 static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10587 PyObject *resultobj = NULL;
10588 wxFont *arg1 = (wxFont *) 0 ;
10589 int result;
10590 PyObject * obj0 = 0 ;
10591 char *kwnames[] = {
10592 (char *) "self", NULL
10593 };
10594
10595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
10596 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10597 if (SWIG_arg_fail(1)) SWIG_fail;
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 result = (int)((wxFont const *)arg1)->GetWeight();
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 {
10606 resultobj = SWIG_From_int(static_cast<int >(result));
10607 }
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = NULL;
10616 wxFont *arg1 = (wxFont *) 0 ;
10617 bool result;
10618 PyObject * obj0 = 0 ;
10619 char *kwnames[] = {
10620 (char *) "self", NULL
10621 };
10622
10623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
10624 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10625 if (SWIG_arg_fail(1)) SWIG_fail;
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (bool)((wxFont const *)arg1)->GetUnderlined();
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10635 }
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj = NULL;
10644 wxFont *arg1 = (wxFont *) 0 ;
10645 wxString result;
10646 PyObject * obj0 = 0 ;
10647 char *kwnames[] = {
10648 (char *) "self", NULL
10649 };
10650
10651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
10652 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10653 if (SWIG_arg_fail(1)) SWIG_fail;
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = ((wxFont const *)arg1)->GetFaceName();
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 {
10662 #if wxUSE_UNICODE
10663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10664 #else
10665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10666 #endif
10667 }
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj = NULL;
10676 wxFont *arg1 = (wxFont *) 0 ;
10677 wxFontEncoding result;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
10684 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10685 if (SWIG_arg_fail(1)) SWIG_fail;
10686 {
10687 PyThreadState* __tstate = wxPyBeginAllowThreads();
10688 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
10689
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 resultobj = SWIG_From_int((result));
10694 return resultobj;
10695 fail:
10696 return NULL;
10697 }
10698
10699
10700 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
10701 PyObject *resultobj = NULL;
10702 wxFont *arg1 = (wxFont *) 0 ;
10703 wxNativeFontInfo *result;
10704 PyObject * obj0 = 0 ;
10705 char *kwnames[] = {
10706 (char *) "self", NULL
10707 };
10708
10709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
10710 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10711 if (SWIG_arg_fail(1)) SWIG_fail;
10712 {
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
10715
10716 wxPyEndAllowThreads(__tstate);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
10720 return resultobj;
10721 fail:
10722 return NULL;
10723 }
10724
10725
10726 static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) {
10727 PyObject *resultobj = NULL;
10728 wxFont *arg1 = (wxFont *) 0 ;
10729 bool result;
10730 PyObject * obj0 = 0 ;
10731 char *kwnames[] = {
10732 (char *) "self", NULL
10733 };
10734
10735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
10736 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10737 if (SWIG_arg_fail(1)) SWIG_fail;
10738 {
10739 PyThreadState* __tstate = wxPyBeginAllowThreads();
10740 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
10741
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 {
10746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10747 }
10748 return resultobj;
10749 fail:
10750 return NULL;
10751 }
10752
10753
10754 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10755 PyObject *resultobj = NULL;
10756 wxFont *arg1 = (wxFont *) 0 ;
10757 wxString result;
10758 PyObject * obj0 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
10764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10765 if (SWIG_arg_fail(1)) SWIG_fail;
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 {
10774 #if wxUSE_UNICODE
10775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10776 #else
10777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10778 #endif
10779 }
10780 return resultobj;
10781 fail:
10782 return NULL;
10783 }
10784
10785
10786 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = NULL;
10788 wxFont *arg1 = (wxFont *) 0 ;
10789 wxString result;
10790 PyObject * obj0 = 0 ;
10791 char *kwnames[] = {
10792 (char *) "self", NULL
10793 };
10794
10795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
10796 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10797 if (SWIG_arg_fail(1)) SWIG_fail;
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
10801
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 {
10806 #if wxUSE_UNICODE
10807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10808 #else
10809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10810 #endif
10811 }
10812 return resultobj;
10813 fail:
10814 return NULL;
10815 }
10816
10817
10818 static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
10819 PyObject *resultobj = NULL;
10820 wxFont *arg1 = (wxFont *) 0 ;
10821 int arg2 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char *kwnames[] = {
10825 (char *) "self",(char *) "pointSize", NULL
10826 };
10827
10828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
10829 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10830 if (SWIG_arg_fail(1)) SWIG_fail;
10831 {
10832 arg2 = static_cast<int >(SWIG_As_int(obj1));
10833 if (SWIG_arg_fail(2)) SWIG_fail;
10834 }
10835 {
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 (arg1)->SetPointSize(arg2);
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 Py_INCREF(Py_None); resultobj = Py_None;
10843 return resultobj;
10844 fail:
10845 return NULL;
10846 }
10847
10848
10849 static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj = NULL;
10851 wxFont *arg1 = (wxFont *) 0 ;
10852 wxSize *arg2 = 0 ;
10853 wxSize temp2 ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char *kwnames[] = {
10857 (char *) "self",(char *) "pixelSize", NULL
10858 };
10859
10860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail;
10861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10862 if (SWIG_arg_fail(1)) SWIG_fail;
10863 {
10864 arg2 = &temp2;
10865 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10866 }
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 (arg1)->SetPixelSize((wxSize const &)*arg2);
10870
10871 wxPyEndAllowThreads(__tstate);
10872 if (PyErr_Occurred()) SWIG_fail;
10873 }
10874 Py_INCREF(Py_None); resultobj = Py_None;
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj = NULL;
10883 wxFont *arg1 = (wxFont *) 0 ;
10884 int arg2 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 char *kwnames[] = {
10888 (char *) "self",(char *) "family", NULL
10889 };
10890
10891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
10892 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10893 if (SWIG_arg_fail(1)) SWIG_fail;
10894 {
10895 arg2 = static_cast<int >(SWIG_As_int(obj1));
10896 if (SWIG_arg_fail(2)) SWIG_fail;
10897 }
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 (arg1)->SetFamily(arg2);
10901
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 Py_INCREF(Py_None); resultobj = Py_None;
10906 return resultobj;
10907 fail:
10908 return NULL;
10909 }
10910
10911
10912 static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj = NULL;
10914 wxFont *arg1 = (wxFont *) 0 ;
10915 int arg2 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "style", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
10923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10924 if (SWIG_arg_fail(1)) SWIG_fail;
10925 {
10926 arg2 = static_cast<int >(SWIG_As_int(obj1));
10927 if (SWIG_arg_fail(2)) SWIG_fail;
10928 }
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->SetStyle(arg2);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj = NULL;
10945 wxFont *arg1 = (wxFont *) 0 ;
10946 int arg2 ;
10947 PyObject * obj0 = 0 ;
10948 PyObject * obj1 = 0 ;
10949 char *kwnames[] = {
10950 (char *) "self",(char *) "weight", NULL
10951 };
10952
10953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
10954 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10955 if (SWIG_arg_fail(1)) SWIG_fail;
10956 {
10957 arg2 = static_cast<int >(SWIG_As_int(obj1));
10958 if (SWIG_arg_fail(2)) SWIG_fail;
10959 }
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 (arg1)->SetWeight(arg2);
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 Py_INCREF(Py_None); resultobj = Py_None;
10968 return resultobj;
10969 fail:
10970 return NULL;
10971 }
10972
10973
10974 static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj = NULL;
10976 wxFont *arg1 = (wxFont *) 0 ;
10977 wxString *arg2 = 0 ;
10978 bool temp2 = false ;
10979 PyObject * obj0 = 0 ;
10980 PyObject * obj1 = 0 ;
10981 char *kwnames[] = {
10982 (char *) "self",(char *) "faceName", NULL
10983 };
10984
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
10986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
10987 if (SWIG_arg_fail(1)) SWIG_fail;
10988 {
10989 arg2 = wxString_in_helper(obj1);
10990 if (arg2 == NULL) SWIG_fail;
10991 temp2 = true;
10992 }
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 (arg1)->SetFaceName((wxString const &)*arg2);
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 Py_INCREF(Py_None); resultobj = Py_None;
11001 {
11002 if (temp2)
11003 delete arg2;
11004 }
11005 return resultobj;
11006 fail:
11007 {
11008 if (temp2)
11009 delete arg2;
11010 }
11011 return NULL;
11012 }
11013
11014
11015 static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) {
11016 PyObject *resultobj = NULL;
11017 wxFont *arg1 = (wxFont *) 0 ;
11018 bool arg2 ;
11019 PyObject * obj0 = 0 ;
11020 PyObject * obj1 = 0 ;
11021 char *kwnames[] = {
11022 (char *) "self",(char *) "underlined", NULL
11023 };
11024
11025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
11026 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11027 if (SWIG_arg_fail(1)) SWIG_fail;
11028 {
11029 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
11030 if (SWIG_arg_fail(2)) SWIG_fail;
11031 }
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 (arg1)->SetUnderlined(arg2);
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 Py_INCREF(Py_None); resultobj = Py_None;
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11047 PyObject *resultobj = NULL;
11048 wxFont *arg1 = (wxFont *) 0 ;
11049 wxFontEncoding arg2 ;
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
11052 char *kwnames[] = {
11053 (char *) "self",(char *) "encoding", NULL
11054 };
11055
11056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
11057 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11058 if (SWIG_arg_fail(1)) SWIG_fail;
11059 {
11060 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
11061 if (SWIG_arg_fail(2)) SWIG_fail;
11062 }
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 (arg1)->SetEncoding(arg2);
11066
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 Py_INCREF(Py_None); resultobj = Py_None;
11071 return resultobj;
11072 fail:
11073 return NULL;
11074 }
11075
11076
11077 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11078 PyObject *resultobj = NULL;
11079 wxFont *arg1 = (wxFont *) 0 ;
11080 wxNativeFontInfo *arg2 = 0 ;
11081 PyObject * obj0 = 0 ;
11082 PyObject * obj1 = 0 ;
11083 char *kwnames[] = {
11084 (char *) "self",(char *) "info", NULL
11085 };
11086
11087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
11088 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11089 if (SWIG_arg_fail(1)) SWIG_fail;
11090 {
11091 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_EXCEPTION | 0);
11092 if (SWIG_arg_fail(2)) SWIG_fail;
11093 if (arg2 == NULL) {
11094 SWIG_null_ref("wxNativeFontInfo");
11095 }
11096 if (SWIG_arg_fail(2)) SWIG_fail;
11097 }
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 Py_INCREF(Py_None); resultobj = Py_None;
11106 return resultobj;
11107 fail:
11108 return NULL;
11109 }
11110
11111
11112 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj = NULL;
11114 wxFont *arg1 = (wxFont *) 0 ;
11115 wxString *arg2 = 0 ;
11116 bool temp2 = false ;
11117 PyObject * obj0 = 0 ;
11118 PyObject * obj1 = 0 ;
11119 char *kwnames[] = {
11120 (char *) "self",(char *) "info", NULL
11121 };
11122
11123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
11124 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11125 if (SWIG_arg_fail(1)) SWIG_fail;
11126 {
11127 arg2 = wxString_in_helper(obj1);
11128 if (arg2 == NULL) SWIG_fail;
11129 temp2 = true;
11130 }
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
11134
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 Py_INCREF(Py_None); resultobj = Py_None;
11139 {
11140 if (temp2)
11141 delete arg2;
11142 }
11143 return resultobj;
11144 fail:
11145 {
11146 if (temp2)
11147 delete arg2;
11148 }
11149 return NULL;
11150 }
11151
11152
11153 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj = NULL;
11155 wxFont *arg1 = (wxFont *) 0 ;
11156 wxString *arg2 = 0 ;
11157 bool temp2 = false ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "self",(char *) "info", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
11165 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11166 if (SWIG_arg_fail(1)) SWIG_fail;
11167 {
11168 arg2 = wxString_in_helper(obj1);
11169 if (arg2 == NULL) SWIG_fail;
11170 temp2 = true;
11171 }
11172 {
11173 PyThreadState* __tstate = wxPyBeginAllowThreads();
11174 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
11175
11176 wxPyEndAllowThreads(__tstate);
11177 if (PyErr_Occurred()) SWIG_fail;
11178 }
11179 Py_INCREF(Py_None); resultobj = Py_None;
11180 {
11181 if (temp2)
11182 delete arg2;
11183 }
11184 return resultobj;
11185 fail:
11186 {
11187 if (temp2)
11188 delete arg2;
11189 }
11190 return NULL;
11191 }
11192
11193
11194 static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj = NULL;
11196 wxFont *arg1 = (wxFont *) 0 ;
11197 wxString result;
11198 PyObject * obj0 = 0 ;
11199 char *kwnames[] = {
11200 (char *) "self", NULL
11201 };
11202
11203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
11204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11205 if (SWIG_arg_fail(1)) SWIG_fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 result = ((wxFont const *)arg1)->GetFamilyString();
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 {
11214 #if wxUSE_UNICODE
11215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11216 #else
11217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11218 #endif
11219 }
11220 return resultobj;
11221 fail:
11222 return NULL;
11223 }
11224
11225
11226 static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj = NULL;
11228 wxFont *arg1 = (wxFont *) 0 ;
11229 wxString result;
11230 PyObject * obj0 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self", NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
11236 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11237 if (SWIG_arg_fail(1)) SWIG_fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = ((wxFont const *)arg1)->GetStyleString();
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 {
11246 #if wxUSE_UNICODE
11247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11248 #else
11249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11250 #endif
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj = NULL;
11260 wxFont *arg1 = (wxFont *) 0 ;
11261 wxString result;
11262 PyObject * obj0 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "self", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
11268 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11269 if (SWIG_arg_fail(1)) SWIG_fail;
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 result = ((wxFont const *)arg1)->GetWeightString();
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 {
11278 #if wxUSE_UNICODE
11279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11280 #else
11281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11282 #endif
11283 }
11284 return resultobj;
11285 fail:
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj = NULL;
11292 wxFont *arg1 = (wxFont *) 0 ;
11293 bool arg2 = (bool) true ;
11294 PyObject * obj0 = 0 ;
11295 PyObject * obj1 = 0 ;
11296 char *kwnames[] = {
11297 (char *) "self",(char *) "no", NULL
11298 };
11299
11300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
11301 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11302 if (SWIG_arg_fail(1)) SWIG_fail;
11303 if (obj1) {
11304 {
11305 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
11306 if (SWIG_arg_fail(2)) SWIG_fail;
11307 }
11308 }
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 (arg1)->SetNoAntiAliasing(arg2);
11312
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 Py_INCREF(Py_None); resultobj = Py_None;
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj = NULL;
11325 wxFont *arg1 = (wxFont *) 0 ;
11326 bool result;
11327 PyObject * obj0 = 0 ;
11328 char *kwnames[] = {
11329 (char *) "self", NULL
11330 };
11331
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
11333 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
11334 if (SWIG_arg_fail(1)) SWIG_fail;
11335 {
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
11338
11339 wxPyEndAllowThreads(__tstate);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 }
11342 {
11343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11344 }
11345 return resultobj;
11346 fail:
11347 return NULL;
11348 }
11349
11350
11351 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11352 PyObject *resultobj = NULL;
11353 wxFontEncoding result;
11354 char *kwnames[] = {
11355 NULL
11356 };
11357
11358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
11359 {
11360 if (!wxPyCheckForApp()) SWIG_fail;
11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
11362 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
11363
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 resultobj = SWIG_From_int((result));
11368 return resultobj;
11369 fail:
11370 return NULL;
11371 }
11372
11373
11374 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
11375 PyObject *resultobj = NULL;
11376 wxFontEncoding arg1 ;
11377 PyObject * obj0 = 0 ;
11378 char *kwnames[] = {
11379 (char *) "encoding", NULL
11380 };
11381
11382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
11383 {
11384 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
11385 if (SWIG_arg_fail(1)) SWIG_fail;
11386 }
11387 {
11388 if (!wxPyCheckForApp()) SWIG_fail;
11389 PyThreadState* __tstate = wxPyBeginAllowThreads();
11390 wxFont::SetDefaultEncoding(arg1);
11391
11392 wxPyEndAllowThreads(__tstate);
11393 if (PyErr_Occurred()) SWIG_fail;
11394 }
11395 Py_INCREF(Py_None); resultobj = Py_None;
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 static PyObject * Font_swigregister(PyObject *, PyObject *args) {
11403 PyObject *obj;
11404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11405 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
11406 Py_INCREF(obj);
11407 return Py_BuildValue((char *)"");
11408 }
11409 static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
11410 PyObject *resultobj = NULL;
11411 wxPyFontEnumerator *result;
11412 char *kwnames[] = {
11413 NULL
11414 };
11415
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
11417 {
11418 if (!wxPyCheckForApp()) SWIG_fail;
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = NULL;
11434 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11435 PyObject * obj0 = 0 ;
11436 char *kwnames[] = {
11437 (char *) "self", NULL
11438 };
11439
11440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
11441 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11442 if (SWIG_arg_fail(1)) SWIG_fail;
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 delete arg1;
11446
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 Py_INCREF(Py_None); resultobj = Py_None;
11451 return resultobj;
11452 fail:
11453 return NULL;
11454 }
11455
11456
11457 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11458 PyObject *resultobj = NULL;
11459 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11460 PyObject *arg2 = (PyObject *) 0 ;
11461 PyObject *arg3 = (PyObject *) 0 ;
11462 bool arg4 ;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 PyObject * obj2 = 0 ;
11466 PyObject * obj3 = 0 ;
11467 char *kwnames[] = {
11468 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
11469 };
11470
11471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11472 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11473 if (SWIG_arg_fail(1)) SWIG_fail;
11474 arg2 = obj1;
11475 arg3 = obj2;
11476 {
11477 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
11478 if (SWIG_arg_fail(4)) SWIG_fail;
11479 }
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
11483
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 Py_INCREF(Py_None); resultobj = Py_None;
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj = NULL;
11496 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11497 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
11498 bool arg3 = (bool) false ;
11499 bool result;
11500 PyObject * obj0 = 0 ;
11501 PyObject * obj1 = 0 ;
11502 PyObject * obj2 = 0 ;
11503 char *kwnames[] = {
11504 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
11505 };
11506
11507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
11508 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11509 if (SWIG_arg_fail(1)) SWIG_fail;
11510 if (obj1) {
11511 {
11512 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
11513 if (SWIG_arg_fail(2)) SWIG_fail;
11514 }
11515 }
11516 if (obj2) {
11517 {
11518 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
11519 if (SWIG_arg_fail(3)) SWIG_fail;
11520 }
11521 }
11522 {
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
11525
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 {
11530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11531 }
11532 return resultobj;
11533 fail:
11534 return NULL;
11535 }
11536
11537
11538 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
11539 PyObject *resultobj = NULL;
11540 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11541 wxString const &arg2_defvalue = wxPyEmptyString ;
11542 wxString *arg2 = (wxString *) &arg2_defvalue ;
11543 bool result;
11544 bool temp2 = false ;
11545 PyObject * obj0 = 0 ;
11546 PyObject * obj1 = 0 ;
11547 char *kwnames[] = {
11548 (char *) "self",(char *) "facename", NULL
11549 };
11550
11551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
11552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11553 if (SWIG_arg_fail(1)) SWIG_fail;
11554 if (obj1) {
11555 {
11556 arg2 = wxString_in_helper(obj1);
11557 if (arg2 == NULL) SWIG_fail;
11558 temp2 = true;
11559 }
11560 }
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
11564
11565 wxPyEndAllowThreads(__tstate);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 }
11568 {
11569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11570 }
11571 {
11572 if (temp2)
11573 delete arg2;
11574 }
11575 return resultobj;
11576 fail:
11577 {
11578 if (temp2)
11579 delete arg2;
11580 }
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj = NULL;
11587 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11588 PyObject *result;
11589 PyObject * obj0 = 0 ;
11590 char *kwnames[] = {
11591 (char *) "self", NULL
11592 };
11593
11594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
11595 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11596 if (SWIG_arg_fail(1)) SWIG_fail;
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = result;
11605 return resultobj;
11606 fail:
11607 return NULL;
11608 }
11609
11610
11611 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj = NULL;
11613 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
11614 PyObject *result;
11615 PyObject * obj0 = 0 ;
11616 char *kwnames[] = {
11617 (char *) "self", NULL
11618 };
11619
11620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
11621 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_EXCEPTION | 0);
11622 if (SWIG_arg_fail(1)) SWIG_fail;
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
11626
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 resultobj = result;
11631 return resultobj;
11632 fail:
11633 return NULL;
11634 }
11635
11636
11637 static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) {
11638 PyObject *obj;
11639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11640 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
11641 Py_INCREF(obj);
11642 return Py_BuildValue((char *)"");
11643 }
11644 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) {
11645 PyObject *resultobj = NULL;
11646 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11647 int arg2 ;
11648 PyObject * obj0 = 0 ;
11649 PyObject * obj1 = 0 ;
11650 char *kwnames[] = {
11651 (char *) "self",(char *) "Language", NULL
11652 };
11653
11654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
11655 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11656 if (SWIG_arg_fail(1)) SWIG_fail;
11657 {
11658 arg2 = static_cast<int >(SWIG_As_int(obj1));
11659 if (SWIG_arg_fail(2)) SWIG_fail;
11660 }
11661 if (arg1) (arg1)->Language = arg2;
11662
11663 Py_INCREF(Py_None); resultobj = Py_None;
11664 return resultobj;
11665 fail:
11666 return NULL;
11667 }
11668
11669
11670 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) {
11671 PyObject *resultobj = NULL;
11672 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11673 int result;
11674 PyObject * obj0 = 0 ;
11675 char *kwnames[] = {
11676 (char *) "self", NULL
11677 };
11678
11679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
11680 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11681 if (SWIG_arg_fail(1)) SWIG_fail;
11682 result = (int) ((arg1)->Language);
11683
11684 {
11685 resultobj = SWIG_From_int(static_cast<int >(result));
11686 }
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj = NULL;
11695 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11696 wxString *arg2 = (wxString *) 0 ;
11697 bool temp2 = false ;
11698 PyObject * obj0 = 0 ;
11699 PyObject * obj1 = 0 ;
11700 char *kwnames[] = {
11701 (char *) "self",(char *) "CanonicalName", NULL
11702 };
11703
11704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
11705 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11706 if (SWIG_arg_fail(1)) SWIG_fail;
11707 {
11708 arg2 = wxString_in_helper(obj1);
11709 if (arg2 == NULL) SWIG_fail;
11710 temp2 = true;
11711 }
11712 if (arg1) (arg1)->CanonicalName = *arg2;
11713
11714 Py_INCREF(Py_None); resultobj = Py_None;
11715 {
11716 if (temp2)
11717 delete arg2;
11718 }
11719 return resultobj;
11720 fail:
11721 {
11722 if (temp2)
11723 delete arg2;
11724 }
11725 return NULL;
11726 }
11727
11728
11729 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) {
11730 PyObject *resultobj = NULL;
11731 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11732 wxString *result;
11733 PyObject * obj0 = 0 ;
11734 char *kwnames[] = {
11735 (char *) "self", NULL
11736 };
11737
11738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
11739 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11740 if (SWIG_arg_fail(1)) SWIG_fail;
11741 result = (wxString *)& ((arg1)->CanonicalName);
11742
11743 {
11744 #if wxUSE_UNICODE
11745 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11746 #else
11747 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11748 #endif
11749 }
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj = NULL;
11758 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11759 wxString *arg2 = (wxString *) 0 ;
11760 bool temp2 = false ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "Description", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
11768 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11769 if (SWIG_arg_fail(1)) SWIG_fail;
11770 {
11771 arg2 = wxString_in_helper(obj1);
11772 if (arg2 == NULL) SWIG_fail;
11773 temp2 = true;
11774 }
11775 if (arg1) (arg1)->Description = *arg2;
11776
11777 Py_INCREF(Py_None); resultobj = Py_None;
11778 {
11779 if (temp2)
11780 delete arg2;
11781 }
11782 return resultobj;
11783 fail:
11784 {
11785 if (temp2)
11786 delete arg2;
11787 }
11788 return NULL;
11789 }
11790
11791
11792 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj = NULL;
11794 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
11795 wxString *result;
11796 PyObject * obj0 = 0 ;
11797 char *kwnames[] = {
11798 (char *) "self", NULL
11799 };
11800
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
11802 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
11803 if (SWIG_arg_fail(1)) SWIG_fail;
11804 result = (wxString *)& ((arg1)->Description);
11805
11806 {
11807 #if wxUSE_UNICODE
11808 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11809 #else
11810 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11811 #endif
11812 }
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) {
11820 PyObject *obj;
11821 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11822 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
11823 Py_INCREF(obj);
11824 return Py_BuildValue((char *)"");
11825 }
11826 static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj = NULL;
11828 int arg1 = (int) -1 ;
11829 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11830 wxLocale *result;
11831 PyObject * obj0 = 0 ;
11832 PyObject * obj1 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "language",(char *) "flags", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
11838 if (obj0) {
11839 {
11840 arg1 = static_cast<int >(SWIG_As_int(obj0));
11841 if (SWIG_arg_fail(1)) SWIG_fail;
11842 }
11843 }
11844 if (obj1) {
11845 {
11846 arg2 = static_cast<int >(SWIG_As_int(obj1));
11847 if (SWIG_arg_fail(2)) SWIG_fail;
11848 }
11849 }
11850 {
11851 PyThreadState* __tstate = wxPyBeginAllowThreads();
11852 result = (wxLocale *)new_wxLocale(arg1,arg2);
11853
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
11858 return resultobj;
11859 fail:
11860 return NULL;
11861 }
11862
11863
11864 static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj = NULL;
11866 wxLocale *arg1 = (wxLocale *) 0 ;
11867 PyObject * obj0 = 0 ;
11868 char *kwnames[] = {
11869 (char *) "self", NULL
11870 };
11871
11872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
11873 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11874 if (SWIG_arg_fail(1)) SWIG_fail;
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 delete arg1;
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 Py_INCREF(Py_None); resultobj = Py_None;
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj = NULL;
11891 wxLocale *arg1 = (wxLocale *) 0 ;
11892 wxString *arg2 = 0 ;
11893 wxString const &arg3_defvalue = wxPyEmptyString ;
11894 wxString *arg3 = (wxString *) &arg3_defvalue ;
11895 wxString const &arg4_defvalue = wxPyEmptyString ;
11896 wxString *arg4 = (wxString *) &arg4_defvalue ;
11897 bool arg5 = (bool) true ;
11898 bool arg6 = (bool) false ;
11899 bool result;
11900 bool temp2 = false ;
11901 bool temp3 = false ;
11902 bool temp4 = false ;
11903 PyObject * obj0 = 0 ;
11904 PyObject * obj1 = 0 ;
11905 PyObject * obj2 = 0 ;
11906 PyObject * obj3 = 0 ;
11907 PyObject * obj4 = 0 ;
11908 PyObject * obj5 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11914 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
11915 if (SWIG_arg_fail(1)) SWIG_fail;
11916 {
11917 arg2 = wxString_in_helper(obj1);
11918 if (arg2 == NULL) SWIG_fail;
11919 temp2 = true;
11920 }
11921 if (obj2) {
11922 {
11923 arg3 = wxString_in_helper(obj2);
11924 if (arg3 == NULL) SWIG_fail;
11925 temp3 = true;
11926 }
11927 }
11928 if (obj3) {
11929 {
11930 arg4 = wxString_in_helper(obj3);
11931 if (arg4 == NULL) SWIG_fail;
11932 temp4 = true;
11933 }
11934 }
11935 if (obj4) {
11936 {
11937 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
11938 if (SWIG_arg_fail(5)) SWIG_fail;
11939 }
11940 }
11941 if (obj5) {
11942 {
11943 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
11944 if (SWIG_arg_fail(6)) SWIG_fail;
11945 }
11946 }
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
11950
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 {
11955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11956 }
11957 {
11958 if (temp2)
11959 delete arg2;
11960 }
11961 {
11962 if (temp3)
11963 delete arg3;
11964 }
11965 {
11966 if (temp4)
11967 delete arg4;
11968 }
11969 return resultobj;
11970 fail:
11971 {
11972 if (temp2)
11973 delete arg2;
11974 }
11975 {
11976 if (temp3)
11977 delete arg3;
11978 }
11979 {
11980 if (temp4)
11981 delete arg4;
11982 }
11983 return NULL;
11984 }
11985
11986
11987 static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) {
11988 PyObject *resultobj = NULL;
11989 wxLocale *arg1 = (wxLocale *) 0 ;
11990 int arg2 = (int) wxLANGUAGE_DEFAULT ;
11991 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
11992 bool result;
11993 PyObject * obj0 = 0 ;
11994 PyObject * obj1 = 0 ;
11995 PyObject * obj2 = 0 ;
11996 char *kwnames[] = {
11997 (char *) "self",(char *) "language",(char *) "flags", NULL
11998 };
11999
12000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
12001 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12002 if (SWIG_arg_fail(1)) SWIG_fail;
12003 if (obj1) {
12004 {
12005 arg2 = static_cast<int >(SWIG_As_int(obj1));
12006 if (SWIG_arg_fail(2)) SWIG_fail;
12007 }
12008 }
12009 if (obj2) {
12010 {
12011 arg3 = static_cast<int >(SWIG_As_int(obj2));
12012 if (SWIG_arg_fail(3)) SWIG_fail;
12013 }
12014 }
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
12018
12019 wxPyEndAllowThreads(__tstate);
12020 if (PyErr_Occurred()) SWIG_fail;
12021 }
12022 {
12023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12024 }
12025 return resultobj;
12026 fail:
12027 return NULL;
12028 }
12029
12030
12031 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12032 PyObject *resultobj = NULL;
12033 int result;
12034 char *kwnames[] = {
12035 NULL
12036 };
12037
12038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
12039 {
12040 PyThreadState* __tstate = wxPyBeginAllowThreads();
12041 result = (int)wxLocale::GetSystemLanguage();
12042
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 {
12047 resultobj = SWIG_From_int(static_cast<int >(result));
12048 }
12049 return resultobj;
12050 fail:
12051 return NULL;
12052 }
12053
12054
12055 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) {
12056 PyObject *resultobj = NULL;
12057 wxFontEncoding result;
12058 char *kwnames[] = {
12059 NULL
12060 };
12061
12062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
12066
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_From_int((result));
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = NULL;
12079 wxString result;
12080 char *kwnames[] = {
12081 NULL
12082 };
12083
12084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 result = wxLocale::GetSystemEncodingName();
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093 #if wxUSE_UNICODE
12094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12095 #else
12096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12097 #endif
12098 }
12099 return resultobj;
12100 fail:
12101 return NULL;
12102 }
12103
12104
12105 static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12106 PyObject *resultobj = NULL;
12107 wxLocale *arg1 = (wxLocale *) 0 ;
12108 bool result;
12109 PyObject * obj0 = 0 ;
12110 char *kwnames[] = {
12111 (char *) "self", NULL
12112 };
12113
12114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
12115 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12116 if (SWIG_arg_fail(1)) SWIG_fail;
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 result = (bool)((wxLocale const *)arg1)->IsOk();
12120
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 {
12125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12126 }
12127 return resultobj;
12128 fail:
12129 return NULL;
12130 }
12131
12132
12133 static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj = NULL;
12135 wxLocale *arg1 = (wxLocale *) 0 ;
12136 wxString result;
12137 PyObject * obj0 = 0 ;
12138 char *kwnames[] = {
12139 (char *) "self", NULL
12140 };
12141
12142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
12143 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12144 if (SWIG_arg_fail(1)) SWIG_fail;
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 result = ((wxLocale const *)arg1)->GetLocale();
12148
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 {
12153 #if wxUSE_UNICODE
12154 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12155 #else
12156 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12157 #endif
12158 }
12159 return resultobj;
12160 fail:
12161 return NULL;
12162 }
12163
12164
12165 static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12166 PyObject *resultobj = NULL;
12167 wxLocale *arg1 = (wxLocale *) 0 ;
12168 int result;
12169 PyObject * obj0 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
12175 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12176 if (SWIG_arg_fail(1)) SWIG_fail;
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 result = (int)((wxLocale const *)arg1)->GetLanguage();
12180
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = SWIG_From_int(static_cast<int >(result));
12186 }
12187 return resultobj;
12188 fail:
12189 return NULL;
12190 }
12191
12192
12193 static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) {
12194 PyObject *resultobj = NULL;
12195 wxLocale *arg1 = (wxLocale *) 0 ;
12196 wxString result;
12197 PyObject * obj0 = 0 ;
12198 char *kwnames[] = {
12199 (char *) "self", NULL
12200 };
12201
12202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
12203 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12204 if (SWIG_arg_fail(1)) SWIG_fail;
12205 {
12206 PyThreadState* __tstate = wxPyBeginAllowThreads();
12207 result = ((wxLocale const *)arg1)->GetSysName();
12208
12209 wxPyEndAllowThreads(__tstate);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 {
12213 #if wxUSE_UNICODE
12214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12215 #else
12216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12217 #endif
12218 }
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj = NULL;
12227 wxLocale *arg1 = (wxLocale *) 0 ;
12228 wxString result;
12229 PyObject * obj0 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
12235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12236 if (SWIG_arg_fail(1)) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = ((wxLocale const *)arg1)->GetCanonicalName();
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 #if wxUSE_UNICODE
12246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12247 #else
12248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12249 #endif
12250 }
12251 return resultobj;
12252 fail:
12253 return NULL;
12254 }
12255
12256
12257 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
12258 PyObject *resultobj = NULL;
12259 wxString *arg1 = 0 ;
12260 bool temp1 = false ;
12261 PyObject * obj0 = 0 ;
12262 char *kwnames[] = {
12263 (char *) "prefix", NULL
12264 };
12265
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
12267 {
12268 arg1 = wxString_in_helper(obj0);
12269 if (arg1 == NULL) SWIG_fail;
12270 temp1 = true;
12271 }
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
12275
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 Py_INCREF(Py_None); resultobj = Py_None;
12280 {
12281 if (temp1)
12282 delete arg1;
12283 }
12284 return resultobj;
12285 fail:
12286 {
12287 if (temp1)
12288 delete arg1;
12289 }
12290 return NULL;
12291 }
12292
12293
12294 static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) {
12295 PyObject *resultobj = NULL;
12296 wxLocale *arg1 = (wxLocale *) 0 ;
12297 wxString *arg2 = 0 ;
12298 bool result;
12299 bool temp2 = false ;
12300 PyObject * obj0 = 0 ;
12301 PyObject * obj1 = 0 ;
12302 char *kwnames[] = {
12303 (char *) "self",(char *) "szDomain", NULL
12304 };
12305
12306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
12307 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12308 if (SWIG_arg_fail(1)) SWIG_fail;
12309 {
12310 arg2 = wxString_in_helper(obj1);
12311 if (arg2 == NULL) SWIG_fail;
12312 temp2 = true;
12313 }
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
12317
12318 wxPyEndAllowThreads(__tstate);
12319 if (PyErr_Occurred()) SWIG_fail;
12320 }
12321 {
12322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12323 }
12324 {
12325 if (temp2)
12326 delete arg2;
12327 }
12328 return resultobj;
12329 fail:
12330 {
12331 if (temp2)
12332 delete arg2;
12333 }
12334 return NULL;
12335 }
12336
12337
12338 static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) {
12339 PyObject *resultobj = NULL;
12340 wxLocale *arg1 = (wxLocale *) 0 ;
12341 wxString *arg2 = 0 ;
12342 bool result;
12343 bool temp2 = false ;
12344 PyObject * obj0 = 0 ;
12345 PyObject * obj1 = 0 ;
12346 char *kwnames[] = {
12347 (char *) "self",(char *) "szDomain", NULL
12348 };
12349
12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
12351 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12352 if (SWIG_arg_fail(1)) SWIG_fail;
12353 {
12354 arg2 = wxString_in_helper(obj1);
12355 if (arg2 == NULL) SWIG_fail;
12356 temp2 = true;
12357 }
12358 {
12359 PyThreadState* __tstate = wxPyBeginAllowThreads();
12360 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
12361
12362 wxPyEndAllowThreads(__tstate);
12363 if (PyErr_Occurred()) SWIG_fail;
12364 }
12365 {
12366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12367 }
12368 {
12369 if (temp2)
12370 delete arg2;
12371 }
12372 return resultobj;
12373 fail:
12374 {
12375 if (temp2)
12376 delete arg2;
12377 }
12378 return NULL;
12379 }
12380
12381
12382 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj = NULL;
12384 int arg1 ;
12385 wxLanguageInfo *result;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "lang", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
12392 {
12393 arg1 = static_cast<int >(SWIG_As_int(obj0));
12394 if (SWIG_arg_fail(1)) SWIG_fail;
12395 }
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
12398 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj = NULL;
12412 int arg1 ;
12413 wxString result;
12414 PyObject * obj0 = 0 ;
12415 char *kwnames[] = {
12416 (char *) "lang", NULL
12417 };
12418
12419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
12420 {
12421 arg1 = static_cast<int >(SWIG_As_int(obj0));
12422 if (SWIG_arg_fail(1)) SWIG_fail;
12423 }
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = wxLocale::GetLanguageName(arg1);
12427
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 {
12432 #if wxUSE_UNICODE
12433 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12434 #else
12435 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12436 #endif
12437 }
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj = NULL;
12446 wxString *arg1 = 0 ;
12447 wxLanguageInfo *result;
12448 bool temp1 = false ;
12449 PyObject * obj0 = 0 ;
12450 char *kwnames[] = {
12451 (char *) "locale", NULL
12452 };
12453
12454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
12455 {
12456 arg1 = wxString_in_helper(obj0);
12457 if (arg1 == NULL) SWIG_fail;
12458 temp1 = true;
12459 }
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
12463
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
12468 {
12469 if (temp1)
12470 delete arg1;
12471 }
12472 return resultobj;
12473 fail:
12474 {
12475 if (temp1)
12476 delete arg1;
12477 }
12478 return NULL;
12479 }
12480
12481
12482 static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj = NULL;
12484 wxLanguageInfo *arg1 = 0 ;
12485 PyObject * obj0 = 0 ;
12486 char *kwnames[] = {
12487 (char *) "info", NULL
12488 };
12489
12490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
12491 {
12492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLanguageInfo, SWIG_POINTER_EXCEPTION | 0);
12493 if (SWIG_arg_fail(1)) SWIG_fail;
12494 if (arg1 == NULL) {
12495 SWIG_null_ref("wxLanguageInfo");
12496 }
12497 if (SWIG_arg_fail(1)) SWIG_fail;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
12502
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 Py_INCREF(Py_None); resultobj = Py_None;
12507 return resultobj;
12508 fail:
12509 return NULL;
12510 }
12511
12512
12513 static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12514 PyObject *resultobj = NULL;
12515 wxLocale *arg1 = (wxLocale *) 0 ;
12516 wxString *arg2 = 0 ;
12517 wxString const &arg3_defvalue = wxPyEmptyString ;
12518 wxString *arg3 = (wxString *) &arg3_defvalue ;
12519 wxString result;
12520 bool temp2 = false ;
12521 bool temp3 = false ;
12522 PyObject * obj0 = 0 ;
12523 PyObject * obj1 = 0 ;
12524 PyObject * obj2 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12530 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12531 if (SWIG_arg_fail(1)) SWIG_fail;
12532 {
12533 arg2 = wxString_in_helper(obj1);
12534 if (arg2 == NULL) SWIG_fail;
12535 temp2 = true;
12536 }
12537 if (obj2) {
12538 {
12539 arg3 = wxString_in_helper(obj2);
12540 if (arg3 == NULL) SWIG_fail;
12541 temp3 = true;
12542 }
12543 }
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
12547
12548 wxPyEndAllowThreads(__tstate);
12549 if (PyErr_Occurred()) SWIG_fail;
12550 }
12551 {
12552 #if wxUSE_UNICODE
12553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12554 #else
12555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12556 #endif
12557 }
12558 {
12559 if (temp2)
12560 delete arg2;
12561 }
12562 {
12563 if (temp3)
12564 delete arg3;
12565 }
12566 return resultobj;
12567 fail:
12568 {
12569 if (temp2)
12570 delete arg2;
12571 }
12572 {
12573 if (temp3)
12574 delete arg3;
12575 }
12576 return NULL;
12577 }
12578
12579
12580 static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj = NULL;
12582 wxLocale *arg1 = (wxLocale *) 0 ;
12583 wxString *result;
12584 PyObject * obj0 = 0 ;
12585 char *kwnames[] = {
12586 (char *) "self", NULL
12587 };
12588
12589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
12590 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLocale, SWIG_POINTER_EXCEPTION | 0);
12591 if (SWIG_arg_fail(1)) SWIG_fail;
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 {
12595 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
12596 result = (wxString *) &_result_ref;
12597 }
12598
12599 wxPyEndAllowThreads(__tstate);
12600 if (PyErr_Occurred()) SWIG_fail;
12601 }
12602 {
12603 #if wxUSE_UNICODE
12604 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12605 #else
12606 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12607 #endif
12608 }
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 static PyObject * Locale_swigregister(PyObject *, PyObject *args) {
12616 PyObject *obj;
12617 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12618 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
12619 Py_INCREF(obj);
12620 return Py_BuildValue((char *)"");
12621 }
12622 static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) {
12623 PyObject *resultobj = NULL;
12624 wxLocale *result;
12625 char *kwnames[] = {
12626 NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (wxLocale *)wxGetLocale();
12633
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) {
12645 PyObject *resultobj = NULL;
12646 wxString *arg1 = 0 ;
12647 wxString result;
12648 bool temp1 = false ;
12649 PyObject * obj0 = 0 ;
12650
12651 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
12652 {
12653 arg1 = wxString_in_helper(obj0);
12654 if (arg1 == NULL) SWIG_fail;
12655 temp1 = true;
12656 }
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 result = wxGetTranslation((wxString const &)*arg1);
12660
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 #if wxUSE_UNICODE
12666 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12667 #else
12668 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12669 #endif
12670 }
12671 {
12672 if (temp1)
12673 delete arg1;
12674 }
12675 return resultobj;
12676 fail:
12677 {
12678 if (temp1)
12679 delete arg1;
12680 }
12681 return NULL;
12682 }
12683
12684
12685 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) {
12686 PyObject *resultobj = NULL;
12687 wxString *arg1 = 0 ;
12688 wxString *arg2 = 0 ;
12689 size_t arg3 ;
12690 wxString result;
12691 bool temp1 = false ;
12692 bool temp2 = false ;
12693 PyObject * obj0 = 0 ;
12694 PyObject * obj1 = 0 ;
12695 PyObject * obj2 = 0 ;
12696
12697 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
12698 {
12699 arg1 = wxString_in_helper(obj0);
12700 if (arg1 == NULL) SWIG_fail;
12701 temp1 = true;
12702 }
12703 {
12704 arg2 = wxString_in_helper(obj1);
12705 if (arg2 == NULL) SWIG_fail;
12706 temp2 = true;
12707 }
12708 {
12709 arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2));
12710 if (SWIG_arg_fail(3)) SWIG_fail;
12711 }
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 {
12720 #if wxUSE_UNICODE
12721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12722 #else
12723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12724 #endif
12725 }
12726 {
12727 if (temp1)
12728 delete arg1;
12729 }
12730 {
12731 if (temp2)
12732 delete arg2;
12733 }
12734 return resultobj;
12735 fail:
12736 {
12737 if (temp1)
12738 delete arg1;
12739 }
12740 {
12741 if (temp2)
12742 delete arg2;
12743 }
12744 return NULL;
12745 }
12746
12747
12748 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
12749 int argc;
12750 PyObject *argv[4];
12751 int ii;
12752
12753 argc = PyObject_Length(args);
12754 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
12755 argv[ii] = PyTuple_GetItem(args,ii);
12756 }
12757 if (argc == 1) {
12758 int _v;
12759 {
12760 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12761 }
12762 if (_v) {
12763 return _wrap_GetTranslation__SWIG_0(self,args);
12764 }
12765 }
12766 if (argc == 3) {
12767 int _v;
12768 {
12769 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
12770 }
12771 if (_v) {
12772 {
12773 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
12774 }
12775 if (_v) {
12776 _v = SWIG_Check_unsigned_SS_long(argv[2]);
12777 if (_v) {
12778 return _wrap_GetTranslation__SWIG_1(self,args);
12779 }
12780 }
12781 }
12782 }
12783
12784 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
12785 return NULL;
12786 }
12787
12788
12789 static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = NULL;
12791 wxEncodingConverter *result;
12792 char *kwnames[] = {
12793 NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (wxEncodingConverter *)new wxEncodingConverter();
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj = NULL;
12813 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12814 PyObject * obj0 = 0 ;
12815 char *kwnames[] = {
12816 (char *) "self", NULL
12817 };
12818
12819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
12820 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12821 if (SWIG_arg_fail(1)) SWIG_fail;
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 delete arg1;
12825
12826 wxPyEndAllowThreads(__tstate);
12827 if (PyErr_Occurred()) SWIG_fail;
12828 }
12829 Py_INCREF(Py_None); resultobj = Py_None;
12830 return resultobj;
12831 fail:
12832 return NULL;
12833 }
12834
12835
12836 static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) {
12837 PyObject *resultobj = NULL;
12838 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12839 wxFontEncoding arg2 ;
12840 wxFontEncoding arg3 ;
12841 int arg4 = (int) wxCONVERT_STRICT ;
12842 bool result;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 PyObject * obj2 = 0 ;
12846 PyObject * obj3 = 0 ;
12847 char *kwnames[] = {
12848 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
12849 };
12850
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12852 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12853 if (SWIG_arg_fail(1)) SWIG_fail;
12854 {
12855 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
12856 if (SWIG_arg_fail(2)) SWIG_fail;
12857 }
12858 {
12859 arg3 = static_cast<wxFontEncoding >(SWIG_As_int(obj2));
12860 if (SWIG_arg_fail(3)) SWIG_fail;
12861 }
12862 if (obj3) {
12863 {
12864 arg4 = static_cast<int >(SWIG_As_int(obj3));
12865 if (SWIG_arg_fail(4)) SWIG_fail;
12866 }
12867 }
12868 {
12869 PyThreadState* __tstate = wxPyBeginAllowThreads();
12870 result = (bool)(arg1)->Init(arg2,arg3,arg4);
12871
12872 wxPyEndAllowThreads(__tstate);
12873 if (PyErr_Occurred()) SWIG_fail;
12874 }
12875 {
12876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12877 }
12878 return resultobj;
12879 fail:
12880 return NULL;
12881 }
12882
12883
12884 static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) {
12885 PyObject *resultobj = NULL;
12886 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
12887 wxString *arg2 = 0 ;
12888 wxString result;
12889 bool temp2 = false ;
12890 PyObject * obj0 = 0 ;
12891 PyObject * obj1 = 0 ;
12892 char *kwnames[] = {
12893 (char *) "self",(char *) "input", NULL
12894 };
12895
12896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
12897 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_EXCEPTION | 0);
12898 if (SWIG_arg_fail(1)) SWIG_fail;
12899 {
12900 arg2 = wxString_in_helper(obj1);
12901 if (arg2 == NULL) SWIG_fail;
12902 temp2 = true;
12903 }
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 result = (arg1)->Convert((wxString const &)*arg2);
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 {
12912 #if wxUSE_UNICODE
12913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12914 #else
12915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12916 #endif
12917 }
12918 {
12919 if (temp2)
12920 delete arg2;
12921 }
12922 return resultobj;
12923 fail:
12924 {
12925 if (temp2)
12926 delete arg2;
12927 }
12928 return NULL;
12929 }
12930
12931
12932 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12933 PyObject *resultobj = NULL;
12934 wxFontEncoding arg1 ;
12935 int arg2 = (int) wxPLATFORM_CURRENT ;
12936 wxFontEncodingArray result;
12937 PyObject * obj0 = 0 ;
12938 PyObject * obj1 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "enc",(char *) "platform", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
12944 {
12945 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12946 if (SWIG_arg_fail(1)) SWIG_fail;
12947 }
12948 if (obj1) {
12949 {
12950 arg2 = static_cast<int >(SWIG_As_int(obj1));
12951 if (SWIG_arg_fail(2)) SWIG_fail;
12952 }
12953 }
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
12957
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 {
12962 resultobj = PyList_New(0);
12963 for (size_t i=0; i < (&result)->GetCount(); i++) {
12964 PyObject* number = PyInt_FromLong((&result)->Item(i));
12965 PyList_Append(resultobj, number);
12966 Py_DECREF(number);
12967 }
12968 }
12969 return resultobj;
12970 fail:
12971 return NULL;
12972 }
12973
12974
12975 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) {
12976 PyObject *resultobj = NULL;
12977 wxFontEncoding arg1 ;
12978 wxFontEncodingArray result;
12979 PyObject * obj0 = 0 ;
12980 char *kwnames[] = {
12981 (char *) "enc", NULL
12982 };
12983
12984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
12985 {
12986 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
12987 if (SWIG_arg_fail(1)) SWIG_fail;
12988 }
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 result = wxEncodingConverter::GetAllEquivalents(arg1);
12992
12993 wxPyEndAllowThreads(__tstate);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 {
12997 resultobj = PyList_New(0);
12998 for (size_t i=0; i < (&result)->GetCount(); i++) {
12999 PyObject* number = PyInt_FromLong((&result)->Item(i));
13000 PyList_Append(resultobj, number);
13001 Py_DECREF(number);
13002 }
13003 }
13004 return resultobj;
13005 fail:
13006 return NULL;
13007 }
13008
13009
13010 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj = NULL;
13012 wxFontEncoding arg1 ;
13013 wxFontEncoding arg2 ;
13014 bool result;
13015 PyObject * obj0 = 0 ;
13016 PyObject * obj1 = 0 ;
13017 char *kwnames[] = {
13018 (char *) "encIn",(char *) "encOut", NULL
13019 };
13020
13021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
13022 {
13023 arg1 = static_cast<wxFontEncoding >(SWIG_As_int(obj0));
13024 if (SWIG_arg_fail(1)) SWIG_fail;
13025 }
13026 {
13027 arg2 = static_cast<wxFontEncoding >(SWIG_As_int(obj1));
13028 if (SWIG_arg_fail(2)) SWIG_fail;
13029 }
13030 {
13031 PyThreadState* __tstate = wxPyBeginAllowThreads();
13032 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
13033
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 {
13038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13039 }
13040 return resultobj;
13041 fail:
13042 return NULL;
13043 }
13044
13045
13046 static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) {
13047 PyObject *obj;
13048 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13049 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
13050 Py_INCREF(obj);
13051 return Py_BuildValue((char *)"");
13052 }
13053 static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj = NULL;
13055 wxDC *arg1 = (wxDC *) 0 ;
13056 PyObject * obj0 = 0 ;
13057 char *kwnames[] = {
13058 (char *) "self", NULL
13059 };
13060
13061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
13062 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13063 if (SWIG_arg_fail(1)) SWIG_fail;
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 delete arg1;
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 Py_INCREF(Py_None); resultobj = Py_None;
13072 return resultobj;
13073 fail:
13074 return NULL;
13075 }
13076
13077
13078 static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) {
13079 PyObject *resultobj = NULL;
13080 wxDC *arg1 = (wxDC *) 0 ;
13081 int arg2 ;
13082 int arg3 ;
13083 wxColour *arg4 = 0 ;
13084 int arg5 = (int) wxFLOOD_SURFACE ;
13085 bool result;
13086 wxColour temp4 ;
13087 PyObject * obj0 = 0 ;
13088 PyObject * obj1 = 0 ;
13089 PyObject * obj2 = 0 ;
13090 PyObject * obj3 = 0 ;
13091 PyObject * obj4 = 0 ;
13092 char *kwnames[] = {
13093 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
13094 };
13095
13096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13098 if (SWIG_arg_fail(1)) SWIG_fail;
13099 {
13100 arg2 = static_cast<int >(SWIG_As_int(obj1));
13101 if (SWIG_arg_fail(2)) SWIG_fail;
13102 }
13103 {
13104 arg3 = static_cast<int >(SWIG_As_int(obj2));
13105 if (SWIG_arg_fail(3)) SWIG_fail;
13106 }
13107 {
13108 arg4 = &temp4;
13109 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
13110 }
13111 if (obj4) {
13112 {
13113 arg5 = static_cast<int >(SWIG_As_int(obj4));
13114 if (SWIG_arg_fail(5)) SWIG_fail;
13115 }
13116 }
13117 {
13118 PyThreadState* __tstate = wxPyBeginAllowThreads();
13119 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
13120
13121 wxPyEndAllowThreads(__tstate);
13122 if (PyErr_Occurred()) SWIG_fail;
13123 }
13124 {
13125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13126 }
13127 return resultobj;
13128 fail:
13129 return NULL;
13130 }
13131
13132
13133 static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13134 PyObject *resultobj = NULL;
13135 wxDC *arg1 = (wxDC *) 0 ;
13136 wxPoint *arg2 = 0 ;
13137 wxColour *arg3 = 0 ;
13138 int arg4 = (int) wxFLOOD_SURFACE ;
13139 bool result;
13140 wxPoint temp2 ;
13141 wxColour temp3 ;
13142 PyObject * obj0 = 0 ;
13143 PyObject * obj1 = 0 ;
13144 PyObject * obj2 = 0 ;
13145 PyObject * obj3 = 0 ;
13146 char *kwnames[] = {
13147 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
13148 };
13149
13150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13152 if (SWIG_arg_fail(1)) SWIG_fail;
13153 {
13154 arg2 = &temp2;
13155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13156 }
13157 {
13158 arg3 = &temp3;
13159 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13160 }
13161 if (obj3) {
13162 {
13163 arg4 = static_cast<int >(SWIG_As_int(obj3));
13164 if (SWIG_arg_fail(4)) SWIG_fail;
13165 }
13166 }
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 {
13175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13176 }
13177 return resultobj;
13178 fail:
13179 return NULL;
13180 }
13181
13182
13183 static PyObject *_wrap_DC_GradientFillConcentric(PyObject *, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = NULL;
13185 wxDC *arg1 = (wxDC *) 0 ;
13186 wxRect *arg2 = 0 ;
13187 wxColour *arg3 = 0 ;
13188 wxColour *arg4 = 0 ;
13189 wxPoint *arg5 = 0 ;
13190 wxRect temp2 ;
13191 wxColour temp3 ;
13192 wxColour temp4 ;
13193 wxPoint temp5 ;
13194 PyObject * obj0 = 0 ;
13195 PyObject * obj1 = 0 ;
13196 PyObject * obj2 = 0 ;
13197 PyObject * obj3 = 0 ;
13198 PyObject * obj4 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13204 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13205 if (SWIG_arg_fail(1)) SWIG_fail;
13206 {
13207 arg2 = &temp2;
13208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13209 }
13210 {
13211 arg3 = &temp3;
13212 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13213 }
13214 {
13215 arg4 = &temp4;
13216 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
13217 }
13218 {
13219 arg5 = &temp5;
13220 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 Py_INCREF(Py_None); resultobj = Py_None;
13230 return resultobj;
13231 fail:
13232 return NULL;
13233 }
13234
13235
13236 static PyObject *_wrap_DC_GradientFillLinear(PyObject *, PyObject *args, PyObject *kwargs) {
13237 PyObject *resultobj = NULL;
13238 wxDC *arg1 = (wxDC *) 0 ;
13239 wxRect *arg2 = 0 ;
13240 wxColour *arg3 = 0 ;
13241 wxColour *arg4 = 0 ;
13242 wxDirection arg5 = (wxDirection) wxEAST ;
13243 wxRect temp2 ;
13244 wxColour temp3 ;
13245 wxColour temp4 ;
13246 PyObject * obj0 = 0 ;
13247 PyObject * obj1 = 0 ;
13248 PyObject * obj2 = 0 ;
13249 PyObject * obj3 = 0 ;
13250 PyObject * obj4 = 0 ;
13251 char *kwnames[] = {
13252 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
13253 };
13254
13255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13256 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13257 if (SWIG_arg_fail(1)) SWIG_fail;
13258 {
13259 arg2 = &temp2;
13260 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13261 }
13262 {
13263 arg3 = &temp3;
13264 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
13265 }
13266 {
13267 arg4 = &temp4;
13268 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
13269 }
13270 if (obj4) {
13271 {
13272 arg5 = static_cast<wxDirection >(SWIG_As_int(obj4));
13273 if (SWIG_arg_fail(5)) SWIG_fail;
13274 }
13275 }
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
13279
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 Py_INCREF(Py_None); resultobj = Py_None;
13284 return resultobj;
13285 fail:
13286 return NULL;
13287 }
13288
13289
13290 static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) {
13291 PyObject *resultobj = NULL;
13292 wxDC *arg1 = (wxDC *) 0 ;
13293 int arg2 ;
13294 int arg3 ;
13295 wxColour result;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 PyObject * obj2 = 0 ;
13299 char *kwnames[] = {
13300 (char *) "self",(char *) "x",(char *) "y", NULL
13301 };
13302
13303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
13304 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13305 if (SWIG_arg_fail(1)) SWIG_fail;
13306 {
13307 arg2 = static_cast<int >(SWIG_As_int(obj1));
13308 if (SWIG_arg_fail(2)) SWIG_fail;
13309 }
13310 {
13311 arg3 = static_cast<int >(SWIG_As_int(obj2));
13312 if (SWIG_arg_fail(3)) SWIG_fail;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = wxDC_GetPixel(arg1,arg2,arg3);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 {
13322 wxColour * resultptr;
13323 resultptr = new wxColour(static_cast<wxColour & >(result));
13324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13325 }
13326 return resultobj;
13327 fail:
13328 return NULL;
13329 }
13330
13331
13332 static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj = NULL;
13334 wxDC *arg1 = (wxDC *) 0 ;
13335 wxPoint *arg2 = 0 ;
13336 wxColour result;
13337 wxPoint temp2 ;
13338 PyObject * obj0 = 0 ;
13339 PyObject * obj1 = 0 ;
13340 char *kwnames[] = {
13341 (char *) "self",(char *) "pt", NULL
13342 };
13343
13344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
13345 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13346 if (SWIG_arg_fail(1)) SWIG_fail;
13347 {
13348 arg2 = &temp2;
13349 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13350 }
13351 {
13352 PyThreadState* __tstate = wxPyBeginAllowThreads();
13353 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
13354
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 {
13359 wxColour * resultptr;
13360 resultptr = new wxColour(static_cast<wxColour & >(result));
13361 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
13362 }
13363 return resultobj;
13364 fail:
13365 return NULL;
13366 }
13367
13368
13369 static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) {
13370 PyObject *resultobj = NULL;
13371 wxDC *arg1 = (wxDC *) 0 ;
13372 int arg2 ;
13373 int arg3 ;
13374 int arg4 ;
13375 int arg5 ;
13376 PyObject * obj0 = 0 ;
13377 PyObject * obj1 = 0 ;
13378 PyObject * obj2 = 0 ;
13379 PyObject * obj3 = 0 ;
13380 PyObject * obj4 = 0 ;
13381 char *kwnames[] = {
13382 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
13383 };
13384
13385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13386 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13387 if (SWIG_arg_fail(1)) SWIG_fail;
13388 {
13389 arg2 = static_cast<int >(SWIG_As_int(obj1));
13390 if (SWIG_arg_fail(2)) SWIG_fail;
13391 }
13392 {
13393 arg3 = static_cast<int >(SWIG_As_int(obj2));
13394 if (SWIG_arg_fail(3)) SWIG_fail;
13395 }
13396 {
13397 arg4 = static_cast<int >(SWIG_As_int(obj3));
13398 if (SWIG_arg_fail(4)) SWIG_fail;
13399 }
13400 {
13401 arg5 = static_cast<int >(SWIG_As_int(obj4));
13402 if (SWIG_arg_fail(5)) SWIG_fail;
13403 }
13404 {
13405 PyThreadState* __tstate = wxPyBeginAllowThreads();
13406 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
13407
13408 wxPyEndAllowThreads(__tstate);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 Py_INCREF(Py_None); resultobj = Py_None;
13412 return resultobj;
13413 fail:
13414 return NULL;
13415 }
13416
13417
13418 static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) {
13419 PyObject *resultobj = NULL;
13420 wxDC *arg1 = (wxDC *) 0 ;
13421 wxPoint *arg2 = 0 ;
13422 wxPoint *arg3 = 0 ;
13423 wxPoint temp2 ;
13424 wxPoint temp3 ;
13425 PyObject * obj0 = 0 ;
13426 PyObject * obj1 = 0 ;
13427 PyObject * obj2 = 0 ;
13428 char *kwnames[] = {
13429 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
13430 };
13431
13432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) 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 ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13442 }
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
13446
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 Py_INCREF(Py_None); resultobj = Py_None;
13451 return resultobj;
13452 fail:
13453 return NULL;
13454 }
13455
13456
13457 static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) {
13458 PyObject *resultobj = NULL;
13459 wxDC *arg1 = (wxDC *) 0 ;
13460 int arg2 ;
13461 int arg3 ;
13462 PyObject * obj0 = 0 ;
13463 PyObject * obj1 = 0 ;
13464 PyObject * obj2 = 0 ;
13465 char *kwnames[] = {
13466 (char *) "self",(char *) "x",(char *) "y", NULL
13467 };
13468
13469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
13470 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13471 if (SWIG_arg_fail(1)) SWIG_fail;
13472 {
13473 arg2 = static_cast<int >(SWIG_As_int(obj1));
13474 if (SWIG_arg_fail(2)) SWIG_fail;
13475 }
13476 {
13477 arg3 = static_cast<int >(SWIG_As_int(obj2));
13478 if (SWIG_arg_fail(3)) SWIG_fail;
13479 }
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->CrossHair(arg2,arg3);
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 Py_INCREF(Py_None); resultobj = Py_None;
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13495 PyObject *resultobj = NULL;
13496 wxDC *arg1 = (wxDC *) 0 ;
13497 wxPoint *arg2 = 0 ;
13498 wxPoint temp2 ;
13499 PyObject * obj0 = 0 ;
13500 PyObject * obj1 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self",(char *) "pt", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
13506 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13507 if (SWIG_arg_fail(1)) SWIG_fail;
13508 {
13509 arg2 = &temp2;
13510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13511 }
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 (arg1)->CrossHair((wxPoint const &)*arg2);
13515
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 Py_INCREF(Py_None); resultobj = Py_None;
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = NULL;
13528 wxDC *arg1 = (wxDC *) 0 ;
13529 int arg2 ;
13530 int arg3 ;
13531 int arg4 ;
13532 int arg5 ;
13533 int arg6 ;
13534 int arg7 ;
13535 PyObject * obj0 = 0 ;
13536 PyObject * obj1 = 0 ;
13537 PyObject * obj2 = 0 ;
13538 PyObject * obj3 = 0 ;
13539 PyObject * obj4 = 0 ;
13540 PyObject * obj5 = 0 ;
13541 PyObject * obj6 = 0 ;
13542 char *kwnames[] = {
13543 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
13544 };
13545
13546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13547 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13548 if (SWIG_arg_fail(1)) SWIG_fail;
13549 {
13550 arg2 = static_cast<int >(SWIG_As_int(obj1));
13551 if (SWIG_arg_fail(2)) SWIG_fail;
13552 }
13553 {
13554 arg3 = static_cast<int >(SWIG_As_int(obj2));
13555 if (SWIG_arg_fail(3)) SWIG_fail;
13556 }
13557 {
13558 arg4 = static_cast<int >(SWIG_As_int(obj3));
13559 if (SWIG_arg_fail(4)) SWIG_fail;
13560 }
13561 {
13562 arg5 = static_cast<int >(SWIG_As_int(obj4));
13563 if (SWIG_arg_fail(5)) SWIG_fail;
13564 }
13565 {
13566 arg6 = static_cast<int >(SWIG_As_int(obj5));
13567 if (SWIG_arg_fail(6)) SWIG_fail;
13568 }
13569 {
13570 arg7 = static_cast<int >(SWIG_As_int(obj6));
13571 if (SWIG_arg_fail(7)) SWIG_fail;
13572 }
13573 {
13574 PyThreadState* __tstate = wxPyBeginAllowThreads();
13575 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
13576
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 Py_INCREF(Py_None); resultobj = Py_None;
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13588 PyObject *resultobj = NULL;
13589 wxDC *arg1 = (wxDC *) 0 ;
13590 wxPoint *arg2 = 0 ;
13591 wxPoint *arg3 = 0 ;
13592 wxPoint *arg4 = 0 ;
13593 wxPoint temp2 ;
13594 wxPoint temp3 ;
13595 wxPoint temp4 ;
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 PyObject * obj2 = 0 ;
13599 PyObject * obj3 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13605 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13606 if (SWIG_arg_fail(1)) SWIG_fail;
13607 {
13608 arg2 = &temp2;
13609 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13610 }
13611 {
13612 arg3 = &temp3;
13613 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
13614 }
13615 {
13616 arg4 = &temp4;
13617 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13618 }
13619 {
13620 PyThreadState* __tstate = wxPyBeginAllowThreads();
13621 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
13622
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 Py_INCREF(Py_None); resultobj = Py_None;
13627 return resultobj;
13628 fail:
13629 return NULL;
13630 }
13631
13632
13633 static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) {
13634 PyObject *resultobj = NULL;
13635 wxDC *arg1 = (wxDC *) 0 ;
13636 int arg2 ;
13637 int arg3 ;
13638 int arg4 ;
13639 int arg5 ;
13640 PyObject * obj0 = 0 ;
13641 PyObject * obj1 = 0 ;
13642 PyObject * obj2 = 0 ;
13643 PyObject * obj3 = 0 ;
13644 PyObject * obj4 = 0 ;
13645 char *kwnames[] = {
13646 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13647 };
13648
13649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13650 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13651 if (SWIG_arg_fail(1)) SWIG_fail;
13652 {
13653 arg2 = static_cast<int >(SWIG_As_int(obj1));
13654 if (SWIG_arg_fail(2)) SWIG_fail;
13655 }
13656 {
13657 arg3 = static_cast<int >(SWIG_As_int(obj2));
13658 if (SWIG_arg_fail(3)) SWIG_fail;
13659 }
13660 {
13661 arg4 = static_cast<int >(SWIG_As_int(obj3));
13662 if (SWIG_arg_fail(4)) SWIG_fail;
13663 }
13664 {
13665 arg5 = static_cast<int >(SWIG_As_int(obj4));
13666 if (SWIG_arg_fail(5)) SWIG_fail;
13667 }
13668 {
13669 PyThreadState* __tstate = wxPyBeginAllowThreads();
13670 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
13671
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 Py_INCREF(Py_None); resultobj = Py_None;
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj = NULL;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 wxRect *arg2 = 0 ;
13686 wxRect temp2 ;
13687 PyObject * obj0 = 0 ;
13688 PyObject * obj1 = 0 ;
13689 char *kwnames[] = {
13690 (char *) "self",(char *) "rect", NULL
13691 };
13692
13693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
13694 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13695 if (SWIG_arg_fail(1)) SWIG_fail;
13696 {
13697 arg2 = &temp2;
13698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13699 }
13700 {
13701 PyThreadState* __tstate = wxPyBeginAllowThreads();
13702 (arg1)->DrawCheckMark((wxRect const &)*arg2);
13703
13704 wxPyEndAllowThreads(__tstate);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 }
13707 Py_INCREF(Py_None); resultobj = Py_None;
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj = NULL;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 int arg2 ;
13718 int arg3 ;
13719 int arg4 ;
13720 int arg5 ;
13721 double arg6 ;
13722 double arg7 ;
13723 PyObject * obj0 = 0 ;
13724 PyObject * obj1 = 0 ;
13725 PyObject * obj2 = 0 ;
13726 PyObject * obj3 = 0 ;
13727 PyObject * obj4 = 0 ;
13728 PyObject * obj5 = 0 ;
13729 PyObject * obj6 = 0 ;
13730 char *kwnames[] = {
13731 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
13732 };
13733
13734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
13735 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13736 if (SWIG_arg_fail(1)) SWIG_fail;
13737 {
13738 arg2 = static_cast<int >(SWIG_As_int(obj1));
13739 if (SWIG_arg_fail(2)) SWIG_fail;
13740 }
13741 {
13742 arg3 = static_cast<int >(SWIG_As_int(obj2));
13743 if (SWIG_arg_fail(3)) SWIG_fail;
13744 }
13745 {
13746 arg4 = static_cast<int >(SWIG_As_int(obj3));
13747 if (SWIG_arg_fail(4)) SWIG_fail;
13748 }
13749 {
13750 arg5 = static_cast<int >(SWIG_As_int(obj4));
13751 if (SWIG_arg_fail(5)) SWIG_fail;
13752 }
13753 {
13754 arg6 = static_cast<double >(SWIG_As_double(obj5));
13755 if (SWIG_arg_fail(6)) SWIG_fail;
13756 }
13757 {
13758 arg7 = static_cast<double >(SWIG_As_double(obj6));
13759 if (SWIG_arg_fail(7)) SWIG_fail;
13760 }
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 Py_INCREF(Py_None); resultobj = Py_None;
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj = NULL;
13777 wxDC *arg1 = (wxDC *) 0 ;
13778 wxPoint *arg2 = 0 ;
13779 wxSize *arg3 = 0 ;
13780 double arg4 ;
13781 double arg5 ;
13782 wxPoint temp2 ;
13783 wxSize temp3 ;
13784 PyObject * obj0 = 0 ;
13785 PyObject * obj1 = 0 ;
13786 PyObject * obj2 = 0 ;
13787 PyObject * obj3 = 0 ;
13788 PyObject * obj4 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
13791 };
13792
13793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13794 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13795 if (SWIG_arg_fail(1)) SWIG_fail;
13796 {
13797 arg2 = &temp2;
13798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13799 }
13800 {
13801 arg3 = &temp3;
13802 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13803 }
13804 {
13805 arg4 = static_cast<double >(SWIG_As_double(obj3));
13806 if (SWIG_arg_fail(4)) SWIG_fail;
13807 }
13808 {
13809 arg5 = static_cast<double >(SWIG_As_double(obj4));
13810 if (SWIG_arg_fail(5)) SWIG_fail;
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 Py_INCREF(Py_None); resultobj = Py_None;
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj = NULL;
13828 wxDC *arg1 = (wxDC *) 0 ;
13829 int arg2 ;
13830 int arg3 ;
13831 PyObject * obj0 = 0 ;
13832 PyObject * obj1 = 0 ;
13833 PyObject * obj2 = 0 ;
13834 char *kwnames[] = {
13835 (char *) "self",(char *) "x",(char *) "y", NULL
13836 };
13837
13838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
13839 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13840 if (SWIG_arg_fail(1)) SWIG_fail;
13841 {
13842 arg2 = static_cast<int >(SWIG_As_int(obj1));
13843 if (SWIG_arg_fail(2)) SWIG_fail;
13844 }
13845 {
13846 arg3 = static_cast<int >(SWIG_As_int(obj2));
13847 if (SWIG_arg_fail(3)) SWIG_fail;
13848 }
13849 {
13850 PyThreadState* __tstate = wxPyBeginAllowThreads();
13851 (arg1)->DrawPoint(arg2,arg3);
13852
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 Py_INCREF(Py_None); resultobj = Py_None;
13857 return resultobj;
13858 fail:
13859 return NULL;
13860 }
13861
13862
13863 static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj = NULL;
13865 wxDC *arg1 = (wxDC *) 0 ;
13866 wxPoint *arg2 = 0 ;
13867 wxPoint temp2 ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "self",(char *) "pt", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
13875 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13876 if (SWIG_arg_fail(1)) SWIG_fail;
13877 {
13878 arg2 = &temp2;
13879 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13880 }
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 (arg1)->DrawPoint((wxPoint const &)*arg2);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 Py_INCREF(Py_None); resultobj = Py_None;
13889 return resultobj;
13890 fail:
13891 return NULL;
13892 }
13893
13894
13895 static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
13896 PyObject *resultobj = NULL;
13897 wxDC *arg1 = (wxDC *) 0 ;
13898 int arg2 ;
13899 int arg3 ;
13900 int arg4 ;
13901 int arg5 ;
13902 PyObject * obj0 = 0 ;
13903 PyObject * obj1 = 0 ;
13904 PyObject * obj2 = 0 ;
13905 PyObject * obj3 = 0 ;
13906 PyObject * obj4 = 0 ;
13907 char *kwnames[] = {
13908 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
13909 };
13910
13911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
13912 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13913 if (SWIG_arg_fail(1)) SWIG_fail;
13914 {
13915 arg2 = static_cast<int >(SWIG_As_int(obj1));
13916 if (SWIG_arg_fail(2)) SWIG_fail;
13917 }
13918 {
13919 arg3 = static_cast<int >(SWIG_As_int(obj2));
13920 if (SWIG_arg_fail(3)) SWIG_fail;
13921 }
13922 {
13923 arg4 = static_cast<int >(SWIG_As_int(obj3));
13924 if (SWIG_arg_fail(4)) SWIG_fail;
13925 }
13926 {
13927 arg5 = static_cast<int >(SWIG_As_int(obj4));
13928 if (SWIG_arg_fail(5)) SWIG_fail;
13929 }
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
13933
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 Py_INCREF(Py_None); resultobj = Py_None;
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
13945 PyObject *resultobj = NULL;
13946 wxDC *arg1 = (wxDC *) 0 ;
13947 wxRect *arg2 = 0 ;
13948 wxRect temp2 ;
13949 PyObject * obj0 = 0 ;
13950 PyObject * obj1 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self",(char *) "rect", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
13956 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13957 if (SWIG_arg_fail(1)) SWIG_fail;
13958 {
13959 arg2 = &temp2;
13960 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
13961 }
13962 {
13963 PyThreadState* __tstate = wxPyBeginAllowThreads();
13964 (arg1)->DrawRectangle((wxRect const &)*arg2);
13965
13966 wxPyEndAllowThreads(__tstate);
13967 if (PyErr_Occurred()) SWIG_fail;
13968 }
13969 Py_INCREF(Py_None); resultobj = Py_None;
13970 return resultobj;
13971 fail:
13972 return NULL;
13973 }
13974
13975
13976 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
13977 PyObject *resultobj = NULL;
13978 wxDC *arg1 = (wxDC *) 0 ;
13979 wxPoint *arg2 = 0 ;
13980 wxSize *arg3 = 0 ;
13981 wxPoint temp2 ;
13982 wxSize temp3 ;
13983 PyObject * obj0 = 0 ;
13984 PyObject * obj1 = 0 ;
13985 PyObject * obj2 = 0 ;
13986 char *kwnames[] = {
13987 (char *) "self",(char *) "pt",(char *) "sz", NULL
13988 };
13989
13990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13991 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
13992 if (SWIG_arg_fail(1)) SWIG_fail;
13993 {
13994 arg2 = &temp2;
13995 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13996 }
13997 {
13998 arg3 = &temp3;
13999 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14000 }
14001 {
14002 PyThreadState* __tstate = wxPyBeginAllowThreads();
14003 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
14004
14005 wxPyEndAllowThreads(__tstate);
14006 if (PyErr_Occurred()) SWIG_fail;
14007 }
14008 Py_INCREF(Py_None); resultobj = Py_None;
14009 return resultobj;
14010 fail:
14011 return NULL;
14012 }
14013
14014
14015 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) {
14016 PyObject *resultobj = NULL;
14017 wxDC *arg1 = (wxDC *) 0 ;
14018 int arg2 ;
14019 int arg3 ;
14020 int arg4 ;
14021 int arg5 ;
14022 double arg6 ;
14023 PyObject * obj0 = 0 ;
14024 PyObject * obj1 = 0 ;
14025 PyObject * obj2 = 0 ;
14026 PyObject * obj3 = 0 ;
14027 PyObject * obj4 = 0 ;
14028 PyObject * obj5 = 0 ;
14029 char *kwnames[] = {
14030 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
14031 };
14032
14033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14034 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14035 if (SWIG_arg_fail(1)) SWIG_fail;
14036 {
14037 arg2 = static_cast<int >(SWIG_As_int(obj1));
14038 if (SWIG_arg_fail(2)) SWIG_fail;
14039 }
14040 {
14041 arg3 = static_cast<int >(SWIG_As_int(obj2));
14042 if (SWIG_arg_fail(3)) SWIG_fail;
14043 }
14044 {
14045 arg4 = static_cast<int >(SWIG_As_int(obj3));
14046 if (SWIG_arg_fail(4)) SWIG_fail;
14047 }
14048 {
14049 arg5 = static_cast<int >(SWIG_As_int(obj4));
14050 if (SWIG_arg_fail(5)) SWIG_fail;
14051 }
14052 {
14053 arg6 = static_cast<double >(SWIG_As_double(obj5));
14054 if (SWIG_arg_fail(6)) SWIG_fail;
14055 }
14056 {
14057 PyThreadState* __tstate = wxPyBeginAllowThreads();
14058 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
14059
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 Py_INCREF(Py_None); resultobj = Py_None;
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj = NULL;
14072 wxDC *arg1 = (wxDC *) 0 ;
14073 wxRect *arg2 = 0 ;
14074 double arg3 ;
14075 wxRect temp2 ;
14076 PyObject * obj0 = 0 ;
14077 PyObject * obj1 = 0 ;
14078 PyObject * obj2 = 0 ;
14079 char *kwnames[] = {
14080 (char *) "self",(char *) "r",(char *) "radius", NULL
14081 };
14082
14083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
14084 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14085 if (SWIG_arg_fail(1)) SWIG_fail;
14086 {
14087 arg2 = &temp2;
14088 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14089 }
14090 {
14091 arg3 = static_cast<double >(SWIG_As_double(obj2));
14092 if (SWIG_arg_fail(3)) SWIG_fail;
14093 }
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 Py_INCREF(Py_None); resultobj = Py_None;
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj = NULL;
14110 wxDC *arg1 = (wxDC *) 0 ;
14111 wxPoint *arg2 = 0 ;
14112 wxSize *arg3 = 0 ;
14113 double arg4 ;
14114 wxPoint temp2 ;
14115 wxSize temp3 ;
14116 PyObject * obj0 = 0 ;
14117 PyObject * obj1 = 0 ;
14118 PyObject * obj2 = 0 ;
14119 PyObject * obj3 = 0 ;
14120 char *kwnames[] = {
14121 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
14122 };
14123
14124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14125 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14126 if (SWIG_arg_fail(1)) SWIG_fail;
14127 {
14128 arg2 = &temp2;
14129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14130 }
14131 {
14132 arg3 = &temp3;
14133 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14134 }
14135 {
14136 arg4 = static_cast<double >(SWIG_As_double(obj3));
14137 if (SWIG_arg_fail(4)) SWIG_fail;
14138 }
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 Py_INCREF(Py_None); resultobj = Py_None;
14147 return resultobj;
14148 fail:
14149 return NULL;
14150 }
14151
14152
14153 static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj = NULL;
14155 wxDC *arg1 = (wxDC *) 0 ;
14156 int arg2 ;
14157 int arg3 ;
14158 int arg4 ;
14159 PyObject * obj0 = 0 ;
14160 PyObject * obj1 = 0 ;
14161 PyObject * obj2 = 0 ;
14162 PyObject * obj3 = 0 ;
14163 char *kwnames[] = {
14164 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
14165 };
14166
14167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14168 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14169 if (SWIG_arg_fail(1)) SWIG_fail;
14170 {
14171 arg2 = static_cast<int >(SWIG_As_int(obj1));
14172 if (SWIG_arg_fail(2)) SWIG_fail;
14173 }
14174 {
14175 arg3 = static_cast<int >(SWIG_As_int(obj2));
14176 if (SWIG_arg_fail(3)) SWIG_fail;
14177 }
14178 {
14179 arg4 = static_cast<int >(SWIG_As_int(obj3));
14180 if (SWIG_arg_fail(4)) SWIG_fail;
14181 }
14182 {
14183 PyThreadState* __tstate = wxPyBeginAllowThreads();
14184 (arg1)->DrawCircle(arg2,arg3,arg4);
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 Py_INCREF(Py_None); resultobj = Py_None;
14190 return resultobj;
14191 fail:
14192 return NULL;
14193 }
14194
14195
14196 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) {
14197 PyObject *resultobj = NULL;
14198 wxDC *arg1 = (wxDC *) 0 ;
14199 wxPoint *arg2 = 0 ;
14200 int arg3 ;
14201 wxPoint temp2 ;
14202 PyObject * obj0 = 0 ;
14203 PyObject * obj1 = 0 ;
14204 PyObject * obj2 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self",(char *) "pt",(char *) "radius", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14211 if (SWIG_arg_fail(1)) SWIG_fail;
14212 {
14213 arg2 = &temp2;
14214 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14215 }
14216 {
14217 arg3 = static_cast<int >(SWIG_As_int(obj2));
14218 if (SWIG_arg_fail(3)) SWIG_fail;
14219 }
14220 {
14221 PyThreadState* __tstate = wxPyBeginAllowThreads();
14222 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
14223
14224 wxPyEndAllowThreads(__tstate);
14225 if (PyErr_Occurred()) SWIG_fail;
14226 }
14227 Py_INCREF(Py_None); resultobj = Py_None;
14228 return resultobj;
14229 fail:
14230 return NULL;
14231 }
14232
14233
14234 static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) {
14235 PyObject *resultobj = NULL;
14236 wxDC *arg1 = (wxDC *) 0 ;
14237 int arg2 ;
14238 int arg3 ;
14239 int arg4 ;
14240 int arg5 ;
14241 PyObject * obj0 = 0 ;
14242 PyObject * obj1 = 0 ;
14243 PyObject * obj2 = 0 ;
14244 PyObject * obj3 = 0 ;
14245 PyObject * obj4 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14248 };
14249
14250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14251 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14252 if (SWIG_arg_fail(1)) SWIG_fail;
14253 {
14254 arg2 = static_cast<int >(SWIG_As_int(obj1));
14255 if (SWIG_arg_fail(2)) SWIG_fail;
14256 }
14257 {
14258 arg3 = static_cast<int >(SWIG_As_int(obj2));
14259 if (SWIG_arg_fail(3)) SWIG_fail;
14260 }
14261 {
14262 arg4 = static_cast<int >(SWIG_As_int(obj3));
14263 if (SWIG_arg_fail(4)) SWIG_fail;
14264 }
14265 {
14266 arg5 = static_cast<int >(SWIG_As_int(obj4));
14267 if (SWIG_arg_fail(5)) SWIG_fail;
14268 }
14269 {
14270 PyThreadState* __tstate = wxPyBeginAllowThreads();
14271 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
14272
14273 wxPyEndAllowThreads(__tstate);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 Py_INCREF(Py_None); resultobj = Py_None;
14277 return resultobj;
14278 fail:
14279 return NULL;
14280 }
14281
14282
14283 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj = NULL;
14285 wxDC *arg1 = (wxDC *) 0 ;
14286 wxRect *arg2 = 0 ;
14287 wxRect temp2 ;
14288 PyObject * obj0 = 0 ;
14289 PyObject * obj1 = 0 ;
14290 char *kwnames[] = {
14291 (char *) "self",(char *) "rect", NULL
14292 };
14293
14294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
14295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14296 if (SWIG_arg_fail(1)) SWIG_fail;
14297 {
14298 arg2 = &temp2;
14299 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14300 }
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 (arg1)->DrawEllipse((wxRect const &)*arg2);
14304
14305 wxPyEndAllowThreads(__tstate);
14306 if (PyErr_Occurred()) SWIG_fail;
14307 }
14308 Py_INCREF(Py_None); resultobj = Py_None;
14309 return resultobj;
14310 fail:
14311 return NULL;
14312 }
14313
14314
14315 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14316 PyObject *resultobj = NULL;
14317 wxDC *arg1 = (wxDC *) 0 ;
14318 wxPoint *arg2 = 0 ;
14319 wxSize *arg3 = 0 ;
14320 wxPoint temp2 ;
14321 wxSize temp3 ;
14322 PyObject * obj0 = 0 ;
14323 PyObject * obj1 = 0 ;
14324 PyObject * obj2 = 0 ;
14325 char *kwnames[] = {
14326 (char *) "self",(char *) "pt",(char *) "sz", NULL
14327 };
14328
14329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
14330 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14331 if (SWIG_arg_fail(1)) SWIG_fail;
14332 {
14333 arg2 = &temp2;
14334 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14335 }
14336 {
14337 arg3 = &temp3;
14338 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14339 }
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 Py_INCREF(Py_None); resultobj = Py_None;
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj = NULL;
14356 wxDC *arg1 = (wxDC *) 0 ;
14357 wxIcon *arg2 = 0 ;
14358 int arg3 ;
14359 int arg4 ;
14360 PyObject * obj0 = 0 ;
14361 PyObject * obj1 = 0 ;
14362 PyObject * obj2 = 0 ;
14363 PyObject * obj3 = 0 ;
14364 char *kwnames[] = {
14365 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
14366 };
14367
14368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14369 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14370 if (SWIG_arg_fail(1)) SWIG_fail;
14371 {
14372 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14373 if (SWIG_arg_fail(2)) SWIG_fail;
14374 if (arg2 == NULL) {
14375 SWIG_null_ref("wxIcon");
14376 }
14377 if (SWIG_arg_fail(2)) SWIG_fail;
14378 }
14379 {
14380 arg3 = static_cast<int >(SWIG_As_int(obj2));
14381 if (SWIG_arg_fail(3)) SWIG_fail;
14382 }
14383 {
14384 arg4 = static_cast<int >(SWIG_As_int(obj3));
14385 if (SWIG_arg_fail(4)) SWIG_fail;
14386 }
14387 {
14388 PyThreadState* __tstate = wxPyBeginAllowThreads();
14389 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
14390
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 Py_INCREF(Py_None); resultobj = Py_None;
14395 return resultobj;
14396 fail:
14397 return NULL;
14398 }
14399
14400
14401 static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14402 PyObject *resultobj = NULL;
14403 wxDC *arg1 = (wxDC *) 0 ;
14404 wxIcon *arg2 = 0 ;
14405 wxPoint *arg3 = 0 ;
14406 wxPoint temp3 ;
14407 PyObject * obj0 = 0 ;
14408 PyObject * obj1 = 0 ;
14409 PyObject * obj2 = 0 ;
14410 char *kwnames[] = {
14411 (char *) "self",(char *) "icon",(char *) "pt", NULL
14412 };
14413
14414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14415 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14416 if (SWIG_arg_fail(1)) SWIG_fail;
14417 {
14418 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
14419 if (SWIG_arg_fail(2)) SWIG_fail;
14420 if (arg2 == NULL) {
14421 SWIG_null_ref("wxIcon");
14422 }
14423 if (SWIG_arg_fail(2)) SWIG_fail;
14424 }
14425 {
14426 arg3 = &temp3;
14427 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14428 }
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
14432
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 Py_INCREF(Py_None); resultobj = Py_None;
14437 return resultobj;
14438 fail:
14439 return NULL;
14440 }
14441
14442
14443 static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14444 PyObject *resultobj = NULL;
14445 wxDC *arg1 = (wxDC *) 0 ;
14446 wxBitmap *arg2 = 0 ;
14447 int arg3 ;
14448 int arg4 ;
14449 bool arg5 = (bool) false ;
14450 PyObject * obj0 = 0 ;
14451 PyObject * obj1 = 0 ;
14452 PyObject * obj2 = 0 ;
14453 PyObject * obj3 = 0 ;
14454 PyObject * obj4 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14461 if (SWIG_arg_fail(1)) SWIG_fail;
14462 {
14463 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14464 if (SWIG_arg_fail(2)) SWIG_fail;
14465 if (arg2 == NULL) {
14466 SWIG_null_ref("wxBitmap");
14467 }
14468 if (SWIG_arg_fail(2)) SWIG_fail;
14469 }
14470 {
14471 arg3 = static_cast<int >(SWIG_As_int(obj2));
14472 if (SWIG_arg_fail(3)) SWIG_fail;
14473 }
14474 {
14475 arg4 = static_cast<int >(SWIG_As_int(obj3));
14476 if (SWIG_arg_fail(4)) SWIG_fail;
14477 }
14478 if (obj4) {
14479 {
14480 arg5 = static_cast<bool >(SWIG_As_bool(obj4));
14481 if (SWIG_arg_fail(5)) SWIG_fail;
14482 }
14483 }
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
14487
14488 wxPyEndAllowThreads(__tstate);
14489 if (PyErr_Occurred()) SWIG_fail;
14490 }
14491 Py_INCREF(Py_None); resultobj = Py_None;
14492 return resultobj;
14493 fail:
14494 return NULL;
14495 }
14496
14497
14498 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14499 PyObject *resultobj = NULL;
14500 wxDC *arg1 = (wxDC *) 0 ;
14501 wxBitmap *arg2 = 0 ;
14502 wxPoint *arg3 = 0 ;
14503 bool arg4 = (bool) false ;
14504 wxPoint temp3 ;
14505 PyObject * obj0 = 0 ;
14506 PyObject * obj1 = 0 ;
14507 PyObject * obj2 = 0 ;
14508 PyObject * obj3 = 0 ;
14509 char *kwnames[] = {
14510 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
14511 };
14512
14513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14514 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14515 if (SWIG_arg_fail(1)) SWIG_fail;
14516 {
14517 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
14518 if (SWIG_arg_fail(2)) SWIG_fail;
14519 if (arg2 == NULL) {
14520 SWIG_null_ref("wxBitmap");
14521 }
14522 if (SWIG_arg_fail(2)) SWIG_fail;
14523 }
14524 {
14525 arg3 = &temp3;
14526 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14527 }
14528 if (obj3) {
14529 {
14530 arg4 = static_cast<bool >(SWIG_As_bool(obj3));
14531 if (SWIG_arg_fail(4)) SWIG_fail;
14532 }
14533 }
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
14537
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 Py_INCREF(Py_None); resultobj = Py_None;
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj = NULL;
14550 wxDC *arg1 = (wxDC *) 0 ;
14551 wxString *arg2 = 0 ;
14552 int arg3 ;
14553 int arg4 ;
14554 bool temp2 = false ;
14555 PyObject * obj0 = 0 ;
14556 PyObject * obj1 = 0 ;
14557 PyObject * obj2 = 0 ;
14558 PyObject * obj3 = 0 ;
14559 char *kwnames[] = {
14560 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
14561 };
14562
14563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14564 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14565 if (SWIG_arg_fail(1)) SWIG_fail;
14566 {
14567 arg2 = wxString_in_helper(obj1);
14568 if (arg2 == NULL) SWIG_fail;
14569 temp2 = true;
14570 }
14571 {
14572 arg3 = static_cast<int >(SWIG_As_int(obj2));
14573 if (SWIG_arg_fail(3)) SWIG_fail;
14574 }
14575 {
14576 arg4 = static_cast<int >(SWIG_As_int(obj3));
14577 if (SWIG_arg_fail(4)) SWIG_fail;
14578 }
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
14582
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 Py_INCREF(Py_None); resultobj = Py_None;
14587 {
14588 if (temp2)
14589 delete arg2;
14590 }
14591 return resultobj;
14592 fail:
14593 {
14594 if (temp2)
14595 delete arg2;
14596 }
14597 return NULL;
14598 }
14599
14600
14601 static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14602 PyObject *resultobj = NULL;
14603 wxDC *arg1 = (wxDC *) 0 ;
14604 wxString *arg2 = 0 ;
14605 wxPoint *arg3 = 0 ;
14606 bool temp2 = false ;
14607 wxPoint temp3 ;
14608 PyObject * obj0 = 0 ;
14609 PyObject * obj1 = 0 ;
14610 PyObject * obj2 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self",(char *) "text",(char *) "pt", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
14616 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14617 if (SWIG_arg_fail(1)) SWIG_fail;
14618 {
14619 arg2 = wxString_in_helper(obj1);
14620 if (arg2 == NULL) SWIG_fail;
14621 temp2 = true;
14622 }
14623 {
14624 arg3 = &temp3;
14625 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14626 }
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 Py_INCREF(Py_None); resultobj = Py_None;
14635 {
14636 if (temp2)
14637 delete arg2;
14638 }
14639 return resultobj;
14640 fail:
14641 {
14642 if (temp2)
14643 delete arg2;
14644 }
14645 return NULL;
14646 }
14647
14648
14649 static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj = NULL;
14651 wxDC *arg1 = (wxDC *) 0 ;
14652 wxString *arg2 = 0 ;
14653 int arg3 ;
14654 int arg4 ;
14655 double arg5 ;
14656 bool temp2 = false ;
14657 PyObject * obj0 = 0 ;
14658 PyObject * obj1 = 0 ;
14659 PyObject * obj2 = 0 ;
14660 PyObject * obj3 = 0 ;
14661 PyObject * obj4 = 0 ;
14662 char *kwnames[] = {
14663 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
14664 };
14665
14666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14668 if (SWIG_arg_fail(1)) SWIG_fail;
14669 {
14670 arg2 = wxString_in_helper(obj1);
14671 if (arg2 == NULL) SWIG_fail;
14672 temp2 = true;
14673 }
14674 {
14675 arg3 = static_cast<int >(SWIG_As_int(obj2));
14676 if (SWIG_arg_fail(3)) SWIG_fail;
14677 }
14678 {
14679 arg4 = static_cast<int >(SWIG_As_int(obj3));
14680 if (SWIG_arg_fail(4)) SWIG_fail;
14681 }
14682 {
14683 arg5 = static_cast<double >(SWIG_As_double(obj4));
14684 if (SWIG_arg_fail(5)) SWIG_fail;
14685 }
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
14689
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 Py_INCREF(Py_None); resultobj = Py_None;
14694 {
14695 if (temp2)
14696 delete arg2;
14697 }
14698 return resultobj;
14699 fail:
14700 {
14701 if (temp2)
14702 delete arg2;
14703 }
14704 return NULL;
14705 }
14706
14707
14708 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) {
14709 PyObject *resultobj = NULL;
14710 wxDC *arg1 = (wxDC *) 0 ;
14711 wxString *arg2 = 0 ;
14712 wxPoint *arg3 = 0 ;
14713 double arg4 ;
14714 bool temp2 = false ;
14715 wxPoint temp3 ;
14716 PyObject * obj0 = 0 ;
14717 PyObject * obj1 = 0 ;
14718 PyObject * obj2 = 0 ;
14719 PyObject * obj3 = 0 ;
14720 char *kwnames[] = {
14721 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
14722 };
14723
14724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14725 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14726 if (SWIG_arg_fail(1)) SWIG_fail;
14727 {
14728 arg2 = wxString_in_helper(obj1);
14729 if (arg2 == NULL) SWIG_fail;
14730 temp2 = true;
14731 }
14732 {
14733 arg3 = &temp3;
14734 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14735 }
14736 {
14737 arg4 = static_cast<double >(SWIG_As_double(obj3));
14738 if (SWIG_arg_fail(4)) SWIG_fail;
14739 }
14740 {
14741 PyThreadState* __tstate = wxPyBeginAllowThreads();
14742 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
14743
14744 wxPyEndAllowThreads(__tstate);
14745 if (PyErr_Occurred()) SWIG_fail;
14746 }
14747 Py_INCREF(Py_None); resultobj = Py_None;
14748 {
14749 if (temp2)
14750 delete arg2;
14751 }
14752 return resultobj;
14753 fail:
14754 {
14755 if (temp2)
14756 delete arg2;
14757 }
14758 return NULL;
14759 }
14760
14761
14762 static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj = NULL;
14764 wxDC *arg1 = (wxDC *) 0 ;
14765 int arg2 ;
14766 int arg3 ;
14767 int arg4 ;
14768 int arg5 ;
14769 wxDC *arg6 = (wxDC *) 0 ;
14770 int arg7 ;
14771 int arg8 ;
14772 int arg9 = (int) wxCOPY ;
14773 bool arg10 = (bool) false ;
14774 int arg11 = (int) -1 ;
14775 int arg12 = (int) -1 ;
14776 bool result;
14777 PyObject * obj0 = 0 ;
14778 PyObject * obj1 = 0 ;
14779 PyObject * obj2 = 0 ;
14780 PyObject * obj3 = 0 ;
14781 PyObject * obj4 = 0 ;
14782 PyObject * obj5 = 0 ;
14783 PyObject * obj6 = 0 ;
14784 PyObject * obj7 = 0 ;
14785 PyObject * obj8 = 0 ;
14786 PyObject * obj9 = 0 ;
14787 PyObject * obj10 = 0 ;
14788 PyObject * obj11 = 0 ;
14789 char *kwnames[] = {
14790 (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
14791 };
14792
14793 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;
14794 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14795 if (SWIG_arg_fail(1)) SWIG_fail;
14796 {
14797 arg2 = static_cast<int >(SWIG_As_int(obj1));
14798 if (SWIG_arg_fail(2)) SWIG_fail;
14799 }
14800 {
14801 arg3 = static_cast<int >(SWIG_As_int(obj2));
14802 if (SWIG_arg_fail(3)) SWIG_fail;
14803 }
14804 {
14805 arg4 = static_cast<int >(SWIG_As_int(obj3));
14806 if (SWIG_arg_fail(4)) SWIG_fail;
14807 }
14808 {
14809 arg5 = static_cast<int >(SWIG_As_int(obj4));
14810 if (SWIG_arg_fail(5)) SWIG_fail;
14811 }
14812 SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14813 if (SWIG_arg_fail(6)) SWIG_fail;
14814 {
14815 arg7 = static_cast<int >(SWIG_As_int(obj6));
14816 if (SWIG_arg_fail(7)) SWIG_fail;
14817 }
14818 {
14819 arg8 = static_cast<int >(SWIG_As_int(obj7));
14820 if (SWIG_arg_fail(8)) SWIG_fail;
14821 }
14822 if (obj8) {
14823 {
14824 arg9 = static_cast<int >(SWIG_As_int(obj8));
14825 if (SWIG_arg_fail(9)) SWIG_fail;
14826 }
14827 }
14828 if (obj9) {
14829 {
14830 arg10 = static_cast<bool >(SWIG_As_bool(obj9));
14831 if (SWIG_arg_fail(10)) SWIG_fail;
14832 }
14833 }
14834 if (obj10) {
14835 {
14836 arg11 = static_cast<int >(SWIG_As_int(obj10));
14837 if (SWIG_arg_fail(11)) SWIG_fail;
14838 }
14839 }
14840 if (obj11) {
14841 {
14842 arg12 = static_cast<int >(SWIG_As_int(obj11));
14843 if (SWIG_arg_fail(12)) SWIG_fail;
14844 }
14845 }
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14849
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 {
14854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14855 }
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14863 PyObject *resultobj = NULL;
14864 wxDC *arg1 = (wxDC *) 0 ;
14865 wxPoint *arg2 = 0 ;
14866 wxSize *arg3 = 0 ;
14867 wxDC *arg4 = (wxDC *) 0 ;
14868 wxPoint *arg5 = 0 ;
14869 int arg6 = (int) wxCOPY ;
14870 bool arg7 = (bool) false ;
14871 wxPoint const &arg8_defvalue = wxDefaultPosition ;
14872 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
14873 bool result;
14874 wxPoint temp2 ;
14875 wxSize temp3 ;
14876 wxPoint temp5 ;
14877 wxPoint temp8 ;
14878 PyObject * obj0 = 0 ;
14879 PyObject * obj1 = 0 ;
14880 PyObject * obj2 = 0 ;
14881 PyObject * obj3 = 0 ;
14882 PyObject * obj4 = 0 ;
14883 PyObject * obj5 = 0 ;
14884 PyObject * obj6 = 0 ;
14885 PyObject * obj7 = 0 ;
14886 char *kwnames[] = {
14887 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
14888 };
14889
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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 arg2 = &temp2;
14895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14896 }
14897 {
14898 arg3 = &temp3;
14899 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14900 }
14901 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14902 if (SWIG_arg_fail(4)) SWIG_fail;
14903 {
14904 arg5 = &temp5;
14905 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14906 }
14907 if (obj5) {
14908 {
14909 arg6 = static_cast<int >(SWIG_As_int(obj5));
14910 if (SWIG_arg_fail(6)) SWIG_fail;
14911 }
14912 }
14913 if (obj6) {
14914 {
14915 arg7 = static_cast<bool >(SWIG_As_bool(obj6));
14916 if (SWIG_arg_fail(7)) SWIG_fail;
14917 }
14918 }
14919 if (obj7) {
14920 {
14921 arg8 = &temp8;
14922 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
14923 }
14924 }
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
14928
14929 wxPyEndAllowThreads(__tstate);
14930 if (PyErr_Occurred()) SWIG_fail;
14931 }
14932 {
14933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14934 }
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj = NULL;
14943 wxDC *arg1 = (wxDC *) 0 ;
14944 int arg2 ;
14945 int arg3 ;
14946 int arg4 ;
14947 int arg5 ;
14948 PyObject * obj0 = 0 ;
14949 PyObject * obj1 = 0 ;
14950 PyObject * obj2 = 0 ;
14951 PyObject * obj3 = 0 ;
14952 PyObject * obj4 = 0 ;
14953 char *kwnames[] = {
14954 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
14955 };
14956
14957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14958 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
14959 if (SWIG_arg_fail(1)) SWIG_fail;
14960 {
14961 arg2 = static_cast<int >(SWIG_As_int(obj1));
14962 if (SWIG_arg_fail(2)) SWIG_fail;
14963 }
14964 {
14965 arg3 = static_cast<int >(SWIG_As_int(obj2));
14966 if (SWIG_arg_fail(3)) SWIG_fail;
14967 }
14968 {
14969 arg4 = static_cast<int >(SWIG_As_int(obj3));
14970 if (SWIG_arg_fail(4)) SWIG_fail;
14971 }
14972 {
14973 arg5 = static_cast<int >(SWIG_As_int(obj4));
14974 if (SWIG_arg_fail(5)) SWIG_fail;
14975 }
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
14979
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 Py_INCREF(Py_None); resultobj = Py_None;
14984 return resultobj;
14985 fail:
14986 return NULL;
14987 }
14988
14989
14990 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = NULL;
14992 wxDC *arg1 = (wxDC *) 0 ;
14993 wxPoint *arg2 = 0 ;
14994 wxSize *arg3 = 0 ;
14995 wxPoint temp2 ;
14996 wxSize temp3 ;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 PyObject * obj2 = 0 ;
15000 char *kwnames[] = {
15001 (char *) "self",(char *) "pt",(char *) "sz", NULL
15002 };
15003
15004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15005 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15006 if (SWIG_arg_fail(1)) SWIG_fail;
15007 {
15008 arg2 = &temp2;
15009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15010 }
15011 {
15012 arg3 = &temp3;
15013 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15014 }
15015 {
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
15018
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 Py_INCREF(Py_None); resultobj = Py_None;
15023 return resultobj;
15024 fail:
15025 return NULL;
15026 }
15027
15028
15029 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj = NULL;
15031 wxDC *arg1 = (wxDC *) 0 ;
15032 wxRegion *arg2 = 0 ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035 char *kwnames[] = {
15036 (char *) "self",(char *) "region", NULL
15037 };
15038
15039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
15040 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15041 if (SWIG_arg_fail(1)) SWIG_fail;
15042 {
15043 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRegion, SWIG_POINTER_EXCEPTION | 0);
15044 if (SWIG_arg_fail(2)) SWIG_fail;
15045 if (arg2 == NULL) {
15046 SWIG_null_ref("wxRegion");
15047 }
15048 if (SWIG_arg_fail(2)) SWIG_fail;
15049 }
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
15053
15054 wxPyEndAllowThreads(__tstate);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 Py_INCREF(Py_None); resultobj = Py_None;
15058 return resultobj;
15059 fail:
15060 return NULL;
15061 }
15062
15063
15064 static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15065 PyObject *resultobj = NULL;
15066 wxDC *arg1 = (wxDC *) 0 ;
15067 wxRect *arg2 = 0 ;
15068 wxRect temp2 ;
15069 PyObject * obj0 = 0 ;
15070 PyObject * obj1 = 0 ;
15071 char *kwnames[] = {
15072 (char *) "self",(char *) "rect", NULL
15073 };
15074
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
15076 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15077 if (SWIG_arg_fail(1)) SWIG_fail;
15078 {
15079 arg2 = &temp2;
15080 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15081 }
15082 {
15083 PyThreadState* __tstate = wxPyBeginAllowThreads();
15084 (arg1)->SetClippingRegion((wxRect const &)*arg2);
15085
15086 wxPyEndAllowThreads(__tstate);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 }
15089 Py_INCREF(Py_None); resultobj = Py_None;
15090 return resultobj;
15091 fail:
15092 return NULL;
15093 }
15094
15095
15096 static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj = NULL;
15098 wxDC *arg1 = (wxDC *) 0 ;
15099 int arg2 ;
15100 wxPoint *arg3 = (wxPoint *) 0 ;
15101 int arg4 = (int) 0 ;
15102 int arg5 = (int) 0 ;
15103 PyObject * obj0 = 0 ;
15104 PyObject * obj1 = 0 ;
15105 PyObject * obj2 = 0 ;
15106 PyObject * obj3 = 0 ;
15107 char *kwnames[] = {
15108 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
15109 };
15110
15111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15112 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15113 if (SWIG_arg_fail(1)) SWIG_fail;
15114 {
15115 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15116 if (arg3 == NULL) SWIG_fail;
15117 }
15118 if (obj2) {
15119 {
15120 arg4 = static_cast<int >(SWIG_As_int(obj2));
15121 if (SWIG_arg_fail(4)) SWIG_fail;
15122 }
15123 }
15124 if (obj3) {
15125 {
15126 arg5 = static_cast<int >(SWIG_As_int(obj3));
15127 if (SWIG_arg_fail(5)) SWIG_fail;
15128 }
15129 }
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
15133
15134 wxPyEndAllowThreads(__tstate);
15135 if (PyErr_Occurred()) SWIG_fail;
15136 }
15137 Py_INCREF(Py_None); resultobj = Py_None;
15138 {
15139 if (arg3) delete [] arg3;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (arg3) delete [] arg3;
15145 }
15146 return NULL;
15147 }
15148
15149
15150 static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj = NULL;
15152 wxDC *arg1 = (wxDC *) 0 ;
15153 int arg2 ;
15154 wxPoint *arg3 = (wxPoint *) 0 ;
15155 int arg4 = (int) 0 ;
15156 int arg5 = (int) 0 ;
15157 int arg6 = (int) wxODDEVEN_RULE ;
15158 PyObject * obj0 = 0 ;
15159 PyObject * obj1 = 0 ;
15160 PyObject * obj2 = 0 ;
15161 PyObject * obj3 = 0 ;
15162 PyObject * obj4 = 0 ;
15163 char *kwnames[] = {
15164 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
15165 };
15166
15167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15168 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15169 if (SWIG_arg_fail(1)) SWIG_fail;
15170 {
15171 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15172 if (arg3 == NULL) SWIG_fail;
15173 }
15174 if (obj2) {
15175 {
15176 arg4 = static_cast<int >(SWIG_As_int(obj2));
15177 if (SWIG_arg_fail(4)) SWIG_fail;
15178 }
15179 }
15180 if (obj3) {
15181 {
15182 arg5 = static_cast<int >(SWIG_As_int(obj3));
15183 if (SWIG_arg_fail(5)) SWIG_fail;
15184 }
15185 }
15186 if (obj4) {
15187 {
15188 arg6 = static_cast<int >(SWIG_As_int(obj4));
15189 if (SWIG_arg_fail(6)) SWIG_fail;
15190 }
15191 }
15192 {
15193 PyThreadState* __tstate = wxPyBeginAllowThreads();
15194 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
15195
15196 wxPyEndAllowThreads(__tstate);
15197 if (PyErr_Occurred()) SWIG_fail;
15198 }
15199 Py_INCREF(Py_None); resultobj = Py_None;
15200 {
15201 if (arg3) delete [] arg3;
15202 }
15203 return resultobj;
15204 fail:
15205 {
15206 if (arg3) delete [] arg3;
15207 }
15208 return NULL;
15209 }
15210
15211
15212 static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15213 PyObject *resultobj = NULL;
15214 wxDC *arg1 = (wxDC *) 0 ;
15215 wxString *arg2 = 0 ;
15216 wxRect *arg3 = 0 ;
15217 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
15218 int arg5 = (int) -1 ;
15219 bool temp2 = false ;
15220 wxRect temp3 ;
15221 PyObject * obj0 = 0 ;
15222 PyObject * obj1 = 0 ;
15223 PyObject * obj2 = 0 ;
15224 PyObject * obj3 = 0 ;
15225 PyObject * obj4 = 0 ;
15226 char *kwnames[] = {
15227 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
15228 };
15229
15230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 arg3 = &temp3;
15240 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
15241 }
15242 if (obj3) {
15243 {
15244 arg4 = static_cast<int >(SWIG_As_int(obj3));
15245 if (SWIG_arg_fail(4)) SWIG_fail;
15246 }
15247 }
15248 if (obj4) {
15249 {
15250 arg5 = static_cast<int >(SWIG_As_int(obj4));
15251 if (SWIG_arg_fail(5)) SWIG_fail;
15252 }
15253 }
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
15257
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 Py_INCREF(Py_None); resultobj = Py_None;
15262 {
15263 if (temp2)
15264 delete arg2;
15265 }
15266 return resultobj;
15267 fail:
15268 {
15269 if (temp2)
15270 delete arg2;
15271 }
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj = NULL;
15278 wxDC *arg1 = (wxDC *) 0 ;
15279 wxString *arg2 = 0 ;
15280 wxBitmap *arg3 = 0 ;
15281 wxRect *arg4 = 0 ;
15282 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
15283 int arg6 = (int) -1 ;
15284 wxRect result;
15285 bool temp2 = false ;
15286 wxRect temp4 ;
15287 PyObject * obj0 = 0 ;
15288 PyObject * obj1 = 0 ;
15289 PyObject * obj2 = 0 ;
15290 PyObject * obj3 = 0 ;
15291 PyObject * obj4 = 0 ;
15292 PyObject * obj5 = 0 ;
15293 char *kwnames[] = {
15294 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
15295 };
15296
15297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15298 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15299 if (SWIG_arg_fail(1)) SWIG_fail;
15300 {
15301 arg2 = wxString_in_helper(obj1);
15302 if (arg2 == NULL) SWIG_fail;
15303 temp2 = true;
15304 }
15305 {
15306 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
15307 if (SWIG_arg_fail(3)) SWIG_fail;
15308 if (arg3 == NULL) {
15309 SWIG_null_ref("wxBitmap");
15310 }
15311 if (SWIG_arg_fail(3)) SWIG_fail;
15312 }
15313 {
15314 arg4 = &temp4;
15315 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
15316 }
15317 if (obj4) {
15318 {
15319 arg5 = static_cast<int >(SWIG_As_int(obj4));
15320 if (SWIG_arg_fail(5)) SWIG_fail;
15321 }
15322 }
15323 if (obj5) {
15324 {
15325 arg6 = static_cast<int >(SWIG_As_int(obj5));
15326 if (SWIG_arg_fail(6)) SWIG_fail;
15327 }
15328 }
15329 {
15330 PyThreadState* __tstate = wxPyBeginAllowThreads();
15331 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
15332
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 {
15337 wxRect * resultptr;
15338 resultptr = new wxRect(static_cast<wxRect & >(result));
15339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15340 }
15341 {
15342 if (temp2)
15343 delete arg2;
15344 }
15345 return resultobj;
15346 fail:
15347 {
15348 if (temp2)
15349 delete arg2;
15350 }
15351 return NULL;
15352 }
15353
15354
15355 static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) {
15356 PyObject *resultobj = NULL;
15357 wxDC *arg1 = (wxDC *) 0 ;
15358 int arg2 ;
15359 wxPoint *arg3 = (wxPoint *) 0 ;
15360 PyObject * obj0 = 0 ;
15361 PyObject * obj1 = 0 ;
15362 char *kwnames[] = {
15363 (char *) "self",(char *) "points", NULL
15364 };
15365
15366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
15367 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15368 if (SWIG_arg_fail(1)) SWIG_fail;
15369 {
15370 arg3 = wxPoint_LIST_helper(obj1, &arg2);
15371 if (arg3 == NULL) SWIG_fail;
15372 }
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 (arg1)->DrawSpline(arg2,arg3);
15376
15377 wxPyEndAllowThreads(__tstate);
15378 if (PyErr_Occurred()) SWIG_fail;
15379 }
15380 Py_INCREF(Py_None); resultobj = Py_None;
15381 {
15382 if (arg3) delete [] arg3;
15383 }
15384 return resultobj;
15385 fail:
15386 {
15387 if (arg3) delete [] arg3;
15388 }
15389 return NULL;
15390 }
15391
15392
15393 static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj = NULL;
15395 wxDC *arg1 = (wxDC *) 0 ;
15396 PyObject * obj0 = 0 ;
15397 char *kwnames[] = {
15398 (char *) "self", NULL
15399 };
15400
15401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
15402 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15403 if (SWIG_arg_fail(1)) SWIG_fail;
15404 {
15405 PyThreadState* __tstate = wxPyBeginAllowThreads();
15406 (arg1)->Clear();
15407
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 Py_INCREF(Py_None); resultobj = Py_None;
15412 return resultobj;
15413 fail:
15414 return NULL;
15415 }
15416
15417
15418 static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) {
15419 PyObject *resultobj = NULL;
15420 wxDC *arg1 = (wxDC *) 0 ;
15421 wxString *arg2 = 0 ;
15422 bool result;
15423 bool temp2 = false ;
15424 PyObject * obj0 = 0 ;
15425 PyObject * obj1 = 0 ;
15426 char *kwnames[] = {
15427 (char *) "self",(char *) "message", NULL
15428 };
15429
15430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
15431 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15432 if (SWIG_arg_fail(1)) SWIG_fail;
15433 {
15434 arg2 = wxString_in_helper(obj1);
15435 if (arg2 == NULL) SWIG_fail;
15436 temp2 = true;
15437 }
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
15441
15442 wxPyEndAllowThreads(__tstate);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 {
15446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15447 }
15448 {
15449 if (temp2)
15450 delete arg2;
15451 }
15452 return resultobj;
15453 fail:
15454 {
15455 if (temp2)
15456 delete arg2;
15457 }
15458 return NULL;
15459 }
15460
15461
15462 static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) {
15463 PyObject *resultobj = NULL;
15464 wxDC *arg1 = (wxDC *) 0 ;
15465 PyObject * obj0 = 0 ;
15466 char *kwnames[] = {
15467 (char *) "self", NULL
15468 };
15469
15470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
15471 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15472 if (SWIG_arg_fail(1)) SWIG_fail;
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 (arg1)->EndDoc();
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 Py_INCREF(Py_None); resultobj = Py_None;
15481 return resultobj;
15482 fail:
15483 return NULL;
15484 }
15485
15486
15487 static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) {
15488 PyObject *resultobj = NULL;
15489 wxDC *arg1 = (wxDC *) 0 ;
15490 PyObject * obj0 = 0 ;
15491 char *kwnames[] = {
15492 (char *) "self", NULL
15493 };
15494
15495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
15496 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15497 if (SWIG_arg_fail(1)) SWIG_fail;
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 (arg1)->StartPage();
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 Py_INCREF(Py_None); resultobj = Py_None;
15506 return resultobj;
15507 fail:
15508 return NULL;
15509 }
15510
15511
15512 static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj = NULL;
15514 wxDC *arg1 = (wxDC *) 0 ;
15515 PyObject * obj0 = 0 ;
15516 char *kwnames[] = {
15517 (char *) "self", NULL
15518 };
15519
15520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
15521 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15522 if (SWIG_arg_fail(1)) SWIG_fail;
15523 {
15524 PyThreadState* __tstate = wxPyBeginAllowThreads();
15525 (arg1)->EndPage();
15526
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 Py_INCREF(Py_None); resultobj = Py_None;
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = NULL;
15539 wxDC *arg1 = (wxDC *) 0 ;
15540 wxFont *arg2 = 0 ;
15541 PyObject * obj0 = 0 ;
15542 PyObject * obj1 = 0 ;
15543 char *kwnames[] = {
15544 (char *) "self",(char *) "font", NULL
15545 };
15546
15547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
15548 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15549 if (SWIG_arg_fail(1)) SWIG_fail;
15550 {
15551 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15552 if (SWIG_arg_fail(2)) SWIG_fail;
15553 if (arg2 == NULL) {
15554 SWIG_null_ref("wxFont");
15555 }
15556 if (SWIG_arg_fail(2)) SWIG_fail;
15557 }
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 (arg1)->SetFont((wxFont const &)*arg2);
15561
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
15565 Py_INCREF(Py_None); resultobj = Py_None;
15566 return resultobj;
15567 fail:
15568 return NULL;
15569 }
15570
15571
15572 static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) {
15573 PyObject *resultobj = NULL;
15574 wxDC *arg1 = (wxDC *) 0 ;
15575 wxPen *arg2 = 0 ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "self",(char *) "pen", NULL
15580 };
15581
15582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
15583 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15584 if (SWIG_arg_fail(1)) SWIG_fail;
15585 {
15586 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
15587 if (SWIG_arg_fail(2)) SWIG_fail;
15588 if (arg2 == NULL) {
15589 SWIG_null_ref("wxPen");
15590 }
15591 if (SWIG_arg_fail(2)) SWIG_fail;
15592 }
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->SetPen((wxPen const &)*arg2);
15596
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 Py_INCREF(Py_None); resultobj = Py_None;
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
15608 PyObject *resultobj = NULL;
15609 wxDC *arg1 = (wxDC *) 0 ;
15610 wxBrush *arg2 = 0 ;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "brush", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
15618 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15619 if (SWIG_arg_fail(1)) SWIG_fail;
15620 {
15621 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15622 if (SWIG_arg_fail(2)) SWIG_fail;
15623 if (arg2 == NULL) {
15624 SWIG_null_ref("wxBrush");
15625 }
15626 if (SWIG_arg_fail(2)) SWIG_fail;
15627 }
15628 {
15629 PyThreadState* __tstate = wxPyBeginAllowThreads();
15630 (arg1)->SetBrush((wxBrush const &)*arg2);
15631
15632 wxPyEndAllowThreads(__tstate);
15633 if (PyErr_Occurred()) SWIG_fail;
15634 }
15635 Py_INCREF(Py_None); resultobj = Py_None;
15636 return resultobj;
15637 fail:
15638 return NULL;
15639 }
15640
15641
15642 static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15643 PyObject *resultobj = NULL;
15644 wxDC *arg1 = (wxDC *) 0 ;
15645 wxBrush *arg2 = 0 ;
15646 PyObject * obj0 = 0 ;
15647 PyObject * obj1 = 0 ;
15648 char *kwnames[] = {
15649 (char *) "self",(char *) "brush", NULL
15650 };
15651
15652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
15653 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15654 if (SWIG_arg_fail(1)) SWIG_fail;
15655 {
15656 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
15657 if (SWIG_arg_fail(2)) SWIG_fail;
15658 if (arg2 == NULL) {
15659 SWIG_null_ref("wxBrush");
15660 }
15661 if (SWIG_arg_fail(2)) SWIG_fail;
15662 }
15663 {
15664 PyThreadState* __tstate = wxPyBeginAllowThreads();
15665 (arg1)->SetBackground((wxBrush const &)*arg2);
15666
15667 wxPyEndAllowThreads(__tstate);
15668 if (PyErr_Occurred()) SWIG_fail;
15669 }
15670 Py_INCREF(Py_None); resultobj = Py_None;
15671 return resultobj;
15672 fail:
15673 return NULL;
15674 }
15675
15676
15677 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj = NULL;
15679 wxDC *arg1 = (wxDC *) 0 ;
15680 int arg2 ;
15681 PyObject * obj0 = 0 ;
15682 PyObject * obj1 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "self",(char *) "mode", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
15688 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15689 if (SWIG_arg_fail(1)) SWIG_fail;
15690 {
15691 arg2 = static_cast<int >(SWIG_As_int(obj1));
15692 if (SWIG_arg_fail(2)) SWIG_fail;
15693 }
15694 {
15695 PyThreadState* __tstate = wxPyBeginAllowThreads();
15696 (arg1)->SetBackgroundMode(arg2);
15697
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 Py_INCREF(Py_None); resultobj = Py_None;
15702 return resultobj;
15703 fail:
15704 return NULL;
15705 }
15706
15707
15708 static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj = NULL;
15710 wxDC *arg1 = (wxDC *) 0 ;
15711 wxPalette *arg2 = 0 ;
15712 PyObject * obj0 = 0 ;
15713 PyObject * obj1 = 0 ;
15714 char *kwnames[] = {
15715 (char *) "self",(char *) "palette", NULL
15716 };
15717
15718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
15719 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15720 if (SWIG_arg_fail(1)) SWIG_fail;
15721 {
15722 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPalette, SWIG_POINTER_EXCEPTION | 0);
15723 if (SWIG_arg_fail(2)) SWIG_fail;
15724 if (arg2 == NULL) {
15725 SWIG_null_ref("wxPalette");
15726 }
15727 if (SWIG_arg_fail(2)) SWIG_fail;
15728 }
15729 {
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 (arg1)->SetPalette((wxPalette const &)*arg2);
15732
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 Py_INCREF(Py_None); resultobj = Py_None;
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj = NULL;
15745 wxDC *arg1 = (wxDC *) 0 ;
15746 PyObject * obj0 = 0 ;
15747 char *kwnames[] = {
15748 (char *) "self", NULL
15749 };
15750
15751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
15752 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15753 if (SWIG_arg_fail(1)) SWIG_fail;
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 (arg1)->DestroyClippingRegion();
15757
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 Py_INCREF(Py_None); resultobj = Py_None;
15762 return resultobj;
15763 fail:
15764 return NULL;
15765 }
15766
15767
15768 static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) {
15769 PyObject *resultobj = NULL;
15770 wxDC *arg1 = (wxDC *) 0 ;
15771 int *arg2 = (int *) 0 ;
15772 int *arg3 = (int *) 0 ;
15773 int *arg4 = (int *) 0 ;
15774 int *arg5 = (int *) 0 ;
15775 int temp2 ;
15776 int res2 = 0 ;
15777 int temp3 ;
15778 int res3 = 0 ;
15779 int temp4 ;
15780 int res4 = 0 ;
15781 int temp5 ;
15782 int res5 = 0 ;
15783 PyObject * obj0 = 0 ;
15784 char *kwnames[] = {
15785 (char *) "self", NULL
15786 };
15787
15788 arg2 = &temp2; res2 = SWIG_NEWOBJ;
15789 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15790 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15791 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
15793 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15794 if (SWIG_arg_fail(1)) SWIG_fail;
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 Py_INCREF(Py_None); resultobj = Py_None;
15803 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
15804 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
15805 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15806 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15807 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15808 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15809 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
15810 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
15811 return resultobj;
15812 fail:
15813 return NULL;
15814 }
15815
15816
15817 static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) {
15818 PyObject *resultobj = NULL;
15819 wxDC *arg1 = (wxDC *) 0 ;
15820 wxRect result;
15821 PyObject * obj0 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
15827 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15828 if (SWIG_arg_fail(1)) SWIG_fail;
15829 {
15830 PyThreadState* __tstate = wxPyBeginAllowThreads();
15831 result = wxDC_GetClippingRect(arg1);
15832
15833 wxPyEndAllowThreads(__tstate);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 {
15837 wxRect * resultptr;
15838 resultptr = new wxRect(static_cast<wxRect & >(result));
15839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
15840 }
15841 return resultobj;
15842 fail:
15843 return NULL;
15844 }
15845
15846
15847 static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj = NULL;
15849 wxDC *arg1 = (wxDC *) 0 ;
15850 int result;
15851 PyObject * obj0 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
15857 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15858 if (SWIG_arg_fail(1)) SWIG_fail;
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 result = (int)((wxDC const *)arg1)->GetCharHeight();
15862
15863 wxPyEndAllowThreads(__tstate);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 }
15866 {
15867 resultobj = SWIG_From_int(static_cast<int >(result));
15868 }
15869 return resultobj;
15870 fail:
15871 return NULL;
15872 }
15873
15874
15875 static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj = NULL;
15877 wxDC *arg1 = (wxDC *) 0 ;
15878 int result;
15879 PyObject * obj0 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "self", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
15885 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15886 if (SWIG_arg_fail(1)) SWIG_fail;
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 result = (int)((wxDC const *)arg1)->GetCharWidth();
15890
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 {
15895 resultobj = SWIG_From_int(static_cast<int >(result));
15896 }
15897 return resultobj;
15898 fail:
15899 return NULL;
15900 }
15901
15902
15903 static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj = NULL;
15905 wxDC *arg1 = (wxDC *) 0 ;
15906 wxString *arg2 = 0 ;
15907 int *arg3 = (int *) 0 ;
15908 int *arg4 = (int *) 0 ;
15909 bool temp2 = false ;
15910 int temp3 ;
15911 int res3 = 0 ;
15912 int temp4 ;
15913 int res4 = 0 ;
15914 PyObject * obj0 = 0 ;
15915 PyObject * obj1 = 0 ;
15916 char *kwnames[] = {
15917 (char *) "self",(char *) "string", NULL
15918 };
15919
15920 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15921 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
15923 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15924 if (SWIG_arg_fail(1)) SWIG_fail;
15925 {
15926 arg2 = wxString_in_helper(obj1);
15927 if (arg2 == NULL) SWIG_fail;
15928 temp2 = true;
15929 }
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
15933
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 Py_INCREF(Py_None); resultobj = Py_None;
15938 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15939 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
15940 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
15941 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
15942 {
15943 if (temp2)
15944 delete arg2;
15945 }
15946 return resultobj;
15947 fail:
15948 {
15949 if (temp2)
15950 delete arg2;
15951 }
15952 return NULL;
15953 }
15954
15955
15956 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
15957 PyObject *resultobj = NULL;
15958 wxDC *arg1 = (wxDC *) 0 ;
15959 wxString *arg2 = 0 ;
15960 int *arg3 = (int *) 0 ;
15961 int *arg4 = (int *) 0 ;
15962 int *arg5 = (int *) 0 ;
15963 int *arg6 = (int *) 0 ;
15964 wxFont *arg7 = (wxFont *) NULL ;
15965 bool temp2 = false ;
15966 int temp3 ;
15967 int res3 = 0 ;
15968 int temp4 ;
15969 int res4 = 0 ;
15970 int temp5 ;
15971 int res5 = 0 ;
15972 int temp6 ;
15973 int res6 = 0 ;
15974 PyObject * obj0 = 0 ;
15975 PyObject * obj1 = 0 ;
15976 PyObject * obj2 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "string",(char *) "font", NULL
15979 };
15980
15981 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15982 arg4 = &temp4; res4 = SWIG_NEWOBJ;
15983 arg5 = &temp5; res5 = SWIG_NEWOBJ;
15984 arg6 = &temp6; res6 = SWIG_NEWOBJ;
15985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
15986 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
15987 if (SWIG_arg_fail(1)) SWIG_fail;
15988 {
15989 arg2 = wxString_in_helper(obj1);
15990 if (arg2 == NULL) SWIG_fail;
15991 temp2 = true;
15992 }
15993 if (obj2) {
15994 SWIG_Python_ConvertPtr(obj2, (void **)&arg7, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
15995 if (SWIG_arg_fail(7)) SWIG_fail;
15996 }
15997 {
15998 PyThreadState* __tstate = wxPyBeginAllowThreads();
15999 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
16000
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 Py_INCREF(Py_None); resultobj = Py_None;
16005 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16006 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16007 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16008 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16009 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
16010 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
16011 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
16012 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
16013 {
16014 if (temp2)
16015 delete arg2;
16016 }
16017 return resultobj;
16018 fail:
16019 {
16020 if (temp2)
16021 delete arg2;
16022 }
16023 return NULL;
16024 }
16025
16026
16027 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
16028 PyObject *resultobj = NULL;
16029 wxDC *arg1 = (wxDC *) 0 ;
16030 wxString *arg2 = 0 ;
16031 int *arg3 = (int *) 0 ;
16032 int *arg4 = (int *) 0 ;
16033 int *arg5 = (int *) 0 ;
16034 wxFont *arg6 = (wxFont *) NULL ;
16035 bool temp2 = false ;
16036 int temp3 ;
16037 int res3 = 0 ;
16038 int temp4 ;
16039 int res4 = 0 ;
16040 int temp5 ;
16041 int res5 = 0 ;
16042 PyObject * obj0 = 0 ;
16043 PyObject * obj1 = 0 ;
16044 PyObject * obj2 = 0 ;
16045 char *kwnames[] = {
16046 (char *) "self",(char *) "text",(char *) "font", NULL
16047 };
16048
16049 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16050 arg4 = &temp4; res4 = SWIG_NEWOBJ;
16051 arg5 = &temp5; res5 = SWIG_NEWOBJ;
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16053 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16054 if (SWIG_arg_fail(1)) SWIG_fail;
16055 {
16056 arg2 = wxString_in_helper(obj1);
16057 if (arg2 == NULL) SWIG_fail;
16058 temp2 = true;
16059 }
16060 if (obj2) {
16061 SWIG_Python_ConvertPtr(obj2, (void **)&arg6, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
16062 if (SWIG_arg_fail(6)) SWIG_fail;
16063 }
16064 {
16065 PyThreadState* __tstate = wxPyBeginAllowThreads();
16066 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
16067
16068 wxPyEndAllowThreads(__tstate);
16069 if (PyErr_Occurred()) SWIG_fail;
16070 }
16071 Py_INCREF(Py_None); resultobj = Py_None;
16072 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16073 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16074 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
16075 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
16076 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
16077 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
16078 {
16079 if (temp2)
16080 delete arg2;
16081 }
16082 return resultobj;
16083 fail:
16084 {
16085 if (temp2)
16086 delete arg2;
16087 }
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj = NULL;
16094 wxDC *arg1 = (wxDC *) 0 ;
16095 wxString *arg2 = 0 ;
16096 wxArrayInt result;
16097 bool temp2 = false ;
16098 PyObject * obj0 = 0 ;
16099 PyObject * obj1 = 0 ;
16100 char *kwnames[] = {
16101 (char *) "self",(char *) "text", NULL
16102 };
16103
16104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
16105 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16106 if (SWIG_arg_fail(1)) SWIG_fail;
16107 {
16108 arg2 = wxString_in_helper(obj1);
16109 if (arg2 == NULL) SWIG_fail;
16110 temp2 = true;
16111 }
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
16115
16116 wxPyEndAllowThreads(__tstate);
16117 if (PyErr_Occurred()) SWIG_fail;
16118 }
16119 {
16120 resultobj = PyList_New(0);
16121 size_t idx;
16122 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
16123 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
16124 PyList_Append(resultobj, val);
16125 Py_DECREF(val);
16126 }
16127 }
16128 {
16129 if (temp2)
16130 delete arg2;
16131 }
16132 return resultobj;
16133 fail:
16134 {
16135 if (temp2)
16136 delete arg2;
16137 }
16138 return NULL;
16139 }
16140
16141
16142 static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
16143 PyObject *resultobj = NULL;
16144 wxDC *arg1 = (wxDC *) 0 ;
16145 wxSize result;
16146 PyObject * obj0 = 0 ;
16147 char *kwnames[] = {
16148 (char *) "self", NULL
16149 };
16150
16151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
16152 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16153 if (SWIG_arg_fail(1)) SWIG_fail;
16154 {
16155 PyThreadState* __tstate = wxPyBeginAllowThreads();
16156 result = (arg1)->GetSize();
16157
16158 wxPyEndAllowThreads(__tstate);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 {
16162 wxSize * resultptr;
16163 resultptr = new wxSize(static_cast<wxSize & >(result));
16164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16165 }
16166 return resultobj;
16167 fail:
16168 return NULL;
16169 }
16170
16171
16172 static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16173 PyObject *resultobj = NULL;
16174 wxDC *arg1 = (wxDC *) 0 ;
16175 int *arg2 = (int *) 0 ;
16176 int *arg3 = (int *) 0 ;
16177 int temp2 ;
16178 int res2 = 0 ;
16179 int temp3 ;
16180 int res3 = 0 ;
16181 PyObject * obj0 = 0 ;
16182 char *kwnames[] = {
16183 (char *) "self", NULL
16184 };
16185
16186 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16187 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
16189 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16190 if (SWIG_arg_fail(1)) SWIG_fail;
16191 {
16192 PyThreadState* __tstate = wxPyBeginAllowThreads();
16193 (arg1)->GetSize(arg2,arg3);
16194
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 Py_INCREF(Py_None); resultobj = Py_None;
16199 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16200 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16201 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16202 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16203 return resultobj;
16204 fail:
16205 return NULL;
16206 }
16207
16208
16209 static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj = NULL;
16211 wxDC *arg1 = (wxDC *) 0 ;
16212 wxSize result;
16213 PyObject * obj0 = 0 ;
16214 char *kwnames[] = {
16215 (char *) "self", NULL
16216 };
16217
16218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
16219 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16220 if (SWIG_arg_fail(1)) SWIG_fail;
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = ((wxDC const *)arg1)->GetSizeMM();
16224
16225 wxPyEndAllowThreads(__tstate);
16226 if (PyErr_Occurred()) SWIG_fail;
16227 }
16228 {
16229 wxSize * resultptr;
16230 resultptr = new wxSize(static_cast<wxSize & >(result));
16231 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16232 }
16233 return resultobj;
16234 fail:
16235 return NULL;
16236 }
16237
16238
16239 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) {
16240 PyObject *resultobj = NULL;
16241 wxDC *arg1 = (wxDC *) 0 ;
16242 int *arg2 = (int *) 0 ;
16243 int *arg3 = (int *) 0 ;
16244 int temp2 ;
16245 int res2 = 0 ;
16246 int temp3 ;
16247 int res3 = 0 ;
16248 PyObject * obj0 = 0 ;
16249 char *kwnames[] = {
16250 (char *) "self", NULL
16251 };
16252
16253 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16254 arg3 = &temp3; res3 = SWIG_NEWOBJ;
16255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
16261
16262 wxPyEndAllowThreads(__tstate);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 Py_INCREF(Py_None); resultobj = Py_None;
16266 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16267 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
16268 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16269 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj = NULL;
16278 wxDC *arg1 = (wxDC *) 0 ;
16279 int arg2 ;
16280 int result;
16281 PyObject * obj0 = 0 ;
16282 PyObject * obj1 = 0 ;
16283 char *kwnames[] = {
16284 (char *) "self",(char *) "x", NULL
16285 };
16286
16287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
16288 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16289 if (SWIG_arg_fail(1)) SWIG_fail;
16290 {
16291 arg2 = static_cast<int >(SWIG_As_int(obj1));
16292 if (SWIG_arg_fail(2)) SWIG_fail;
16293 }
16294 {
16295 PyThreadState* __tstate = wxPyBeginAllowThreads();
16296 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
16297
16298 wxPyEndAllowThreads(__tstate);
16299 if (PyErr_Occurred()) SWIG_fail;
16300 }
16301 {
16302 resultobj = SWIG_From_int(static_cast<int >(result));
16303 }
16304 return resultobj;
16305 fail:
16306 return NULL;
16307 }
16308
16309
16310 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) {
16311 PyObject *resultobj = NULL;
16312 wxDC *arg1 = (wxDC *) 0 ;
16313 int arg2 ;
16314 int result;
16315 PyObject * obj0 = 0 ;
16316 PyObject * obj1 = 0 ;
16317 char *kwnames[] = {
16318 (char *) "self",(char *) "y", NULL
16319 };
16320
16321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
16322 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16323 if (SWIG_arg_fail(1)) SWIG_fail;
16324 {
16325 arg2 = static_cast<int >(SWIG_As_int(obj1));
16326 if (SWIG_arg_fail(2)) SWIG_fail;
16327 }
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
16331
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 {
16336 resultobj = SWIG_From_int(static_cast<int >(result));
16337 }
16338 return resultobj;
16339 fail:
16340 return NULL;
16341 }
16342
16343
16344 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) {
16345 PyObject *resultobj = NULL;
16346 wxDC *arg1 = (wxDC *) 0 ;
16347 int arg2 ;
16348 int result;
16349 PyObject * obj0 = 0 ;
16350 PyObject * obj1 = 0 ;
16351 char *kwnames[] = {
16352 (char *) "self",(char *) "x", NULL
16353 };
16354
16355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
16356 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16357 if (SWIG_arg_fail(1)) SWIG_fail;
16358 {
16359 arg2 = static_cast<int >(SWIG_As_int(obj1));
16360 if (SWIG_arg_fail(2)) SWIG_fail;
16361 }
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
16365
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 resultobj = SWIG_From_int(static_cast<int >(result));
16371 }
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj = NULL;
16380 wxDC *arg1 = (wxDC *) 0 ;
16381 int arg2 ;
16382 int result;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 char *kwnames[] = {
16386 (char *) "self",(char *) "y", NULL
16387 };
16388
16389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
16390 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16391 if (SWIG_arg_fail(1)) SWIG_fail;
16392 {
16393 arg2 = static_cast<int >(SWIG_As_int(obj1));
16394 if (SWIG_arg_fail(2)) SWIG_fail;
16395 }
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
16399
16400 wxPyEndAllowThreads(__tstate);
16401 if (PyErr_Occurred()) SWIG_fail;
16402 }
16403 {
16404 resultobj = SWIG_From_int(static_cast<int >(result));
16405 }
16406 return resultobj;
16407 fail:
16408 return NULL;
16409 }
16410
16411
16412 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj = NULL;
16414 wxDC *arg1 = (wxDC *) 0 ;
16415 int arg2 ;
16416 int result;
16417 PyObject * obj0 = 0 ;
16418 PyObject * obj1 = 0 ;
16419 char *kwnames[] = {
16420 (char *) "self",(char *) "x", NULL
16421 };
16422
16423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
16424 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16425 if (SWIG_arg_fail(1)) SWIG_fail;
16426 {
16427 arg2 = static_cast<int >(SWIG_As_int(obj1));
16428 if (SWIG_arg_fail(2)) SWIG_fail;
16429 }
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
16433
16434 wxPyEndAllowThreads(__tstate);
16435 if (PyErr_Occurred()) SWIG_fail;
16436 }
16437 {
16438 resultobj = SWIG_From_int(static_cast<int >(result));
16439 }
16440 return resultobj;
16441 fail:
16442 return NULL;
16443 }
16444
16445
16446 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) {
16447 PyObject *resultobj = NULL;
16448 wxDC *arg1 = (wxDC *) 0 ;
16449 int arg2 ;
16450 int result;
16451 PyObject * obj0 = 0 ;
16452 PyObject * obj1 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self",(char *) "y", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
16458 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16459 if (SWIG_arg_fail(1)) SWIG_fail;
16460 {
16461 arg2 = static_cast<int >(SWIG_As_int(obj1));
16462 if (SWIG_arg_fail(2)) SWIG_fail;
16463 }
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
16467
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472 resultobj = SWIG_From_int(static_cast<int >(result));
16473 }
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj = NULL;
16482 wxDC *arg1 = (wxDC *) 0 ;
16483 int arg2 ;
16484 int result;
16485 PyObject * obj0 = 0 ;
16486 PyObject * obj1 = 0 ;
16487 char *kwnames[] = {
16488 (char *) "self",(char *) "x", NULL
16489 };
16490
16491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
16492 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16493 if (SWIG_arg_fail(1)) SWIG_fail;
16494 {
16495 arg2 = static_cast<int >(SWIG_As_int(obj1));
16496 if (SWIG_arg_fail(2)) SWIG_fail;
16497 }
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
16501
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 {
16506 resultobj = SWIG_From_int(static_cast<int >(result));
16507 }
16508 return resultobj;
16509 fail:
16510 return NULL;
16511 }
16512
16513
16514 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) {
16515 PyObject *resultobj = NULL;
16516 wxDC *arg1 = (wxDC *) 0 ;
16517 int arg2 ;
16518 int result;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 char *kwnames[] = {
16522 (char *) "self",(char *) "y", NULL
16523 };
16524
16525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
16526 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16527 if (SWIG_arg_fail(1)) SWIG_fail;
16528 {
16529 arg2 = static_cast<int >(SWIG_As_int(obj1));
16530 if (SWIG_arg_fail(2)) SWIG_fail;
16531 }
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 {
16540 resultobj = SWIG_From_int(static_cast<int >(result));
16541 }
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj = NULL;
16550 wxDC *arg1 = (wxDC *) 0 ;
16551 bool result;
16552 PyObject * obj0 = 0 ;
16553 char *kwnames[] = {
16554 (char *) "self", NULL
16555 };
16556
16557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
16558 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16559 if (SWIG_arg_fail(1)) SWIG_fail;
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
16563
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16569 }
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj = NULL;
16578 wxDC *arg1 = (wxDC *) 0 ;
16579 bool result;
16580 PyObject * obj0 = 0 ;
16581 char *kwnames[] = {
16582 (char *) "self", NULL
16583 };
16584
16585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
16586 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16587 if (SWIG_arg_fail(1)) SWIG_fail;
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
16591
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 {
16596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16597 }
16598 return resultobj;
16599 fail:
16600 return NULL;
16601 }
16602
16603
16604 static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
16605 PyObject *resultobj = NULL;
16606 wxDC *arg1 = (wxDC *) 0 ;
16607 int result;
16608 PyObject * obj0 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
16614 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16615 if (SWIG_arg_fail(1)) SWIG_fail;
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (int)((wxDC const *)arg1)->GetDepth();
16619
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 {
16624 resultobj = SWIG_From_int(static_cast<int >(result));
16625 }
16626 return resultobj;
16627 fail:
16628 return NULL;
16629 }
16630
16631
16632 static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) {
16633 PyObject *resultobj = NULL;
16634 wxDC *arg1 = (wxDC *) 0 ;
16635 wxSize result;
16636 PyObject * obj0 = 0 ;
16637 char *kwnames[] = {
16638 (char *) "self", NULL
16639 };
16640
16641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
16642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16643 if (SWIG_arg_fail(1)) SWIG_fail;
16644 {
16645 PyThreadState* __tstate = wxPyBeginAllowThreads();
16646 result = ((wxDC const *)arg1)->GetPPI();
16647
16648 wxPyEndAllowThreads(__tstate);
16649 if (PyErr_Occurred()) SWIG_fail;
16650 }
16651 {
16652 wxSize * resultptr;
16653 resultptr = new wxSize(static_cast<wxSize & >(result));
16654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16655 }
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
16663 PyObject *resultobj = NULL;
16664 wxDC *arg1 = (wxDC *) 0 ;
16665 bool result;
16666 PyObject * obj0 = 0 ;
16667 char *kwnames[] = {
16668 (char *) "self", NULL
16669 };
16670
16671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
16672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16673 if (SWIG_arg_fail(1)) SWIG_fail;
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 result = (bool)((wxDC const *)arg1)->Ok();
16677
16678 wxPyEndAllowThreads(__tstate);
16679 if (PyErr_Occurred()) SWIG_fail;
16680 }
16681 {
16682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16683 }
16684 return resultobj;
16685 fail:
16686 return NULL;
16687 }
16688
16689
16690 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) {
16691 PyObject *resultobj = NULL;
16692 wxDC *arg1 = (wxDC *) 0 ;
16693 int result;
16694 PyObject * obj0 = 0 ;
16695 char *kwnames[] = {
16696 (char *) "self", NULL
16697 };
16698
16699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
16700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16701 if (SWIG_arg_fail(1)) SWIG_fail;
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
16705
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 {
16710 resultobj = SWIG_From_int(static_cast<int >(result));
16711 }
16712 return resultobj;
16713 fail:
16714 return NULL;
16715 }
16716
16717
16718 static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16719 PyObject *resultobj = NULL;
16720 wxDC *arg1 = (wxDC *) 0 ;
16721 wxBrush *result;
16722 PyObject * obj0 = 0 ;
16723 char *kwnames[] = {
16724 (char *) "self", NULL
16725 };
16726
16727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
16728 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16729 if (SWIG_arg_fail(1)) SWIG_fail;
16730 {
16731 PyThreadState* __tstate = wxPyBeginAllowThreads();
16732 {
16733 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
16734 result = (wxBrush *) &_result_ref;
16735 }
16736
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 {
16741 wxBrush* resultptr = new wxBrush(*result);
16742 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16743 }
16744 return resultobj;
16745 fail:
16746 return NULL;
16747 }
16748
16749
16750 static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) {
16751 PyObject *resultobj = NULL;
16752 wxDC *arg1 = (wxDC *) 0 ;
16753 wxBrush *result;
16754 PyObject * obj0 = 0 ;
16755 char *kwnames[] = {
16756 (char *) "self", NULL
16757 };
16758
16759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
16760 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16761 if (SWIG_arg_fail(1)) SWIG_fail;
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 {
16765 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
16766 result = (wxBrush *) &_result_ref;
16767 }
16768
16769 wxPyEndAllowThreads(__tstate);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 {
16773 wxBrush* resultptr = new wxBrush(*result);
16774 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
16775 }
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
16783 PyObject *resultobj = NULL;
16784 wxDC *arg1 = (wxDC *) 0 ;
16785 wxFont *result;
16786 PyObject * obj0 = 0 ;
16787 char *kwnames[] = {
16788 (char *) "self", NULL
16789 };
16790
16791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
16792 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16793 if (SWIG_arg_fail(1)) SWIG_fail;
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
16796 {
16797 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
16798 result = (wxFont *) &_result_ref;
16799 }
16800
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 {
16805 wxFont* resultptr = new wxFont(*result);
16806 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
16807 }
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj = NULL;
16816 wxDC *arg1 = (wxDC *) 0 ;
16817 wxPen *result;
16818 PyObject * obj0 = 0 ;
16819 char *kwnames[] = {
16820 (char *) "self", NULL
16821 };
16822
16823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
16824 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16825 if (SWIG_arg_fail(1)) SWIG_fail;
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 {
16829 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
16830 result = (wxPen *) &_result_ref;
16831 }
16832
16833 wxPyEndAllowThreads(__tstate);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 }
16836 {
16837 wxPen* resultptr = new wxPen(*result);
16838 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
16839 }
16840 return resultobj;
16841 fail:
16842 return NULL;
16843 }
16844
16845
16846 static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16847 PyObject *resultobj = NULL;
16848 wxDC *arg1 = (wxDC *) 0 ;
16849 wxColour *result;
16850 PyObject * obj0 = 0 ;
16851 char *kwnames[] = {
16852 (char *) "self", NULL
16853 };
16854
16855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
16856 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16857 if (SWIG_arg_fail(1)) SWIG_fail;
16858 {
16859 PyThreadState* __tstate = wxPyBeginAllowThreads();
16860 {
16861 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
16862 result = (wxColour *) &_result_ref;
16863 }
16864
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16876 PyObject *resultobj = NULL;
16877 wxDC *arg1 = (wxDC *) 0 ;
16878 wxColour *result;
16879 PyObject * obj0 = 0 ;
16880 char *kwnames[] = {
16881 (char *) "self", NULL
16882 };
16883
16884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
16885 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16886 if (SWIG_arg_fail(1)) SWIG_fail;
16887 {
16888 PyThreadState* __tstate = wxPyBeginAllowThreads();
16889 {
16890 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
16891 result = (wxColour *) &_result_ref;
16892 }
16893
16894 wxPyEndAllowThreads(__tstate);
16895 if (PyErr_Occurred()) SWIG_fail;
16896 }
16897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
16898 return resultobj;
16899 fail:
16900 return NULL;
16901 }
16902
16903
16904 static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) {
16905 PyObject *resultobj = NULL;
16906 wxDC *arg1 = (wxDC *) 0 ;
16907 wxColour *arg2 = 0 ;
16908 wxColour temp2 ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 char *kwnames[] = {
16912 (char *) "self",(char *) "colour", NULL
16913 };
16914
16915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
16916 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16917 if (SWIG_arg_fail(1)) SWIG_fail;
16918 {
16919 arg2 = &temp2;
16920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16921 }
16922 {
16923 PyThreadState* __tstate = wxPyBeginAllowThreads();
16924 (arg1)->SetTextForeground((wxColour const &)*arg2);
16925
16926 wxPyEndAllowThreads(__tstate);
16927 if (PyErr_Occurred()) SWIG_fail;
16928 }
16929 Py_INCREF(Py_None); resultobj = Py_None;
16930 return resultobj;
16931 fail:
16932 return NULL;
16933 }
16934
16935
16936 static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) {
16937 PyObject *resultobj = NULL;
16938 wxDC *arg1 = (wxDC *) 0 ;
16939 wxColour *arg2 = 0 ;
16940 wxColour temp2 ;
16941 PyObject * obj0 = 0 ;
16942 PyObject * obj1 = 0 ;
16943 char *kwnames[] = {
16944 (char *) "self",(char *) "colour", NULL
16945 };
16946
16947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
16948 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16949 if (SWIG_arg_fail(1)) SWIG_fail;
16950 {
16951 arg2 = &temp2;
16952 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16953 }
16954 {
16955 PyThreadState* __tstate = wxPyBeginAllowThreads();
16956 (arg1)->SetTextBackground((wxColour const &)*arg2);
16957
16958 wxPyEndAllowThreads(__tstate);
16959 if (PyErr_Occurred()) SWIG_fail;
16960 }
16961 Py_INCREF(Py_None); resultobj = Py_None;
16962 return resultobj;
16963 fail:
16964 return NULL;
16965 }
16966
16967
16968 static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16969 PyObject *resultobj = NULL;
16970 wxDC *arg1 = (wxDC *) 0 ;
16971 int result;
16972 PyObject * obj0 = 0 ;
16973 char *kwnames[] = {
16974 (char *) "self", NULL
16975 };
16976
16977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
16978 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
16979 if (SWIG_arg_fail(1)) SWIG_fail;
16980 {
16981 PyThreadState* __tstate = wxPyBeginAllowThreads();
16982 result = (int)((wxDC const *)arg1)->GetMapMode();
16983
16984 wxPyEndAllowThreads(__tstate);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 {
16988 resultobj = SWIG_From_int(static_cast<int >(result));
16989 }
16990 return resultobj;
16991 fail:
16992 return NULL;
16993 }
16994
16995
16996 static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) {
16997 PyObject *resultobj = NULL;
16998 wxDC *arg1 = (wxDC *) 0 ;
16999 int arg2 ;
17000 PyObject * obj0 = 0 ;
17001 PyObject * obj1 = 0 ;
17002 char *kwnames[] = {
17003 (char *) "self",(char *) "mode", NULL
17004 };
17005
17006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
17007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17008 if (SWIG_arg_fail(1)) SWIG_fail;
17009 {
17010 arg2 = static_cast<int >(SWIG_As_int(obj1));
17011 if (SWIG_arg_fail(2)) SWIG_fail;
17012 }
17013 {
17014 PyThreadState* __tstate = wxPyBeginAllowThreads();
17015 (arg1)->SetMapMode(arg2);
17016
17017 wxPyEndAllowThreads(__tstate);
17018 if (PyErr_Occurred()) SWIG_fail;
17019 }
17020 Py_INCREF(Py_None); resultobj = Py_None;
17021 return resultobj;
17022 fail:
17023 return NULL;
17024 }
17025
17026
17027 static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
17028 PyObject *resultobj = NULL;
17029 wxDC *arg1 = (wxDC *) 0 ;
17030 double *arg2 = (double *) 0 ;
17031 double *arg3 = (double *) 0 ;
17032 double temp2 ;
17033 int res2 = 0 ;
17034 double temp3 ;
17035 int res3 = 0 ;
17036 PyObject * obj0 = 0 ;
17037 char *kwnames[] = {
17038 (char *) "self", NULL
17039 };
17040
17041 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17042 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
17044 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17045 if (SWIG_arg_fail(1)) SWIG_fail;
17046 {
17047 PyThreadState* __tstate = wxPyBeginAllowThreads();
17048 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
17049
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 Py_INCREF(Py_None); resultobj = Py_None;
17054 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17055 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
17056 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17057 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
17058 return resultobj;
17059 fail:
17060 return NULL;
17061 }
17062
17063
17064 static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj = NULL;
17066 wxDC *arg1 = (wxDC *) 0 ;
17067 double arg2 ;
17068 double arg3 ;
17069 PyObject * obj0 = 0 ;
17070 PyObject * obj1 = 0 ;
17071 PyObject * obj2 = 0 ;
17072 char *kwnames[] = {
17073 (char *) "self",(char *) "x",(char *) "y", NULL
17074 };
17075
17076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
17077 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17078 if (SWIG_arg_fail(1)) SWIG_fail;
17079 {
17080 arg2 = static_cast<double >(SWIG_As_double(obj1));
17081 if (SWIG_arg_fail(2)) SWIG_fail;
17082 }
17083 {
17084 arg3 = static_cast<double >(SWIG_As_double(obj2));
17085 if (SWIG_arg_fail(3)) SWIG_fail;
17086 }
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 (arg1)->SetUserScale(arg2,arg3);
17090
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 Py_INCREF(Py_None); resultobj = Py_None;
17095 return resultobj;
17096 fail:
17097 return NULL;
17098 }
17099
17100
17101 static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj = NULL;
17103 wxDC *arg1 = (wxDC *) 0 ;
17104 double *arg2 = (double *) 0 ;
17105 double *arg3 = (double *) 0 ;
17106 double temp2 ;
17107 int res2 = 0 ;
17108 double temp3 ;
17109 int res3 = 0 ;
17110 PyObject * obj0 = 0 ;
17111 char *kwnames[] = {
17112 (char *) "self", NULL
17113 };
17114
17115 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17116 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
17118 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17119 if (SWIG_arg_fail(1)) SWIG_fail;
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 (arg1)->GetLogicalScale(arg2,arg3);
17123
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 Py_INCREF(Py_None); resultobj = Py_None;
17128 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17129 SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0)));
17130 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17131 SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0)));
17132 return resultobj;
17133 fail:
17134 return NULL;
17135 }
17136
17137
17138 static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) {
17139 PyObject *resultobj = NULL;
17140 wxDC *arg1 = (wxDC *) 0 ;
17141 double arg2 ;
17142 double arg3 ;
17143 PyObject * obj0 = 0 ;
17144 PyObject * obj1 = 0 ;
17145 PyObject * obj2 = 0 ;
17146 char *kwnames[] = {
17147 (char *) "self",(char *) "x",(char *) "y", NULL
17148 };
17149
17150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
17151 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17152 if (SWIG_arg_fail(1)) SWIG_fail;
17153 {
17154 arg2 = static_cast<double >(SWIG_As_double(obj1));
17155 if (SWIG_arg_fail(2)) SWIG_fail;
17156 }
17157 {
17158 arg3 = static_cast<double >(SWIG_As_double(obj2));
17159 if (SWIG_arg_fail(3)) SWIG_fail;
17160 }
17161 {
17162 PyThreadState* __tstate = wxPyBeginAllowThreads();
17163 (arg1)->SetLogicalScale(arg2,arg3);
17164
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 Py_INCREF(Py_None); resultobj = Py_None;
17169 return resultobj;
17170 fail:
17171 return NULL;
17172 }
17173
17174
17175 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj = NULL;
17177 wxDC *arg1 = (wxDC *) 0 ;
17178 wxPoint result;
17179 PyObject * obj0 = 0 ;
17180 char *kwnames[] = {
17181 (char *) "self", NULL
17182 };
17183
17184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
17185 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17186 if (SWIG_arg_fail(1)) SWIG_fail;
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = ((wxDC const *)arg1)->GetLogicalOrigin();
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 {
17195 wxPoint * resultptr;
17196 resultptr = new wxPoint(static_cast<wxPoint & >(result));
17197 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17198 }
17199 return resultobj;
17200 fail:
17201 return NULL;
17202 }
17203
17204
17205 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
17206 PyObject *resultobj = NULL;
17207 wxDC *arg1 = (wxDC *) 0 ;
17208 int *arg2 = (int *) 0 ;
17209 int *arg3 = (int *) 0 ;
17210 int temp2 ;
17211 int res2 = 0 ;
17212 int temp3 ;
17213 int res3 = 0 ;
17214 PyObject * obj0 = 0 ;
17215 char *kwnames[] = {
17216 (char *) "self", NULL
17217 };
17218
17219 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17220 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
17222 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17223 if (SWIG_arg_fail(1)) SWIG_fail;
17224 {
17225 PyThreadState* __tstate = wxPyBeginAllowThreads();
17226 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
17227
17228 wxPyEndAllowThreads(__tstate);
17229 if (PyErr_Occurred()) SWIG_fail;
17230 }
17231 Py_INCREF(Py_None); resultobj = Py_None;
17232 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17233 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17234 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17235 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17236 return resultobj;
17237 fail:
17238 return NULL;
17239 }
17240
17241
17242 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj = NULL;
17244 wxDC *arg1 = (wxDC *) 0 ;
17245 int arg2 ;
17246 int arg3 ;
17247 PyObject * obj0 = 0 ;
17248 PyObject * obj1 = 0 ;
17249 PyObject * obj2 = 0 ;
17250 char *kwnames[] = {
17251 (char *) "self",(char *) "x",(char *) "y", NULL
17252 };
17253
17254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17255 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17256 if (SWIG_arg_fail(1)) SWIG_fail;
17257 {
17258 arg2 = static_cast<int >(SWIG_As_int(obj1));
17259 if (SWIG_arg_fail(2)) SWIG_fail;
17260 }
17261 {
17262 arg3 = static_cast<int >(SWIG_As_int(obj2));
17263 if (SWIG_arg_fail(3)) SWIG_fail;
17264 }
17265 {
17266 PyThreadState* __tstate = wxPyBeginAllowThreads();
17267 (arg1)->SetLogicalOrigin(arg2,arg3);
17268
17269 wxPyEndAllowThreads(__tstate);
17270 if (PyErr_Occurred()) SWIG_fail;
17271 }
17272 Py_INCREF(Py_None); resultobj = Py_None;
17273 return resultobj;
17274 fail:
17275 return NULL;
17276 }
17277
17278
17279 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17280 PyObject *resultobj = NULL;
17281 wxDC *arg1 = (wxDC *) 0 ;
17282 wxPoint *arg2 = 0 ;
17283 wxPoint temp2 ;
17284 PyObject * obj0 = 0 ;
17285 PyObject * obj1 = 0 ;
17286 char *kwnames[] = {
17287 (char *) "self",(char *) "point", NULL
17288 };
17289
17290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17291 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17292 if (SWIG_arg_fail(1)) SWIG_fail;
17293 {
17294 arg2 = &temp2;
17295 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17296 }
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
17300
17301 wxPyEndAllowThreads(__tstate);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 }
17304 Py_INCREF(Py_None); resultobj = Py_None;
17305 return resultobj;
17306 fail:
17307 return NULL;
17308 }
17309
17310
17311 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17312 PyObject *resultobj = NULL;
17313 wxDC *arg1 = (wxDC *) 0 ;
17314 wxPoint result;
17315 PyObject * obj0 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
17321 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17322 if (SWIG_arg_fail(1)) SWIG_fail;
17323 {
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 result = ((wxDC const *)arg1)->GetDeviceOrigin();
17326
17327 wxPyEndAllowThreads(__tstate);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 }
17330 {
17331 wxPoint * resultptr;
17332 resultptr = new wxPoint(static_cast<wxPoint & >(result));
17333 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17334 }
17335 return resultobj;
17336 fail:
17337 return NULL;
17338 }
17339
17340
17341 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = NULL;
17343 wxDC *arg1 = (wxDC *) 0 ;
17344 int *arg2 = (int *) 0 ;
17345 int *arg3 = (int *) 0 ;
17346 int temp2 ;
17347 int res2 = 0 ;
17348 int temp3 ;
17349 int res3 = 0 ;
17350 PyObject * obj0 = 0 ;
17351 char *kwnames[] = {
17352 (char *) "self", NULL
17353 };
17354
17355 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17356 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
17358 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17359 if (SWIG_arg_fail(1)) SWIG_fail;
17360 {
17361 PyThreadState* __tstate = wxPyBeginAllowThreads();
17362 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
17363
17364 wxPyEndAllowThreads(__tstate);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 Py_INCREF(Py_None); resultobj = Py_None;
17368 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17369 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17370 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17371 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17372 return resultobj;
17373 fail:
17374 return NULL;
17375 }
17376
17377
17378 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj = NULL;
17380 wxDC *arg1 = (wxDC *) 0 ;
17381 int arg2 ;
17382 int arg3 ;
17383 PyObject * obj0 = 0 ;
17384 PyObject * obj1 = 0 ;
17385 PyObject * obj2 = 0 ;
17386 char *kwnames[] = {
17387 (char *) "self",(char *) "x",(char *) "y", NULL
17388 };
17389
17390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
17391 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17392 if (SWIG_arg_fail(1)) SWIG_fail;
17393 {
17394 arg2 = static_cast<int >(SWIG_As_int(obj1));
17395 if (SWIG_arg_fail(2)) SWIG_fail;
17396 }
17397 {
17398 arg3 = static_cast<int >(SWIG_As_int(obj2));
17399 if (SWIG_arg_fail(3)) SWIG_fail;
17400 }
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 (arg1)->SetDeviceOrigin(arg2,arg3);
17404
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 Py_INCREF(Py_None); resultobj = Py_None;
17409 return resultobj;
17410 fail:
17411 return NULL;
17412 }
17413
17414
17415 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj = NULL;
17417 wxDC *arg1 = (wxDC *) 0 ;
17418 wxPoint *arg2 = 0 ;
17419 wxPoint temp2 ;
17420 PyObject * obj0 = 0 ;
17421 PyObject * obj1 = 0 ;
17422 char *kwnames[] = {
17423 (char *) "self",(char *) "point", NULL
17424 };
17425
17426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
17427 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17428 if (SWIG_arg_fail(1)) SWIG_fail;
17429 {
17430 arg2 = &temp2;
17431 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17432 }
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
17436
17437 wxPyEndAllowThreads(__tstate);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 Py_INCREF(Py_None); resultobj = Py_None;
17441 return resultobj;
17442 fail:
17443 return NULL;
17444 }
17445
17446
17447 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj = NULL;
17449 wxDC *arg1 = (wxDC *) 0 ;
17450 bool arg2 ;
17451 bool arg3 ;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 PyObject * obj2 = 0 ;
17455 char *kwnames[] = {
17456 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
17457 };
17458
17459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
17460 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17461 if (SWIG_arg_fail(1)) SWIG_fail;
17462 {
17463 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
17464 if (SWIG_arg_fail(2)) SWIG_fail;
17465 }
17466 {
17467 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
17468 if (SWIG_arg_fail(3)) SWIG_fail;
17469 }
17470 {
17471 PyThreadState* __tstate = wxPyBeginAllowThreads();
17472 (arg1)->SetAxisOrientation(arg2,arg3);
17473
17474 wxPyEndAllowThreads(__tstate);
17475 if (PyErr_Occurred()) SWIG_fail;
17476 }
17477 Py_INCREF(Py_None); resultobj = Py_None;
17478 return resultobj;
17479 fail:
17480 return NULL;
17481 }
17482
17483
17484 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
17485 PyObject *resultobj = NULL;
17486 wxDC *arg1 = (wxDC *) 0 ;
17487 int result;
17488 PyObject * obj0 = 0 ;
17489 char *kwnames[] = {
17490 (char *) "self", NULL
17491 };
17492
17493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
17494 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17495 if (SWIG_arg_fail(1)) SWIG_fail;
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
17499
17500 wxPyEndAllowThreads(__tstate);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 }
17503 {
17504 resultobj = SWIG_From_int(static_cast<int >(result));
17505 }
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj = NULL;
17514 wxDC *arg1 = (wxDC *) 0 ;
17515 int arg2 ;
17516 PyObject * obj0 = 0 ;
17517 PyObject * obj1 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "self",(char *) "function", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
17523 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17524 if (SWIG_arg_fail(1)) SWIG_fail;
17525 {
17526 arg2 = static_cast<int >(SWIG_As_int(obj1));
17527 if (SWIG_arg_fail(2)) SWIG_fail;
17528 }
17529 {
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 (arg1)->SetLogicalFunction(arg2);
17532
17533 wxPyEndAllowThreads(__tstate);
17534 if (PyErr_Occurred()) SWIG_fail;
17535 }
17536 Py_INCREF(Py_None); resultobj = Py_None;
17537 return resultobj;
17538 fail:
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj = NULL;
17545 wxDC *arg1 = (wxDC *) 0 ;
17546 PyObject * obj0 = 0 ;
17547 char *kwnames[] = {
17548 (char *) "self", NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail;
17552 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17553 if (SWIG_arg_fail(1)) SWIG_fail;
17554 {
17555 PyThreadState* __tstate = wxPyBeginAllowThreads();
17556 (arg1)->ComputeScaleAndOrigin();
17557
17558 wxPyEndAllowThreads(__tstate);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 Py_INCREF(Py_None); resultobj = Py_None;
17562 return resultobj;
17563 fail:
17564 return NULL;
17565 }
17566
17567
17568 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17569 PyObject *resultobj = NULL;
17570 wxDC *arg1 = (wxDC *) 0 ;
17571 int arg2 ;
17572 int arg3 ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 PyObject * obj2 = 0 ;
17576 char *kwnames[] = {
17577 (char *) "self",(char *) "x",(char *) "y", NULL
17578 };
17579
17580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
17581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17582 if (SWIG_arg_fail(1)) SWIG_fail;
17583 {
17584 arg2 = static_cast<int >(SWIG_As_int(obj1));
17585 if (SWIG_arg_fail(2)) SWIG_fail;
17586 }
17587 {
17588 arg3 = static_cast<int >(SWIG_As_int(obj2));
17589 if (SWIG_arg_fail(3)) SWIG_fail;
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->CalcBoundingBox(arg2,arg3);
17594
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 Py_INCREF(Py_None); resultobj = Py_None;
17599 return resultobj;
17600 fail:
17601 return NULL;
17602 }
17603
17604
17605 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) {
17606 PyObject *resultobj = NULL;
17607 wxDC *arg1 = (wxDC *) 0 ;
17608 wxPoint *arg2 = 0 ;
17609 wxPoint temp2 ;
17610 PyObject * obj0 = 0 ;
17611 PyObject * obj1 = 0 ;
17612 char *kwnames[] = {
17613 (char *) "self",(char *) "point", NULL
17614 };
17615
17616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
17617 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17618 if (SWIG_arg_fail(1)) SWIG_fail;
17619 {
17620 arg2 = &temp2;
17621 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17622 }
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
17626
17627 wxPyEndAllowThreads(__tstate);
17628 if (PyErr_Occurred()) SWIG_fail;
17629 }
17630 Py_INCREF(Py_None); resultobj = Py_None;
17631 return resultobj;
17632 fail:
17633 return NULL;
17634 }
17635
17636
17637 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17638 PyObject *resultobj = NULL;
17639 wxDC *arg1 = (wxDC *) 0 ;
17640 PyObject * obj0 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "self", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
17646 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17647 if (SWIG_arg_fail(1)) SWIG_fail;
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 (arg1)->ResetBoundingBox();
17651
17652 wxPyEndAllowThreads(__tstate);
17653 if (PyErr_Occurred()) SWIG_fail;
17654 }
17655 Py_INCREF(Py_None); resultobj = Py_None;
17656 return resultobj;
17657 fail:
17658 return NULL;
17659 }
17660
17661
17662 static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) {
17663 PyObject *resultobj = NULL;
17664 wxDC *arg1 = (wxDC *) 0 ;
17665 int result;
17666 PyObject * obj0 = 0 ;
17667 char *kwnames[] = {
17668 (char *) "self", NULL
17669 };
17670
17671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
17672 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17673 if (SWIG_arg_fail(1)) SWIG_fail;
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
17676 result = (int)((wxDC const *)arg1)->MinX();
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 {
17682 resultobj = SWIG_From_int(static_cast<int >(result));
17683 }
17684 return resultobj;
17685 fail:
17686 return NULL;
17687 }
17688
17689
17690 static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) {
17691 PyObject *resultobj = NULL;
17692 wxDC *arg1 = (wxDC *) 0 ;
17693 int result;
17694 PyObject * obj0 = 0 ;
17695 char *kwnames[] = {
17696 (char *) "self", NULL
17697 };
17698
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
17700 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17701 if (SWIG_arg_fail(1)) SWIG_fail;
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 result = (int)((wxDC const *)arg1)->MaxX();
17705
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 {
17710 resultobj = SWIG_From_int(static_cast<int >(result));
17711 }
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) {
17719 PyObject *resultobj = NULL;
17720 wxDC *arg1 = (wxDC *) 0 ;
17721 int result;
17722 PyObject * obj0 = 0 ;
17723 char *kwnames[] = {
17724 (char *) "self", NULL
17725 };
17726
17727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
17728 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17729 if (SWIG_arg_fail(1)) SWIG_fail;
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 result = (int)((wxDC const *)arg1)->MinY();
17733
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 {
17738 resultobj = SWIG_From_int(static_cast<int >(result));
17739 }
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj = NULL;
17748 wxDC *arg1 = (wxDC *) 0 ;
17749 int result;
17750 PyObject * obj0 = 0 ;
17751 char *kwnames[] = {
17752 (char *) "self", NULL
17753 };
17754
17755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
17756 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17757 if (SWIG_arg_fail(1)) SWIG_fail;
17758 {
17759 PyThreadState* __tstate = wxPyBeginAllowThreads();
17760 result = (int)((wxDC const *)arg1)->MaxY();
17761
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 {
17766 resultobj = SWIG_From_int(static_cast<int >(result));
17767 }
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = NULL;
17776 wxDC *arg1 = (wxDC *) 0 ;
17777 int *arg2 = (int *) 0 ;
17778 int *arg3 = (int *) 0 ;
17779 int *arg4 = (int *) 0 ;
17780 int *arg5 = (int *) 0 ;
17781 int temp2 ;
17782 int res2 = 0 ;
17783 int temp3 ;
17784 int res3 = 0 ;
17785 int temp4 ;
17786 int res4 = 0 ;
17787 int temp5 ;
17788 int res5 = 0 ;
17789 PyObject * obj0 = 0 ;
17790 char *kwnames[] = {
17791 (char *) "self", NULL
17792 };
17793
17794 arg2 = &temp2; res2 = SWIG_NEWOBJ;
17795 arg3 = &temp3; res3 = SWIG_NEWOBJ;
17796 arg4 = &temp4; res4 = SWIG_NEWOBJ;
17797 arg5 = &temp5; res5 = SWIG_NEWOBJ;
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
17799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17800 if (SWIG_arg_fail(1)) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 Py_INCREF(Py_None); resultobj = Py_None;
17809 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
17810 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
17811 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
17812 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
17813 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
17814 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
17815 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
17816 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
17817 return resultobj;
17818 fail:
17819 return NULL;
17820 }
17821
17822
17823 static PyObject *_wrap_DC_GetHDC(PyObject *, PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj = NULL;
17825 wxDC *arg1 = (wxDC *) 0 ;
17826 long result;
17827 PyObject * obj0 = 0 ;
17828 char *kwnames[] = {
17829 (char *) "self", NULL
17830 };
17831
17832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
17833 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17834 if (SWIG_arg_fail(1)) SWIG_fail;
17835 {
17836 PyThreadState* __tstate = wxPyBeginAllowThreads();
17837 result = (long)(arg1)->GetHDC();
17838
17839 wxPyEndAllowThreads(__tstate);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 }
17842 {
17843 resultobj = SWIG_From_long(static_cast<long >(result));
17844 }
17845 return resultobj;
17846 fail:
17847 return NULL;
17848 }
17849
17850
17851 static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) {
17852 PyObject *resultobj = NULL;
17853 wxDC *arg1 = (wxDC *) 0 ;
17854 PyObject *arg2 = (PyObject *) 0 ;
17855 PyObject *arg3 = (PyObject *) 0 ;
17856 PyObject *arg4 = (PyObject *) 0 ;
17857 PyObject *result;
17858 PyObject * obj0 = 0 ;
17859 PyObject * obj1 = 0 ;
17860 PyObject * obj2 = 0 ;
17861 PyObject * obj3 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17867 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17868 if (SWIG_arg_fail(1)) SWIG_fail;
17869 arg2 = obj1;
17870 arg3 = obj2;
17871 arg4 = obj3;
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = result;
17880 return resultobj;
17881 fail:
17882 return NULL;
17883 }
17884
17885
17886 static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj = NULL;
17888 wxDC *arg1 = (wxDC *) 0 ;
17889 PyObject *arg2 = (PyObject *) 0 ;
17890 PyObject *arg3 = (PyObject *) 0 ;
17891 PyObject *arg4 = (PyObject *) 0 ;
17892 PyObject *result;
17893 PyObject * obj0 = 0 ;
17894 PyObject * obj1 = 0 ;
17895 PyObject * obj2 = 0 ;
17896 PyObject * obj3 = 0 ;
17897 char *kwnames[] = {
17898 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17899 };
17900
17901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17902 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17903 if (SWIG_arg_fail(1)) SWIG_fail;
17904 arg2 = obj1;
17905 arg3 = obj2;
17906 arg4 = obj3;
17907 {
17908 PyThreadState* __tstate = wxPyBeginAllowThreads();
17909 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
17910
17911 wxPyEndAllowThreads(__tstate);
17912 if (PyErr_Occurred()) SWIG_fail;
17913 }
17914 resultobj = result;
17915 return resultobj;
17916 fail:
17917 return NULL;
17918 }
17919
17920
17921 static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) {
17922 PyObject *resultobj = NULL;
17923 wxDC *arg1 = (wxDC *) 0 ;
17924 PyObject *arg2 = (PyObject *) 0 ;
17925 PyObject *arg3 = (PyObject *) 0 ;
17926 PyObject *arg4 = (PyObject *) 0 ;
17927 PyObject *result;
17928 PyObject * obj0 = 0 ;
17929 PyObject * obj1 = 0 ;
17930 PyObject * obj2 = 0 ;
17931 PyObject * obj3 = 0 ;
17932 char *kwnames[] = {
17933 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17934 };
17935
17936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17937 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17938 if (SWIG_arg_fail(1)) SWIG_fail;
17939 arg2 = obj1;
17940 arg3 = obj2;
17941 arg4 = obj3;
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
17945
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 resultobj = result;
17950 return resultobj;
17951 fail:
17952 return NULL;
17953 }
17954
17955
17956 static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) {
17957 PyObject *resultobj = NULL;
17958 wxDC *arg1 = (wxDC *) 0 ;
17959 PyObject *arg2 = (PyObject *) 0 ;
17960 PyObject *arg3 = (PyObject *) 0 ;
17961 PyObject *arg4 = (PyObject *) 0 ;
17962 PyObject *result;
17963 PyObject * obj0 = 0 ;
17964 PyObject * obj1 = 0 ;
17965 PyObject * obj2 = 0 ;
17966 PyObject * obj3 = 0 ;
17967 char *kwnames[] = {
17968 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
17969 };
17970
17971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17972 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
17973 if (SWIG_arg_fail(1)) SWIG_fail;
17974 arg2 = obj1;
17975 arg3 = obj2;
17976 arg4 = obj3;
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 resultobj = result;
17985 return resultobj;
17986 fail:
17987 return NULL;
17988 }
17989
17990
17991 static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj = NULL;
17993 wxDC *arg1 = (wxDC *) 0 ;
17994 PyObject *arg2 = (PyObject *) 0 ;
17995 PyObject *arg3 = (PyObject *) 0 ;
17996 PyObject *arg4 = (PyObject *) 0 ;
17997 PyObject *result;
17998 PyObject * obj0 = 0 ;
17999 PyObject * obj1 = 0 ;
18000 PyObject * obj2 = 0 ;
18001 PyObject * obj3 = 0 ;
18002 char *kwnames[] = {
18003 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
18004 };
18005
18006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18007 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18008 if (SWIG_arg_fail(1)) SWIG_fail;
18009 arg2 = obj1;
18010 arg3 = obj2;
18011 arg4 = obj3;
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
18015
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 resultobj = result;
18020 return resultobj;
18021 fail:
18022 return NULL;
18023 }
18024
18025
18026 static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj = NULL;
18028 wxDC *arg1 = (wxDC *) 0 ;
18029 PyObject *arg2 = (PyObject *) 0 ;
18030 PyObject *arg3 = (PyObject *) 0 ;
18031 PyObject *arg4 = (PyObject *) 0 ;
18032 PyObject *arg5 = (PyObject *) 0 ;
18033 PyObject *result;
18034 PyObject * obj0 = 0 ;
18035 PyObject * obj1 = 0 ;
18036 PyObject * obj2 = 0 ;
18037 PyObject * obj3 = 0 ;
18038 PyObject * obj4 = 0 ;
18039 char *kwnames[] = {
18040 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
18041 };
18042
18043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18044 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18045 if (SWIG_arg_fail(1)) SWIG_fail;
18046 arg2 = obj1;
18047 arg3 = obj2;
18048 arg4 = obj3;
18049 arg5 = obj4;
18050 {
18051 PyThreadState* __tstate = wxPyBeginAllowThreads();
18052 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
18053
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 resultobj = result;
18058 return resultobj;
18059 fail:
18060 return NULL;
18061 }
18062
18063
18064 static PyObject * DC_swigregister(PyObject *, PyObject *args) {
18065 PyObject *obj;
18066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18067 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
18068 Py_INCREF(obj);
18069 return Py_BuildValue((char *)"");
18070 }
18071 static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) {
18072 PyObject *resultobj = NULL;
18073 wxMemoryDC *result;
18074 char *kwnames[] = {
18075 NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
18079 {
18080 if (!wxPyCheckForApp()) SWIG_fail;
18081 PyThreadState* __tstate = wxPyBeginAllowThreads();
18082 result = (wxMemoryDC *)new wxMemoryDC();
18083
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
18088 return resultobj;
18089 fail:
18090 return NULL;
18091 }
18092
18093
18094 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) {
18095 PyObject *resultobj = NULL;
18096 wxDC *arg1 = (wxDC *) 0 ;
18097 wxMemoryDC *result;
18098 PyObject * obj0 = 0 ;
18099 char *kwnames[] = {
18100 (char *) "oldDC", NULL
18101 };
18102
18103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
18104 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18105 if (SWIG_arg_fail(1)) SWIG_fail;
18106 {
18107 if (!wxPyCheckForApp()) SWIG_fail;
18108 PyThreadState* __tstate = wxPyBeginAllowThreads();
18109 result = (wxMemoryDC *)new wxMemoryDC(arg1);
18110
18111 wxPyEndAllowThreads(__tstate);
18112 if (PyErr_Occurred()) SWIG_fail;
18113 }
18114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
18115 return resultobj;
18116 fail:
18117 return NULL;
18118 }
18119
18120
18121 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) {
18122 PyObject *resultobj = NULL;
18123 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
18124 wxBitmap *arg2 = 0 ;
18125 PyObject * obj0 = 0 ;
18126 PyObject * obj1 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self",(char *) "bitmap", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
18132 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0);
18133 if (SWIG_arg_fail(1)) SWIG_fail;
18134 {
18135 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18136 if (SWIG_arg_fail(2)) SWIG_fail;
18137 if (arg2 == NULL) {
18138 SWIG_null_ref("wxBitmap");
18139 }
18140 if (SWIG_arg_fail(2)) SWIG_fail;
18141 }
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->SelectObject((wxBitmap const &)*arg2);
18145
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 Py_INCREF(Py_None); resultobj = Py_None;
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
18157 PyObject *obj;
18158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18159 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
18160 Py_INCREF(obj);
18161 return Py_BuildValue((char *)"");
18162 }
18163 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
18164 PyObject *resultobj = NULL;
18165 wxDC *arg1 = (wxDC *) 0 ;
18166 wxBitmap const &arg2_defvalue = wxNullBitmap ;
18167 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
18168 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18169 wxBufferedDC *result;
18170 PyObject * obj0 = 0 ;
18171 PyObject * obj1 = 0 ;
18172 PyObject * obj2 = 0 ;
18173
18174 if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
18175 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18176 if (SWIG_arg_fail(1)) SWIG_fail;
18177 if (obj1) {
18178 {
18179 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18180 if (SWIG_arg_fail(2)) SWIG_fail;
18181 if (arg2 == NULL) {
18182 SWIG_null_ref("wxBitmap");
18183 }
18184 if (SWIG_arg_fail(2)) SWIG_fail;
18185 }
18186 }
18187 if (obj2) {
18188 {
18189 arg3 = static_cast<int >(SWIG_As_int(obj2));
18190 if (SWIG_arg_fail(3)) SWIG_fail;
18191 }
18192 }
18193 {
18194 if (!wxPyCheckForApp()) SWIG_fail;
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
18197
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
18209 PyObject *resultobj = NULL;
18210 wxDC *arg1 = (wxDC *) 0 ;
18211 wxSize *arg2 = 0 ;
18212 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18213 wxBufferedDC *result;
18214 wxSize temp2 ;
18215 PyObject * obj0 = 0 ;
18216 PyObject * obj1 = 0 ;
18217 PyObject * obj2 = 0 ;
18218
18219 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
18220 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18221 if (SWIG_arg_fail(1)) SWIG_fail;
18222 {
18223 arg2 = &temp2;
18224 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18225 }
18226 if (obj2) {
18227 {
18228 arg3 = static_cast<int >(SWIG_As_int(obj2));
18229 if (SWIG_arg_fail(3)) SWIG_fail;
18230 }
18231 }
18232 {
18233 if (!wxPyCheckForApp()) SWIG_fail;
18234 PyThreadState* __tstate = wxPyBeginAllowThreads();
18235 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
18236
18237 wxPyEndAllowThreads(__tstate);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 }
18240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
18241 return resultobj;
18242 fail:
18243 return NULL;
18244 }
18245
18246
18247 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
18248 int argc;
18249 PyObject *argv[4];
18250 int ii;
18251
18252 argc = PyObject_Length(args);
18253 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
18254 argv[ii] = PyTuple_GetItem(args,ii);
18255 }
18256 if ((argc >= 1) && (argc <= 3)) {
18257 int _v;
18258 {
18259 void *ptr;
18260 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18261 _v = 0;
18262 PyErr_Clear();
18263 } else {
18264 _v = 1;
18265 }
18266 }
18267 if (_v) {
18268 if (argc <= 1) {
18269 return _wrap_new_BufferedDC__SWIG_0(self,args);
18270 }
18271 {
18272 void *ptr = 0;
18273 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
18274 _v = 0;
18275 PyErr_Clear();
18276 } else {
18277 _v = (ptr != 0);
18278 }
18279 }
18280 if (_v) {
18281 if (argc <= 2) {
18282 return _wrap_new_BufferedDC__SWIG_0(self,args);
18283 }
18284 _v = SWIG_Check_int(argv[2]);
18285 if (_v) {
18286 return _wrap_new_BufferedDC__SWIG_0(self,args);
18287 }
18288 }
18289 }
18290 }
18291 if ((argc >= 2) && (argc <= 3)) {
18292 int _v;
18293 {
18294 void *ptr;
18295 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
18296 _v = 0;
18297 PyErr_Clear();
18298 } else {
18299 _v = 1;
18300 }
18301 }
18302 if (_v) {
18303 {
18304 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
18305 }
18306 if (_v) {
18307 if (argc <= 2) {
18308 return _wrap_new_BufferedDC__SWIG_1(self,args);
18309 }
18310 _v = SWIG_Check_int(argv[2]);
18311 if (_v) {
18312 return _wrap_new_BufferedDC__SWIG_1(self,args);
18313 }
18314 }
18315 }
18316 }
18317
18318 PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
18319 return NULL;
18320 }
18321
18322
18323 static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) {
18324 PyObject *resultobj = NULL;
18325 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
18326 PyObject * obj0 = 0 ;
18327 char *kwnames[] = {
18328 (char *) "self", NULL
18329 };
18330
18331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
18332 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18333 if (SWIG_arg_fail(1)) SWIG_fail;
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 delete arg1;
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 Py_INCREF(Py_None); resultobj = Py_None;
18342 return resultobj;
18343 fail:
18344 return NULL;
18345 }
18346
18347
18348 static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj = NULL;
18350 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
18351 PyObject * obj0 = 0 ;
18352 char *kwnames[] = {
18353 (char *) "self", NULL
18354 };
18355
18356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
18357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_EXCEPTION | 0);
18358 if (SWIG_arg_fail(1)) SWIG_fail;
18359 {
18360 PyThreadState* __tstate = wxPyBeginAllowThreads();
18361 (arg1)->UnMask();
18362
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 Py_INCREF(Py_None); resultobj = Py_None;
18367 return resultobj;
18368 fail:
18369 return NULL;
18370 }
18371
18372
18373 static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) {
18374 PyObject *obj;
18375 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18376 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
18377 Py_INCREF(obj);
18378 return Py_BuildValue((char *)"");
18379 }
18380 static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
18381 PyObject *resultobj = NULL;
18382 wxWindow *arg1 = (wxWindow *) 0 ;
18383 wxBitmap const &arg2_defvalue = wxNullBitmap ;
18384 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
18385 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
18386 wxBufferedPaintDC *result;
18387 PyObject * obj0 = 0 ;
18388 PyObject * obj1 = 0 ;
18389 PyObject * obj2 = 0 ;
18390 char *kwnames[] = {
18391 (char *) "window",(char *) "buffer",(char *) "style", NULL
18392 };
18393
18394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
18395 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18396 if (SWIG_arg_fail(1)) SWIG_fail;
18397 if (obj1) {
18398 {
18399 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
18400 if (SWIG_arg_fail(2)) SWIG_fail;
18401 if (arg2 == NULL) {
18402 SWIG_null_ref("wxBitmap");
18403 }
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 {
18414 if (!wxPyCheckForApp()) SWIG_fail;
18415 PyThreadState* __tstate = wxPyBeginAllowThreads();
18416 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
18417
18418 wxPyEndAllowThreads(__tstate);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
18422 return resultobj;
18423 fail:
18424 return NULL;
18425 }
18426
18427
18428 static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) {
18429 PyObject *obj;
18430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18431 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
18432 Py_INCREF(obj);
18433 return Py_BuildValue((char *)"");
18434 }
18435 static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj = NULL;
18437 wxScreenDC *result;
18438 char *kwnames[] = {
18439 NULL
18440 };
18441
18442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
18443 {
18444 if (!wxPyCheckForApp()) SWIG_fail;
18445 PyThreadState* __tstate = wxPyBeginAllowThreads();
18446 result = (wxScreenDC *)new wxScreenDC();
18447
18448 wxPyEndAllowThreads(__tstate);
18449 if (PyErr_Occurred()) SWIG_fail;
18450 }
18451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
18452 return resultobj;
18453 fail:
18454 return NULL;
18455 }
18456
18457
18458 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) {
18459 PyObject *resultobj = NULL;
18460 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18461 wxWindow *arg2 = (wxWindow *) 0 ;
18462 bool result;
18463 PyObject * obj0 = 0 ;
18464 PyObject * obj1 = 0 ;
18465 char *kwnames[] = {
18466 (char *) "self",(char *) "window", NULL
18467 };
18468
18469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
18470 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18471 if (SWIG_arg_fail(1)) SWIG_fail;
18472 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18473 if (SWIG_arg_fail(2)) SWIG_fail;
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 result = (bool)(arg1)->StartDrawingOnTop(arg2);
18477
18478 wxPyEndAllowThreads(__tstate);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 {
18482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18483 }
18484 return resultobj;
18485 fail:
18486 return NULL;
18487 }
18488
18489
18490 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
18491 PyObject *resultobj = NULL;
18492 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18493 wxRect *arg2 = (wxRect *) NULL ;
18494 bool result;
18495 PyObject * obj0 = 0 ;
18496 PyObject * obj1 = 0 ;
18497 char *kwnames[] = {
18498 (char *) "self",(char *) "rect", NULL
18499 };
18500
18501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
18502 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18503 if (SWIG_arg_fail(1)) SWIG_fail;
18504 if (obj1) {
18505 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0);
18506 if (SWIG_arg_fail(2)) SWIG_fail;
18507 }
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 result = (bool)(arg1)->StartDrawingOnTop(arg2);
18511
18512 wxPyEndAllowThreads(__tstate);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 }
18515 {
18516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18517 }
18518 return resultobj;
18519 fail:
18520 return NULL;
18521 }
18522
18523
18524 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj = NULL;
18526 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
18527 bool result;
18528 PyObject * obj0 = 0 ;
18529 char *kwnames[] = {
18530 (char *) "self", NULL
18531 };
18532
18533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
18534 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScreenDC, SWIG_POINTER_EXCEPTION | 0);
18535 if (SWIG_arg_fail(1)) SWIG_fail;
18536 {
18537 PyThreadState* __tstate = wxPyBeginAllowThreads();
18538 result = (bool)(arg1)->EndDrawingOnTop();
18539
18540 wxPyEndAllowThreads(__tstate);
18541 if (PyErr_Occurred()) SWIG_fail;
18542 }
18543 {
18544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18545 }
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) {
18553 PyObject *obj;
18554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18555 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
18556 Py_INCREF(obj);
18557 return Py_BuildValue((char *)"");
18558 }
18559 static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) {
18560 PyObject *resultobj = NULL;
18561 wxWindow *arg1 = (wxWindow *) 0 ;
18562 wxClientDC *result;
18563 PyObject * obj0 = 0 ;
18564 char *kwnames[] = {
18565 (char *) "win", NULL
18566 };
18567
18568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
18569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18570 if (SWIG_arg_fail(1)) SWIG_fail;
18571 {
18572 if (!wxPyCheckForApp()) SWIG_fail;
18573 PyThreadState* __tstate = wxPyBeginAllowThreads();
18574 result = (wxClientDC *)new wxClientDC(arg1);
18575
18576 wxPyEndAllowThreads(__tstate);
18577 if (PyErr_Occurred()) SWIG_fail;
18578 }
18579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
18580 return resultobj;
18581 fail:
18582 return NULL;
18583 }
18584
18585
18586 static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) {
18587 PyObject *obj;
18588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18589 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
18590 Py_INCREF(obj);
18591 return Py_BuildValue((char *)"");
18592 }
18593 static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) {
18594 PyObject *resultobj = NULL;
18595 wxWindow *arg1 = (wxWindow *) 0 ;
18596 wxPaintDC *result;
18597 PyObject * obj0 = 0 ;
18598 char *kwnames[] = {
18599 (char *) "win", NULL
18600 };
18601
18602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
18603 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18604 if (SWIG_arg_fail(1)) SWIG_fail;
18605 {
18606 if (!wxPyCheckForApp()) SWIG_fail;
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 result = (wxPaintDC *)new wxPaintDC(arg1);
18609
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
18614 return resultobj;
18615 fail:
18616 return NULL;
18617 }
18618
18619
18620 static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) {
18621 PyObject *obj;
18622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18623 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
18624 Py_INCREF(obj);
18625 return Py_BuildValue((char *)"");
18626 }
18627 static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj = NULL;
18629 wxWindow *arg1 = (wxWindow *) 0 ;
18630 wxWindowDC *result;
18631 PyObject * obj0 = 0 ;
18632 char *kwnames[] = {
18633 (char *) "win", NULL
18634 };
18635
18636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
18637 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
18638 if (SWIG_arg_fail(1)) SWIG_fail;
18639 {
18640 if (!wxPyCheckForApp()) SWIG_fail;
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 result = (wxWindowDC *)new wxWindowDC(arg1);
18643
18644 wxPyEndAllowThreads(__tstate);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
18648 return resultobj;
18649 fail:
18650 return NULL;
18651 }
18652
18653
18654 static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) {
18655 PyObject *obj;
18656 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18657 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
18658 Py_INCREF(obj);
18659 return Py_BuildValue((char *)"");
18660 }
18661 static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = NULL;
18663 wxDC *arg1 = 0 ;
18664 bool arg2 ;
18665 wxMirrorDC *result;
18666 PyObject * obj0 = 0 ;
18667 PyObject * obj1 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "dc",(char *) "mirror", NULL
18670 };
18671
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
18673 {
18674 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
18675 if (SWIG_arg_fail(1)) SWIG_fail;
18676 if (arg1 == NULL) {
18677 SWIG_null_ref("wxDC");
18678 }
18679 if (SWIG_arg_fail(1)) SWIG_fail;
18680 }
18681 {
18682 arg2 = static_cast<bool >(SWIG_As_bool(obj1));
18683 if (SWIG_arg_fail(2)) SWIG_fail;
18684 }
18685 {
18686 if (!wxPyCheckForApp()) SWIG_fail;
18687 PyThreadState* __tstate = wxPyBeginAllowThreads();
18688 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
18689
18690 wxPyEndAllowThreads(__tstate);
18691 if (PyErr_Occurred()) SWIG_fail;
18692 }
18693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
18694 return resultobj;
18695 fail:
18696 return NULL;
18697 }
18698
18699
18700 static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) {
18701 PyObject *obj;
18702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18703 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
18704 Py_INCREF(obj);
18705 return Py_BuildValue((char *)"");
18706 }
18707 static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj = NULL;
18709 wxPrintData *arg1 = 0 ;
18710 wxPostScriptDC *result;
18711 PyObject * obj0 = 0 ;
18712 char *kwnames[] = {
18713 (char *) "printData", NULL
18714 };
18715
18716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
18717 {
18718 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18719 if (SWIG_arg_fail(1)) SWIG_fail;
18720 if (arg1 == NULL) {
18721 SWIG_null_ref("wxPrintData");
18722 }
18723 if (SWIG_arg_fail(1)) SWIG_fail;
18724 }
18725 {
18726 if (!wxPyCheckForApp()) SWIG_fail;
18727 PyThreadState* __tstate = wxPyBeginAllowThreads();
18728 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
18729
18730 wxPyEndAllowThreads(__tstate);
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
18734 return resultobj;
18735 fail:
18736 return NULL;
18737 }
18738
18739
18740 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18741 PyObject *resultobj = NULL;
18742 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18743 wxPrintData *result;
18744 PyObject * obj0 = 0 ;
18745 char *kwnames[] = {
18746 (char *) "self", NULL
18747 };
18748
18749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
18750 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18751 if (SWIG_arg_fail(1)) SWIG_fail;
18752 {
18753 PyThreadState* __tstate = wxPyBeginAllowThreads();
18754 {
18755 wxPrintData &_result_ref = (arg1)->GetPrintData();
18756 result = (wxPrintData *) &_result_ref;
18757 }
18758
18759 wxPyEndAllowThreads(__tstate);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 }
18762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
18763 return resultobj;
18764 fail:
18765 return NULL;
18766 }
18767
18768
18769 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) {
18770 PyObject *resultobj = NULL;
18771 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
18772 wxPrintData *arg2 = 0 ;
18773 PyObject * obj0 = 0 ;
18774 PyObject * obj1 = 0 ;
18775 char *kwnames[] = {
18776 (char *) "self",(char *) "data", NULL
18777 };
18778
18779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
18780 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_EXCEPTION | 0);
18781 if (SWIG_arg_fail(1)) SWIG_fail;
18782 {
18783 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
18784 if (SWIG_arg_fail(2)) SWIG_fail;
18785 if (arg2 == NULL) {
18786 SWIG_null_ref("wxPrintData");
18787 }
18788 if (SWIG_arg_fail(2)) SWIG_fail;
18789 }
18790 {
18791 PyThreadState* __tstate = wxPyBeginAllowThreads();
18792 (arg1)->SetPrintData((wxPrintData const &)*arg2);
18793
18794 wxPyEndAllowThreads(__tstate);
18795 if (PyErr_Occurred()) SWIG_fail;
18796 }
18797 Py_INCREF(Py_None); resultobj = Py_None;
18798 return resultobj;
18799 fail:
18800 return NULL;
18801 }
18802
18803
18804 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj = NULL;
18806 int arg1 ;
18807 PyObject * obj0 = 0 ;
18808 char *kwnames[] = {
18809 (char *) "ppi", NULL
18810 };
18811
18812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
18813 {
18814 arg1 = static_cast<int >(SWIG_As_int(obj0));
18815 if (SWIG_arg_fail(1)) SWIG_fail;
18816 }
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 wxPostScriptDC::SetResolution(arg1);
18820
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 Py_INCREF(Py_None); resultobj = Py_None;
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = NULL;
18833 int result;
18834 char *kwnames[] = {
18835 NULL
18836 };
18837
18838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
18839 {
18840 PyThreadState* __tstate = wxPyBeginAllowThreads();
18841 result = (int)wxPostScriptDC::GetResolution();
18842
18843 wxPyEndAllowThreads(__tstate);
18844 if (PyErr_Occurred()) SWIG_fail;
18845 }
18846 {
18847 resultobj = SWIG_From_int(static_cast<int >(result));
18848 }
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) {
18856 PyObject *obj;
18857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18858 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
18859 Py_INCREF(obj);
18860 return Py_BuildValue((char *)"");
18861 }
18862 static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18863 PyObject *resultobj = NULL;
18864 wxString const &arg1_defvalue = wxPyEmptyString ;
18865 wxString *arg1 = (wxString *) &arg1_defvalue ;
18866 wxMetaFile *result;
18867 bool temp1 = false ;
18868 PyObject * obj0 = 0 ;
18869 char *kwnames[] = {
18870 (char *) "filename", NULL
18871 };
18872
18873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
18874 if (obj0) {
18875 {
18876 arg1 = wxString_in_helper(obj0);
18877 if (arg1 == NULL) SWIG_fail;
18878 temp1 = true;
18879 }
18880 }
18881 {
18882 if (!wxPyCheckForApp()) SWIG_fail;
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
18885
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
18890 {
18891 if (temp1)
18892 delete arg1;
18893 }
18894 return resultobj;
18895 fail:
18896 {
18897 if (temp1)
18898 delete arg1;
18899 }
18900 return NULL;
18901 }
18902
18903
18904 static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = NULL;
18906 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18907 PyObject * obj0 = 0 ;
18908 char *kwnames[] = {
18909 (char *) "self", NULL
18910 };
18911
18912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
18913 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18914 if (SWIG_arg_fail(1)) SWIG_fail;
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 delete arg1;
18918
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 Py_INCREF(Py_None); resultobj = Py_None;
18923 return resultobj;
18924 fail:
18925 return NULL;
18926 }
18927
18928
18929 static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
18930 PyObject *resultobj = NULL;
18931 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18932 bool result;
18933 PyObject * obj0 = 0 ;
18934 char *kwnames[] = {
18935 (char *) "self", NULL
18936 };
18937
18938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
18939 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18940 if (SWIG_arg_fail(1)) SWIG_fail;
18941 {
18942 PyThreadState* __tstate = wxPyBeginAllowThreads();
18943 result = (bool)(arg1)->Ok();
18944
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 {
18949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18950 }
18951 return resultobj;
18952 fail:
18953 return NULL;
18954 }
18955
18956
18957 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) {
18958 PyObject *resultobj = NULL;
18959 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
18960 int arg2 = (int) 0 ;
18961 int arg3 = (int) 0 ;
18962 bool result;
18963 PyObject * obj0 = 0 ;
18964 PyObject * obj1 = 0 ;
18965 PyObject * obj2 = 0 ;
18966 char *kwnames[] = {
18967 (char *) "self",(char *) "width",(char *) "height", NULL
18968 };
18969
18970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
18971 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
18972 if (SWIG_arg_fail(1)) SWIG_fail;
18973 if (obj1) {
18974 {
18975 arg2 = static_cast<int >(SWIG_As_int(obj1));
18976 if (SWIG_arg_fail(2)) SWIG_fail;
18977 }
18978 }
18979 if (obj2) {
18980 {
18981 arg3 = static_cast<int >(SWIG_As_int(obj2));
18982 if (SWIG_arg_fail(3)) SWIG_fail;
18983 }
18984 }
18985 {
18986 PyThreadState* __tstate = wxPyBeginAllowThreads();
18987 result = (bool)(arg1)->SetClipboard(arg2,arg3);
18988
18989 wxPyEndAllowThreads(__tstate);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 {
18993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18994 }
18995 return resultobj;
18996 fail:
18997 return NULL;
18998 }
18999
19000
19001 static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19002 PyObject *resultobj = NULL;
19003 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19004 wxSize result;
19005 PyObject * obj0 = 0 ;
19006 char *kwnames[] = {
19007 (char *) "self", NULL
19008 };
19009
19010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
19011 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19012 if (SWIG_arg_fail(1)) SWIG_fail;
19013 {
19014 PyThreadState* __tstate = wxPyBeginAllowThreads();
19015 result = (arg1)->GetSize();
19016
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 {
19021 wxSize * resultptr;
19022 resultptr = new wxSize(static_cast<wxSize & >(result));
19023 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
19024 }
19025 return resultobj;
19026 fail:
19027 return NULL;
19028 }
19029
19030
19031 static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19032 PyObject *resultobj = NULL;
19033 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19034 int result;
19035 PyObject * obj0 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
19041 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19042 if (SWIG_arg_fail(1)) SWIG_fail;
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (int)(arg1)->GetWidth();
19046
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 {
19051 resultobj = SWIG_From_int(static_cast<int >(result));
19052 }
19053 return resultobj;
19054 fail:
19055 return NULL;
19056 }
19057
19058
19059 static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
19060 PyObject *resultobj = NULL;
19061 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19062 int result;
19063 PyObject * obj0 = 0 ;
19064 char *kwnames[] = {
19065 (char *) "self", NULL
19066 };
19067
19068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
19069 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19070 if (SWIG_arg_fail(1)) SWIG_fail;
19071 {
19072 PyThreadState* __tstate = wxPyBeginAllowThreads();
19073 result = (int)(arg1)->GetHeight();
19074
19075 wxPyEndAllowThreads(__tstate);
19076 if (PyErr_Occurred()) SWIG_fail;
19077 }
19078 {
19079 resultobj = SWIG_From_int(static_cast<int >(result));
19080 }
19081 return resultobj;
19082 fail:
19083 return NULL;
19084 }
19085
19086
19087 static PyObject *_wrap_MetaFile_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) {
19088 PyObject *resultobj = NULL;
19089 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
19090 wxString *result;
19091 PyObject * obj0 = 0 ;
19092 char *kwnames[] = {
19093 (char *) "self", NULL
19094 };
19095
19096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
19097 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFile, SWIG_POINTER_EXCEPTION | 0);
19098 if (SWIG_arg_fail(1)) SWIG_fail;
19099 {
19100 PyThreadState* __tstate = wxPyBeginAllowThreads();
19101 {
19102 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
19103 result = (wxString *) &_result_ref;
19104 }
19105
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 {
19110 #if wxUSE_UNICODE
19111 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19112 #else
19113 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19114 #endif
19115 }
19116 return resultobj;
19117 fail:
19118 return NULL;
19119 }
19120
19121
19122 static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) {
19123 PyObject *obj;
19124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19125 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
19126 Py_INCREF(obj);
19127 return Py_BuildValue((char *)"");
19128 }
19129 static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) {
19130 PyObject *resultobj = NULL;
19131 wxString const &arg1_defvalue = wxPyEmptyString ;
19132 wxString *arg1 = (wxString *) &arg1_defvalue ;
19133 int arg2 = (int) 0 ;
19134 int arg3 = (int) 0 ;
19135 wxString const &arg4_defvalue = wxPyEmptyString ;
19136 wxString *arg4 = (wxString *) &arg4_defvalue ;
19137 wxMetaFileDC *result;
19138 bool temp1 = false ;
19139 bool temp4 = false ;
19140 PyObject * obj0 = 0 ;
19141 PyObject * obj1 = 0 ;
19142 PyObject * obj2 = 0 ;
19143 PyObject * obj3 = 0 ;
19144 char *kwnames[] = {
19145 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
19146 };
19147
19148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19149 if (obj0) {
19150 {
19151 arg1 = wxString_in_helper(obj0);
19152 if (arg1 == NULL) SWIG_fail;
19153 temp1 = true;
19154 }
19155 }
19156 if (obj1) {
19157 {
19158 arg2 = static_cast<int >(SWIG_As_int(obj1));
19159 if (SWIG_arg_fail(2)) SWIG_fail;
19160 }
19161 }
19162 if (obj2) {
19163 {
19164 arg3 = static_cast<int >(SWIG_As_int(obj2));
19165 if (SWIG_arg_fail(3)) SWIG_fail;
19166 }
19167 }
19168 if (obj3) {
19169 {
19170 arg4 = wxString_in_helper(obj3);
19171 if (arg4 == NULL) SWIG_fail;
19172 temp4 = true;
19173 }
19174 }
19175 {
19176 if (!wxPyCheckForApp()) SWIG_fail;
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
19179
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
19184 {
19185 if (temp1)
19186 delete arg1;
19187 }
19188 {
19189 if (temp4)
19190 delete arg4;
19191 }
19192 return resultobj;
19193 fail:
19194 {
19195 if (temp1)
19196 delete arg1;
19197 }
19198 {
19199 if (temp4)
19200 delete arg4;
19201 }
19202 return NULL;
19203 }
19204
19205
19206 static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) {
19207 PyObject *resultobj = NULL;
19208 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
19209 wxMetaFile *result;
19210 PyObject * obj0 = 0 ;
19211 char *kwnames[] = {
19212 (char *) "self", NULL
19213 };
19214
19215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
19216 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_EXCEPTION | 0);
19217 if (SWIG_arg_fail(1)) SWIG_fail;
19218 {
19219 PyThreadState* __tstate = wxPyBeginAllowThreads();
19220 result = (wxMetaFile *)(arg1)->Close();
19221
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
19226 return resultobj;
19227 fail:
19228 return NULL;
19229 }
19230
19231
19232 static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) {
19233 PyObject *obj;
19234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19235 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
19236 Py_INCREF(obj);
19237 return Py_BuildValue((char *)"");
19238 }
19239 static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) {
19240 PyObject *resultobj = NULL;
19241 wxPrintData *arg1 = 0 ;
19242 wxPrinterDC *result;
19243 PyObject * obj0 = 0 ;
19244 char *kwnames[] = {
19245 (char *) "printData", NULL
19246 };
19247
19248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
19249 {
19250 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPrintData, SWIG_POINTER_EXCEPTION | 0);
19251 if (SWIG_arg_fail(1)) SWIG_fail;
19252 if (arg1 == NULL) {
19253 SWIG_null_ref("wxPrintData");
19254 }
19255 if (SWIG_arg_fail(1)) SWIG_fail;
19256 }
19257 {
19258 if (!wxPyCheckForApp()) SWIG_fail;
19259 PyThreadState* __tstate = wxPyBeginAllowThreads();
19260 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
19261
19262 wxPyEndAllowThreads(__tstate);
19263 if (PyErr_Occurred()) SWIG_fail;
19264 }
19265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
19266 return resultobj;
19267 fail:
19268 return NULL;
19269 }
19270
19271
19272 static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) {
19273 PyObject *obj;
19274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19275 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
19276 Py_INCREF(obj);
19277 return Py_BuildValue((char *)"");
19278 }
19279 static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19280 PyObject *resultobj = NULL;
19281 int arg1 ;
19282 int arg2 ;
19283 int arg3 = (int) true ;
19284 int arg4 = (int) 1 ;
19285 wxImageList *result;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 PyObject * obj2 = 0 ;
19289 PyObject * obj3 = 0 ;
19290 char *kwnames[] = {
19291 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
19292 };
19293
19294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19295 {
19296 arg1 = static_cast<int >(SWIG_As_int(obj0));
19297 if (SWIG_arg_fail(1)) SWIG_fail;
19298 }
19299 {
19300 arg2 = static_cast<int >(SWIG_As_int(obj1));
19301 if (SWIG_arg_fail(2)) SWIG_fail;
19302 }
19303 if (obj2) {
19304 {
19305 arg3 = static_cast<int >(SWIG_As_int(obj2));
19306 if (SWIG_arg_fail(3)) SWIG_fail;
19307 }
19308 }
19309 if (obj3) {
19310 {
19311 arg4 = static_cast<int >(SWIG_As_int(obj3));
19312 if (SWIG_arg_fail(4)) SWIG_fail;
19313 }
19314 }
19315 {
19316 if (!wxPyCheckForApp()) SWIG_fail;
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
19319
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 {
19324 resultobj = wxPyMake_wxObject(result, (bool)1);
19325 }
19326 return resultobj;
19327 fail:
19328 return NULL;
19329 }
19330
19331
19332 static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) {
19333 PyObject *resultobj = NULL;
19334 wxImageList *arg1 = (wxImageList *) 0 ;
19335 PyObject * obj0 = 0 ;
19336 char *kwnames[] = {
19337 (char *) "self", NULL
19338 };
19339
19340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
19341 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19342 if (SWIG_arg_fail(1)) SWIG_fail;
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 delete arg1;
19346
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 Py_INCREF(Py_None); resultobj = Py_None;
19351 return resultobj;
19352 fail:
19353 return NULL;
19354 }
19355
19356
19357 static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) {
19358 PyObject *resultobj = NULL;
19359 wxImageList *arg1 = (wxImageList *) 0 ;
19360 wxBitmap *arg2 = 0 ;
19361 wxBitmap const &arg3_defvalue = wxNullBitmap ;
19362 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
19363 int result;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 PyObject * obj2 = 0 ;
19367 char *kwnames[] = {
19368 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
19369 };
19370
19371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
19372 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19373 if (SWIG_arg_fail(1)) SWIG_fail;
19374 {
19375 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19376 if (SWIG_arg_fail(2)) SWIG_fail;
19377 if (arg2 == NULL) {
19378 SWIG_null_ref("wxBitmap");
19379 }
19380 if (SWIG_arg_fail(2)) SWIG_fail;
19381 }
19382 if (obj2) {
19383 {
19384 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19385 if (SWIG_arg_fail(3)) SWIG_fail;
19386 if (arg3 == NULL) {
19387 SWIG_null_ref("wxBitmap");
19388 }
19389 if (SWIG_arg_fail(3)) SWIG_fail;
19390 }
19391 }
19392 {
19393 PyThreadState* __tstate = wxPyBeginAllowThreads();
19394 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
19395
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 {
19400 resultobj = SWIG_From_int(static_cast<int >(result));
19401 }
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) {
19409 PyObject *resultobj = NULL;
19410 wxImageList *arg1 = (wxImageList *) 0 ;
19411 wxBitmap *arg2 = 0 ;
19412 wxColour *arg3 = 0 ;
19413 int result;
19414 wxColour temp3 ;
19415 PyObject * obj0 = 0 ;
19416 PyObject * obj1 = 0 ;
19417 PyObject * obj2 = 0 ;
19418 char *kwnames[] = {
19419 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
19420 };
19421
19422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
19423 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19424 if (SWIG_arg_fail(1)) SWIG_fail;
19425 {
19426 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19427 if (SWIG_arg_fail(2)) SWIG_fail;
19428 if (arg2 == NULL) {
19429 SWIG_null_ref("wxBitmap");
19430 }
19431 if (SWIG_arg_fail(2)) SWIG_fail;
19432 }
19433 {
19434 arg3 = &temp3;
19435 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
19436 }
19437 {
19438 PyThreadState* __tstate = wxPyBeginAllowThreads();
19439 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
19440
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 {
19445 resultobj = SWIG_From_int(static_cast<int >(result));
19446 }
19447 return resultobj;
19448 fail:
19449 return NULL;
19450 }
19451
19452
19453 static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19454 PyObject *resultobj = NULL;
19455 wxImageList *arg1 = (wxImageList *) 0 ;
19456 wxIcon *arg2 = 0 ;
19457 int result;
19458 PyObject * obj0 = 0 ;
19459 PyObject * obj1 = 0 ;
19460 char *kwnames[] = {
19461 (char *) "self",(char *) "icon", NULL
19462 };
19463
19464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
19465 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19466 if (SWIG_arg_fail(1)) SWIG_fail;
19467 {
19468 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0);
19469 if (SWIG_arg_fail(2)) SWIG_fail;
19470 if (arg2 == NULL) {
19471 SWIG_null_ref("wxIcon");
19472 }
19473 if (SWIG_arg_fail(2)) SWIG_fail;
19474 }
19475 {
19476 PyThreadState* __tstate = wxPyBeginAllowThreads();
19477 result = (int)(arg1)->Add((wxIcon const &)*arg2);
19478
19479 wxPyEndAllowThreads(__tstate);
19480 if (PyErr_Occurred()) SWIG_fail;
19481 }
19482 {
19483 resultobj = SWIG_From_int(static_cast<int >(result));
19484 }
19485 return resultobj;
19486 fail:
19487 return NULL;
19488 }
19489
19490
19491 static PyObject *_wrap_ImageList_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
19492 PyObject *resultobj = NULL;
19493 wxImageList *arg1 = (wxImageList *) 0 ;
19494 int arg2 ;
19495 SwigValueWrapper<wxBitmap > result;
19496 PyObject * obj0 = 0 ;
19497 PyObject * obj1 = 0 ;
19498 char *kwnames[] = {
19499 (char *) "self",(char *) "index", NULL
19500 };
19501
19502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) goto fail;
19503 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19504 if (SWIG_arg_fail(1)) SWIG_fail;
19505 {
19506 arg2 = static_cast<int >(SWIG_As_int(obj1));
19507 if (SWIG_arg_fail(2)) SWIG_fail;
19508 }
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
19512
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 {
19517 wxBitmap * resultptr;
19518 resultptr = new wxBitmap(static_cast<wxBitmap & >(result));
19519 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
19520 }
19521 return resultobj;
19522 fail:
19523 return NULL;
19524 }
19525
19526
19527 static PyObject *_wrap_ImageList_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj = NULL;
19529 wxImageList *arg1 = (wxImageList *) 0 ;
19530 int arg2 ;
19531 wxIcon result;
19532 PyObject * obj0 = 0 ;
19533 PyObject * obj1 = 0 ;
19534 char *kwnames[] = {
19535 (char *) "self",(char *) "index", NULL
19536 };
19537
19538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) goto fail;
19539 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19540 if (SWIG_arg_fail(1)) SWIG_fail;
19541 {
19542 arg2 = static_cast<int >(SWIG_As_int(obj1));
19543 if (SWIG_arg_fail(2)) SWIG_fail;
19544 }
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 result = ((wxImageList const *)arg1)->GetIcon(arg2);
19548
19549 wxPyEndAllowThreads(__tstate);
19550 if (PyErr_Occurred()) SWIG_fail;
19551 }
19552 {
19553 wxIcon * resultptr;
19554 resultptr = new wxIcon(static_cast<wxIcon & >(result));
19555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
19556 }
19557 return resultobj;
19558 fail:
19559 return NULL;
19560 }
19561
19562
19563 static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
19564 PyObject *resultobj = NULL;
19565 wxImageList *arg1 = (wxImageList *) 0 ;
19566 int arg2 ;
19567 wxBitmap *arg3 = 0 ;
19568 wxBitmap const &arg4_defvalue = wxNullBitmap ;
19569 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
19570 bool result;
19571 PyObject * obj0 = 0 ;
19572 PyObject * obj1 = 0 ;
19573 PyObject * obj2 = 0 ;
19574 PyObject * obj3 = 0 ;
19575 char *kwnames[] = {
19576 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
19577 };
19578
19579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19580 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19581 if (SWIG_arg_fail(1)) SWIG_fail;
19582 {
19583 arg2 = static_cast<int >(SWIG_As_int(obj1));
19584 if (SWIG_arg_fail(2)) SWIG_fail;
19585 }
19586 {
19587 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19588 if (SWIG_arg_fail(3)) SWIG_fail;
19589 if (arg3 == NULL) {
19590 SWIG_null_ref("wxBitmap");
19591 }
19592 if (SWIG_arg_fail(3)) SWIG_fail;
19593 }
19594 if (obj3) {
19595 {
19596 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
19597 if (SWIG_arg_fail(4)) SWIG_fail;
19598 if (arg4 == NULL) {
19599 SWIG_null_ref("wxBitmap");
19600 }
19601 if (SWIG_arg_fail(4)) SWIG_fail;
19602 }
19603 }
19604 {
19605 PyThreadState* __tstate = wxPyBeginAllowThreads();
19606 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
19607
19608 wxPyEndAllowThreads(__tstate);
19609 if (PyErr_Occurred()) SWIG_fail;
19610 }
19611 {
19612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19613 }
19614 return resultobj;
19615 fail:
19616 return NULL;
19617 }
19618
19619
19620 static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) {
19621 PyObject *resultobj = NULL;
19622 wxImageList *arg1 = (wxImageList *) 0 ;
19623 int arg2 ;
19624 wxDC *arg3 = 0 ;
19625 int arg4 ;
19626 int arg5 ;
19627 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
19628 bool arg7 = (bool) (bool)false ;
19629 bool result;
19630 PyObject * obj0 = 0 ;
19631 PyObject * obj1 = 0 ;
19632 PyObject * obj2 = 0 ;
19633 PyObject * obj3 = 0 ;
19634 PyObject * obj4 = 0 ;
19635 PyObject * obj5 = 0 ;
19636 PyObject * obj6 = 0 ;
19637 char *kwnames[] = {
19638 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
19639 };
19640
19641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19642 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19643 if (SWIG_arg_fail(1)) SWIG_fail;
19644 {
19645 arg2 = static_cast<int >(SWIG_As_int(obj1));
19646 if (SWIG_arg_fail(2)) SWIG_fail;
19647 }
19648 {
19649 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
19650 if (SWIG_arg_fail(3)) SWIG_fail;
19651 if (arg3 == NULL) {
19652 SWIG_null_ref("wxDC");
19653 }
19654 if (SWIG_arg_fail(3)) SWIG_fail;
19655 }
19656 {
19657 arg4 = static_cast<int >(SWIG_As_int(obj3));
19658 if (SWIG_arg_fail(4)) SWIG_fail;
19659 }
19660 {
19661 arg5 = static_cast<int >(SWIG_As_int(obj4));
19662 if (SWIG_arg_fail(5)) SWIG_fail;
19663 }
19664 if (obj5) {
19665 {
19666 arg6 = static_cast<int >(SWIG_As_int(obj5));
19667 if (SWIG_arg_fail(6)) SWIG_fail;
19668 }
19669 }
19670 if (obj6) {
19671 {
19672 arg7 = static_cast<bool const >(SWIG_As_bool(obj6));
19673 if (SWIG_arg_fail(7)) SWIG_fail;
19674 }
19675 }
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
19679
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 {
19684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19685 }
19686 return resultobj;
19687 fail:
19688 return NULL;
19689 }
19690
19691
19692 static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
19693 PyObject *resultobj = NULL;
19694 wxImageList *arg1 = (wxImageList *) 0 ;
19695 int result;
19696 PyObject * obj0 = 0 ;
19697 char *kwnames[] = {
19698 (char *) "self", NULL
19699 };
19700
19701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
19702 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19703 if (SWIG_arg_fail(1)) SWIG_fail;
19704 {
19705 PyThreadState* __tstate = wxPyBeginAllowThreads();
19706 result = (int)(arg1)->GetImageCount();
19707
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 {
19712 resultobj = SWIG_From_int(static_cast<int >(result));
19713 }
19714 return resultobj;
19715 fail:
19716 return NULL;
19717 }
19718
19719
19720 static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
19721 PyObject *resultobj = NULL;
19722 wxImageList *arg1 = (wxImageList *) 0 ;
19723 int arg2 ;
19724 bool result;
19725 PyObject * obj0 = 0 ;
19726 PyObject * obj1 = 0 ;
19727 char *kwnames[] = {
19728 (char *) "self",(char *) "index", NULL
19729 };
19730
19731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
19732 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19733 if (SWIG_arg_fail(1)) SWIG_fail;
19734 {
19735 arg2 = static_cast<int >(SWIG_As_int(obj1));
19736 if (SWIG_arg_fail(2)) SWIG_fail;
19737 }
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 result = (bool)(arg1)->Remove(arg2);
19741
19742 wxPyEndAllowThreads(__tstate);
19743 if (PyErr_Occurred()) SWIG_fail;
19744 }
19745 {
19746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19747 }
19748 return resultobj;
19749 fail:
19750 return NULL;
19751 }
19752
19753
19754 static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) {
19755 PyObject *resultobj = NULL;
19756 wxImageList *arg1 = (wxImageList *) 0 ;
19757 bool result;
19758 PyObject * obj0 = 0 ;
19759 char *kwnames[] = {
19760 (char *) "self", NULL
19761 };
19762
19763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
19764 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19765 if (SWIG_arg_fail(1)) SWIG_fail;
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 result = (bool)(arg1)->RemoveAll();
19769
19770 wxPyEndAllowThreads(__tstate);
19771 if (PyErr_Occurred()) SWIG_fail;
19772 }
19773 {
19774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19775 }
19776 return resultobj;
19777 fail:
19778 return NULL;
19779 }
19780
19781
19782 static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
19783 PyObject *resultobj = NULL;
19784 wxImageList *arg1 = (wxImageList *) 0 ;
19785 int arg2 ;
19786 int *arg3 = 0 ;
19787 int *arg4 = 0 ;
19788 int temp3 ;
19789 int res3 = 0 ;
19790 int temp4 ;
19791 int res4 = 0 ;
19792 PyObject * obj0 = 0 ;
19793 PyObject * obj1 = 0 ;
19794 char *kwnames[] = {
19795 (char *) "self",(char *) "index", NULL
19796 };
19797
19798 arg3 = &temp3; res3 = SWIG_NEWOBJ;
19799 arg4 = &temp4; res4 = SWIG_NEWOBJ;
19800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
19801 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0);
19802 if (SWIG_arg_fail(1)) SWIG_fail;
19803 {
19804 arg2 = static_cast<int >(SWIG_As_int(obj1));
19805 if (SWIG_arg_fail(2)) SWIG_fail;
19806 }
19807 {
19808 PyThreadState* __tstate = wxPyBeginAllowThreads();
19809 (arg1)->GetSize(arg2,*arg3,*arg4);
19810
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 Py_INCREF(Py_None); resultobj = Py_None;
19815 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
19816 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
19817 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
19818 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
19819 return resultobj;
19820 fail:
19821 return NULL;
19822 }
19823
19824
19825 static PyObject * ImageList_swigregister(PyObject *, PyObject *args) {
19826 PyObject *obj;
19827 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19828 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
19829 Py_INCREF(obj);
19830 return Py_BuildValue((char *)"");
19831 }
19832 static int _wrap_NORMAL_FONT_set(PyObject *) {
19833 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
19834 return 1;
19835 }
19836
19837
19838 static PyObject *_wrap_NORMAL_FONT_get(void) {
19839 PyObject *pyobj = NULL;
19840
19841 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
19842 return pyobj;
19843 }
19844
19845
19846 static int _wrap_SMALL_FONT_set(PyObject *) {
19847 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
19848 return 1;
19849 }
19850
19851
19852 static PyObject *_wrap_SMALL_FONT_get(void) {
19853 PyObject *pyobj = NULL;
19854
19855 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
19856 return pyobj;
19857 }
19858
19859
19860 static int _wrap_ITALIC_FONT_set(PyObject *) {
19861 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
19862 return 1;
19863 }
19864
19865
19866 static PyObject *_wrap_ITALIC_FONT_get(void) {
19867 PyObject *pyobj = NULL;
19868
19869 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
19870 return pyobj;
19871 }
19872
19873
19874 static int _wrap_SWISS_FONT_set(PyObject *) {
19875 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
19876 return 1;
19877 }
19878
19879
19880 static PyObject *_wrap_SWISS_FONT_get(void) {
19881 PyObject *pyobj = NULL;
19882
19883 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
19884 return pyobj;
19885 }
19886
19887
19888 static int _wrap_RED_PEN_set(PyObject *) {
19889 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
19890 return 1;
19891 }
19892
19893
19894 static PyObject *_wrap_RED_PEN_get(void) {
19895 PyObject *pyobj = NULL;
19896
19897 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
19898 return pyobj;
19899 }
19900
19901
19902 static int _wrap_CYAN_PEN_set(PyObject *) {
19903 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
19904 return 1;
19905 }
19906
19907
19908 static PyObject *_wrap_CYAN_PEN_get(void) {
19909 PyObject *pyobj = NULL;
19910
19911 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
19912 return pyobj;
19913 }
19914
19915
19916 static int _wrap_GREEN_PEN_set(PyObject *) {
19917 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
19918 return 1;
19919 }
19920
19921
19922 static PyObject *_wrap_GREEN_PEN_get(void) {
19923 PyObject *pyobj = NULL;
19924
19925 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
19926 return pyobj;
19927 }
19928
19929
19930 static int _wrap_BLACK_PEN_set(PyObject *) {
19931 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
19932 return 1;
19933 }
19934
19935
19936 static PyObject *_wrap_BLACK_PEN_get(void) {
19937 PyObject *pyobj = NULL;
19938
19939 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
19940 return pyobj;
19941 }
19942
19943
19944 static int _wrap_WHITE_PEN_set(PyObject *) {
19945 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
19946 return 1;
19947 }
19948
19949
19950 static PyObject *_wrap_WHITE_PEN_get(void) {
19951 PyObject *pyobj = NULL;
19952
19953 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
19954 return pyobj;
19955 }
19956
19957
19958 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
19959 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
19960 return 1;
19961 }
19962
19963
19964 static PyObject *_wrap_TRANSPARENT_PEN_get(void) {
19965 PyObject *pyobj = NULL;
19966
19967 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
19968 return pyobj;
19969 }
19970
19971
19972 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
19973 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
19974 return 1;
19975 }
19976
19977
19978 static PyObject *_wrap_BLACK_DASHED_PEN_get(void) {
19979 PyObject *pyobj = NULL;
19980
19981 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
19982 return pyobj;
19983 }
19984
19985
19986 static int _wrap_GREY_PEN_set(PyObject *) {
19987 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
19988 return 1;
19989 }
19990
19991
19992 static PyObject *_wrap_GREY_PEN_get(void) {
19993 PyObject *pyobj = NULL;
19994
19995 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
19996 return pyobj;
19997 }
19998
19999
20000 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
20001 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
20002 return 1;
20003 }
20004
20005
20006 static PyObject *_wrap_MEDIUM_GREY_PEN_get(void) {
20007 PyObject *pyobj = NULL;
20008
20009 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
20010 return pyobj;
20011 }
20012
20013
20014 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
20015 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
20016 return 1;
20017 }
20018
20019
20020 static PyObject *_wrap_LIGHT_GREY_PEN_get(void) {
20021 PyObject *pyobj = NULL;
20022
20023 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
20024 return pyobj;
20025 }
20026
20027
20028 static int _wrap_BLUE_BRUSH_set(PyObject *) {
20029 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
20030 return 1;
20031 }
20032
20033
20034 static PyObject *_wrap_BLUE_BRUSH_get(void) {
20035 PyObject *pyobj = NULL;
20036
20037 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
20038 return pyobj;
20039 }
20040
20041
20042 static int _wrap_GREEN_BRUSH_set(PyObject *) {
20043 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
20044 return 1;
20045 }
20046
20047
20048 static PyObject *_wrap_GREEN_BRUSH_get(void) {
20049 PyObject *pyobj = NULL;
20050
20051 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
20052 return pyobj;
20053 }
20054
20055
20056 static int _wrap_WHITE_BRUSH_set(PyObject *) {
20057 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
20058 return 1;
20059 }
20060
20061
20062 static PyObject *_wrap_WHITE_BRUSH_get(void) {
20063 PyObject *pyobj = NULL;
20064
20065 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
20066 return pyobj;
20067 }
20068
20069
20070 static int _wrap_BLACK_BRUSH_set(PyObject *) {
20071 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
20072 return 1;
20073 }
20074
20075
20076 static PyObject *_wrap_BLACK_BRUSH_get(void) {
20077 PyObject *pyobj = NULL;
20078
20079 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
20080 return pyobj;
20081 }
20082
20083
20084 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
20085 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
20086 return 1;
20087 }
20088
20089
20090 static PyObject *_wrap_TRANSPARENT_BRUSH_get(void) {
20091 PyObject *pyobj = NULL;
20092
20093 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
20094 return pyobj;
20095 }
20096
20097
20098 static int _wrap_CYAN_BRUSH_set(PyObject *) {
20099 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
20100 return 1;
20101 }
20102
20103
20104 static PyObject *_wrap_CYAN_BRUSH_get(void) {
20105 PyObject *pyobj = NULL;
20106
20107 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
20108 return pyobj;
20109 }
20110
20111
20112 static int _wrap_RED_BRUSH_set(PyObject *) {
20113 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
20114 return 1;
20115 }
20116
20117
20118 static PyObject *_wrap_RED_BRUSH_get(void) {
20119 PyObject *pyobj = NULL;
20120
20121 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
20122 return pyobj;
20123 }
20124
20125
20126 static int _wrap_GREY_BRUSH_set(PyObject *) {
20127 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
20128 return 1;
20129 }
20130
20131
20132 static PyObject *_wrap_GREY_BRUSH_get(void) {
20133 PyObject *pyobj = NULL;
20134
20135 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20136 return pyobj;
20137 }
20138
20139
20140 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
20141 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
20142 return 1;
20143 }
20144
20145
20146 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get(void) {
20147 PyObject *pyobj = NULL;
20148
20149 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20150 return pyobj;
20151 }
20152
20153
20154 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
20155 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
20156 return 1;
20157 }
20158
20159
20160 static PyObject *_wrap_LIGHT_GREY_BRUSH_get(void) {
20161 PyObject *pyobj = NULL;
20162
20163 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
20164 return pyobj;
20165 }
20166
20167
20168 static int _wrap_BLACK_set(PyObject *) {
20169 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
20170 return 1;
20171 }
20172
20173
20174 static PyObject *_wrap_BLACK_get(void) {
20175 PyObject *pyobj = NULL;
20176
20177 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
20178 return pyobj;
20179 }
20180
20181
20182 static int _wrap_WHITE_set(PyObject *) {
20183 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
20184 return 1;
20185 }
20186
20187
20188 static PyObject *_wrap_WHITE_get(void) {
20189 PyObject *pyobj = NULL;
20190
20191 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
20192 return pyobj;
20193 }
20194
20195
20196 static int _wrap_RED_set(PyObject *) {
20197 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
20198 return 1;
20199 }
20200
20201
20202 static PyObject *_wrap_RED_get(void) {
20203 PyObject *pyobj = NULL;
20204
20205 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
20206 return pyobj;
20207 }
20208
20209
20210 static int _wrap_BLUE_set(PyObject *) {
20211 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
20212 return 1;
20213 }
20214
20215
20216 static PyObject *_wrap_BLUE_get(void) {
20217 PyObject *pyobj = NULL;
20218
20219 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
20220 return pyobj;
20221 }
20222
20223
20224 static int _wrap_GREEN_set(PyObject *) {
20225 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
20226 return 1;
20227 }
20228
20229
20230 static PyObject *_wrap_GREEN_get(void) {
20231 PyObject *pyobj = NULL;
20232
20233 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
20234 return pyobj;
20235 }
20236
20237
20238 static int _wrap_CYAN_set(PyObject *) {
20239 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
20240 return 1;
20241 }
20242
20243
20244 static PyObject *_wrap_CYAN_get(void) {
20245 PyObject *pyobj = NULL;
20246
20247 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
20248 return pyobj;
20249 }
20250
20251
20252 static int _wrap_LIGHT_GREY_set(PyObject *) {
20253 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
20254 return 1;
20255 }
20256
20257
20258 static PyObject *_wrap_LIGHT_GREY_get(void) {
20259 PyObject *pyobj = NULL;
20260
20261 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
20262 return pyobj;
20263 }
20264
20265
20266 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
20267 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
20268 return 1;
20269 }
20270
20271
20272 static PyObject *_wrap_STANDARD_CURSOR_get(void) {
20273 PyObject *pyobj = NULL;
20274
20275 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
20276 return pyobj;
20277 }
20278
20279
20280 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
20281 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
20282 return 1;
20283 }
20284
20285
20286 static PyObject *_wrap_HOURGLASS_CURSOR_get(void) {
20287 PyObject *pyobj = NULL;
20288
20289 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20290 return pyobj;
20291 }
20292
20293
20294 static int _wrap_CROSS_CURSOR_set(PyObject *) {
20295 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
20296 return 1;
20297 }
20298
20299
20300 static PyObject *_wrap_CROSS_CURSOR_get(void) {
20301 PyObject *pyobj = NULL;
20302
20303 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
20304 return pyobj;
20305 }
20306
20307
20308 static int _wrap_NullBitmap_set(PyObject *) {
20309 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
20310 return 1;
20311 }
20312
20313
20314 static PyObject *_wrap_NullBitmap_get(void) {
20315 PyObject *pyobj = NULL;
20316
20317 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
20318 return pyobj;
20319 }
20320
20321
20322 static int _wrap_NullIcon_set(PyObject *) {
20323 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
20324 return 1;
20325 }
20326
20327
20328 static PyObject *_wrap_NullIcon_get(void) {
20329 PyObject *pyobj = NULL;
20330
20331 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
20332 return pyobj;
20333 }
20334
20335
20336 static int _wrap_NullCursor_set(PyObject *) {
20337 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
20338 return 1;
20339 }
20340
20341
20342 static PyObject *_wrap_NullCursor_get(void) {
20343 PyObject *pyobj = NULL;
20344
20345 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
20346 return pyobj;
20347 }
20348
20349
20350 static int _wrap_NullPen_set(PyObject *) {
20351 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
20352 return 1;
20353 }
20354
20355
20356 static PyObject *_wrap_NullPen_get(void) {
20357 PyObject *pyobj = NULL;
20358
20359 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
20360 return pyobj;
20361 }
20362
20363
20364 static int _wrap_NullBrush_set(PyObject *) {
20365 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
20366 return 1;
20367 }
20368
20369
20370 static PyObject *_wrap_NullBrush_get(void) {
20371 PyObject *pyobj = NULL;
20372
20373 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
20374 return pyobj;
20375 }
20376
20377
20378 static int _wrap_NullPalette_set(PyObject *) {
20379 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
20380 return 1;
20381 }
20382
20383
20384 static PyObject *_wrap_NullPalette_get(void) {
20385 PyObject *pyobj = NULL;
20386
20387 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
20388 return pyobj;
20389 }
20390
20391
20392 static int _wrap_NullFont_set(PyObject *) {
20393 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
20394 return 1;
20395 }
20396
20397
20398 static PyObject *_wrap_NullFont_get(void) {
20399 PyObject *pyobj = NULL;
20400
20401 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
20402 return pyobj;
20403 }
20404
20405
20406 static int _wrap_NullColour_set(PyObject *) {
20407 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
20408 return 1;
20409 }
20410
20411
20412 static PyObject *_wrap_NullColour_get(void) {
20413 PyObject *pyobj = NULL;
20414
20415 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
20416 return pyobj;
20417 }
20418
20419
20420 static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) {
20421 PyObject *resultobj = NULL;
20422 wxPenList *arg1 = (wxPenList *) 0 ;
20423 wxPen *arg2 = (wxPen *) 0 ;
20424 PyObject * obj0 = 0 ;
20425 PyObject * obj1 = 0 ;
20426 char *kwnames[] = {
20427 (char *) "self",(char *) "pen", NULL
20428 };
20429
20430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
20431 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20432 if (SWIG_arg_fail(1)) SWIG_fail;
20433 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20434 if (SWIG_arg_fail(2)) SWIG_fail;
20435 {
20436 PyThreadState* __tstate = wxPyBeginAllowThreads();
20437 (arg1)->AddPen(arg2);
20438
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 Py_INCREF(Py_None); resultobj = Py_None;
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) {
20450 PyObject *resultobj = NULL;
20451 wxPenList *arg1 = (wxPenList *) 0 ;
20452 wxColour *arg2 = 0 ;
20453 int arg3 ;
20454 int arg4 ;
20455 wxPen *result;
20456 wxColour temp2 ;
20457 PyObject * obj0 = 0 ;
20458 PyObject * obj1 = 0 ;
20459 PyObject * obj2 = 0 ;
20460 PyObject * obj3 = 0 ;
20461 char *kwnames[] = {
20462 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
20463 };
20464
20465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20466 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20467 if (SWIG_arg_fail(1)) SWIG_fail;
20468 {
20469 arg2 = &temp2;
20470 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20471 }
20472 {
20473 arg3 = static_cast<int >(SWIG_As_int(obj2));
20474 if (SWIG_arg_fail(3)) SWIG_fail;
20475 }
20476 {
20477 arg4 = static_cast<int >(SWIG_As_int(obj3));
20478 if (SWIG_arg_fail(4)) SWIG_fail;
20479 }
20480 {
20481 PyThreadState* __tstate = wxPyBeginAllowThreads();
20482 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
20483
20484 wxPyEndAllowThreads(__tstate);
20485 if (PyErr_Occurred()) SWIG_fail;
20486 }
20487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
20488 return resultobj;
20489 fail:
20490 return NULL;
20491 }
20492
20493
20494 static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj = NULL;
20496 wxPenList *arg1 = (wxPenList *) 0 ;
20497 wxPen *arg2 = (wxPen *) 0 ;
20498 PyObject * obj0 = 0 ;
20499 PyObject * obj1 = 0 ;
20500 char *kwnames[] = {
20501 (char *) "self",(char *) "pen", NULL
20502 };
20503
20504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
20505 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20506 if (SWIG_arg_fail(1)) SWIG_fail;
20507 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPen, SWIG_POINTER_EXCEPTION | 0);
20508 if (SWIG_arg_fail(2)) SWIG_fail;
20509 {
20510 PyThreadState* __tstate = wxPyBeginAllowThreads();
20511 (arg1)->RemovePen(arg2);
20512
20513 wxPyEndAllowThreads(__tstate);
20514 if (PyErr_Occurred()) SWIG_fail;
20515 }
20516 Py_INCREF(Py_None); resultobj = Py_None;
20517 return resultobj;
20518 fail:
20519 return NULL;
20520 }
20521
20522
20523 static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20524 PyObject *resultobj = NULL;
20525 wxPenList *arg1 = (wxPenList *) 0 ;
20526 int result;
20527 PyObject * obj0 = 0 ;
20528 char *kwnames[] = {
20529 (char *) "self", NULL
20530 };
20531
20532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
20533 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPenList, SWIG_POINTER_EXCEPTION | 0);
20534 if (SWIG_arg_fail(1)) SWIG_fail;
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
20537 result = (int)(arg1)->GetCount();
20538
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 {
20543 resultobj = SWIG_From_int(static_cast<int >(result));
20544 }
20545 return resultobj;
20546 fail:
20547 return NULL;
20548 }
20549
20550
20551 static PyObject * PenList_swigregister(PyObject *, PyObject *args) {
20552 PyObject *obj;
20553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20554 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
20555 Py_INCREF(obj);
20556 return Py_BuildValue((char *)"");
20557 }
20558 static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20559 PyObject *resultobj = NULL;
20560 wxBrushList *arg1 = (wxBrushList *) 0 ;
20561 wxBrush *arg2 = (wxBrush *) 0 ;
20562 PyObject * obj0 = 0 ;
20563 PyObject * obj1 = 0 ;
20564 char *kwnames[] = {
20565 (char *) "self",(char *) "brush", NULL
20566 };
20567
20568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
20569 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20570 if (SWIG_arg_fail(1)) SWIG_fail;
20571 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20572 if (SWIG_arg_fail(2)) SWIG_fail;
20573 {
20574 PyThreadState* __tstate = wxPyBeginAllowThreads();
20575 (arg1)->AddBrush(arg2);
20576
20577 wxPyEndAllowThreads(__tstate);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 }
20580 Py_INCREF(Py_None); resultobj = Py_None;
20581 return resultobj;
20582 fail:
20583 return NULL;
20584 }
20585
20586
20587 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20588 PyObject *resultobj = NULL;
20589 wxBrushList *arg1 = (wxBrushList *) 0 ;
20590 wxColour *arg2 = 0 ;
20591 int arg3 = (int) wxSOLID ;
20592 wxBrush *result;
20593 wxColour temp2 ;
20594 PyObject * obj0 = 0 ;
20595 PyObject * obj1 = 0 ;
20596 PyObject * obj2 = 0 ;
20597 char *kwnames[] = {
20598 (char *) "self",(char *) "colour",(char *) "style", NULL
20599 };
20600
20601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
20602 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20603 if (SWIG_arg_fail(1)) SWIG_fail;
20604 {
20605 arg2 = &temp2;
20606 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20607 }
20608 if (obj2) {
20609 {
20610 arg3 = static_cast<int >(SWIG_As_int(obj2));
20611 if (SWIG_arg_fail(3)) SWIG_fail;
20612 }
20613 }
20614 {
20615 PyThreadState* __tstate = wxPyBeginAllowThreads();
20616 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
20617
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
20622 return resultobj;
20623 fail:
20624 return NULL;
20625 }
20626
20627
20628 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) {
20629 PyObject *resultobj = NULL;
20630 wxBrushList *arg1 = (wxBrushList *) 0 ;
20631 wxBrush *arg2 = (wxBrush *) 0 ;
20632 PyObject * obj0 = 0 ;
20633 PyObject * obj1 = 0 ;
20634 char *kwnames[] = {
20635 (char *) "self",(char *) "brush", NULL
20636 };
20637
20638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
20639 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20640 if (SWIG_arg_fail(1)) SWIG_fail;
20641 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBrush, SWIG_POINTER_EXCEPTION | 0);
20642 if (SWIG_arg_fail(2)) SWIG_fail;
20643 {
20644 PyThreadState* __tstate = wxPyBeginAllowThreads();
20645 (arg1)->RemoveBrush(arg2);
20646
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 Py_INCREF(Py_None); resultobj = Py_None;
20651 return resultobj;
20652 fail:
20653 return NULL;
20654 }
20655
20656
20657 static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = NULL;
20659 wxBrushList *arg1 = (wxBrushList *) 0 ;
20660 int result;
20661 PyObject * obj0 = 0 ;
20662 char *kwnames[] = {
20663 (char *) "self", NULL
20664 };
20665
20666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
20667 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBrushList, SWIG_POINTER_EXCEPTION | 0);
20668 if (SWIG_arg_fail(1)) SWIG_fail;
20669 {
20670 PyThreadState* __tstate = wxPyBeginAllowThreads();
20671 result = (int)(arg1)->GetCount();
20672
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 {
20677 resultobj = SWIG_From_int(static_cast<int >(result));
20678 }
20679 return resultobj;
20680 fail:
20681 return NULL;
20682 }
20683
20684
20685 static PyObject * BrushList_swigregister(PyObject *, PyObject *args) {
20686 PyObject *obj;
20687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20688 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
20689 Py_INCREF(obj);
20690 return Py_BuildValue((char *)"");
20691 }
20692 static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
20693 PyObject *resultobj = NULL;
20694 wxColourDatabase *result;
20695 char *kwnames[] = {
20696 NULL
20697 };
20698
20699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
20700 {
20701 if (!wxPyCheckForApp()) SWIG_fail;
20702 PyThreadState* __tstate = wxPyBeginAllowThreads();
20703 result = (wxColourDatabase *)new wxColourDatabase();
20704
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
20709 return resultobj;
20710 fail:
20711 return NULL;
20712 }
20713
20714
20715 static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) {
20716 PyObject *resultobj = NULL;
20717 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20718 PyObject * obj0 = 0 ;
20719 char *kwnames[] = {
20720 (char *) "self", NULL
20721 };
20722
20723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
20724 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20725 if (SWIG_arg_fail(1)) SWIG_fail;
20726 {
20727 PyThreadState* __tstate = wxPyBeginAllowThreads();
20728 delete arg1;
20729
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 Py_INCREF(Py_None); resultobj = Py_None;
20734 return resultobj;
20735 fail:
20736 return NULL;
20737 }
20738
20739
20740 static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) {
20741 PyObject *resultobj = NULL;
20742 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20743 wxString *arg2 = 0 ;
20744 wxColour result;
20745 bool temp2 = false ;
20746 PyObject * obj0 = 0 ;
20747 PyObject * obj1 = 0 ;
20748 char *kwnames[] = {
20749 (char *) "self",(char *) "name", NULL
20750 };
20751
20752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
20753 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20754 if (SWIG_arg_fail(1)) SWIG_fail;
20755 {
20756 arg2 = wxString_in_helper(obj1);
20757 if (arg2 == NULL) SWIG_fail;
20758 temp2 = true;
20759 }
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
20763
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 {
20768 wxColour * resultptr;
20769 resultptr = new wxColour(static_cast<wxColour & >(result));
20770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20771 }
20772 {
20773 if (temp2)
20774 delete arg2;
20775 }
20776 return resultobj;
20777 fail:
20778 {
20779 if (temp2)
20780 delete arg2;
20781 }
20782 return NULL;
20783 }
20784
20785
20786 static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) {
20787 PyObject *resultobj = NULL;
20788 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20789 wxColour *arg2 = 0 ;
20790 wxString result;
20791 wxColour temp2 ;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 char *kwnames[] = {
20795 (char *) "self",(char *) "colour", NULL
20796 };
20797
20798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
20799 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20800 if (SWIG_arg_fail(1)) SWIG_fail;
20801 {
20802 arg2 = &temp2;
20803 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20804 }
20805 {
20806 PyThreadState* __tstate = wxPyBeginAllowThreads();
20807 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
20808
20809 wxPyEndAllowThreads(__tstate);
20810 if (PyErr_Occurred()) SWIG_fail;
20811 }
20812 {
20813 #if wxUSE_UNICODE
20814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20815 #else
20816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20817 #endif
20818 }
20819 return resultobj;
20820 fail:
20821 return NULL;
20822 }
20823
20824
20825 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = NULL;
20827 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20828 wxString *arg2 = 0 ;
20829 wxColour *arg3 = 0 ;
20830 bool temp2 = false ;
20831 wxColour temp3 ;
20832 PyObject * obj0 = 0 ;
20833 PyObject * obj1 = 0 ;
20834 PyObject * obj2 = 0 ;
20835 char *kwnames[] = {
20836 (char *) "self",(char *) "name",(char *) "colour", NULL
20837 };
20838
20839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
20840 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20841 if (SWIG_arg_fail(1)) SWIG_fail;
20842 {
20843 arg2 = wxString_in_helper(obj1);
20844 if (arg2 == NULL) SWIG_fail;
20845 temp2 = true;
20846 }
20847 {
20848 arg3 = &temp3;
20849 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
20850 }
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
20854
20855 wxPyEndAllowThreads(__tstate);
20856 if (PyErr_Occurred()) SWIG_fail;
20857 }
20858 Py_INCREF(Py_None); resultobj = Py_None;
20859 {
20860 if (temp2)
20861 delete arg2;
20862 }
20863 return resultobj;
20864 fail:
20865 {
20866 if (temp2)
20867 delete arg2;
20868 }
20869 return NULL;
20870 }
20871
20872
20873 static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) {
20874 PyObject *resultobj = NULL;
20875 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
20876 wxString *arg2 = 0 ;
20877 int arg3 ;
20878 int arg4 ;
20879 int arg5 ;
20880 bool temp2 = false ;
20881 PyObject * obj0 = 0 ;
20882 PyObject * obj1 = 0 ;
20883 PyObject * obj2 = 0 ;
20884 PyObject * obj3 = 0 ;
20885 PyObject * obj4 = 0 ;
20886 char *kwnames[] = {
20887 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
20888 };
20889
20890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
20891 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_EXCEPTION | 0);
20892 if (SWIG_arg_fail(1)) SWIG_fail;
20893 {
20894 arg2 = wxString_in_helper(obj1);
20895 if (arg2 == NULL) SWIG_fail;
20896 temp2 = true;
20897 }
20898 {
20899 arg3 = static_cast<int >(SWIG_As_int(obj2));
20900 if (SWIG_arg_fail(3)) SWIG_fail;
20901 }
20902 {
20903 arg4 = static_cast<int >(SWIG_As_int(obj3));
20904 if (SWIG_arg_fail(4)) SWIG_fail;
20905 }
20906 {
20907 arg5 = static_cast<int >(SWIG_As_int(obj4));
20908 if (SWIG_arg_fail(5)) SWIG_fail;
20909 }
20910 {
20911 PyThreadState* __tstate = wxPyBeginAllowThreads();
20912 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
20913
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 Py_INCREF(Py_None); resultobj = Py_None;
20918 {
20919 if (temp2)
20920 delete arg2;
20921 }
20922 return resultobj;
20923 fail:
20924 {
20925 if (temp2)
20926 delete arg2;
20927 }
20928 return NULL;
20929 }
20930
20931
20932 static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) {
20933 PyObject *obj;
20934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20935 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
20936 Py_INCREF(obj);
20937 return Py_BuildValue((char *)"");
20938 }
20939 static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) {
20940 PyObject *resultobj = NULL;
20941 wxFontList *arg1 = (wxFontList *) 0 ;
20942 wxFont *arg2 = (wxFont *) 0 ;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945 char *kwnames[] = {
20946 (char *) "self",(char *) "font", NULL
20947 };
20948
20949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
20950 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20951 if (SWIG_arg_fail(1)) SWIG_fail;
20952 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
20953 if (SWIG_arg_fail(2)) SWIG_fail;
20954 {
20955 PyThreadState* __tstate = wxPyBeginAllowThreads();
20956 (arg1)->AddFont(arg2);
20957
20958 wxPyEndAllowThreads(__tstate);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 Py_INCREF(Py_None); resultobj = Py_None;
20962 return resultobj;
20963 fail:
20964 return NULL;
20965 }
20966
20967
20968 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) {
20969 PyObject *resultobj = NULL;
20970 wxFontList *arg1 = (wxFontList *) 0 ;
20971 int arg2 ;
20972 int arg3 ;
20973 int arg4 ;
20974 int arg5 ;
20975 bool arg6 = (bool) false ;
20976 wxString const &arg7_defvalue = wxPyEmptyString ;
20977 wxString *arg7 = (wxString *) &arg7_defvalue ;
20978 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
20979 wxFont *result;
20980 bool temp7 = false ;
20981 PyObject * obj0 = 0 ;
20982 PyObject * obj1 = 0 ;
20983 PyObject * obj2 = 0 ;
20984 PyObject * obj3 = 0 ;
20985 PyObject * obj4 = 0 ;
20986 PyObject * obj5 = 0 ;
20987 PyObject * obj6 = 0 ;
20988 PyObject * obj7 = 0 ;
20989 char *kwnames[] = {
20990 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
20991 };
20992
20993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
20994 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
20995 if (SWIG_arg_fail(1)) SWIG_fail;
20996 {
20997 arg2 = static_cast<int >(SWIG_As_int(obj1));
20998 if (SWIG_arg_fail(2)) SWIG_fail;
20999 }
21000 {
21001 arg3 = static_cast<int >(SWIG_As_int(obj2));
21002 if (SWIG_arg_fail(3)) SWIG_fail;
21003 }
21004 {
21005 arg4 = static_cast<int >(SWIG_As_int(obj3));
21006 if (SWIG_arg_fail(4)) SWIG_fail;
21007 }
21008 {
21009 arg5 = static_cast<int >(SWIG_As_int(obj4));
21010 if (SWIG_arg_fail(5)) SWIG_fail;
21011 }
21012 if (obj5) {
21013 {
21014 arg6 = static_cast<bool >(SWIG_As_bool(obj5));
21015 if (SWIG_arg_fail(6)) SWIG_fail;
21016 }
21017 }
21018 if (obj6) {
21019 {
21020 arg7 = wxString_in_helper(obj6);
21021 if (arg7 == NULL) SWIG_fail;
21022 temp7 = true;
21023 }
21024 }
21025 if (obj7) {
21026 {
21027 arg8 = static_cast<wxFontEncoding >(SWIG_As_int(obj7));
21028 if (SWIG_arg_fail(8)) SWIG_fail;
21029 }
21030 }
21031 {
21032 PyThreadState* __tstate = wxPyBeginAllowThreads();
21033 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
21034
21035 wxPyEndAllowThreads(__tstate);
21036 if (PyErr_Occurred()) SWIG_fail;
21037 }
21038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21039 {
21040 if (temp7)
21041 delete arg7;
21042 }
21043 return resultobj;
21044 fail:
21045 {
21046 if (temp7)
21047 delete arg7;
21048 }
21049 return NULL;
21050 }
21051
21052
21053 static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) {
21054 PyObject *resultobj = NULL;
21055 wxFontList *arg1 = (wxFontList *) 0 ;
21056 wxFont *arg2 = (wxFont *) 0 ;
21057 PyObject * obj0 = 0 ;
21058 PyObject * obj1 = 0 ;
21059 char *kwnames[] = {
21060 (char *) "self",(char *) "font", NULL
21061 };
21062
21063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
21064 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
21065 if (SWIG_arg_fail(1)) SWIG_fail;
21066 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0);
21067 if (SWIG_arg_fail(2)) SWIG_fail;
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 (arg1)->RemoveFont(arg2);
21071
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 Py_INCREF(Py_None); resultobj = Py_None;
21076 return resultobj;
21077 fail:
21078 return NULL;
21079 }
21080
21081
21082 static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
21083 PyObject *resultobj = NULL;
21084 wxFontList *arg1 = (wxFontList *) 0 ;
21085 int result;
21086 PyObject * obj0 = 0 ;
21087 char *kwnames[] = {
21088 (char *) "self", NULL
21089 };
21090
21091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
21092 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxFontList, SWIG_POINTER_EXCEPTION | 0);
21093 if (SWIG_arg_fail(1)) SWIG_fail;
21094 {
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 result = (int)(arg1)->GetCount();
21097
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 {
21102 resultobj = SWIG_From_int(static_cast<int >(result));
21103 }
21104 return resultobj;
21105 fail:
21106 return NULL;
21107 }
21108
21109
21110 static PyObject * FontList_swigregister(PyObject *, PyObject *args) {
21111 PyObject *obj;
21112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21113 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
21114 Py_INCREF(obj);
21115 return Py_BuildValue((char *)"");
21116 }
21117 static int _wrap_TheFontList_set(PyObject *) {
21118 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
21119 return 1;
21120 }
21121
21122
21123 static PyObject *_wrap_TheFontList_get(void) {
21124 PyObject *pyobj = NULL;
21125
21126 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
21127 return pyobj;
21128 }
21129
21130
21131 static int _wrap_ThePenList_set(PyObject *) {
21132 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
21133 return 1;
21134 }
21135
21136
21137 static PyObject *_wrap_ThePenList_get(void) {
21138 PyObject *pyobj = NULL;
21139
21140 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
21141 return pyobj;
21142 }
21143
21144
21145 static int _wrap_TheBrushList_set(PyObject *) {
21146 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
21147 return 1;
21148 }
21149
21150
21151 static PyObject *_wrap_TheBrushList_get(void) {
21152 PyObject *pyobj = NULL;
21153
21154 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
21155 return pyobj;
21156 }
21157
21158
21159 static int _wrap_TheColourDatabase_set(PyObject *) {
21160 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
21161 return 1;
21162 }
21163
21164
21165 static PyObject *_wrap_TheColourDatabase_get(void) {
21166 PyObject *pyobj = NULL;
21167
21168 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
21169 return pyobj;
21170 }
21171
21172
21173 static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) {
21174 PyObject *resultobj = NULL;
21175 wxEffects *result;
21176 char *kwnames[] = {
21177 NULL
21178 };
21179
21180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
21181 {
21182 PyThreadState* __tstate = wxPyBeginAllowThreads();
21183 result = (wxEffects *)new wxEffects();
21184
21185 wxPyEndAllowThreads(__tstate);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 }
21188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
21189 return resultobj;
21190 fail:
21191 return NULL;
21192 }
21193
21194
21195 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
21196 PyObject *resultobj = NULL;
21197 wxEffects *arg1 = (wxEffects *) 0 ;
21198 wxColour result;
21199 PyObject * obj0 = 0 ;
21200 char *kwnames[] = {
21201 (char *) "self", NULL
21202 };
21203
21204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
21205 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21206 if (SWIG_arg_fail(1)) SWIG_fail;
21207 {
21208 PyThreadState* __tstate = wxPyBeginAllowThreads();
21209 result = ((wxEffects const *)arg1)->GetHighlightColour();
21210
21211 wxPyEndAllowThreads(__tstate);
21212 if (PyErr_Occurred()) SWIG_fail;
21213 }
21214 {
21215 wxColour * resultptr;
21216 resultptr = new wxColour(static_cast<wxColour & >(result));
21217 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21218 }
21219 return resultobj;
21220 fail:
21221 return NULL;
21222 }
21223
21224
21225 static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21226 PyObject *resultobj = NULL;
21227 wxEffects *arg1 = (wxEffects *) 0 ;
21228 wxColour result;
21229 PyObject * obj0 = 0 ;
21230 char *kwnames[] = {
21231 (char *) "self", NULL
21232 };
21233
21234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
21235 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21236 if (SWIG_arg_fail(1)) SWIG_fail;
21237 {
21238 PyThreadState* __tstate = wxPyBeginAllowThreads();
21239 result = ((wxEffects const *)arg1)->GetLightShadow();
21240
21241 wxPyEndAllowThreads(__tstate);
21242 if (PyErr_Occurred()) SWIG_fail;
21243 }
21244 {
21245 wxColour * resultptr;
21246 resultptr = new wxColour(static_cast<wxColour & >(result));
21247 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21248 }
21249 return resultobj;
21250 fail:
21251 return NULL;
21252 }
21253
21254
21255 static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
21256 PyObject *resultobj = NULL;
21257 wxEffects *arg1 = (wxEffects *) 0 ;
21258 wxColour result;
21259 PyObject * obj0 = 0 ;
21260 char *kwnames[] = {
21261 (char *) "self", NULL
21262 };
21263
21264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
21265 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21266 if (SWIG_arg_fail(1)) SWIG_fail;
21267 {
21268 PyThreadState* __tstate = wxPyBeginAllowThreads();
21269 result = ((wxEffects const *)arg1)->GetFaceColour();
21270
21271 wxPyEndAllowThreads(__tstate);
21272 if (PyErr_Occurred()) SWIG_fail;
21273 }
21274 {
21275 wxColour * resultptr;
21276 resultptr = new wxColour(static_cast<wxColour & >(result));
21277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21278 }
21279 return resultobj;
21280 fail:
21281 return NULL;
21282 }
21283
21284
21285 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21286 PyObject *resultobj = NULL;
21287 wxEffects *arg1 = (wxEffects *) 0 ;
21288 wxColour result;
21289 PyObject * obj0 = 0 ;
21290 char *kwnames[] = {
21291 (char *) "self", NULL
21292 };
21293
21294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
21295 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21296 if (SWIG_arg_fail(1)) SWIG_fail;
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = ((wxEffects const *)arg1)->GetMediumShadow();
21300
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 {
21305 wxColour * resultptr;
21306 resultptr = new wxColour(static_cast<wxColour & >(result));
21307 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21308 }
21309 return resultobj;
21310 fail:
21311 return NULL;
21312 }
21313
21314
21315 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21316 PyObject *resultobj = NULL;
21317 wxEffects *arg1 = (wxEffects *) 0 ;
21318 wxColour result;
21319 PyObject * obj0 = 0 ;
21320 char *kwnames[] = {
21321 (char *) "self", NULL
21322 };
21323
21324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
21325 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21326 if (SWIG_arg_fail(1)) SWIG_fail;
21327 {
21328 PyThreadState* __tstate = wxPyBeginAllowThreads();
21329 result = ((wxEffects const *)arg1)->GetDarkShadow();
21330
21331 wxPyEndAllowThreads(__tstate);
21332 if (PyErr_Occurred()) SWIG_fail;
21333 }
21334 {
21335 wxColour * resultptr;
21336 resultptr = new wxColour(static_cast<wxColour & >(result));
21337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
21338 }
21339 return resultobj;
21340 fail:
21341 return NULL;
21342 }
21343
21344
21345 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) {
21346 PyObject *resultobj = NULL;
21347 wxEffects *arg1 = (wxEffects *) 0 ;
21348 wxColour *arg2 = 0 ;
21349 wxColour temp2 ;
21350 PyObject * obj0 = 0 ;
21351 PyObject * obj1 = 0 ;
21352 char *kwnames[] = {
21353 (char *) "self",(char *) "c", NULL
21354 };
21355
21356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
21357 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21358 if (SWIG_arg_fail(1)) SWIG_fail;
21359 {
21360 arg2 = &temp2;
21361 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21362 }
21363 {
21364 PyThreadState* __tstate = wxPyBeginAllowThreads();
21365 (arg1)->SetHighlightColour((wxColour const &)*arg2);
21366
21367 wxPyEndAllowThreads(__tstate);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 }
21370 Py_INCREF(Py_None); resultobj = Py_None;
21371 return resultobj;
21372 fail:
21373 return NULL;
21374 }
21375
21376
21377 static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21378 PyObject *resultobj = NULL;
21379 wxEffects *arg1 = (wxEffects *) 0 ;
21380 wxColour *arg2 = 0 ;
21381 wxColour temp2 ;
21382 PyObject * obj0 = 0 ;
21383 PyObject * obj1 = 0 ;
21384 char *kwnames[] = {
21385 (char *) "self",(char *) "c", NULL
21386 };
21387
21388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
21389 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21390 if (SWIG_arg_fail(1)) SWIG_fail;
21391 {
21392 arg2 = &temp2;
21393 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21394 }
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 (arg1)->SetLightShadow((wxColour const &)*arg2);
21398
21399 wxPyEndAllowThreads(__tstate);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 Py_INCREF(Py_None); resultobj = Py_None;
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) {
21410 PyObject *resultobj = NULL;
21411 wxEffects *arg1 = (wxEffects *) 0 ;
21412 wxColour *arg2 = 0 ;
21413 wxColour temp2 ;
21414 PyObject * obj0 = 0 ;
21415 PyObject * obj1 = 0 ;
21416 char *kwnames[] = {
21417 (char *) "self",(char *) "c", NULL
21418 };
21419
21420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
21421 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21422 if (SWIG_arg_fail(1)) SWIG_fail;
21423 {
21424 arg2 = &temp2;
21425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21426 }
21427 {
21428 PyThreadState* __tstate = wxPyBeginAllowThreads();
21429 (arg1)->SetFaceColour((wxColour const &)*arg2);
21430
21431 wxPyEndAllowThreads(__tstate);
21432 if (PyErr_Occurred()) SWIG_fail;
21433 }
21434 Py_INCREF(Py_None); resultobj = Py_None;
21435 return resultobj;
21436 fail:
21437 return NULL;
21438 }
21439
21440
21441 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21442 PyObject *resultobj = NULL;
21443 wxEffects *arg1 = (wxEffects *) 0 ;
21444 wxColour *arg2 = 0 ;
21445 wxColour temp2 ;
21446 PyObject * obj0 = 0 ;
21447 PyObject * obj1 = 0 ;
21448 char *kwnames[] = {
21449 (char *) "self",(char *) "c", NULL
21450 };
21451
21452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
21453 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21454 if (SWIG_arg_fail(1)) SWIG_fail;
21455 {
21456 arg2 = &temp2;
21457 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21458 }
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 (arg1)->SetMediumShadow((wxColour const &)*arg2);
21462
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 Py_INCREF(Py_None); resultobj = Py_None;
21467 return resultobj;
21468 fail:
21469 return NULL;
21470 }
21471
21472
21473 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) {
21474 PyObject *resultobj = NULL;
21475 wxEffects *arg1 = (wxEffects *) 0 ;
21476 wxColour *arg2 = 0 ;
21477 wxColour temp2 ;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 char *kwnames[] = {
21481 (char *) "self",(char *) "c", NULL
21482 };
21483
21484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
21485 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21486 if (SWIG_arg_fail(1)) SWIG_fail;
21487 {
21488 arg2 = &temp2;
21489 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21490 }
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 (arg1)->SetDarkShadow((wxColour const &)*arg2);
21494
21495 wxPyEndAllowThreads(__tstate);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 }
21498 Py_INCREF(Py_None); resultobj = Py_None;
21499 return resultobj;
21500 fail:
21501 return NULL;
21502 }
21503
21504
21505 static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) {
21506 PyObject *resultobj = NULL;
21507 wxEffects *arg1 = (wxEffects *) 0 ;
21508 wxColour *arg2 = 0 ;
21509 wxColour *arg3 = 0 ;
21510 wxColour *arg4 = 0 ;
21511 wxColour *arg5 = 0 ;
21512 wxColour *arg6 = 0 ;
21513 wxColour temp2 ;
21514 wxColour temp3 ;
21515 wxColour temp4 ;
21516 wxColour temp5 ;
21517 wxColour temp6 ;
21518 PyObject * obj0 = 0 ;
21519 PyObject * obj1 = 0 ;
21520 PyObject * obj2 = 0 ;
21521 PyObject * obj3 = 0 ;
21522 PyObject * obj4 = 0 ;
21523 PyObject * obj5 = 0 ;
21524 char *kwnames[] = {
21525 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
21526 };
21527
21528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21529 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21530 if (SWIG_arg_fail(1)) SWIG_fail;
21531 {
21532 arg2 = &temp2;
21533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21534 }
21535 {
21536 arg3 = &temp3;
21537 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21538 }
21539 {
21540 arg4 = &temp4;
21541 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
21542 }
21543 {
21544 arg5 = &temp5;
21545 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
21546 }
21547 {
21548 arg6 = &temp6;
21549 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
21550 }
21551 {
21552 PyThreadState* __tstate = wxPyBeginAllowThreads();
21553 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
21554
21555 wxPyEndAllowThreads(__tstate);
21556 if (PyErr_Occurred()) SWIG_fail;
21557 }
21558 Py_INCREF(Py_None); resultobj = Py_None;
21559 return resultobj;
21560 fail:
21561 return NULL;
21562 }
21563
21564
21565 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) {
21566 PyObject *resultobj = NULL;
21567 wxEffects *arg1 = (wxEffects *) 0 ;
21568 wxDC *arg2 = 0 ;
21569 wxRect *arg3 = 0 ;
21570 int arg4 = (int) 1 ;
21571 wxRect temp3 ;
21572 PyObject * obj0 = 0 ;
21573 PyObject * obj1 = 0 ;
21574 PyObject * obj2 = 0 ;
21575 PyObject * obj3 = 0 ;
21576 char *kwnames[] = {
21577 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
21578 };
21579
21580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21581 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21582 if (SWIG_arg_fail(1)) SWIG_fail;
21583 {
21584 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21585 if (SWIG_arg_fail(2)) SWIG_fail;
21586 if (arg2 == NULL) {
21587 SWIG_null_ref("wxDC");
21588 }
21589 if (SWIG_arg_fail(2)) SWIG_fail;
21590 }
21591 {
21592 arg3 = &temp3;
21593 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21594 }
21595 if (obj3) {
21596 {
21597 arg4 = static_cast<int >(SWIG_As_int(obj3));
21598 if (SWIG_arg_fail(4)) SWIG_fail;
21599 }
21600 }
21601 {
21602 PyThreadState* __tstate = wxPyBeginAllowThreads();
21603 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
21604
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 Py_INCREF(Py_None); resultobj = Py_None;
21609 return resultobj;
21610 fail:
21611 return NULL;
21612 }
21613
21614
21615 static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
21616 PyObject *resultobj = NULL;
21617 wxEffects *arg1 = (wxEffects *) 0 ;
21618 wxRect *arg2 = 0 ;
21619 wxDC *arg3 = 0 ;
21620 wxBitmap *arg4 = 0 ;
21621 bool result;
21622 wxRect temp2 ;
21623 PyObject * obj0 = 0 ;
21624 PyObject * obj1 = 0 ;
21625 PyObject * obj2 = 0 ;
21626 PyObject * obj3 = 0 ;
21627 char *kwnames[] = {
21628 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
21629 };
21630
21631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21632 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxEffects, SWIG_POINTER_EXCEPTION | 0);
21633 if (SWIG_arg_fail(1)) SWIG_fail;
21634 {
21635 arg2 = &temp2;
21636 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21637 }
21638 {
21639 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21640 if (SWIG_arg_fail(3)) SWIG_fail;
21641 if (arg3 == NULL) {
21642 SWIG_null_ref("wxDC");
21643 }
21644 if (SWIG_arg_fail(3)) SWIG_fail;
21645 }
21646 {
21647 SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
21648 if (SWIG_arg_fail(4)) SWIG_fail;
21649 if (arg4 == NULL) {
21650 SWIG_null_ref("wxBitmap");
21651 }
21652 if (SWIG_arg_fail(4)) SWIG_fail;
21653 }
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
21657
21658 wxPyEndAllowThreads(__tstate);
21659 if (PyErr_Occurred()) SWIG_fail;
21660 }
21661 {
21662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21663 }
21664 return resultobj;
21665 fail:
21666 return NULL;
21667 }
21668
21669
21670 static PyObject * Effects_swigregister(PyObject *, PyObject *args) {
21671 PyObject *obj;
21672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21673 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
21674 Py_INCREF(obj);
21675 return Py_BuildValue((char *)"");
21676 }
21677 static PyObject *_wrap_new_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21678 PyObject *resultobj = NULL;
21679 int arg1 ;
21680 int arg2 ;
21681 bool arg3 ;
21682 wxSplitterRenderParams *result;
21683 PyObject * obj0 = 0 ;
21684 PyObject * obj1 = 0 ;
21685 PyObject * obj2 = 0 ;
21686 char *kwnames[] = {
21687 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
21688 };
21689
21690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) goto fail;
21691 {
21692 arg1 = static_cast<int >(SWIG_As_int(obj0));
21693 if (SWIG_arg_fail(1)) SWIG_fail;
21694 }
21695 {
21696 arg2 = static_cast<int >(SWIG_As_int(obj1));
21697 if (SWIG_arg_fail(2)) SWIG_fail;
21698 }
21699 {
21700 arg3 = static_cast<bool >(SWIG_As_bool(obj2));
21701 if (SWIG_arg_fail(3)) SWIG_fail;
21702 }
21703 {
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
21706
21707 wxPyEndAllowThreads(__tstate);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 }
21710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterRenderParams, 1);
21711 return resultobj;
21712 fail:
21713 return NULL;
21714 }
21715
21716
21717 static PyObject *_wrap_delete_SplitterRenderParams(PyObject *, PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj = NULL;
21719 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21720 PyObject * obj0 = 0 ;
21721 char *kwnames[] = {
21722 (char *) "self", NULL
21723 };
21724
21725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SplitterRenderParams",kwnames,&obj0)) goto fail;
21726 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21727 if (SWIG_arg_fail(1)) SWIG_fail;
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 delete arg1;
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 Py_INCREF(Py_None); resultobj = Py_None;
21736 return resultobj;
21737 fail:
21738 return NULL;
21739 }
21740
21741
21742 static PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *, PyObject *args, PyObject *kwargs) {
21743 PyObject *resultobj = NULL;
21744 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21745 int result;
21746 PyObject * obj0 = 0 ;
21747 char *kwnames[] = {
21748 (char *) "self", NULL
21749 };
21750
21751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_widthSash_get",kwnames,&obj0)) goto fail;
21752 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21753 if (SWIG_arg_fail(1)) SWIG_fail;
21754 result = (int)(int) ((arg1)->widthSash);
21755
21756 {
21757 resultobj = SWIG_From_int(static_cast<int >(result));
21758 }
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 static PyObject *_wrap_SplitterRenderParams_border_get(PyObject *, PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj = NULL;
21767 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21768 int result;
21769 PyObject * obj0 = 0 ;
21770 char *kwnames[] = {
21771 (char *) "self", NULL
21772 };
21773
21774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_border_get",kwnames,&obj0)) goto fail;
21775 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21776 if (SWIG_arg_fail(1)) SWIG_fail;
21777 result = (int)(int) ((arg1)->border);
21778
21779 {
21780 resultobj = SWIG_From_int(static_cast<int >(result));
21781 }
21782 return resultobj;
21783 fail:
21784 return NULL;
21785 }
21786
21787
21788 static PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *, PyObject *args, PyObject *kwargs) {
21789 PyObject *resultobj = NULL;
21790 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
21791 bool result;
21792 PyObject * obj0 = 0 ;
21793 char *kwnames[] = {
21794 (char *) "self", NULL
21795 };
21796
21797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterRenderParams_isHotSensitive_get",kwnames,&obj0)) goto fail;
21798 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_EXCEPTION | 0);
21799 if (SWIG_arg_fail(1)) SWIG_fail;
21800 result = (bool)(bool) ((arg1)->isHotSensitive);
21801
21802 {
21803 resultobj = SWIG_From_bool(static_cast<bool >(result));
21804 }
21805 return resultobj;
21806 fail:
21807 return NULL;
21808 }
21809
21810
21811 static PyObject * SplitterRenderParams_swigregister(PyObject *, PyObject *args) {
21812 PyObject *obj;
21813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21814 SWIG_TypeClientData(SWIGTYPE_p_wxSplitterRenderParams, obj);
21815 Py_INCREF(obj);
21816 return Py_BuildValue((char *)"");
21817 }
21818 static PyObject *_wrap_new_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21819 PyObject *resultobj = NULL;
21820 int arg1 ;
21821 int arg2 ;
21822 wxRendererVersion *result;
21823 PyObject * obj0 = 0 ;
21824 PyObject * obj1 = 0 ;
21825 char *kwnames[] = {
21826 (char *) "version_",(char *) "age_", NULL
21827 };
21828
21829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) goto fail;
21830 {
21831 arg1 = static_cast<int >(SWIG_As_int(obj0));
21832 if (SWIG_arg_fail(1)) SWIG_fail;
21833 }
21834 {
21835 arg2 = static_cast<int >(SWIG_As_int(obj1));
21836 if (SWIG_arg_fail(2)) SWIG_fail;
21837 }
21838 {
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
21841
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererVersion, 1);
21846 return resultobj;
21847 fail:
21848 return NULL;
21849 }
21850
21851
21852 static PyObject *_wrap_delete_RendererVersion(PyObject *, PyObject *args, PyObject *kwargs) {
21853 PyObject *resultobj = NULL;
21854 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21855 PyObject * obj0 = 0 ;
21856 char *kwnames[] = {
21857 (char *) "self", NULL
21858 };
21859
21860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RendererVersion",kwnames,&obj0)) goto fail;
21861 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21862 if (SWIG_arg_fail(1)) SWIG_fail;
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 delete arg1;
21866
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 Py_INCREF(Py_None); resultobj = Py_None;
21871 return resultobj;
21872 fail:
21873 return NULL;
21874 }
21875
21876
21877 static PyObject *_wrap_RendererVersion_IsCompatible(PyObject *, PyObject *args, PyObject *kwargs) {
21878 PyObject *resultobj = NULL;
21879 wxRendererVersion *arg1 = 0 ;
21880 bool result;
21881 PyObject * obj0 = 0 ;
21882 char *kwnames[] = {
21883 (char *) "ver", NULL
21884 };
21885
21886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) goto fail;
21887 {
21888 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21889 if (SWIG_arg_fail(1)) SWIG_fail;
21890 if (arg1 == NULL) {
21891 SWIG_null_ref("wxRendererVersion");
21892 }
21893 if (SWIG_arg_fail(1)) SWIG_fail;
21894 }
21895 {
21896 PyThreadState* __tstate = wxPyBeginAllowThreads();
21897 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
21898
21899 wxPyEndAllowThreads(__tstate);
21900 if (PyErr_Occurred()) SWIG_fail;
21901 }
21902 {
21903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21904 }
21905 return resultobj;
21906 fail:
21907 return NULL;
21908 }
21909
21910
21911 static PyObject *_wrap_RendererVersion_version_get(PyObject *, PyObject *args, PyObject *kwargs) {
21912 PyObject *resultobj = NULL;
21913 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21914 int result;
21915 PyObject * obj0 = 0 ;
21916 char *kwnames[] = {
21917 (char *) "self", NULL
21918 };
21919
21920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_version_get",kwnames,&obj0)) goto fail;
21921 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21922 if (SWIG_arg_fail(1)) SWIG_fail;
21923 result = (int)(int) ((arg1)->version);
21924
21925 {
21926 resultobj = SWIG_From_int(static_cast<int >(result));
21927 }
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 static PyObject *_wrap_RendererVersion_age_get(PyObject *, PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj = NULL;
21936 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
21937 int result;
21938 PyObject * obj0 = 0 ;
21939 char *kwnames[] = {
21940 (char *) "self", NULL
21941 };
21942
21943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_age_get",kwnames,&obj0)) goto fail;
21944 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_EXCEPTION | 0);
21945 if (SWIG_arg_fail(1)) SWIG_fail;
21946 result = (int)(int) ((arg1)->age);
21947
21948 {
21949 resultobj = SWIG_From_int(static_cast<int >(result));
21950 }
21951 return resultobj;
21952 fail:
21953 return NULL;
21954 }
21955
21956
21957 static PyObject * RendererVersion_swigregister(PyObject *, PyObject *args) {
21958 PyObject *obj;
21959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21960 SWIG_TypeClientData(SWIGTYPE_p_wxRendererVersion, obj);
21961 Py_INCREF(obj);
21962 return Py_BuildValue((char *)"");
21963 }
21964 static PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *, PyObject *args, PyObject *kwargs) {
21965 PyObject *resultobj = NULL;
21966 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
21967 wxWindow *arg2 = (wxWindow *) 0 ;
21968 wxDC *arg3 = 0 ;
21969 wxRect *arg4 = 0 ;
21970 int arg5 = (int) 0 ;
21971 wxRect temp4 ;
21972 PyObject * obj0 = 0 ;
21973 PyObject * obj1 = 0 ;
21974 PyObject * obj2 = 0 ;
21975 PyObject * obj3 = 0 ;
21976 PyObject * obj4 = 0 ;
21977 char *kwnames[] = {
21978 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
21979 };
21980
21981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21982 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
21983 if (SWIG_arg_fail(1)) SWIG_fail;
21984 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
21985 if (SWIG_arg_fail(2)) SWIG_fail;
21986 {
21987 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
21988 if (SWIG_arg_fail(3)) SWIG_fail;
21989 if (arg3 == NULL) {
21990 SWIG_null_ref("wxDC");
21991 }
21992 if (SWIG_arg_fail(3)) SWIG_fail;
21993 }
21994 {
21995 arg4 = &temp4;
21996 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21997 }
21998 if (obj4) {
21999 {
22000 arg5 = static_cast<int >(SWIG_As_int(obj4));
22001 if (SWIG_arg_fail(5)) SWIG_fail;
22002 }
22003 }
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22007
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
22011 Py_INCREF(Py_None); resultobj = Py_None;
22012 return resultobj;
22013 fail:
22014 return NULL;
22015 }
22016
22017
22018 static PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *, PyObject *args, PyObject *kwargs) {
22019 PyObject *resultobj = NULL;
22020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22021 wxWindow *arg2 = (wxWindow *) 0 ;
22022 wxDC *arg3 = 0 ;
22023 wxRect *arg4 = 0 ;
22024 int arg5 = (int) 0 ;
22025 wxRect temp4 ;
22026 PyObject * obj0 = 0 ;
22027 PyObject * obj1 = 0 ;
22028 PyObject * obj2 = 0 ;
22029 PyObject * obj3 = 0 ;
22030 PyObject * obj4 = 0 ;
22031 char *kwnames[] = {
22032 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22033 };
22034
22035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22036 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22037 if (SWIG_arg_fail(1)) SWIG_fail;
22038 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22039 if (SWIG_arg_fail(2)) SWIG_fail;
22040 {
22041 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22042 if (SWIG_arg_fail(3)) SWIG_fail;
22043 if (arg3 == NULL) {
22044 SWIG_null_ref("wxDC");
22045 }
22046 if (SWIG_arg_fail(3)) SWIG_fail;
22047 }
22048 {
22049 arg4 = &temp4;
22050 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22051 }
22052 if (obj4) {
22053 {
22054 arg5 = static_cast<int >(SWIG_As_int(obj4));
22055 if (SWIG_arg_fail(5)) SWIG_fail;
22056 }
22057 }
22058 {
22059 PyThreadState* __tstate = wxPyBeginAllowThreads();
22060 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22061
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 Py_INCREF(Py_None); resultobj = Py_None;
22066 return resultobj;
22067 fail:
22068 return NULL;
22069 }
22070
22071
22072 static PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *, PyObject *args, PyObject *kwargs) {
22073 PyObject *resultobj = NULL;
22074 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22075 wxWindow *arg2 = (wxWindow *) 0 ;
22076 wxDC *arg3 = 0 ;
22077 wxRect *arg4 = 0 ;
22078 int arg5 = (int) 0 ;
22079 wxRect temp4 ;
22080 PyObject * obj0 = 0 ;
22081 PyObject * obj1 = 0 ;
22082 PyObject * obj2 = 0 ;
22083 PyObject * obj3 = 0 ;
22084 PyObject * obj4 = 0 ;
22085 char *kwnames[] = {
22086 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22087 };
22088
22089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22090 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22091 if (SWIG_arg_fail(1)) SWIG_fail;
22092 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22093 if (SWIG_arg_fail(2)) SWIG_fail;
22094 {
22095 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22096 if (SWIG_arg_fail(3)) SWIG_fail;
22097 if (arg3 == NULL) {
22098 SWIG_null_ref("wxDC");
22099 }
22100 if (SWIG_arg_fail(3)) SWIG_fail;
22101 }
22102 {
22103 arg4 = &temp4;
22104 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22105 }
22106 if (obj4) {
22107 {
22108 arg5 = static_cast<int >(SWIG_As_int(obj4));
22109 if (SWIG_arg_fail(5)) SWIG_fail;
22110 }
22111 }
22112 {
22113 PyThreadState* __tstate = wxPyBeginAllowThreads();
22114 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
22115
22116 wxPyEndAllowThreads(__tstate);
22117 if (PyErr_Occurred()) SWIG_fail;
22118 }
22119 Py_INCREF(Py_None); resultobj = Py_None;
22120 return resultobj;
22121 fail:
22122 return NULL;
22123 }
22124
22125
22126 static PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *, PyObject *args, PyObject *kwargs) {
22127 PyObject *resultobj = NULL;
22128 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22129 wxWindow *arg2 = (wxWindow *) 0 ;
22130 wxDC *arg3 = 0 ;
22131 wxSize *arg4 = 0 ;
22132 int arg5 ;
22133 wxOrientation arg6 ;
22134 int arg7 = (int) 0 ;
22135 wxSize temp4 ;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 PyObject * obj2 = 0 ;
22139 PyObject * obj3 = 0 ;
22140 PyObject * obj4 = 0 ;
22141 PyObject * obj5 = 0 ;
22142 PyObject * obj6 = 0 ;
22143 char *kwnames[] = {
22144 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
22145 };
22146
22147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
22148 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22149 if (SWIG_arg_fail(1)) SWIG_fail;
22150 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22151 if (SWIG_arg_fail(2)) SWIG_fail;
22152 {
22153 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22154 if (SWIG_arg_fail(3)) SWIG_fail;
22155 if (arg3 == NULL) {
22156 SWIG_null_ref("wxDC");
22157 }
22158 if (SWIG_arg_fail(3)) SWIG_fail;
22159 }
22160 {
22161 arg4 = &temp4;
22162 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22163 }
22164 {
22165 arg5 = static_cast<int >(SWIG_As_int(obj4));
22166 if (SWIG_arg_fail(5)) SWIG_fail;
22167 }
22168 {
22169 arg6 = static_cast<wxOrientation >(SWIG_As_int(obj5));
22170 if (SWIG_arg_fail(6)) SWIG_fail;
22171 }
22172 if (obj6) {
22173 {
22174 arg7 = static_cast<int >(SWIG_As_int(obj6));
22175 if (SWIG_arg_fail(7)) SWIG_fail;
22176 }
22177 }
22178 {
22179 PyThreadState* __tstate = wxPyBeginAllowThreads();
22180 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
22181
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 Py_INCREF(Py_None); resultobj = Py_None;
22186 return resultobj;
22187 fail:
22188 return NULL;
22189 }
22190
22191
22192 static PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *, PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj = NULL;
22194 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22195 wxWindow *arg2 = (wxWindow *) 0 ;
22196 wxDC *arg3 = 0 ;
22197 wxRect *arg4 = 0 ;
22198 int arg5 = (int) 0 ;
22199 wxRect temp4 ;
22200 PyObject * obj0 = 0 ;
22201 PyObject * obj1 = 0 ;
22202 PyObject * obj2 = 0 ;
22203 PyObject * obj3 = 0 ;
22204 PyObject * obj4 = 0 ;
22205 char *kwnames[] = {
22206 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22207 };
22208
22209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22210 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22211 if (SWIG_arg_fail(1)) SWIG_fail;
22212 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22213 if (SWIG_arg_fail(2)) SWIG_fail;
22214 {
22215 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22216 if (SWIG_arg_fail(3)) SWIG_fail;
22217 if (arg3 == NULL) {
22218 SWIG_null_ref("wxDC");
22219 }
22220 if (SWIG_arg_fail(3)) SWIG_fail;
22221 }
22222 {
22223 arg4 = &temp4;
22224 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22225 }
22226 if (obj4) {
22227 {
22228 arg5 = static_cast<int >(SWIG_As_int(obj4));
22229 if (SWIG_arg_fail(5)) SWIG_fail;
22230 }
22231 }
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
22235
22236 wxPyEndAllowThreads(__tstate);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 }
22239 Py_INCREF(Py_None); resultobj = Py_None;
22240 return resultobj;
22241 fail:
22242 return NULL;
22243 }
22244
22245
22246 static PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *, PyObject *args, PyObject *kwargs) {
22247 PyObject *resultobj = NULL;
22248 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22249 wxWindow *arg2 = (wxWindow *) 0 ;
22250 wxDC *arg3 = 0 ;
22251 wxRect *arg4 = 0 ;
22252 int arg5 = (int) 0 ;
22253 wxRect temp4 ;
22254 PyObject * obj0 = 0 ;
22255 PyObject * obj1 = 0 ;
22256 PyObject * obj2 = 0 ;
22257 PyObject * obj3 = 0 ;
22258 PyObject * obj4 = 0 ;
22259 char *kwnames[] = {
22260 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
22261 };
22262
22263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22264 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22265 if (SWIG_arg_fail(1)) SWIG_fail;
22266 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22267 if (SWIG_arg_fail(2)) SWIG_fail;
22268 {
22269 SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
22270 if (SWIG_arg_fail(3)) SWIG_fail;
22271 if (arg3 == NULL) {
22272 SWIG_null_ref("wxDC");
22273 }
22274 if (SWIG_arg_fail(3)) SWIG_fail;
22275 }
22276 {
22277 arg4 = &temp4;
22278 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
22279 }
22280 if (obj4) {
22281 {
22282 arg5 = static_cast<int >(SWIG_As_int(obj4));
22283 if (SWIG_arg_fail(5)) SWIG_fail;
22284 }
22285 }
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
22289
22290 wxPyEndAllowThreads(__tstate);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 }
22293 Py_INCREF(Py_None); resultobj = Py_None;
22294 return resultobj;
22295 fail:
22296 return NULL;
22297 }
22298
22299
22300 static PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *, PyObject *args, PyObject *kwargs) {
22301 PyObject *resultobj = NULL;
22302 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22303 wxWindow *arg2 = (wxWindow *) 0 ;
22304 SwigValueWrapper<wxSplitterRenderParams > result;
22305 PyObject * obj0 = 0 ;
22306 PyObject * obj1 = 0 ;
22307 char *kwnames[] = {
22308 (char *) "self",(char *) "win", NULL
22309 };
22310
22311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) goto fail;
22312 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22313 if (SWIG_arg_fail(1)) SWIG_fail;
22314 SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0);
22315 if (SWIG_arg_fail(2)) SWIG_fail;
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
22319
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 {
22324 wxSplitterRenderParams * resultptr;
22325 resultptr = new wxSplitterRenderParams(static_cast<wxSplitterRenderParams & >(result));
22326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSplitterRenderParams, 1);
22327 }
22328 return resultobj;
22329 fail:
22330 return NULL;
22331 }
22332
22333
22334 static PyObject *_wrap_RendererNative_Get(PyObject *, PyObject *args, PyObject *kwargs) {
22335 PyObject *resultobj = NULL;
22336 wxRendererNative *result;
22337 char *kwnames[] = {
22338 NULL
22339 };
22340
22341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_Get",kwnames)) goto fail;
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 {
22345 wxRendererNative &_result_ref = wxRendererNative::Get();
22346 result = (wxRendererNative *) &_result_ref;
22347 }
22348
22349 wxPyEndAllowThreads(__tstate);
22350 if (PyErr_Occurred()) SWIG_fail;
22351 }
22352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22353 return resultobj;
22354 fail:
22355 return NULL;
22356 }
22357
22358
22359 static PyObject *_wrap_RendererNative_GetGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
22360 PyObject *resultobj = NULL;
22361 wxRendererNative *result;
22362 char *kwnames[] = {
22363 NULL
22364 };
22365
22366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetGeneric",kwnames)) goto fail;
22367 {
22368 PyThreadState* __tstate = wxPyBeginAllowThreads();
22369 {
22370 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
22371 result = (wxRendererNative *) &_result_ref;
22372 }
22373
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22378 return resultobj;
22379 fail:
22380 return NULL;
22381 }
22382
22383
22384 static PyObject *_wrap_RendererNative_GetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
22385 PyObject *resultobj = NULL;
22386 wxRendererNative *result;
22387 char *kwnames[] = {
22388 NULL
22389 };
22390
22391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":RendererNative_GetDefault",kwnames)) goto fail;
22392 {
22393 PyThreadState* __tstate = wxPyBeginAllowThreads();
22394 {
22395 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
22396 result = (wxRendererNative *) &_result_ref;
22397 }
22398
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22403 return resultobj;
22404 fail:
22405 return NULL;
22406 }
22407
22408
22409 static PyObject *_wrap_RendererNative_Set(PyObject *, PyObject *args, PyObject *kwargs) {
22410 PyObject *resultobj = NULL;
22411 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22412 wxRendererNative *result;
22413 PyObject * obj0 = 0 ;
22414 char *kwnames[] = {
22415 (char *) "renderer", NULL
22416 };
22417
22418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) goto fail;
22419 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22420 if (SWIG_arg_fail(1)) SWIG_fail;
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 result = (wxRendererNative *)wxRendererNative::Set(arg1);
22424
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRendererNative, 0);
22429 return resultobj;
22430 fail:
22431 return NULL;
22432 }
22433
22434
22435 static PyObject *_wrap_RendererNative_GetVersion(PyObject *, PyObject *args, PyObject *kwargs) {
22436 PyObject *resultobj = NULL;
22437 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
22438 SwigValueWrapper<wxRendererVersion > result;
22439 PyObject * obj0 = 0 ;
22440 char *kwnames[] = {
22441 (char *) "self", NULL
22442 };
22443
22444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_GetVersion",kwnames,&obj0)) goto fail;
22445 SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRendererNative, SWIG_POINTER_EXCEPTION | 0);
22446 if (SWIG_arg_fail(1)) SWIG_fail;
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = ((wxRendererNative const *)arg1)->GetVersion();
22450
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 {
22455 wxRendererVersion * resultptr;
22456 resultptr = new wxRendererVersion(static_cast<wxRendererVersion & >(result));
22457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRendererVersion, 1);
22458 }
22459 return resultobj;
22460 fail:
22461 return NULL;
22462 }
22463
22464
22465 static PyObject * RendererNative_swigregister(PyObject *, PyObject *args) {
22466 PyObject *obj;
22467 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22468 SWIG_TypeClientData(SWIGTYPE_p_wxRendererNative, obj);
22469 Py_INCREF(obj);
22470 return Py_BuildValue((char *)"");
22471 }
22472 static PyMethodDef SwigMethods[] = {
22473 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22474 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL},
22475 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22476 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
22477 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL},
22478 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
22479 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22480 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
22481 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22482 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
22483 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL},
22484 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL},
22485 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL},
22486 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22487 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22488 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22489 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
22490 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22491 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22492 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22493 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22494 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22495 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
22496 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22497 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
22498 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22499 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
22500 { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL},
22501 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22502 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
22503 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22504 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
22505 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22506 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22507 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22508 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22509 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22510 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22511 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
22512 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22513 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
22514 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22515 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22516 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22517 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22518 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
22519 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL},
22520 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22521 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22522 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22523 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22524 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
22525 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22526 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22527 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
22528 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22529 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22530 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22531 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
22532 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22533 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
22534 { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL},
22535 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22536 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
22537 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22538 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22539 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22540 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22541 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22542 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22543 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
22544 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22545 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22546 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22547 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22548 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22549 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22550 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22551 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL},
22552 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22553 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
22554 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
22555 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22556 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
22557 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22558 { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22559 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22560 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22561 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22562 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22563 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22564 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22565 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
22566 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22567 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22568 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
22569 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
22570 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
22571 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22572 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
22573 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22574 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22575 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22576 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
22577 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
22578 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22579 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22580 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22581 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22582 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22583 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22584 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22585 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22586 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22587 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22588 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22589 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
22590 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22591 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
22592 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22593 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22594 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22595 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22596 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
22597 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
22598 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22599 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22600 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22601 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL},
22602 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22603 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
22604 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22605 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
22606 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22607 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
22608 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
22609 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
22610 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22611 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
22612 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22613 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22614 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22615 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22616 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22617 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22618 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22619 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22620 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
22621 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22622 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22623 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22624 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
22625 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL},
22626 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22627 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
22628 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
22629 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22630 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
22631 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
22632 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL},
22633 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
22634 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
22635 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22636 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL},
22637 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
22638 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
22639 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22640 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
22641 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
22642 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22643 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
22644 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
22645 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22646 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22647 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22648 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
22649 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
22650 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22651 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
22652 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL},
22653 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL},
22654 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL},
22655 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22656 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL},
22657 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22658 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL},
22659 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL},
22660 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
22661 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL},
22662 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL},
22663 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
22664 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22665 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22666 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22667 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
22668 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22669 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction) _wrap_NativeFontInfo_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22670 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22671 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22672 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22673 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22674 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22675 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22676 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22677 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22678 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22679 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22680 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22681 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22682 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22683 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22684 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22685 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22686 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL},
22687 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22688 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL},
22689 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
22690 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL},
22691 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL},
22692 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL},
22693 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL},
22694 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22695 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22696 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
22697 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL},
22698 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
22699 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22700 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22701 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22702 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL},
22703 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL},
22704 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
22705 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22706 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL},
22707 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22708 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22709 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
22710 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
22711 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22712 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
22713 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22714 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
22715 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
22716 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
22717 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
22718 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
22719 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL},
22720 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22721 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
22722 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
22723 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22724 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22725 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22726 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
22727 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
22728 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22729 { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22730 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL},
22731 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22732 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22733 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22734 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22735 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22736 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22737 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22738 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22739 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22740 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22741 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22742 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
22743 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
22744 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
22745 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
22746 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
22747 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
22748 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22749 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22750 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
22751 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
22752 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL},
22753 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL},
22754 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL},
22755 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22756 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
22757 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22758 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22759 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
22760 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22761 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL},
22762 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22763 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22764 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22765 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
22766 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
22767 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
22768 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL},
22769 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL},
22770 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL},
22771 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL},
22772 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL},
22773 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL},
22774 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
22775 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22776 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
22777 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
22778 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
22779 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22780 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
22781 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
22782 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
22783 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22784 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22785 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL},
22786 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL},
22787 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
22788 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
22789 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
22790 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22791 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
22792 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
22793 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
22794 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
22795 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL},
22796 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
22797 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL},
22798 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
22799 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22800 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL},
22801 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
22802 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
22803 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22804 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
22805 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
22806 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
22807 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL},
22808 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
22809 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22810 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
22811 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
22812 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
22813 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22814 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
22815 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22816 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
22817 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22818 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
22819 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22820 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
22821 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
22822 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
22823 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22824 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22825 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22826 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22827 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22828 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22829 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
22830 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
22831 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22832 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
22833 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
22834 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
22835 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
22836 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22837 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22838 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22839 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22840 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22841 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
22842 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22843 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
22844 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22845 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
22846 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22847 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22848 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
22849 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22850 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22851 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
22852 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
22853 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22854 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
22855 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
22856 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
22857 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22858 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL},
22859 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL},
22860 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL},
22861 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22862 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22863 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22864 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22865 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22866 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
22867 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
22868 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22869 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
22870 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22871 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22872 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22873 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22874 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22875 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
22876 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22877 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22878 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL},
22879 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22880 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
22881 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
22882 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22883 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22884 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
22885 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
22886 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
22887 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
22888 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22889 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
22890 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
22891 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL},
22892 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22893 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
22894 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22895 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22896 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
22897 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
22898 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22899 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22900 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
22901 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
22902 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22903 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
22904 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22905 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
22906 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22907 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
22908 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22909 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22910 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22911 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22912 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22913 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL},
22914 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22915 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22916 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
22917 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22918 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
22919 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
22920 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22921 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
22922 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22923 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL},
22924 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL},
22925 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL},
22926 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL},
22927 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
22928 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS, NULL},
22929 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
22930 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
22931 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
22932 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
22933 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
22934 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
22935 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
22936 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
22937 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
22938 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
22939 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
22940 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
22941 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL},
22942 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL},
22943 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
22944 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22945 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
22946 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL},
22947 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
22948 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22949 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
22950 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
22951 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
22952 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
22953 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
22954 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
22955 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
22956 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
22957 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
22958 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
22959 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
22960 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22961 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
22962 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22963 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
22964 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
22965 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22966 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
22967 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL},
22968 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
22969 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22970 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
22971 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
22972 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
22973 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
22974 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
22975 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL},
22976 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
22977 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
22978 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
22979 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22980 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
22981 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
22982 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
22983 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22984 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
22985 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
22986 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
22987 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
22988 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
22989 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
22990 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL},
22991 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
22992 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
22993 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
22994 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
22995 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
22996 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
22997 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
22998 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
22999 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
23000 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
23001 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
23002 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
23003 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
23004 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL},
23005 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
23006 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
23007 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
23008 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
23009 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
23010 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
23011 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
23012 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
23013 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
23014 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
23015 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL},
23016 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
23017 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23018 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
23019 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23020 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23021 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
23022 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23023 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
23024 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23025 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
23026 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
23027 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
23028 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
23029 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
23030 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
23031 { (char *)"delete_SplitterRenderParams", (PyCFunction) _wrap_delete_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
23032 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction) _wrap_SplitterRenderParams_widthSash_get, METH_VARARGS | METH_KEYWORDS, NULL},
23033 { (char *)"SplitterRenderParams_border_get", (PyCFunction) _wrap_SplitterRenderParams_border_get, METH_VARARGS | METH_KEYWORDS, NULL},
23034 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction) _wrap_SplitterRenderParams_isHotSensitive_get, METH_VARARGS | METH_KEYWORDS, NULL},
23035 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
23036 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
23037 { (char *)"delete_RendererVersion", (PyCFunction) _wrap_delete_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
23038 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
23039 { (char *)"RendererVersion_version_get", (PyCFunction) _wrap_RendererVersion_version_get, METH_VARARGS | METH_KEYWORDS, NULL},
23040 { (char *)"RendererVersion_age_get", (PyCFunction) _wrap_RendererVersion_age_get, METH_VARARGS | METH_KEYWORDS, NULL},
23041 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
23042 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
23043 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
23044 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
23045 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
23046 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
23047 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
23048 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
23049 { (char *)"RendererNative_Get", (PyCFunction) _wrap_RendererNative_Get, METH_VARARGS | METH_KEYWORDS, NULL},
23050 { (char *)"RendererNative_GetGeneric", (PyCFunction) _wrap_RendererNative_GetGeneric, METH_VARARGS | METH_KEYWORDS, NULL},
23051 { (char *)"RendererNative_GetDefault", (PyCFunction) _wrap_RendererNative_GetDefault, METH_VARARGS | METH_KEYWORDS, NULL},
23052 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
23053 { (char *)"RendererNative_GetVersion", (PyCFunction) _wrap_RendererNative_GetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
23054 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
23055 { NULL, NULL, 0, NULL }
23056 };
23057
23058
23059 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
23060
23061 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
23062 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
23063 }
23064 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
23065 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
23066 }
23067 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
23068 return (void *)((wxGDIObject *) ((wxIcon *) x));
23069 }
23070 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
23071 return (void *)((wxGDIObject *) ((wxPalette *) x));
23072 }
23073 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
23074 return (void *)((wxGDIObject *) ((wxPen *) x));
23075 }
23076 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
23077 return (void *)((wxGDIObject *) ((wxFont *) x));
23078 }
23079 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
23080 return (void *)((wxGDIObject *) ((wxCursor *) x));
23081 }
23082 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
23083 return (void *)((wxGDIObject *) ((wxBitmap *) x));
23084 }
23085 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
23086 return (void *)((wxGDIObject *) ((wxRegion *) x));
23087 }
23088 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
23089 return (void *)((wxGDIObject *) ((wxBrush *) x));
23090 }
23091 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
23092 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
23093 }
23094 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
23095 return (void *)((wxDC *) ((wxScreenDC *) x));
23096 }
23097 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
23098 return (void *)((wxDC *) ((wxMirrorDC *) x));
23099 }
23100 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
23101 return (void *)((wxDC *) ((wxMemoryDC *) x));
23102 }
23103 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
23104 return (void *)((wxDC *) ((wxWindowDC *) x));
23105 }
23106 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
23107 return (void *)((wxDC *) ((wxMetaFileDC *) x));
23108 }
23109 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
23110 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
23111 }
23112 static void *_p_wxClientDCTo_p_wxDC(void *x) {
23113 return (void *)((wxDC *) ((wxClientDC *) x));
23114 }
23115 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
23116 return (void *)((wxDC *) ((wxPaintDC *) x));
23117 }
23118 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
23119 return (void *)((wxDC *) ((wxPostScriptDC *) x));
23120 }
23121 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
23122 return (void *)((wxDC *) ((wxPrinterDC *) x));
23123 }
23124 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
23125 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
23126 }
23127 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
23128 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
23129 }
23130 static void *_p_wxPenTo_p_wxObject(void *x) {
23131 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
23132 }
23133 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
23134 return (void *)((wxObject *) ((wxRegionIterator *) x));
23135 }
23136 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
23137 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
23138 }
23139 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
23140 return (void *)((wxObject *) ((wxSizerItem *) x));
23141 }
23142 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
23143 return (void *)((wxObject *) ((wxColourDatabase *) x));
23144 }
23145 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
23146 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
23147 }
23148 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
23149 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
23150 }
23151 static void *_p_wxIconTo_p_wxObject(void *x) {
23152 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
23153 }
23154 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
23155 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
23156 }
23157 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
23158 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
23159 }
23160 static void *_p_wxSizerTo_p_wxObject(void *x) {
23161 return (void *)((wxObject *) ((wxSizer *) x));
23162 }
23163 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
23164 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
23165 }
23166 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
23167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
23168 }
23169 static void *_p_wxPenListTo_p_wxObject(void *x) {
23170 return (void *)((wxObject *) ((wxPenList *) x));
23171 }
23172 static void *_p_wxEventTo_p_wxObject(void *x) {
23173 return (void *)((wxObject *) ((wxEvent *) x));
23174 }
23175 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
23176 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
23177 }
23178 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
23179 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
23180 }
23181 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
23182 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
23183 }
23184 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
23185 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
23186 }
23187 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
23188 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
23189 }
23190 static void *_p_wxDCTo_p_wxObject(void *x) {
23191 return (void *)((wxObject *) ((wxDC *) x));
23192 }
23193 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
23194 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
23195 }
23196 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
23197 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
23198 }
23199 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
23200 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
23201 }
23202 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
23203 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
23204 }
23205 static void *_p_wxControlTo_p_wxObject(void *x) {
23206 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
23207 }
23208 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
23209 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
23210 }
23211 static void *_p_wxClientDCTo_p_wxObject(void *x) {
23212 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
23213 }
23214 static void *_p_wxFSFileTo_p_wxObject(void *x) {
23215 return (void *)((wxObject *) ((wxFSFile *) x));
23216 }
23217 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
23218 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
23219 }
23220 static void *_p_wxRegionTo_p_wxObject(void *x) {
23221 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
23222 }
23223 static void *_p_wxPySizerTo_p_wxObject(void *x) {
23224 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
23225 }
23226 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
23227 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
23228 }
23229 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
23230 return (void *)((wxObject *) ((wxGDIObject *) x));
23231 }
23232 static void *_p_wxEffectsTo_p_wxObject(void *x) {
23233 return (void *)((wxObject *) ((wxEffects *) x));
23234 }
23235 static void *_p_wxPyEventTo_p_wxObject(void *x) {
23236 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
23237 }
23238 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
23239 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
23240 }
23241 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
23242 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
23243 }
23244 static void *_p_wxShowEventTo_p_wxObject(void *x) {
23245 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
23246 }
23247 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
23248 return (void *)((wxObject *) ((wxMenuItem *) x));
23249 }
23250 static void *_p_wxDateEventTo_p_wxObject(void *x) {
23251 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
23252 }
23253 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
23254 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
23255 }
23256 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
23257 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
23258 }
23259 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
23260 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
23261 }
23262 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
23263 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
23264 }
23265 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
23266 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
23267 }
23268 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
23269 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
23270 }
23271 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
23272 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
23273 }
23274 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
23275 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
23276 }
23277 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
23278 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
23279 }
23280 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
23281 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
23282 }
23283 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
23284 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
23285 }
23286 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
23287 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
23288 }
23289 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
23290 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
23291 }
23292 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
23293 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
23294 }
23295 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
23296 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
23297 }
23298 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
23299 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
23300 }
23301 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
23302 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
23303 }
23304 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
23305 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
23306 }
23307 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
23308 return (void *)((wxObject *) ((wxImageHandler *) x));
23309 }
23310 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
23311 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
23312 }
23313 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
23314 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
23315 }
23316 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
23317 return (void *)((wxObject *) ((wxEvtHandler *) x));
23318 }
23319 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
23320 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
23321 }
23322 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
23323 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
23324 }
23325 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
23326 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
23327 }
23328 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
23329 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
23330 }
23331 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
23332 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
23333 }
23334 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
23335 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
23336 }
23337 static void *_p_wxImageTo_p_wxObject(void *x) {
23338 return (void *)((wxObject *) ((wxImage *) x));
23339 }
23340 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
23341 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
23342 }
23343 static void *_p_wxPaletteTo_p_wxObject(void *x) {
23344 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
23345 }
23346 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
23347 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
23348 }
23349 static void *_p_wxImageListTo_p_wxObject(void *x) {
23350 return (void *)((wxObject *) ((wxImageList *) x));
23351 }
23352 static void *_p_wxCursorTo_p_wxObject(void *x) {
23353 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
23354 }
23355 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
23356 return (void *)((wxObject *) ((wxEncodingConverter *) x));
23357 }
23358 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
23359 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
23360 }
23361 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
23362 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
23363 }
23364 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
23365 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
23366 }
23367 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
23368 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
23369 }
23370 static void *_p_wxWindowTo_p_wxObject(void *x) {
23371 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
23372 }
23373 static void *_p_wxMenuTo_p_wxObject(void *x) {
23374 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
23375 }
23376 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
23377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
23378 }
23379 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
23380 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
23381 }
23382 static void *_p_wxBrushListTo_p_wxObject(void *x) {
23383 return (void *)((wxObject *) ((wxBrushList *) x));
23384 }
23385 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
23386 return (void *)((wxObject *) ((wxFileSystem *) x));
23387 }
23388 static void *_p_wxBitmapTo_p_wxObject(void *x) {
23389 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
23390 }
23391 static void *_p_wxMaskTo_p_wxObject(void *x) {
23392 return (void *)((wxObject *) ((wxMask *) x));
23393 }
23394 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
23395 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
23396 }
23397 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
23398 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
23399 }
23400 static void *_p_wxPyAppTo_p_wxObject(void *x) {
23401 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
23402 }
23403 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
23404 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
23405 }
23406 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
23407 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
23408 }
23409 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
23410 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
23411 }
23412 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
23413 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
23414 }
23415 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
23416 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
23417 }
23418 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
23419 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
23420 }
23421 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
23422 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
23423 }
23424 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
23425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
23426 }
23427 static void *_p_wxFontTo_p_wxObject(void *x) {
23428 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
23429 }
23430 static void *_p_wxBrushTo_p_wxObject(void *x) {
23431 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
23432 }
23433 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
23434 return (void *)((wxObject *) ((wxMetaFile *) x));
23435 }
23436 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
23437 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
23438 }
23439 static void *_p_wxColourTo_p_wxObject(void *x) {
23440 return (void *)((wxObject *) ((wxColour *) x));
23441 }
23442 static void *_p_wxFontListTo_p_wxObject(void *x) {
23443 return (void *)((wxObject *) ((wxFontList *) x));
23444 }
23445 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
23446 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
23447 }
23448 static void *_p_wxValidatorTo_p_wxObject(void *x) {
23449 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
23450 }
23451 static void *_p_wxControlTo_p_wxWindow(void *x) {
23452 return (void *)((wxWindow *) ((wxControl *) x));
23453 }
23454 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
23455 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
23456 }
23457 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
23458 return (void *)((wxWindow *) ((wxMenuBar *) x));
23459 }
23460 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0};
23461 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, 0};
23462 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0};
23463 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
23464 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0};
23465 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0};
23466 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0};
23467 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0};
23468 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, 0};
23469 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, 0};
23470 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, 0};
23471 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, 0};
23472 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, 0};
23473 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0};
23474 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, 0};
23475 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0};
23476 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0};
23477 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, 0};
23478 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0};
23479 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, 0};
23480 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, 0};
23481 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0};
23482 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, 0};
23483 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, 0};
23484 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, 0};
23485 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0};
23486 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, 0};
23487 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, 0};
23488 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, 0};
23489 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0};
23490 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, 0};
23491 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, 0};
23492 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, 0};
23493 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0};
23494 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, 0};
23495 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, 0};
23496 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, 0};
23497 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, 0};
23498 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, 0};
23499 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0};
23500 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0};
23501 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0};
23502 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0};
23503 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0};
23504 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0};
23505 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0};
23506 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0};
23507 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0};
23508 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0};
23509 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0};
23510 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0};
23511 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0};
23512 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0};
23513 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0};
23514 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0};
23515 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0};
23516 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0};
23517 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0};
23518 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0};
23519 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0};
23520 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0};
23521 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0};
23522 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0};
23523 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0};
23524 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0};
23525 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0};
23526 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0};
23527 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0};
23528 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0};
23529 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0};
23530 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0};
23531 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0};
23532 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0};
23533 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0};
23534 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0};
23535 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0};
23536 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0};
23537 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0};
23538 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0};
23539 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0};
23540 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0};
23541 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0};
23542 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0};
23543 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0};
23544 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0};
23545 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0};
23546 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0};
23547 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0};
23548 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0};
23549 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0};
23550 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0};
23551 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0};
23552 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0};
23553 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0};
23554 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0};
23555 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0};
23556 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0};
23557 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0};
23558 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0};
23559 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0};
23560 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0};
23561 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0};
23562 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0};
23563 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0};
23564 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0};
23565 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0};
23566 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0};
23567 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0};
23568 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0};
23569 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0};
23570 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0};
23571 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0};
23572 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0};
23573 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0};
23574 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, 0};
23575 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, 0};
23576 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0};
23577 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, 0};
23578 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, 0};
23579 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0};
23580 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, 0};
23581 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, 0};
23582 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, 0};
23583 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, 0};
23584 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0};
23585 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, 0};
23586 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, 0};
23587 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, 0};
23588 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, 0};
23589 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, 0};
23590 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0};
23591 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, 0};
23592 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0};
23593 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0};
23594 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, 0};
23595 static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0};
23596 static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0};
23597 static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0};
23598
23599 static swig_type_info *swig_type_initial[] = {
23600 &_swigt__p_char,
23601 &_swigt__p_double,
23602 &_swigt__p_form_ops_t,
23603 &_swigt__p_int,
23604 &_swigt__p_unsigned_char,
23605 &_swigt__p_unsigned_int,
23606 &_swigt__p_unsigned_long,
23607 &_swigt__p_wxANIHandler,
23608 &_swigt__p_wxAcceleratorTable,
23609 &_swigt__p_wxActivateEvent,
23610 &_swigt__p_wxBMPHandler,
23611 &_swigt__p_wxBitmap,
23612 &_swigt__p_wxBoxSizer,
23613 &_swigt__p_wxBrush,
23614 &_swigt__p_wxBrushList,
23615 &_swigt__p_wxBufferedDC,
23616 &_swigt__p_wxBufferedPaintDC,
23617 &_swigt__p_wxCURHandler,
23618 &_swigt__p_wxChildFocusEvent,
23619 &_swigt__p_wxClientDC,
23620 &_swigt__p_wxCloseEvent,
23621 &_swigt__p_wxColour,
23622 &_swigt__p_wxColourDatabase,
23623 &_swigt__p_wxCommandEvent,
23624 &_swigt__p_wxContextMenuEvent,
23625 &_swigt__p_wxControl,
23626 &_swigt__p_wxControlWithItems,
23627 &_swigt__p_wxCursor,
23628 &_swigt__p_wxDC,
23629 &_swigt__p_wxDash,
23630 &_swigt__p_wxDateEvent,
23631 &_swigt__p_wxDisplayChangedEvent,
23632 &_swigt__p_wxDropFilesEvent,
23633 &_swigt__p_wxDuplexMode,
23634 &_swigt__p_wxEffects,
23635 &_swigt__p_wxEncodingConverter,
23636 &_swigt__p_wxEraseEvent,
23637 &_swigt__p_wxEvent,
23638 &_swigt__p_wxEvtHandler,
23639 &_swigt__p_wxFSFile,
23640 &_swigt__p_wxFileSystem,
23641 &_swigt__p_wxFlexGridSizer,
23642 &_swigt__p_wxFocusEvent,
23643 &_swigt__p_wxFont,
23644 &_swigt__p_wxFontList,
23645 &_swigt__p_wxFontMapper,
23646 &_swigt__p_wxGBSizerItem,
23647 &_swigt__p_wxGDIObject,
23648 &_swigt__p_wxGIFHandler,
23649 &_swigt__p_wxGridBagSizer,
23650 &_swigt__p_wxGridSizer,
23651 &_swigt__p_wxICOHandler,
23652 &_swigt__p_wxIcon,
23653 &_swigt__p_wxIconBundle,
23654 &_swigt__p_wxIconLocation,
23655 &_swigt__p_wxIconizeEvent,
23656 &_swigt__p_wxIdleEvent,
23657 &_swigt__p_wxImage,
23658 &_swigt__p_wxImageHandler,
23659 &_swigt__p_wxImageList,
23660 &_swigt__p_wxIndividualLayoutConstraint,
23661 &_swigt__p_wxInitDialogEvent,
23662 &_swigt__p_wxJPEGHandler,
23663 &_swigt__p_wxKeyEvent,
23664 &_swigt__p_wxLanguageInfo,
23665 &_swigt__p_wxLayoutConstraints,
23666 &_swigt__p_wxLocale,
23667 &_swigt__p_wxMask,
23668 &_swigt__p_wxMaximizeEvent,
23669 &_swigt__p_wxMemoryDC,
23670 &_swigt__p_wxMenu,
23671 &_swigt__p_wxMenuBar,
23672 &_swigt__p_wxMenuEvent,
23673 &_swigt__p_wxMenuItem,
23674 &_swigt__p_wxMetaFile,
23675 &_swigt__p_wxMetaFileDC,
23676 &_swigt__p_wxMirrorDC,
23677 &_swigt__p_wxMouseCaptureChangedEvent,
23678 &_swigt__p_wxMouseEvent,
23679 &_swigt__p_wxMoveEvent,
23680 &_swigt__p_wxNativeEncodingInfo,
23681 &_swigt__p_wxNativeFontInfo,
23682 &_swigt__p_wxNavigationKeyEvent,
23683 &_swigt__p_wxNcPaintEvent,
23684 &_swigt__p_wxNotifyEvent,
23685 &_swigt__p_wxObject,
23686 &_swigt__p_wxPCXHandler,
23687 &_swigt__p_wxPNGHandler,
23688 &_swigt__p_wxPNMHandler,
23689 &_swigt__p_wxPaintDC,
23690 &_swigt__p_wxPaintEvent,
23691 &_swigt__p_wxPalette,
23692 &_swigt__p_wxPaletteChangedEvent,
23693 &_swigt__p_wxPaperSize,
23694 &_swigt__p_wxPen,
23695 &_swigt__p_wxPenList,
23696 &_swigt__p_wxPoint,
23697 &_swigt__p_wxPostScriptDC,
23698 &_swigt__p_wxPrintData,
23699 &_swigt__p_wxPrinterDC,
23700 &_swigt__p_wxPyApp,
23701 &_swigt__p_wxPyCommandEvent,
23702 &_swigt__p_wxPyEvent,
23703 &_swigt__p_wxPyFontEnumerator,
23704 &_swigt__p_wxPyImageHandler,
23705 &_swigt__p_wxPySizer,
23706 &_swigt__p_wxPyValidator,
23707 &_swigt__p_wxQueryNewPaletteEvent,
23708 &_swigt__p_wxRect,
23709 &_swigt__p_wxRegion,
23710 &_swigt__p_wxRegionIterator,
23711 &_swigt__p_wxRendererNative,
23712 &_swigt__p_wxRendererVersion,
23713 &_swigt__p_wxScreenDC,
23714 &_swigt__p_wxScrollEvent,
23715 &_swigt__p_wxScrollWinEvent,
23716 &_swigt__p_wxSetCursorEvent,
23717 &_swigt__p_wxShowEvent,
23718 &_swigt__p_wxSize,
23719 &_swigt__p_wxSizeEvent,
23720 &_swigt__p_wxSizer,
23721 &_swigt__p_wxSizerItem,
23722 &_swigt__p_wxSplitterRenderParams,
23723 &_swigt__p_wxStaticBoxSizer,
23724 &_swigt__p_wxStdDialogButtonSizer,
23725 &_swigt__p_wxString,
23726 &_swigt__p_wxSysColourChangedEvent,
23727 &_swigt__p_wxTIFFHandler,
23728 &_swigt__p_wxUpdateUIEvent,
23729 &_swigt__p_wxValidator,
23730 &_swigt__p_wxWindow,
23731 &_swigt__p_wxWindowCreateEvent,
23732 &_swigt__p_wxWindowDC,
23733 &_swigt__p_wxWindowDestroyEvent,
23734 &_swigt__p_wxXPMHandler,
23735 &_swigt__ptrdiff_t,
23736 &_swigt__std__ptrdiff_t,
23737 &_swigt__unsigned_int,
23738 };
23739
23740 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
23741 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
23742 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
23743 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
23744 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
23745 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
23746 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
23747 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
23748 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
23749 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
23750 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}};
23751 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
23752 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
23753 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
23754 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
23755 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
23756 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}};
23757 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
23758 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
23759 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
23760 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
23761 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
23762 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
23763 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
23764 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}};
23765 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
23766 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
23767 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
23768 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
23769 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
23770 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
23771 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
23772 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
23773 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}};
23774 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
23775 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
23776 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
23777 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
23778 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
23779 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
23780 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
23781 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
23782 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
23783 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
23784 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
23785 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
23786 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
23787 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
23788 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
23789 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
23790 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
23791 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23792 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
23793 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
23794 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23795 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
23796 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23797 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23798 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23799 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
23800 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
23801 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
23802 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
23803 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
23804 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
23805 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
23806 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
23807 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
23808 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
23809 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
23810 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
23811 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
23812 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23813 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23814 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
23815 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
23816 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
23817 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
23818 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
23819 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
23820 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
23821 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23822 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
23823 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
23824 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
23825 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
23826 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
23827 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
23828 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
23829 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
23830 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
23831 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
23832 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
23833 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
23834 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
23835 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23836 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
23837 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
23838 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
23839 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23840 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
23841 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
23842 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
23843 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
23844 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
23845 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23846 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
23847 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
23848 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23849 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
23850 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
23851 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
23852 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
23853 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}};
23854 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
23855 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
23856 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
23857 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
23858 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
23859 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
23860 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
23861 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
23862 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
23863 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
23864 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
23865 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
23866 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
23867 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
23868 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
23869 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
23870 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
23871 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
23872 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
23873 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}};
23874 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
23875 static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23876 static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}};
23877 static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
23878
23879 static swig_cast_info *swig_cast_initial[] = {
23880 _swigc__p_char,
23881 _swigc__p_double,
23882 _swigc__p_form_ops_t,
23883 _swigc__p_int,
23884 _swigc__p_unsigned_char,
23885 _swigc__p_unsigned_int,
23886 _swigc__p_unsigned_long,
23887 _swigc__p_wxANIHandler,
23888 _swigc__p_wxAcceleratorTable,
23889 _swigc__p_wxActivateEvent,
23890 _swigc__p_wxBMPHandler,
23891 _swigc__p_wxBitmap,
23892 _swigc__p_wxBoxSizer,
23893 _swigc__p_wxBrush,
23894 _swigc__p_wxBrushList,
23895 _swigc__p_wxBufferedDC,
23896 _swigc__p_wxBufferedPaintDC,
23897 _swigc__p_wxCURHandler,
23898 _swigc__p_wxChildFocusEvent,
23899 _swigc__p_wxClientDC,
23900 _swigc__p_wxCloseEvent,
23901 _swigc__p_wxColour,
23902 _swigc__p_wxColourDatabase,
23903 _swigc__p_wxCommandEvent,
23904 _swigc__p_wxContextMenuEvent,
23905 _swigc__p_wxControl,
23906 _swigc__p_wxControlWithItems,
23907 _swigc__p_wxCursor,
23908 _swigc__p_wxDC,
23909 _swigc__p_wxDash,
23910 _swigc__p_wxDateEvent,
23911 _swigc__p_wxDisplayChangedEvent,
23912 _swigc__p_wxDropFilesEvent,
23913 _swigc__p_wxDuplexMode,
23914 _swigc__p_wxEffects,
23915 _swigc__p_wxEncodingConverter,
23916 _swigc__p_wxEraseEvent,
23917 _swigc__p_wxEvent,
23918 _swigc__p_wxEvtHandler,
23919 _swigc__p_wxFSFile,
23920 _swigc__p_wxFileSystem,
23921 _swigc__p_wxFlexGridSizer,
23922 _swigc__p_wxFocusEvent,
23923 _swigc__p_wxFont,
23924 _swigc__p_wxFontList,
23925 _swigc__p_wxFontMapper,
23926 _swigc__p_wxGBSizerItem,
23927 _swigc__p_wxGDIObject,
23928 _swigc__p_wxGIFHandler,
23929 _swigc__p_wxGridBagSizer,
23930 _swigc__p_wxGridSizer,
23931 _swigc__p_wxICOHandler,
23932 _swigc__p_wxIcon,
23933 _swigc__p_wxIconBundle,
23934 _swigc__p_wxIconLocation,
23935 _swigc__p_wxIconizeEvent,
23936 _swigc__p_wxIdleEvent,
23937 _swigc__p_wxImage,
23938 _swigc__p_wxImageHandler,
23939 _swigc__p_wxImageList,
23940 _swigc__p_wxIndividualLayoutConstraint,
23941 _swigc__p_wxInitDialogEvent,
23942 _swigc__p_wxJPEGHandler,
23943 _swigc__p_wxKeyEvent,
23944 _swigc__p_wxLanguageInfo,
23945 _swigc__p_wxLayoutConstraints,
23946 _swigc__p_wxLocale,
23947 _swigc__p_wxMask,
23948 _swigc__p_wxMaximizeEvent,
23949 _swigc__p_wxMemoryDC,
23950 _swigc__p_wxMenu,
23951 _swigc__p_wxMenuBar,
23952 _swigc__p_wxMenuEvent,
23953 _swigc__p_wxMenuItem,
23954 _swigc__p_wxMetaFile,
23955 _swigc__p_wxMetaFileDC,
23956 _swigc__p_wxMirrorDC,
23957 _swigc__p_wxMouseCaptureChangedEvent,
23958 _swigc__p_wxMouseEvent,
23959 _swigc__p_wxMoveEvent,
23960 _swigc__p_wxNativeEncodingInfo,
23961 _swigc__p_wxNativeFontInfo,
23962 _swigc__p_wxNavigationKeyEvent,
23963 _swigc__p_wxNcPaintEvent,
23964 _swigc__p_wxNotifyEvent,
23965 _swigc__p_wxObject,
23966 _swigc__p_wxPCXHandler,
23967 _swigc__p_wxPNGHandler,
23968 _swigc__p_wxPNMHandler,
23969 _swigc__p_wxPaintDC,
23970 _swigc__p_wxPaintEvent,
23971 _swigc__p_wxPalette,
23972 _swigc__p_wxPaletteChangedEvent,
23973 _swigc__p_wxPaperSize,
23974 _swigc__p_wxPen,
23975 _swigc__p_wxPenList,
23976 _swigc__p_wxPoint,
23977 _swigc__p_wxPostScriptDC,
23978 _swigc__p_wxPrintData,
23979 _swigc__p_wxPrinterDC,
23980 _swigc__p_wxPyApp,
23981 _swigc__p_wxPyCommandEvent,
23982 _swigc__p_wxPyEvent,
23983 _swigc__p_wxPyFontEnumerator,
23984 _swigc__p_wxPyImageHandler,
23985 _swigc__p_wxPySizer,
23986 _swigc__p_wxPyValidator,
23987 _swigc__p_wxQueryNewPaletteEvent,
23988 _swigc__p_wxRect,
23989 _swigc__p_wxRegion,
23990 _swigc__p_wxRegionIterator,
23991 _swigc__p_wxRendererNative,
23992 _swigc__p_wxRendererVersion,
23993 _swigc__p_wxScreenDC,
23994 _swigc__p_wxScrollEvent,
23995 _swigc__p_wxScrollWinEvent,
23996 _swigc__p_wxSetCursorEvent,
23997 _swigc__p_wxShowEvent,
23998 _swigc__p_wxSize,
23999 _swigc__p_wxSizeEvent,
24000 _swigc__p_wxSizer,
24001 _swigc__p_wxSizerItem,
24002 _swigc__p_wxSplitterRenderParams,
24003 _swigc__p_wxStaticBoxSizer,
24004 _swigc__p_wxStdDialogButtonSizer,
24005 _swigc__p_wxString,
24006 _swigc__p_wxSysColourChangedEvent,
24007 _swigc__p_wxTIFFHandler,
24008 _swigc__p_wxUpdateUIEvent,
24009 _swigc__p_wxValidator,
24010 _swigc__p_wxWindow,
24011 _swigc__p_wxWindowCreateEvent,
24012 _swigc__p_wxWindowDC,
24013 _swigc__p_wxWindowDestroyEvent,
24014 _swigc__p_wxXPMHandler,
24015 _swigc__ptrdiff_t,
24016 _swigc__std__ptrdiff_t,
24017 _swigc__unsigned_int,
24018 };
24019
24020
24021 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
24022
24023 static swig_const_info swig_const_table[] = {
24024 {0, 0, 0, 0.0, 0, 0}};
24025
24026 #ifdef __cplusplus
24027 }
24028 #endif
24029 /*************************************************************************
24030 * Type initialization:
24031 * This problem is tough by the requirement that no dynamic
24032 * memory is used. Also, since swig_type_info structures store pointers to
24033 * swig_cast_info structures and swig_cast_info structures store pointers back
24034 * to swig_type_info structures, we need some lookup code at initialization.
24035 * The idea is that swig generates all the structures that are needed.
24036 * The runtime then collects these partially filled structures.
24037 * The SWIG_InitializeModule function takes these initial arrays out of
24038 * swig_module, and does all the lookup, filling in the swig_module.types
24039 * array with the correct data and linking the correct swig_cast_info
24040 * structures together.
24041
24042 * The generated swig_type_info structures are assigned staticly to an initial
24043 * array. We just loop though that array, and handle each type individually.
24044 * First we lookup if this type has been already loaded, and if so, use the
24045 * loaded structure instead of the generated one. Then we have to fill in the
24046 * cast linked list. The cast data is initially stored in something like a
24047 * two-dimensional array. Each row corresponds to a type (there are the same
24048 * number of rows as there are in the swig_type_initial array). Each entry in
24049 * a column is one of the swig_cast_info structures for that type.
24050 * The cast_initial array is actually an array of arrays, because each row has
24051 * a variable number of columns. So to actually build the cast linked list,
24052 * we find the array of casts associated with the type, and loop through it
24053 * adding the casts to the list. The one last trick we need to do is making
24054 * sure the type pointer in the swig_cast_info struct is correct.
24055
24056 * First off, we lookup the cast->type name to see if it is already loaded.
24057 * There are three cases to handle:
24058 * 1) If the cast->type has already been loaded AND the type we are adding
24059 * casting info to has not been loaded (it is in this module), THEN we
24060 * replace the cast->type pointer with the type pointer that has already
24061 * been loaded.
24062 * 2) If BOTH types (the one we are adding casting info to, and the
24063 * cast->type) are loaded, THEN the cast info has already been loaded by
24064 * the previous module so we just ignore it.
24065 * 3) Finally, if cast->type has not already been loaded, then we add that
24066 * swig_cast_info to the linked list (because the cast->type) pointer will
24067 * be correct.
24068 **/
24069
24070 #ifdef __cplusplus
24071 extern "C" {
24072 #if 0
24073 } /* c-mode */
24074 #endif
24075 #endif
24076
24077 #if 0
24078 #define SWIGRUNTIME_DEBUG
24079 #endif
24080
24081 SWIGRUNTIME void
24082 SWIG_InitializeModule(void *clientdata) {
24083 size_t i;
24084 swig_module_info *module_head;
24085 static int init_run = 0;
24086
24087 clientdata = clientdata;
24088
24089 if (init_run) return;
24090 init_run = 1;
24091
24092 /* Initialize the swig_module */
24093 swig_module.type_initial = swig_type_initial;
24094 swig_module.cast_initial = swig_cast_initial;
24095
24096 /* Try and load any already created modules */
24097 module_head = SWIG_GetModule(clientdata);
24098 if (module_head) {
24099 swig_module.next = module_head->next;
24100 module_head->next = &swig_module;
24101 } else {
24102 /* This is the first module loaded */
24103 swig_module.next = &swig_module;
24104 SWIG_SetModule(clientdata, &swig_module);
24105 }
24106
24107 /* Now work on filling in swig_module.types */
24108 #ifdef SWIGRUNTIME_DEBUG
24109 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
24110 #endif
24111 for (i = 0; i < swig_module.size; ++i) {
24112 swig_type_info *type = 0;
24113 swig_type_info *ret;
24114 swig_cast_info *cast;
24115
24116 #ifdef SWIGRUNTIME_DEBUG
24117 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
24118 #endif
24119
24120 /* if there is another module already loaded */
24121 if (swig_module.next != &swig_module) {
24122 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
24123 }
24124 if (type) {
24125 /* Overwrite clientdata field */
24126 #ifdef SWIGRUNTIME_DEBUG
24127 printf("SWIG_InitializeModule: found type %s\n", type->name);
24128 #endif
24129 if (swig_module.type_initial[i]->clientdata) {
24130 type->clientdata = swig_module.type_initial[i]->clientdata;
24131 #ifdef SWIGRUNTIME_DEBUG
24132 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
24133 #endif
24134 }
24135 } else {
24136 type = swig_module.type_initial[i];
24137 }
24138
24139 /* Insert casting types */
24140 cast = swig_module.cast_initial[i];
24141 while (cast->type) {
24142 /* Don't need to add information already in the list */
24143 ret = 0;
24144 #ifdef SWIGRUNTIME_DEBUG
24145 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
24146 #endif
24147 if (swig_module.next != &swig_module) {
24148 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
24149 #ifdef SWIGRUNTIME_DEBUG
24150 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
24151 #endif
24152 }
24153 if (ret) {
24154 if (type == swig_module.type_initial[i]) {
24155 #ifdef SWIGRUNTIME_DEBUG
24156 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
24157 #endif
24158 cast->type = ret;
24159 ret = 0;
24160 } else {
24161 /* Check for casting already in the list */
24162 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
24163 #ifdef SWIGRUNTIME_DEBUG
24164 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
24165 #endif
24166 if (!ocast) ret = 0;
24167 }
24168 }
24169
24170 if (!ret) {
24171 #ifdef SWIGRUNTIME_DEBUG
24172 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
24173 #endif
24174 if (type->cast) {
24175 type->cast->prev = cast;
24176 cast->next = type->cast;
24177 }
24178 type->cast = cast;
24179 }
24180 cast++;
24181 }
24182 /* Set entry in modules->types array equal to the type */
24183 swig_module.types[i] = type;
24184 }
24185 swig_module.types[i] = 0;
24186
24187 #ifdef SWIGRUNTIME_DEBUG
24188 printf("**** SWIG_InitializeModule: Cast List ******\n");
24189 for (i = 0; i < swig_module.size; ++i) {
24190 int j = 0;
24191 swig_cast_info *cast = swig_module.cast_initial[i];
24192 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
24193 while (cast->type) {
24194 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
24195 cast++;
24196 ++j;
24197 }
24198 printf("---- Total casts: %d\n",j);
24199 }
24200 printf("**** SWIG_InitializeModule: Cast List ******\n");
24201 #endif
24202 }
24203
24204 /* This function will propagate the clientdata field of type to
24205 * any new swig_type_info structures that have been added into the list
24206 * of equivalent types. It is like calling
24207 * SWIG_TypeClientData(type, clientdata) a second time.
24208 */
24209 SWIGRUNTIME void
24210 SWIG_PropagateClientData(void) {
24211 size_t i;
24212 swig_cast_info *equiv;
24213 static int init_run = 0;
24214
24215 if (init_run) return;
24216 init_run = 1;
24217
24218 for (i = 0; i < swig_module.size; i++) {
24219 if (swig_module.types[i]->clientdata) {
24220 equiv = swig_module.types[i]->cast;
24221 while (equiv) {
24222 if (!equiv->converter) {
24223 if (equiv->type && !equiv->type->clientdata)
24224 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
24225 }
24226 equiv = equiv->next;
24227 }
24228 }
24229 }
24230 }
24231
24232 #ifdef __cplusplus
24233 #if 0
24234 {
24235 /* c-mode */
24236 #endif
24237 }
24238 #endif
24239
24240
24241
24242 #ifdef __cplusplus
24243 extern "C" {
24244 #endif
24245
24246 /* Python-specific SWIG API */
24247 #define SWIG_newvarlink() SWIG_Python_newvarlink()
24248 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
24249 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
24250
24251 /* -----------------------------------------------------------------------------
24252 * global variable support code.
24253 * ----------------------------------------------------------------------------- */
24254
24255 typedef struct swig_globalvar {
24256 char *name; /* Name of global variable */
24257 PyObject *(*get_attr)(void); /* Return the current value */
24258 int (*set_attr)(PyObject *); /* Set the value */
24259 struct swig_globalvar *next;
24260 } swig_globalvar;
24261
24262 typedef struct swig_varlinkobject {
24263 PyObject_HEAD
24264 swig_globalvar *vars;
24265 } swig_varlinkobject;
24266
24267 SWIGINTERN PyObject *
24268 swig_varlink_repr(swig_varlinkobject *v) {
24269 v = v;
24270 return PyString_FromString("<Swig global variables>");
24271 }
24272
24273 SWIGINTERN int
24274 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
24275 swig_globalvar *var;
24276 flags = flags;
24277 fprintf(fp,"Swig global variables { ");
24278 for (var = v->vars; var; var=var->next) {
24279 fprintf(fp,"%s", var->name);
24280 if (var->next) fprintf(fp,", ");
24281 }
24282 fprintf(fp," }\n");
24283 return 0;
24284 }
24285
24286 SWIGINTERN PyObject *
24287 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
24288 swig_globalvar *var = v->vars;
24289 while (var) {
24290 if (strcmp(var->name,n) == 0) {
24291 return (*var->get_attr)();
24292 }
24293 var = var->next;
24294 }
24295 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
24296 return NULL;
24297 }
24298
24299 SWIGINTERN int
24300 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
24301 swig_globalvar *var = v->vars;
24302 while (var) {
24303 if (strcmp(var->name,n) == 0) {
24304 return (*var->set_attr)(p);
24305 }
24306 var = var->next;
24307 }
24308 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
24309 return 1;
24310 }
24311
24312 SWIGINTERN PyTypeObject*
24313 swig_varlink_type(void) {
24314 static char varlink__doc__[] = "Swig var link object";
24315 static PyTypeObject varlink_type
24316 #if !defined(__cplusplus)
24317 ;
24318 static int type_init = 0;
24319 if (!type_init) {
24320 PyTypeObject tmp
24321 #endif
24322 = {
24323 PyObject_HEAD_INIT(&PyType_Type)
24324 0, /* Number of items in variable part (ob_size) */
24325 (char *)"swigvarlink", /* Type name (tp_name) */
24326 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
24327 0, /* Itemsize (tp_itemsize) */
24328 0, /* Deallocator (tp_dealloc) */
24329 (printfunc) swig_varlink_print, /* Print (tp_print) */
24330 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
24331 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
24332 0, /* tp_compare */
24333 (reprfunc) swig_varlink_repr, /* tp_repr */
24334 0, /* tp_as_number */
24335 0, /* tp_as_sequence */
24336 0, /* tp_as_mapping */
24337 0, /* tp_hash */
24338 0, /* tp_call */
24339 0, /* tp_str */
24340 0, /* tp_getattro */
24341 0, /* tp_setattro */
24342 0, /* tp_as_buffer */
24343 0, /* tp_flags */
24344 varlink__doc__, /* tp_doc */
24345 #if PY_VERSION_HEX >= 0x02000000
24346 0, /* tp_traverse */
24347 0, /* tp_clear */
24348 #endif
24349 #if PY_VERSION_HEX >= 0x02010000
24350 0, /* tp_richcompare */
24351 0, /* tp_weaklistoffset */
24352 #endif
24353 #if PY_VERSION_HEX >= 0x02020000
24354 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
24355 #endif
24356 #if PY_VERSION_HEX >= 0x02030000
24357 0, /* tp_del */
24358 #endif
24359 #ifdef COUNT_ALLOCS
24360 0,0,0,0 /* tp_alloc -> tp_next */
24361 #endif
24362 };
24363 #if !defined(__cplusplus)
24364 varlink_type = tmp;
24365 type_init = 1;
24366 }
24367 #endif
24368 return &varlink_type;
24369 }
24370
24371 /* Create a variable linking object for use later */
24372 SWIGINTERN PyObject *
24373 SWIG_Python_newvarlink(void) {
24374 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
24375 if (result) {
24376 result->vars = 0;
24377 }
24378 return ((PyObject*) result);
24379 }
24380
24381 SWIGINTERN void
24382 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
24383 swig_varlinkobject *v = (swig_varlinkobject *) p;
24384 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
24385 if (gv) {
24386 size_t size = strlen(name)+1;
24387 gv->name = (char *)malloc(size);
24388 if (gv->name) {
24389 strncpy(gv->name,name,size);
24390 gv->get_attr = get_attr;
24391 gv->set_attr = set_attr;
24392 gv->next = v->vars;
24393 }
24394 }
24395 v->vars = gv;
24396 }
24397
24398 /* -----------------------------------------------------------------------------
24399 * constants/methods manipulation
24400 * ----------------------------------------------------------------------------- */
24401
24402 /* Install Constants */
24403 SWIGINTERN void
24404 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
24405 PyObject *obj = 0;
24406 size_t i;
24407 for (i = 0; constants[i].type; ++i) {
24408 switch(constants[i].type) {
24409 case SWIG_PY_INT:
24410 obj = PyInt_FromLong(constants[i].lvalue);
24411 break;
24412 case SWIG_PY_FLOAT:
24413 obj = PyFloat_FromDouble(constants[i].dvalue);
24414 break;
24415 case SWIG_PY_STRING:
24416 if (constants[i].pvalue) {
24417 obj = PyString_FromString((char *) constants[i].pvalue);
24418 } else {
24419 Py_INCREF(Py_None);
24420 obj = Py_None;
24421 }
24422 break;
24423 case SWIG_PY_POINTER:
24424 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
24425 break;
24426 case SWIG_PY_BINARY:
24427 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
24428 break;
24429 default:
24430 obj = 0;
24431 break;
24432 }
24433 if (obj) {
24434 PyDict_SetItemString(d,constants[i].name,obj);
24435 Py_DECREF(obj);
24436 }
24437 }
24438 }
24439
24440 /* -----------------------------------------------------------------------------*/
24441 /* Fix SwigMethods to carry the callback ptrs when needed */
24442 /* -----------------------------------------------------------------------------*/
24443
24444 SWIGINTERN void
24445 SWIG_Python_FixMethods(PyMethodDef *methods,
24446 swig_const_info *const_table,
24447 swig_type_info **types,
24448 swig_type_info **types_initial) {
24449 size_t i;
24450 for (i = 0; methods[i].ml_name; ++i) {
24451 char *c = methods[i].ml_doc;
24452 if (c && (c = strstr(c, "swig_ptr: "))) {
24453 int j;
24454 swig_const_info *ci = 0;
24455 char *name = c + 10;
24456 for (j = 0; const_table[j].type; ++j) {
24457 if (strncmp(const_table[j].name, name,
24458 strlen(const_table[j].name)) == 0) {
24459 ci = &(const_table[j]);
24460 break;
24461 }
24462 }
24463 if (ci) {
24464 size_t shift = (ci->ptype) - types;
24465 swig_type_info *ty = types_initial[shift];
24466 size_t ldoc = (c - methods[i].ml_doc);
24467 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
24468 char *ndoc = (char*)malloc(ldoc + lptr + 10);
24469 if (ndoc) {
24470 char *buff = ndoc;
24471 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
24472 if (ptr) {
24473 strncpy(buff, methods[i].ml_doc, ldoc);
24474 buff += ldoc;
24475 strncpy(buff, "swig_ptr: ", 10);
24476 buff += 10;
24477 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
24478 methods[i].ml_doc = ndoc;
24479 }
24480 }
24481 }
24482 }
24483 }
24484 }
24485
24486 /* -----------------------------------------------------------------------------*
24487 * Initialize type list
24488 * -----------------------------------------------------------------------------*/
24489
24490 #ifdef __cplusplus
24491 }
24492 #endif
24493
24494 /* -----------------------------------------------------------------------------*
24495 * Partial Init method
24496 * -----------------------------------------------------------------------------*/
24497
24498 #ifdef __cplusplus
24499 extern "C"
24500 #endif
24501 SWIGEXPORT void SWIG_init(void) {
24502 static PyObject *SWIG_globals = 0;
24503 PyObject *m, *d;
24504 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
24505
24506 /* Fix SwigMethods to carry the callback ptrs when needed */
24507 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
24508
24509 m = Py_InitModule((char *) SWIG_name, SwigMethods);
24510 d = PyModule_GetDict(m);
24511
24512 SWIG_InitializeModule(0);
24513 SWIG_InstallConstants(d,swig_const_table);
24514
24515 {
24516 PyDict_SetItemString(d,"OutRegion", SWIG_From_int(static_cast<int >(wxOutRegion)));
24517 }
24518 {
24519 PyDict_SetItemString(d,"PartRegion", SWIG_From_int(static_cast<int >(wxPartRegion)));
24520 }
24521 {
24522 PyDict_SetItemString(d,"InRegion", SWIG_From_int(static_cast<int >(wxInRegion)));
24523 }
24524 {
24525 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DEFAULT)));
24526 }
24527 {
24528 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_DECORATIVE)));
24529 }
24530 {
24531 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_ROMAN)));
24532 }
24533 {
24534 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SCRIPT)));
24535 }
24536 {
24537 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int(static_cast<int >(wxFONTFAMILY_SWISS)));
24538 }
24539 {
24540 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MODERN)));
24541 }
24542 {
24543 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int(static_cast<int >(wxFONTFAMILY_TELETYPE)));
24544 }
24545 {
24546 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int(static_cast<int >(wxFONTFAMILY_MAX)));
24547 }
24548 {
24549 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int(static_cast<int >(wxFONTFAMILY_UNKNOWN)));
24550 }
24551 {
24552 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int(static_cast<int >(wxFONTSTYLE_NORMAL)));
24553 }
24554 {
24555 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int(static_cast<int >(wxFONTSTYLE_ITALIC)));
24556 }
24557 {
24558 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int(static_cast<int >(wxFONTSTYLE_SLANT)));
24559 }
24560 {
24561 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int(static_cast<int >(wxFONTSTYLE_MAX)));
24562 }
24563 {
24564 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_NORMAL)));
24565 }
24566 {
24567 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_LIGHT)));
24568 }
24569 {
24570 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_BOLD)));
24571 }
24572 {
24573 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int(static_cast<int >(wxFONTWEIGHT_MAX)));
24574 }
24575 {
24576 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTFLAG_DEFAULT)));
24577 }
24578 {
24579 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int(static_cast<int >(wxFONTFLAG_ITALIC)));
24580 }
24581 {
24582 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int(static_cast<int >(wxFONTFLAG_SLANT)));
24583 }
24584 {
24585 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int(static_cast<int >(wxFONTFLAG_LIGHT)));
24586 }
24587 {
24588 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int(static_cast<int >(wxFONTFLAG_BOLD)));
24589 }
24590 {
24591 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_ANTIALIASED)));
24592 }
24593 {
24594 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int(static_cast<int >(wxFONTFLAG_NOT_ANTIALIASED)));
24595 }
24596 {
24597 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int(static_cast<int >(wxFONTFLAG_UNDERLINED)));
24598 }
24599 {
24600 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int(static_cast<int >(wxFONTFLAG_STRIKETHROUGH)));
24601 }
24602 {
24603 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int(static_cast<int >(wxFONTFLAG_MASK)));
24604 }
24605 {
24606 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int(static_cast<int >(wxFONTENCODING_SYSTEM)));
24607 }
24608 {
24609 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int(static_cast<int >(wxFONTENCODING_DEFAULT)));
24610 }
24611 {
24612 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_1)));
24613 }
24614 {
24615 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_2)));
24616 }
24617 {
24618 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_3)));
24619 }
24620 {
24621 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_4)));
24622 }
24623 {
24624 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_5)));
24625 }
24626 {
24627 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_6)));
24628 }
24629 {
24630 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_7)));
24631 }
24632 {
24633 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_8)));
24634 }
24635 {
24636 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_9)));
24637 }
24638 {
24639 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_10)));
24640 }
24641 {
24642 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_11)));
24643 }
24644 {
24645 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_12)));
24646 }
24647 {
24648 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_13)));
24649 }
24650 {
24651 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_14)));
24652 }
24653 {
24654 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_15)));
24655 }
24656 {
24657 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_ISO8859_MAX)));
24658 }
24659 {
24660 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8)));
24661 }
24662 {
24663 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int(static_cast<int >(wxFONTENCODING_KOI8_U)));
24664 }
24665 {
24666 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int(static_cast<int >(wxFONTENCODING_ALTERNATIVE)));
24667 }
24668 {
24669 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_BULGARIAN)));
24670 }
24671 {
24672 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP437)));
24673 }
24674 {
24675 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP850)));
24676 }
24677 {
24678 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP852)));
24679 }
24680 {
24681 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP855)));
24682 }
24683 {
24684 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP866)));
24685 }
24686 {
24687 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP874)));
24688 }
24689 {
24690 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP932)));
24691 }
24692 {
24693 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP936)));
24694 }
24695 {
24696 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP949)));
24697 }
24698 {
24699 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP950)));
24700 }
24701 {
24702 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1250)));
24703 }
24704 {
24705 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1251)));
24706 }
24707 {
24708 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1252)));
24709 }
24710 {
24711 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1253)));
24712 }
24713 {
24714 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1254)));
24715 }
24716 {
24717 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1255)));
24718 }
24719 {
24720 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1256)));
24721 }
24722 {
24723 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP1257)));
24724 }
24725 {
24726 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_CP12_MAX)));
24727 }
24728 {
24729 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF7)));
24730 }
24731 {
24732 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF8)));
24733 }
24734 {
24735 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int(static_cast<int >(wxFONTENCODING_EUC_JP)));
24736 }
24737 {
24738 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16BE)));
24739 }
24740 {
24741 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16LE)));
24742 }
24743 {
24744 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32BE)));
24745 }
24746 {
24747 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32LE)));
24748 }
24749 {
24750 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMAN)));
24751 }
24752 {
24753 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACJAPANESE)));
24754 }
24755 {
24756 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESETRAD)));
24757 }
24758 {
24759 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKOREAN)));
24760 }
24761 {
24762 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABIC)));
24763 }
24764 {
24765 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACHEBREW)));
24766 }
24767 {
24768 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGREEK)));
24769 }
24770 {
24771 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCYRILLIC)));
24772 }
24773 {
24774 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDEVANAGARI)));
24775 }
24776 {
24777 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGURMUKHI)));
24778 }
24779 {
24780 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGUJARATI)));
24781 }
24782 {
24783 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACORIYA)));
24784 }
24785 {
24786 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBENGALI)));
24787 }
24788 {
24789 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTAMIL)));
24790 }
24791 {
24792 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTELUGU)));
24793 }
24794 {
24795 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKANNADA)));
24796 }
24797 {
24798 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMALAJALAM)));
24799 }
24800 {
24801 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSINHALESE)));
24802 }
24803 {
24804 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACBURMESE)));
24805 }
24806 {
24807 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKHMER)));
24808 }
24809 {
24810 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTHAI)));
24811 }
24812 {
24813 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACLAOTIAN)));
24814 }
24815 {
24816 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGEORGIAN)));
24817 }
24818 {
24819 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARMENIAN)));
24820 }
24821 {
24822 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCHINESESIMP)));
24823 }
24824 {
24825 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTIBETAN)));
24826 }
24827 {
24828 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMONGOLIAN)));
24829 }
24830 {
24831 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACETHIOPIC)));
24832 }
24833 {
24834 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCENTRALEUR)));
24835 }
24836 {
24837 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACVIATNAMESE)));
24838 }
24839 {
24840 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACARABICEXT)));
24841 }
24842 {
24843 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACSYMBOL)));
24844 }
24845 {
24846 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACDINGBATS)));
24847 }
24848 {
24849 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACTURKISH)));
24850 }
24851 {
24852 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCROATIAN)));
24853 }
24854 {
24855 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACICELANDIC)));
24856 }
24857 {
24858 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACROMANIAN)));
24859 }
24860 {
24861 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACCELTIC)));
24862 }
24863 {
24864 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACGAELIC)));
24865 }
24866 {
24867 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACKEYBOARD)));
24868 }
24869 {
24870 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMIN)));
24871 }
24872 {
24873 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MACMAX)));
24874 }
24875 {
24876 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int(static_cast<int >(wxFONTENCODING_MAX)));
24877 }
24878 {
24879 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF16)));
24880 }
24881 {
24882 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int(static_cast<int >(wxFONTENCODING_UTF32)));
24883 }
24884 {
24885 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int(static_cast<int >(wxFONTENCODING_UNICODE)));
24886 }
24887 {
24888 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int(static_cast<int >(wxFONTENCODING_GB2312)));
24889 }
24890 {
24891 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int(static_cast<int >(wxFONTENCODING_BIG5)));
24892 }
24893 {
24894 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int(static_cast<int >(wxFONTENCODING_SHIFT_JIS)));
24895 }
24896
24897 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
24898
24899 {
24900 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int(static_cast<int >(wxLANGUAGE_DEFAULT)));
24901 }
24902 {
24903 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UNKNOWN)));
24904 }
24905 {
24906 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ABKHAZIAN)));
24907 }
24908 {
24909 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFAR)));
24910 }
24911 {
24912 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int(static_cast<int >(wxLANGUAGE_AFRIKAANS)));
24913 }
24914 {
24915 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ALBANIAN)));
24916 }
24917 {
24918 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AMHARIC)));
24919 }
24920 {
24921 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC)));
24922 }
24923 {
24924 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_ALGERIA)));
24925 }
24926 {
24927 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_BAHRAIN)));
24928 }
24929 {
24930 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_EGYPT)));
24931 }
24932 {
24933 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_IRAQ)));
24934 }
24935 {
24936 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_JORDAN)));
24937 }
24938 {
24939 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_KUWAIT)));
24940 }
24941 {
24942 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LEBANON)));
24943 }
24944 {
24945 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_LIBYA)));
24946 }
24947 {
24948 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_MOROCCO)));
24949 }
24950 {
24951 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_OMAN)));
24952 }
24953 {
24954 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_QATAR)));
24955 }
24956 {
24957 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
24958 }
24959 {
24960 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SUDAN)));
24961 }
24962 {
24963 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_SYRIA)));
24964 }
24965 {
24966 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_TUNISIA)));
24967 }
24968 {
24969 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_UAE)));
24970 }
24971 {
24972 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARABIC_YEMEN)));
24973 }
24974 {
24975 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ARMENIAN)));
24976 }
24977 {
24978 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ASSAMESE)));
24979 }
24980 {
24981 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int(static_cast<int >(wxLANGUAGE_AYMARA)));
24982 }
24983 {
24984 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI)));
24985 }
24986 {
24987 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_CYRILLIC)));
24988 }
24989 {
24990 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_AZERI_LATIN)));
24991 }
24992 {
24993 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASHKIR)));
24994 }
24995 {
24996 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BASQUE)));
24997 }
24998 {
24999 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BELARUSIAN)));
25000 }
25001 {
25002 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BENGALI)));
25003 }
25004 {
25005 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BHUTANI)));
25006 }
25007 {
25008 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int(static_cast<int >(wxLANGUAGE_BIHARI)));
25009 }
25010 {
25011 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_BISLAMA)));
25012 }
25013 {
25014 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int(static_cast<int >(wxLANGUAGE_BRETON)));
25015 }
25016 {
25017 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_BULGARIAN)));
25018 }
25019 {
25020 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_BURMESE)));
25021 }
25022 {
25023 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CAMBODIAN)));
25024 }
25025 {
25026 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CATALAN)));
25027 }
25028 {
25029 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE)));
25030 }
25031 {
25032 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
25033 }
25034 {
25035 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
25036 }
25037 {
25038 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_HONGKONG)));
25039 }
25040 {
25041 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_MACAU)));
25042 }
25043 {
25044 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_SINGAPORE)));
25045 }
25046 {
25047 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CHINESE_TAIWAN)));
25048 }
25049 {
25050 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CORSICAN)));
25051 }
25052 {
25053 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_CROATIAN)));
25054 }
25055 {
25056 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int(static_cast<int >(wxLANGUAGE_CZECH)));
25057 }
25058 {
25059 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DANISH)));
25060 }
25061 {
25062 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH)));
25063 }
25064 {
25065 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_DUTCH_BELGIAN)));
25066 }
25067 {
25068 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH)));
25069 }
25070 {
25071 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_UK)));
25072 }
25073 {
25074 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_US)));
25075 }
25076 {
25077 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
25078 }
25079 {
25080 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BELIZE)));
25081 }
25082 {
25083 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
25084 }
25085 {
25086 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CANADA)));
25087 }
25088 {
25089 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
25090 }
25091 {
25092 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_DENMARK)));
25093 }
25094 {
25095 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_EIRE)));
25096 }
25097 {
25098 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_JAMAICA)));
25099 }
25100 {
25101 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
25102 }
25103 {
25104 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
25105 }
25106 {
25107 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
25108 }
25109 {
25110 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
25111 }
25112 {
25113 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int(static_cast<int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
25114 }
25115 {
25116 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESPERANTO)));
25117 }
25118 {
25119 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ESTONIAN)));
25120 }
25121 {
25122 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_FAEROESE)));
25123 }
25124 {
25125 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FARSI)));
25126 }
25127 {
25128 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int(static_cast<int >(wxLANGUAGE_FIJI)));
25129 }
25130 {
25131 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FINNISH)));
25132 }
25133 {
25134 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH)));
25135 }
25136 {
25137 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_BELGIAN)));
25138 }
25139 {
25140 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_CANADIAN)));
25141 }
25142 {
25143 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
25144 }
25145 {
25146 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_MONACO)));
25147 }
25148 {
25149 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRENCH_SWISS)));
25150 }
25151 {
25152 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_FRISIAN)));
25153 }
25154 {
25155 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GALICIAN)));
25156 }
25157 {
25158 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GEORGIAN)));
25159 }
25160 {
25161 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN)));
25162 }
25163 {
25164 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
25165 }
25166 {
25167 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_BELGIUM)));
25168 }
25169 {
25170 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
25171 }
25172 {
25173 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
25174 }
25175 {
25176 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_GERMAN_SWISS)));
25177 }
25178 {
25179 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREEK)));
25180 }
25181 {
25182 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_GREENLANDIC)));
25183 }
25184 {
25185 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUARANI)));
25186 }
25187 {
25188 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_GUJARATI)));
25189 }
25190 {
25191 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_HAUSA)));
25192 }
25193 {
25194 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int(static_cast<int >(wxLANGUAGE_HEBREW)));
25195 }
25196 {
25197 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_HINDI)));
25198 }
25199 {
25200 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_HUNGARIAN)));
25201 }
25202 {
25203 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_ICELANDIC)));
25204 }
25205 {
25206 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_INDONESIAN)));
25207 }
25208 {
25209 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUA)));
25210 }
25211 {
25212 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int(static_cast<int >(wxLANGUAGE_INTERLINGUE)));
25213 }
25214 {
25215 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUKTITUT)));
25216 }
25217 {
25218 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_INUPIAK)));
25219 }
25220 {
25221 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_IRISH)));
25222 }
25223 {
25224 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN)));
25225 }
25226 {
25227 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int(static_cast<int >(wxLANGUAGE_ITALIAN_SWISS)));
25228 }
25229 {
25230 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAPANESE)));
25231 }
25232 {
25233 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_JAVANESE)));
25234 }
25235 {
25236 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KANNADA)));
25237 }
25238 {
25239 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI)));
25240 }
25241 {
25242 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KASHMIRI_INDIA)));
25243 }
25244 {
25245 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KAZAKH)));
25246 }
25247 {
25248 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_KERNEWEK)));
25249 }
25250 {
25251 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int(static_cast<int >(wxLANGUAGE_KINYARWANDA)));
25252 }
25253 {
25254 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRGHIZ)));
25255 }
25256 {
25257 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KIRUNDI)));
25258 }
25259 {
25260 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int(static_cast<int >(wxLANGUAGE_KONKANI)));
25261 }
25262 {
25263 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_KOREAN)));
25264 }
25265 {
25266 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_KURDISH)));
25267 }
25268 {
25269 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LAOTHIAN)));
25270 }
25271 {
25272 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATIN)));
25273 }
25274 {
25275 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LATVIAN)));
25276 }
25277 {
25278 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_LINGALA)));
25279 }
25280 {
25281 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_LITHUANIAN)));
25282 }
25283 {
25284 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MACEDONIAN)));
25285 }
25286 {
25287 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAGASY)));
25288 }
25289 {
25290 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY)));
25291 }
25292 {
25293 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAYALAM)));
25294 }
25295 {
25296 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
25297 }
25298 {
25299 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALAY_MALAYSIA)));
25300 }
25301 {
25302 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_MALTESE)));
25303 }
25304 {
25305 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MANIPURI)));
25306 }
25307 {
25308 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MAORI)));
25309 }
25310 {
25311 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_MARATHI)));
25312 }
25313 {
25314 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MOLDAVIAN)));
25315 }
25316 {
25317 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_MONGOLIAN)));
25318 }
25319 {
25320 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int(static_cast<int >(wxLANGUAGE_NAURU)));
25321 }
25322 {
25323 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI)));
25324 }
25325 {
25326 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_NEPALI_INDIA)));
25327 }
25328 {
25329 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
25330 }
25331 {
25332 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int(static_cast<int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
25333 }
25334 {
25335 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_OCCITAN)));
25336 }
25337 {
25338 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_ORIYA)));
25339 }
25340 {
25341 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int(static_cast<int >(wxLANGUAGE_OROMO)));
25342 }
25343 {
25344 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int(static_cast<int >(wxLANGUAGE_PASHTO)));
25345 }
25346 {
25347 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_POLISH)));
25348 }
25349 {
25350 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE)));
25351 }
25352 {
25353 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
25354 }
25355 {
25356 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int(static_cast<int >(wxLANGUAGE_PUNJABI)));
25357 }
25358 {
25359 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_QUECHUA)));
25360 }
25361 {
25362 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RHAETO_ROMANCE)));
25363 }
25364 {
25365 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_ROMANIAN)));
25366 }
25367 {
25368 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN)));
25369 }
25370 {
25371 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int(static_cast<int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
25372 }
25373 {
25374 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SAMOAN)));
25375 }
25376 {
25377 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANGHO)));
25378 }
25379 {
25380 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int(static_cast<int >(wxLANGUAGE_SANSKRIT)));
25381 }
25382 {
25383 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SCOTS_GAELIC)));
25384 }
25385 {
25386 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN)));
25387 }
25388 {
25389 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
25390 }
25391 {
25392 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBIAN_LATIN)));
25393 }
25394 {
25395 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SERBO_CROATIAN)));
25396 }
25397 {
25398 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SESOTHO)));
25399 }
25400 {
25401 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SETSWANA)));
25402 }
25403 {
25404 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SHONA)));
25405 }
25406 {
25407 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINDHI)));
25408 }
25409 {
25410 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SINHALESE)));
25411 }
25412 {
25413 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SISWATI)));
25414 }
25415 {
25416 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVAK)));
25417 }
25418 {
25419 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SLOVENIAN)));
25420 }
25421 {
25422 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SOMALI)));
25423 }
25424 {
25425 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH)));
25426 }
25427 {
25428 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ARGENTINA)));
25429 }
25430 {
25431 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_BOLIVIA)));
25432 }
25433 {
25434 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_CHILE)));
25435 }
25436 {
25437 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COLOMBIA)));
25438 }
25439 {
25440 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
25441 }
25442 {
25443 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
25444 }
25445 {
25446 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_ECUADOR)));
25447 }
25448 {
25449 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
25450 }
25451 {
25452 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_GUATEMALA)));
25453 }
25454 {
25455 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_HONDURAS)));
25456 }
25457 {
25458 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MEXICAN)));
25459 }
25460 {
25461 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_MODERN)));
25462 }
25463 {
25464 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_NICARAGUA)));
25465 }
25466 {
25467 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PANAMA)));
25468 }
25469 {
25470 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PARAGUAY)));
25471 }
25472 {
25473 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PERU)));
25474 }
25475 {
25476 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
25477 }
25478 {
25479 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_URUGUAY)));
25480 }
25481 {
25482 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_US)));
25483 }
25484 {
25485 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int(static_cast<int >(wxLANGUAGE_SPANISH_VENEZUELA)));
25486 }
25487 {
25488 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_SUNDANESE)));
25489 }
25490 {
25491 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWAHILI)));
25492 }
25493 {
25494 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH)));
25495 }
25496 {
25497 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int(static_cast<int >(wxLANGUAGE_SWEDISH_FINLAND)));
25498 }
25499 {
25500 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAGALOG)));
25501 }
25502 {
25503 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAJIK)));
25504 }
25505 {
25506 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int(static_cast<int >(wxLANGUAGE_TAMIL)));
25507 }
25508 {
25509 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int(static_cast<int >(wxLANGUAGE_TATAR)));
25510 }
25511 {
25512 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int(static_cast<int >(wxLANGUAGE_TELUGU)));
25513 }
25514 {
25515 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int(static_cast<int >(wxLANGUAGE_THAI)));
25516 }
25517 {
25518 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIBETAN)));
25519 }
25520 {
25521 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TIGRINYA)));
25522 }
25523 {
25524 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TONGA)));
25525 }
25526 {
25527 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int(static_cast<int >(wxLANGUAGE_TSONGA)));
25528 }
25529 {
25530 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKISH)));
25531 }
25532 {
25533 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int(static_cast<int >(wxLANGUAGE_TURKMEN)));
25534 }
25535 {
25536 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int(static_cast<int >(wxLANGUAGE_TWI)));
25537 }
25538 {
25539 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int(static_cast<int >(wxLANGUAGE_UIGHUR)));
25540 }
25541 {
25542 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UKRAINIAN)));
25543 }
25544 {
25545 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU)));
25546 }
25547 {
25548 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_INDIA)));
25549 }
25550 {
25551 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int(static_cast<int >(wxLANGUAGE_URDU_PAKISTAN)));
25552 }
25553 {
25554 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK)));
25555 }
25556 {
25557 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_CYRILLIC)));
25558 }
25559 {
25560 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int(static_cast<int >(wxLANGUAGE_UZBEK_LATIN)));
25561 }
25562 {
25563 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int(static_cast<int >(wxLANGUAGE_VIETNAMESE)));
25564 }
25565 {
25566 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int(static_cast<int >(wxLANGUAGE_VOLAPUK)));
25567 }
25568 {
25569 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int(static_cast<int >(wxLANGUAGE_WELSH)));
25570 }
25571 {
25572 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int(static_cast<int >(wxLANGUAGE_WOLOF)));
25573 }
25574 {
25575 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int(static_cast<int >(wxLANGUAGE_XHOSA)));
25576 }
25577 {
25578 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int(static_cast<int >(wxLANGUAGE_YIDDISH)));
25579 }
25580 {
25581 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int(static_cast<int >(wxLANGUAGE_YORUBA)));
25582 }
25583 {
25584 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZHUANG)));
25585 }
25586 {
25587 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int(static_cast<int >(wxLANGUAGE_ZULU)));
25588 }
25589 {
25590 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int(static_cast<int >(wxLANGUAGE_USER_DEFINED)));
25591 }
25592 {
25593 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_NUMBER)));
25594 }
25595 {
25596 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_DATE)));
25597 }
25598 {
25599 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MONEY)));
25600 }
25601 {
25602 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int(static_cast<int >(wxLOCALE_CAT_MAX)));
25603 }
25604 {
25605 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int(static_cast<int >(wxLOCALE_THOUSANDS_SEP)));
25606 }
25607 {
25608 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int(static_cast<int >(wxLOCALE_DECIMAL_POINT)));
25609 }
25610 {
25611 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int(static_cast<int >(wxLOCALE_LOAD_DEFAULT)));
25612 }
25613 {
25614 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int(static_cast<int >(wxLOCALE_CONV_ENCODING)));
25615 }
25616 {
25617 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int(static_cast<int >(wxCONVERT_STRICT)));
25618 }
25619 {
25620 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int(static_cast<int >(wxCONVERT_SUBSTITUTE)));
25621 }
25622 {
25623 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int(static_cast<int >(wxPLATFORM_CURRENT)));
25624 }
25625 {
25626 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int(static_cast<int >(wxPLATFORM_UNIX)));
25627 }
25628 {
25629 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int(static_cast<int >(wxPLATFORM_WINDOWS)));
25630 }
25631 {
25632 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int(static_cast<int >(wxPLATFORM_OS2)));
25633 }
25634 {
25635 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int(static_cast<int >(wxPLATFORM_MAC)));
25636 }
25637 {
25638 PyDict_SetItemString(d,"BUFFER_VIRTUAL_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_VIRTUAL_AREA)));
25639 }
25640 {
25641 PyDict_SetItemString(d,"BUFFER_CLIENT_AREA", SWIG_From_int(static_cast<int >(wxBUFFER_CLIENT_AREA)));
25642 }
25643 {
25644 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_NORMAL)));
25645 }
25646 {
25647 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_TRANSPARENT)));
25648 }
25649 {
25650 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_SELECTED)));
25651 }
25652 {
25653 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int(static_cast<int >(wxIMAGELIST_DRAW_FOCUSED)));
25654 }
25655 {
25656 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_NORMAL)));
25657 }
25658 {
25659 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_SMALL)));
25660 }
25661 {
25662 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int(static_cast<int >(wxIMAGE_LIST_STATE)));
25663 }
25664 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
25665 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
25666 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
25667 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
25668 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
25669 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
25670 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
25671 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
25672 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
25673 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
25674 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
25675 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
25676 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
25677 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
25678 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
25679 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
25680 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
25681 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
25682 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
25683 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
25684 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
25685 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
25686 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
25687 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
25688 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
25689 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
25690 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
25691 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
25692 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
25693 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
25694 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
25695 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
25696 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
25697 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
25698 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
25699 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
25700 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
25701 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
25702 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
25703 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
25704 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
25705 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
25706 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
25707 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
25708 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
25709 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
25710 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
25711 {
25712 PyDict_SetItemString(d,"CONTROL_DISABLED", SWIG_From_int(static_cast<int >(wxCONTROL_DISABLED)));
25713 }
25714 {
25715 PyDict_SetItemString(d,"CONTROL_FOCUSED", SWIG_From_int(static_cast<int >(wxCONTROL_FOCUSED)));
25716 }
25717 {
25718 PyDict_SetItemString(d,"CONTROL_PRESSED", SWIG_From_int(static_cast<int >(wxCONTROL_PRESSED)));
25719 }
25720 {
25721 PyDict_SetItemString(d,"CONTROL_ISDEFAULT", SWIG_From_int(static_cast<int >(wxCONTROL_ISDEFAULT)));
25722 }
25723 {
25724 PyDict_SetItemString(d,"CONTROL_ISSUBMENU", SWIG_From_int(static_cast<int >(wxCONTROL_ISSUBMENU)));
25725 }
25726 {
25727 PyDict_SetItemString(d,"CONTROL_EXPANDED", SWIG_From_int(static_cast<int >(wxCONTROL_EXPANDED)));
25728 }
25729 {
25730 PyDict_SetItemString(d,"CONTROL_CURRENT", SWIG_From_int(static_cast<int >(wxCONTROL_CURRENT)));
25731 }
25732 {
25733 PyDict_SetItemString(d,"CONTROL_SELECTED", SWIG_From_int(static_cast<int >(wxCONTROL_SELECTED)));
25734 }
25735 {
25736 PyDict_SetItemString(d,"CONTROL_CHECKED", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKED)));
25737 }
25738 {
25739 PyDict_SetItemString(d,"CONTROL_CHECKABLE", SWIG_From_int(static_cast<int >(wxCONTROL_CHECKABLE)));
25740 }
25741 {
25742 PyDict_SetItemString(d,"CONTROL_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCONTROL_UNDETERMINED)));
25743 }
25744 {
25745 PyDict_SetItemString(d,"CONTROL_FLAGS_MASK", SWIG_From_int(static_cast<int >(wxCONTROL_FLAGS_MASK)));
25746 }
25747 {
25748 PyDict_SetItemString(d,"CONTROL_DIRTY", SWIG_From_int(static_cast<int >(wxCONTROL_DIRTY)));
25749 }
25750 {
25751 PyDict_SetItemString(d,"RendererVersion_Current_Version", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Version)));
25752 }
25753 {
25754 PyDict_SetItemString(d,"RendererVersion_Current_Age", SWIG_From_int(static_cast<int >(wxRendererVersion::Current_Age)));
25755 }
25756
25757 // Work around a chicken/egg problem in drawlist.cpp
25758 wxPyDrawList_SetAPIPtr();
25759
25760 }
25761