]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2483 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2484 #define SWIGTYPE_p_wxColour swig_types[22]
2485 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2486 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2487 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2488 #define SWIGTYPE_p_wxControl swig_types[26]
2489 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2490 #define SWIGTYPE_p_wxCursor swig_types[28]
2491 #define SWIGTYPE_p_wxDC swig_types[29]
2492 #define SWIGTYPE_p_wxDash swig_types[30]
2493 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2496 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2497 #define SWIGTYPE_p_wxEffects swig_types[35]
2498 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2499 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvent swig_types[38]
2501 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2502 #define SWIGTYPE_p_wxFSFile swig_types[40]
2503 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2504 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506 #define SWIGTYPE_p_wxFont swig_types[44]
2507 #define SWIGTYPE_p_wxFontList swig_types[45]
2508 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2509 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2511 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2512 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2513 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2514 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2516 #define SWIGTYPE_p_wxIcon swig_types[54]
2517 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2518 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2519 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2520 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2521 #define SWIGTYPE_p_wxImage swig_types[59]
2522 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2523 #define SWIGTYPE_p_wxImageList swig_types[61]
2524 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2525 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2526 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2527 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2528 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2529 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2530 #define SWIGTYPE_p_wxLocale swig_types[68]
2531 #define SWIGTYPE_p_wxMask swig_types[69]
2532 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2533 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2534 #define SWIGTYPE_p_wxMenu swig_types[72]
2535 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2536 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2537 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2539 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2540 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2541 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2543 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2544 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2546 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2548 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2549 #define SWIGTYPE_p_wxObject swig_types[87]
2550 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2553 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2554 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPalette swig_types[93]
2556 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2557 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2558 #define SWIGTYPE_p_wxPen swig_types[96]
2559 #define SWIGTYPE_p_wxPenList swig_types[97]
2560 #define SWIGTYPE_p_wxPoint swig_types[98]
2561 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2562 #define SWIGTYPE_p_wxPrintData swig_types[100]
2563 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2564 #define SWIGTYPE_p_wxPyApp swig_types[102]
2565 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2568 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2569 #define SWIGTYPE_p_wxPySizer swig_types[107]
2570 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2571 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2572 #define SWIGTYPE_p_wxRect swig_types[110]
2573 #define SWIGTYPE_p_wxRegion swig_types[111]
2574 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2575 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2576 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2577 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2578 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2579 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2581 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSize swig_types[120]
2583 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSizer swig_types[122]
2585 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2586 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2587 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2589 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2590 #define SWIGTYPE_p_wxString swig_types[128]
2591 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2592 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2593 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2594 #define SWIGTYPE_p_wxValidator swig_types[132]
2595 #define SWIGTYPE_p_wxWindow swig_types[133]
2596 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2598 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2599 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2600 static swig_type_info *swig_types[139];
2601 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2602 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2604
2605 /* -------- TYPES TABLE (END) -------- */
2606
2607 #if (PY_VERSION_HEX <= 0x02000000)
2608 # if !defined(SWIG_PYTHON_CLASSIC)
2609 # error "This python version requires to use swig with the '-classic' option"
2610 # endif
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodern' option"
2614 #endif
2615 #if (PY_VERSION_HEX <= 0x02020000)
2616 # error "This python version requires to use swig with the '-nomodernargs' option"
2617 #endif
2618 #ifndef METH_O
2619 # error "This python version requires to use swig with the '-nofastunpack' option"
2620 #endif
2621
2622 /*-----------------------------------------------
2623 @(target):= _gdi_.so
2624 ------------------------------------------------*/
2625 #define SWIG_init init_gdi_
2626
2627 #define SWIG_name "_gdi_"
2628
2629 #define SWIGVERSION 0x010329
2630
2631
2632 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2634
2635
2636 #include <stdexcept>
2637
2638
2639 namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
2647 }
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
2652 }
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
2682 }
2683
2684
2685 namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
2694 }
2695 };
2696 }
2697
2698
2699 #include "wx/wxPython/wxPython.h"
2700 #include "wx/wxPython/pyclasses.h"
2701
2702
2703 static const wxString wxPyEmptyString(wxEmptyString);
2704
2705 #define SWIG_From_long PyInt_FromLong
2706
2707
2708 SWIGINTERNINLINE PyObject *
2709 SWIG_From_int (int value)
2710 {
2711 return SWIG_From_long (value);
2712 }
2713
2714
2715 #include <limits.h>
2716 #ifndef LLONG_MIN
2717 # define LLONG_MIN LONG_LONG_MIN
2718 #endif
2719 #ifndef LLONG_MAX
2720 # define LLONG_MAX LONG_LONG_MAX
2721 #endif
2722 #ifndef ULLONG_MAX
2723 # define ULLONG_MAX ULONG_LONG_MAX
2724 #endif
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_long (PyObject* obj, long* val)
2729 {
2730 if (PyNumber_Check(obj)) {
2731 if (val) *val = PyInt_AsLong(obj);
2732 return SWIG_OK;
2733 }
2734 return SWIG_TypeError;
2735 }
2736
2737
2738 SWIGINTERN int
2739 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2740 {
2741 long v = 0;
2742 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2743 return SWIG_TypeError;
2744 }
2745 else if (val)
2746 *val = (unsigned long)v;
2747 return SWIG_OK;
2748 }
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2753 {
2754 unsigned long v;
2755 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2756 if (SWIG_IsOK(res)) {
2757 if ((v > UCHAR_MAX)) {
2758 return SWIG_OverflowError;
2759 } else {
2760 if (val) *val = static_cast< unsigned char >(v);
2761 }
2762 }
2763 return res;
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject*
2768 SWIG_From_unsigned_SS_long (unsigned long value)
2769 {
2770 return (value > LONG_MAX) ?
2771 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2772 }
2773
2774
2775 SWIGINTERNINLINE PyObject *
2776 SWIG_From_unsigned_SS_char (unsigned char value)
2777 {
2778 return SWIG_From_unsigned_SS_long (value);
2779 }
2780
2781 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2782 wxColour temp, *obj = &temp;
2783 if ( other == Py_None ) return false;
2784 if ( ! wxColour_helper(other, &obj) ) {
2785 PyErr_Clear();
2786 return false;
2787 }
2788 return self->operator==(*obj);
2789 }
2790 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2791 wxColour temp, *obj = &temp;
2792 if ( other == Py_None ) return true;
2793 if ( ! wxColour_helper(other, &obj)) {
2794 PyErr_Clear();
2795 return true;
2796 }
2797 return self->operator!=(*obj);
2798 }
2799 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2800 PyObject* rv = PyTuple_New(3);
2801 int red = -1;
2802 int green = -1;
2803 int blue = -1;
2804 if (self->Ok()) {
2805 red = self->Red();
2806 green = self->Green();
2807 blue = self->Blue();
2808 }
2809 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2810 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2811 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2812 return rv;
2813 }
2814 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2815 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2816 }
2817
2818 SWIGINTERN int
2819 SWIG_AsVal_int (PyObject * obj, int *val)
2820 {
2821 long v;
2822 int res = SWIG_AsVal_long (obj, &v);
2823 if (SWIG_IsOK(res)) {
2824 if ((v < INT_MIN || v > INT_MAX)) {
2825 return SWIG_OverflowError;
2826 } else {
2827 if (val) *val = static_cast< int >(v);
2828 }
2829 }
2830 return res;
2831 }
2832
2833 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2834 wxDash* dashes;
2835 int count = self->GetDashes(&dashes);
2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2837 PyObject* retval = PyList_New(0);
2838 for (int x=0; x<count; x++) {
2839 PyObject* pyint = PyInt_FromLong(dashes[x]);
2840 PyList_Append(retval, pyint);
2841 Py_DECREF(pyint);
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return retval;
2845 }
2846 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2848 int size = PyList_Size(pyDashes);
2849 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2850
2851 // black magic warning! The array of wxDashes needs to exist as
2852 // long as the pen does because wxPen does not copy the array. So
2853 // stick a copy in a Python string object and attach it to _self,
2854 // and then call SetDashes with a pointer to that array. Then
2855 // when the Python pen object is destroyed the array will be
2856 // cleaned up too.
2857 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2858 PyObject_SetAttrString(_self, "_dashes", strDashes);
2859
2860 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2861 delete [] dashes;
2862 Py_DECREF(strDashes);
2863 wxPyEndBlockThreads(blocked);
2864 }
2865 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2866 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2867
2868 #include <wx/image.h>
2869
2870 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2871 char** cArray = NULL;
2872 int count;
2873
2874 if (!PyList_Check(listOfStrings)) {
2875 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2876 return NULL;
2877 }
2878 count = PyList_Size(listOfStrings);
2879 cArray = new char*[count];
2880
2881 for(int x=0; x<count; x++) {
2882 // TODO: Need some validation and error checking here
2883 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2884 }
2885 return cArray;
2886 }
2887
2888
2889 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2890 char** cArray = NULL;
2891 wxBitmap* bmp;
2892
2893 cArray = ConvertListOfStrings(listOfStrings);
2894 if (! cArray)
2895 return NULL;
2896 bmp = new wxBitmap(cArray);
2897 delete [] cArray;
2898 return bmp;
2899 }
2900 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2901 char* buf;
2902 int length;
2903 PyString_AsStringAndSize(bits, &buf, &length);
2904 return new wxBitmap(buf, width, height, depth);
2905 }
2906 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2907 wxSize size(self->GetWidth(), self->GetHeight());
2908 return size;
2909 }
2910 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2911 wxMask *mask = new wxMask(*self, colour);
2912 self->SetMask(mask);
2913 }
2914 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2915 self->SetWidth(size.x);
2916 self->SetHeight(size.y);
2917 }
2918 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2919 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2920 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2921 if ( !colour.Ok() )
2922 return new wxMask(bitmap, *wxBLACK);
2923 else
2924 return new wxMask(bitmap, colour);
2925 }
2926
2927 #include <wx/iconbndl.h>
2928
2929 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2930 wxIcon* icon = new wxIcon();
2931 icon->CopyFromBitmap(bmp);
2932 return icon;
2933 }
2934 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2935 char** cArray = NULL;
2936 wxIcon* icon;
2937
2938 cArray = ConvertListOfStrings(listOfStrings);
2939 if (! cArray)
2940 return NULL;
2941 icon = new wxIcon(cArray);
2942 delete [] cArray;
2943 return icon;
2944 }
2945 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2946
2947
2948
2949 return new wxIconLocation(*filename);
2950
2951 }
2952 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2953
2954
2955
2956 // do nothing
2957
2958 }
2959 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2960
2961
2962
2963 return -1;
2964
2965 }
2966 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2967 #ifdef __WXGTK__
2968 wxImage img(cursorName, type);
2969 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2970 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2971 return new wxCursor(img);
2972 #else
2973 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2974 #endif
2975 }
2976
2977
2978 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2979 (*self) ++;
2980 }
2981 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2982 return self->operator bool();
2983 }
2984
2985 #include <wx/fontutil.h>
2986 #include <wx/fontmap.h>
2987 #include <wx/fontenum.h>
2988
2989
2990 SWIGINTERN int
2991 SWIG_AsVal_bool (PyObject *obj, bool *val)
2992 {
2993 if (obj == Py_True) {
2994 if (val) *val = true;
2995 return SWIG_OK;
2996 } else if (obj == Py_False) {
2997 if (val) *val = false;
2998 return SWIG_OK;
2999 } else {
3000 long v = 0;
3001 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3002 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3003 return res;
3004 }
3005 }
3006
3007 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3008 return self->ToString();
3009 }
3010
3011 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3012 static wxNativeEncodingInfo info;
3013 if ( wxGetNativeFontEncoding(encoding, &info) )
3014 return &info;
3015 else
3016 return NULL;
3017 }
3018
3019
3020 SWIGINTERNINLINE PyObject *
3021 SWIG_From_size_t (size_t value)
3022 {
3023 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3024 }
3025
3026
3027 SWIGINTERNINLINE int
3028 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3029 {
3030 unsigned long v;
3031 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3032 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3033 return res;
3034 }
3035
3036 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3037 wxFontEncoding alt_enc;
3038 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3039 return PyInt_FromLong(alt_enc);
3040 else {
3041 Py_INCREF(Py_None);
3042 return Py_None;
3043 }
3044 }
3045 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3046 wxNativeFontInfo nfi;
3047 nfi.FromString(info);
3048 return new wxFont(nfi);
3049 }
3050 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3051 return wxFont::New(pointSize, family, flags, face, encoding);
3052 }
3053 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3054 return wxFontBase::New(pixelSize, family,
3055 style, weight, underlined,
3056 face, encoding);
3057 }
3058 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3059 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3060 }
3061 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3062 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3063
3064 class wxPyFontEnumerator : public wxFontEnumerator {
3065 public:
3066 wxPyFontEnumerator() {}
3067 ~wxPyFontEnumerator() {}
3068
3069 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3070 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3071
3072 PYPRIVATE;
3073 };
3074
3075 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3076 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3077
3078
3079 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3080 PyObject* ret;
3081 wxArrayString* arr = self->GetEncodings();
3082 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3083 if (arr)
3084 ret = wxArrayString2PyList_helper(*arr);
3085 else
3086 ret = PyList_New(0);
3087 wxPyEndBlockThreads(blocked);
3088 return ret;
3089 }
3090 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3091 PyObject* ret;
3092 wxArrayString* arr = self->GetFacenames();
3093 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3094 if (arr)
3095 ret = wxArrayString2PyList_helper(*arr);
3096 else
3097 ret = PyList_New(0);
3098 wxPyEndBlockThreads(blocked);
3099 return ret;
3100 }
3101
3102 #include <locale.h>
3103
3104 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3105 wxLocale* loc;
3106 if (language == -1)
3107 loc = new wxLocale();
3108 else
3109 loc = new wxLocale(language, flags);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC, "C");
3114 #endif
3115 return loc;
3116 }
3117 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3118 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC, "C");
3123 #endif
3124 return rc;
3125 }
3126 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 bool rc = self->Init(language, flags);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC, "C");
3132 #endif
3133 return rc;
3134 }
3135
3136 #include "wx/wxPython/pydrawxxx.h"
3137
3138 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3139 wxColour col;
3140 self->GetPixel(x, y, &col);
3141 return col;
3142 }
3143 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3144 wxColour col;
3145 self->GetPixel(pt, &col);
3146 return col;
3147 }
3148
3149 SWIGINTERN int
3150 SWIG_AsVal_double (PyObject *obj, double* val)
3151 {
3152 if (PyNumber_Check(obj)) {
3153 if (val) *val = PyFloat_AsDouble(obj);
3154 return SWIG_OK;
3155 }
3156 return SWIG_TypeError;
3157 }
3158
3159 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3160 wxRect rv;
3161 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3162 return rv;
3163 }
3164 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3165 wxRect rect;
3166 self->GetClippingBox(rect);
3167 return rect;
3168 }
3169 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3170 wxArrayInt widths;
3171 self->GetPartialTextExtents(text, widths);
3172 return widths;
3173 }
3174
3175 #define SWIG_From_double PyFloat_FromDouble
3176
3177 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3178 self->SetLogicalOrigin(point.x, point.y);
3179 }
3180 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3181 self->SetDeviceOrigin(point.x, point.y);
3182 }
3183 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3184 self->CalcBoundingBox(point.x, point.y);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3196 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3197 }
3198 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3199 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3200 }
3201 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3202 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3203 }
3204
3205 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3206 *x1 = dc->MinX();
3207 *y1 = dc->MinY();
3208 *x2 = dc->MaxX();
3209 *y2 = dc->MaxY();
3210 }
3211
3212
3213 #include <wx/dcbuffer.h>
3214
3215
3216 #include <wx/dcps.h>
3217
3218
3219 class wxMetaFile : public wxObject {
3220 public:
3221 wxMetaFile(const wxString&)
3222 { wxPyRaiseNotImplemented(); }
3223 };
3224
3225 class wxMetaFileDC : public wxClientDC {
3226 public:
3227 wxMetaFileDC(const wxString&, int, int, const wxString&)
3228 { wxPyRaiseNotImplemented(); }
3229 };
3230
3231
3232
3233 class wxPrinterDC : public wxClientDC {
3234 public:
3235 wxPrinterDC(const wxPrintData&)
3236 { wxPyRaiseNotImplemented(); }
3237
3238 };
3239
3240
3241
3242 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3243 self->AddColour(name, wxColour(red, green, blue));
3244 }
3245
3246 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3247 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3248 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3249 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3250
3251
3252 #include <wx/effects.h>
3253
3254
3255 #include "wx/renderer.h"
3256
3257
3258 SWIGINTERNINLINE PyObject*
3259 SWIG_From_bool (bool value)
3260 {
3261 return PyBool_FromLong(value ? 1 : 0);
3262 }
3263
3264 #ifdef __cplusplus
3265 extern "C" {
3266 #endif
3267 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3268 PyObject *resultobj = 0;
3269 wxGDIObject *result = 0 ;
3270
3271 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3272 {
3273 if (!wxPyCheckForApp()) SWIG_fail;
3274 PyThreadState* __tstate = wxPyBeginAllowThreads();
3275 result = (wxGDIObject *)new wxGDIObject();
3276 wxPyEndAllowThreads(__tstate);
3277 if (PyErr_Occurred()) SWIG_fail;
3278 }
3279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3280 return resultobj;
3281 fail:
3282 return NULL;
3283 }
3284
3285
3286 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3287 PyObject *resultobj = 0;
3288 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3289 void *argp1 = 0 ;
3290 int res1 = 0 ;
3291 PyObject *swig_obj[1] ;
3292
3293 if (!args) SWIG_fail;
3294 swig_obj[0] = args;
3295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3296 if (!SWIG_IsOK(res1)) {
3297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3298 }
3299 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3300 {
3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
3302 delete arg1;
3303
3304 wxPyEndAllowThreads(__tstate);
3305 if (PyErr_Occurred()) SWIG_fail;
3306 }
3307 resultobj = SWIG_Py_Void();
3308 return resultobj;
3309 fail:
3310 return NULL;
3311 }
3312
3313
3314 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3315 PyObject *resultobj = 0;
3316 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3317 bool result;
3318 void *argp1 = 0 ;
3319 int res1 = 0 ;
3320 PyObject *swig_obj[1] ;
3321
3322 if (!args) SWIG_fail;
3323 swig_obj[0] = args;
3324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3325 if (!SWIG_IsOK(res1)) {
3326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3327 }
3328 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3329 {
3330 PyThreadState* __tstate = wxPyBeginAllowThreads();
3331 result = (bool)(arg1)->IsNull();
3332 wxPyEndAllowThreads(__tstate);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 }
3335 {
3336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3337 }
3338 return resultobj;
3339 fail:
3340 return NULL;
3341 }
3342
3343
3344 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3345 PyObject *obj;
3346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3347 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3348 return SWIG_Py_Void();
3349 }
3350
3351 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3352 return SWIG_Python_InitShadowInstance(args);
3353 }
3354
3355 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3356 PyObject *resultobj = 0;
3357 byte arg1 = (byte) 0 ;
3358 byte arg2 = (byte) 0 ;
3359 byte arg3 = (byte) 0 ;
3360 wxColour *result = 0 ;
3361 unsigned char val1 ;
3362 int ecode1 = 0 ;
3363 unsigned char val2 ;
3364 int ecode2 = 0 ;
3365 unsigned char val3 ;
3366 int ecode3 = 0 ;
3367 PyObject * obj0 = 0 ;
3368 PyObject * obj1 = 0 ;
3369 PyObject * obj2 = 0 ;
3370 char * kwnames[] = {
3371 (char *) "red",(char *) "green",(char *) "blue", NULL
3372 };
3373
3374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3375 if (obj0) {
3376 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3377 if (!SWIG_IsOK(ecode1)) {
3378 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3379 }
3380 arg1 = static_cast< byte >(val1);
3381 }
3382 if (obj1) {
3383 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3384 if (!SWIG_IsOK(ecode2)) {
3385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3386 }
3387 arg2 = static_cast< byte >(val2);
3388 }
3389 if (obj2) {
3390 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3391 if (!SWIG_IsOK(ecode3)) {
3392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3393 }
3394 arg3 = static_cast< byte >(val3);
3395 }
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3399 wxPyEndAllowThreads(__tstate);
3400 if (PyErr_Occurred()) SWIG_fail;
3401 }
3402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3403 return resultobj;
3404 fail:
3405 return NULL;
3406 }
3407
3408
3409 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3410 PyObject *resultobj = 0;
3411 wxString *arg1 = 0 ;
3412 wxColour *result = 0 ;
3413 bool temp1 = false ;
3414 PyObject * obj0 = 0 ;
3415 char * kwnames[] = {
3416 (char *) "colorName", NULL
3417 };
3418
3419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3420 {
3421 arg1 = wxString_in_helper(obj0);
3422 if (arg1 == NULL) SWIG_fail;
3423 temp1 = true;
3424 }
3425 {
3426 if (!wxPyCheckForApp()) SWIG_fail;
3427 PyThreadState* __tstate = wxPyBeginAllowThreads();
3428 result = (wxColour *)new wxColour((wxString const &)*arg1);
3429 wxPyEndAllowThreads(__tstate);
3430 if (PyErr_Occurred()) SWIG_fail;
3431 }
3432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3433 {
3434 if (temp1)
3435 delete arg1;
3436 }
3437 return resultobj;
3438 fail:
3439 {
3440 if (temp1)
3441 delete arg1;
3442 }
3443 return NULL;
3444 }
3445
3446
3447 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj = 0;
3449 unsigned long arg1 ;
3450 wxColour *result = 0 ;
3451 unsigned long val1 ;
3452 int ecode1 = 0 ;
3453 PyObject * obj0 = 0 ;
3454 char * kwnames[] = {
3455 (char *) "colRGB", NULL
3456 };
3457
3458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3459 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3460 if (!SWIG_IsOK(ecode1)) {
3461 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3462 }
3463 arg1 = static_cast< unsigned long >(val1);
3464 {
3465 PyThreadState* __tstate = wxPyBeginAllowThreads();
3466 result = (wxColour *)new wxColour(arg1);
3467 wxPyEndAllowThreads(__tstate);
3468 if (PyErr_Occurred()) SWIG_fail;
3469 }
3470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3471 return resultobj;
3472 fail:
3473 return NULL;
3474 }
3475
3476
3477 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3478 PyObject *resultobj = 0;
3479 wxColour *arg1 = (wxColour *) 0 ;
3480 void *argp1 = 0 ;
3481 int res1 = 0 ;
3482 PyObject *swig_obj[1] ;
3483
3484 if (!args) SWIG_fail;
3485 swig_obj[0] = args;
3486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3487 if (!SWIG_IsOK(res1)) {
3488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3489 }
3490 arg1 = reinterpret_cast< wxColour * >(argp1);
3491 {
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 delete arg1;
3494
3495 wxPyEndAllowThreads(__tstate);
3496 if (PyErr_Occurred()) SWIG_fail;
3497 }
3498 resultobj = SWIG_Py_Void();
3499 return resultobj;
3500 fail:
3501 return NULL;
3502 }
3503
3504
3505 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3506 PyObject *resultobj = 0;
3507 wxColour *arg1 = (wxColour *) 0 ;
3508 byte result;
3509 void *argp1 = 0 ;
3510 int res1 = 0 ;
3511 PyObject *swig_obj[1] ;
3512
3513 if (!args) SWIG_fail;
3514 swig_obj[0] = args;
3515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3516 if (!SWIG_IsOK(res1)) {
3517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3518 }
3519 arg1 = reinterpret_cast< wxColour * >(argp1);
3520 {
3521 PyThreadState* __tstate = wxPyBeginAllowThreads();
3522 result = (byte)(arg1)->Red();
3523 wxPyEndAllowThreads(__tstate);
3524 if (PyErr_Occurred()) SWIG_fail;
3525 }
3526 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3527 return resultobj;
3528 fail:
3529 return NULL;
3530 }
3531
3532
3533 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3534 PyObject *resultobj = 0;
3535 wxColour *arg1 = (wxColour *) 0 ;
3536 byte result;
3537 void *argp1 = 0 ;
3538 int res1 = 0 ;
3539 PyObject *swig_obj[1] ;
3540
3541 if (!args) SWIG_fail;
3542 swig_obj[0] = args;
3543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3544 if (!SWIG_IsOK(res1)) {
3545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3546 }
3547 arg1 = reinterpret_cast< wxColour * >(argp1);
3548 {
3549 PyThreadState* __tstate = wxPyBeginAllowThreads();
3550 result = (byte)(arg1)->Green();
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3555 return resultobj;
3556 fail:
3557 return NULL;
3558 }
3559
3560
3561 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3562 PyObject *resultobj = 0;
3563 wxColour *arg1 = (wxColour *) 0 ;
3564 byte result;
3565 void *argp1 = 0 ;
3566 int res1 = 0 ;
3567 PyObject *swig_obj[1] ;
3568
3569 if (!args) SWIG_fail;
3570 swig_obj[0] = args;
3571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3572 if (!SWIG_IsOK(res1)) {
3573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3574 }
3575 arg1 = reinterpret_cast< wxColour * >(argp1);
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 result = (byte)(arg1)->Blue();
3579 wxPyEndAllowThreads(__tstate);
3580 if (PyErr_Occurred()) SWIG_fail;
3581 }
3582 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3583 return resultobj;
3584 fail:
3585 return NULL;
3586 }
3587
3588
3589 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3590 PyObject *resultobj = 0;
3591 wxColour *arg1 = (wxColour *) 0 ;
3592 bool result;
3593 void *argp1 = 0 ;
3594 int res1 = 0 ;
3595 PyObject *swig_obj[1] ;
3596
3597 if (!args) SWIG_fail;
3598 swig_obj[0] = args;
3599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3600 if (!SWIG_IsOK(res1)) {
3601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3602 }
3603 arg1 = reinterpret_cast< wxColour * >(argp1);
3604 {
3605 PyThreadState* __tstate = wxPyBeginAllowThreads();
3606 result = (bool)(arg1)->Ok();
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 {
3611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3612 }
3613 return resultobj;
3614 fail:
3615 return NULL;
3616 }
3617
3618
3619 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj = 0;
3621 wxColour *arg1 = (wxColour *) 0 ;
3622 byte arg2 ;
3623 byte arg3 ;
3624 byte arg4 ;
3625 void *argp1 = 0 ;
3626 int res1 = 0 ;
3627 unsigned char val2 ;
3628 int ecode2 = 0 ;
3629 unsigned char val3 ;
3630 int ecode3 = 0 ;
3631 unsigned char val4 ;
3632 int ecode4 = 0 ;
3633 PyObject * obj0 = 0 ;
3634 PyObject * obj1 = 0 ;
3635 PyObject * obj2 = 0 ;
3636 PyObject * obj3 = 0 ;
3637 char * kwnames[] = {
3638 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3639 };
3640
3641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3643 if (!SWIG_IsOK(res1)) {
3644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3645 }
3646 arg1 = reinterpret_cast< wxColour * >(argp1);
3647 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3648 if (!SWIG_IsOK(ecode2)) {
3649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3650 }
3651 arg2 = static_cast< byte >(val2);
3652 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3653 if (!SWIG_IsOK(ecode3)) {
3654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3655 }
3656 arg3 = static_cast< byte >(val3);
3657 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3658 if (!SWIG_IsOK(ecode4)) {
3659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3660 }
3661 arg4 = static_cast< byte >(val4);
3662 {
3663 PyThreadState* __tstate = wxPyBeginAllowThreads();
3664 (arg1)->Set(arg2,arg3,arg4);
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 resultobj = SWIG_Py_Void();
3669 return resultobj;
3670 fail:
3671 return NULL;
3672 }
3673
3674
3675 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj = 0;
3677 wxColour *arg1 = (wxColour *) 0 ;
3678 unsigned long arg2 ;
3679 void *argp1 = 0 ;
3680 int res1 = 0 ;
3681 unsigned long val2 ;
3682 int ecode2 = 0 ;
3683 PyObject * obj0 = 0 ;
3684 PyObject * obj1 = 0 ;
3685 char * kwnames[] = {
3686 (char *) "self",(char *) "colRGB", NULL
3687 };
3688
3689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3691 if (!SWIG_IsOK(res1)) {
3692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3693 }
3694 arg1 = reinterpret_cast< wxColour * >(argp1);
3695 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3696 if (!SWIG_IsOK(ecode2)) {
3697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3698 }
3699 arg2 = static_cast< unsigned long >(val2);
3700 {
3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
3702 (arg1)->Set(arg2);
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_Py_Void();
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj = 0;
3715 wxColour *arg1 = (wxColour *) 0 ;
3716 wxString *arg2 = 0 ;
3717 void *argp1 = 0 ;
3718 int res1 = 0 ;
3719 bool temp2 = false ;
3720 PyObject * obj0 = 0 ;
3721 PyObject * obj1 = 0 ;
3722 char * kwnames[] = {
3723 (char *) "self",(char *) "colourName", NULL
3724 };
3725
3726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3728 if (!SWIG_IsOK(res1)) {
3729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3730 }
3731 arg1 = reinterpret_cast< wxColour * >(argp1);
3732 {
3733 arg2 = wxString_in_helper(obj1);
3734 if (arg2 == NULL) SWIG_fail;
3735 temp2 = true;
3736 }
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 (arg1)->InitFromName((wxString const &)*arg2);
3740 wxPyEndAllowThreads(__tstate);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 resultobj = SWIG_Py_Void();
3744 {
3745 if (temp2)
3746 delete arg2;
3747 }
3748 return resultobj;
3749 fail:
3750 {
3751 if (temp2)
3752 delete arg2;
3753 }
3754 return NULL;
3755 }
3756
3757
3758 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3759 PyObject *resultobj = 0;
3760 wxColour *arg1 = (wxColour *) 0 ;
3761 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3762 wxString result;
3763 void *argp1 = 0 ;
3764 int res1 = 0 ;
3765 long val2 ;
3766 int ecode2 = 0 ;
3767 PyObject * obj0 = 0 ;
3768 PyObject * obj1 = 0 ;
3769 char * kwnames[] = {
3770 (char *) "self",(char *) "flags", NULL
3771 };
3772
3773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3775 if (!SWIG_IsOK(res1)) {
3776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3777 }
3778 arg1 = reinterpret_cast< wxColour * >(argp1);
3779 if (obj1) {
3780 ecode2 = SWIG_AsVal_long(obj1, &val2);
3781 if (!SWIG_IsOK(ecode2)) {
3782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3783 }
3784 arg2 = static_cast< long >(val2);
3785 }
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 result = ((wxColour const *)arg1)->GetAsString(arg2);
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 {
3793 #if wxUSE_UNICODE
3794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3795 #else
3796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3797 #endif
3798 }
3799 return resultobj;
3800 fail:
3801 return NULL;
3802 }
3803
3804
3805 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3806 PyObject *resultobj = 0;
3807 wxColour *arg1 = (wxColour *) 0 ;
3808 long result;
3809 void *argp1 = 0 ;
3810 int res1 = 0 ;
3811 PyObject *swig_obj[1] ;
3812
3813 if (!args) SWIG_fail;
3814 swig_obj[0] = args;
3815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3816 if (!SWIG_IsOK(res1)) {
3817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3818 }
3819 arg1 = reinterpret_cast< wxColour * >(argp1);
3820 {
3821 PyThreadState* __tstate = wxPyBeginAllowThreads();
3822 result = (long)((wxColour const *)arg1)->GetPixel();
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 resultobj = SWIG_From_long(static_cast< long >(result));
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj = 0;
3835 wxColour *arg1 = (wxColour *) 0 ;
3836 PyObject *arg2 = (PyObject *) 0 ;
3837 bool result;
3838 void *argp1 = 0 ;
3839 int res1 = 0 ;
3840 PyObject * obj0 = 0 ;
3841 PyObject * obj1 = 0 ;
3842 char * kwnames[] = {
3843 (char *) "self",(char *) "other", NULL
3844 };
3845
3846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3848 if (!SWIG_IsOK(res1)) {
3849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3850 }
3851 arg1 = reinterpret_cast< wxColour * >(argp1);
3852 arg2 = obj1;
3853 {
3854 result = (bool)wxColour___eq__(arg1,arg2);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 {
3858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3859 }
3860 return resultobj;
3861 fail:
3862 return NULL;
3863 }
3864
3865
3866 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3867 PyObject *resultobj = 0;
3868 wxColour *arg1 = (wxColour *) 0 ;
3869 PyObject *arg2 = (PyObject *) 0 ;
3870 bool result;
3871 void *argp1 = 0 ;
3872 int res1 = 0 ;
3873 PyObject * obj0 = 0 ;
3874 PyObject * obj1 = 0 ;
3875 char * kwnames[] = {
3876 (char *) "self",(char *) "other", NULL
3877 };
3878
3879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3881 if (!SWIG_IsOK(res1)) {
3882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3883 }
3884 arg1 = reinterpret_cast< wxColour * >(argp1);
3885 arg2 = obj1;
3886 {
3887 result = (bool)wxColour___ne__(arg1,arg2);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 {
3891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3892 }
3893 return resultobj;
3894 fail:
3895 return NULL;
3896 }
3897
3898
3899 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3900 PyObject *resultobj = 0;
3901 wxColour *arg1 = (wxColour *) 0 ;
3902 PyObject *result = 0 ;
3903 void *argp1 = 0 ;
3904 int res1 = 0 ;
3905 PyObject *swig_obj[1] ;
3906
3907 if (!args) SWIG_fail;
3908 swig_obj[0] = args;
3909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3910 if (!SWIG_IsOK(res1)) {
3911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3912 }
3913 arg1 = reinterpret_cast< wxColour * >(argp1);
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (PyObject *)wxColour_Get(arg1);
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 resultobj = result;
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3928 PyObject *resultobj = 0;
3929 wxColour *arg1 = (wxColour *) 0 ;
3930 unsigned long result;
3931 void *argp1 = 0 ;
3932 int res1 = 0 ;
3933 PyObject *swig_obj[1] ;
3934
3935 if (!args) SWIG_fail;
3936 swig_obj[0] = args;
3937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3938 if (!SWIG_IsOK(res1)) {
3939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3940 }
3941 arg1 = reinterpret_cast< wxColour * >(argp1);
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 result = (unsigned long)wxColour_GetRGB(arg1);
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3949 return resultobj;
3950 fail:
3951 return NULL;
3952 }
3953
3954
3955 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3956 PyObject *obj;
3957 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3958 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3959 return SWIG_Py_Void();
3960 }
3961
3962 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3963 return SWIG_Python_InitShadowInstance(args);
3964 }
3965
3966 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj = 0;
3968 int arg1 ;
3969 unsigned char *arg2 = (unsigned char *) 0 ;
3970 unsigned char *arg3 = (unsigned char *) 0 ;
3971 unsigned char *arg4 = (unsigned char *) 0 ;
3972 wxPalette *result = 0 ;
3973 int val1 ;
3974 int ecode1 = 0 ;
3975 void *argp2 = 0 ;
3976 int res2 = 0 ;
3977 void *argp3 = 0 ;
3978 int res3 = 0 ;
3979 void *argp4 = 0 ;
3980 int res4 = 0 ;
3981 PyObject * obj0 = 0 ;
3982 PyObject * obj1 = 0 ;
3983 PyObject * obj2 = 0 ;
3984 PyObject * obj3 = 0 ;
3985 char * kwnames[] = {
3986 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3987 };
3988
3989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3990 ecode1 = SWIG_AsVal_int(obj0, &val1);
3991 if (!SWIG_IsOK(ecode1)) {
3992 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3993 }
3994 arg1 = static_cast< int >(val1);
3995 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3996 if (!SWIG_IsOK(res2)) {
3997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3998 }
3999 arg2 = reinterpret_cast< unsigned char * >(argp2);
4000 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4001 if (!SWIG_IsOK(res3)) {
4002 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4003 }
4004 arg3 = reinterpret_cast< unsigned char * >(argp3);
4005 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4006 if (!SWIG_IsOK(res4)) {
4007 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4008 }
4009 arg4 = reinterpret_cast< unsigned char * >(argp4);
4010 {
4011 if (!wxPyCheckForApp()) SWIG_fail;
4012 PyThreadState* __tstate = wxPyBeginAllowThreads();
4013 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4014 wxPyEndAllowThreads(__tstate);
4015 if (PyErr_Occurred()) SWIG_fail;
4016 }
4017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4018 return resultobj;
4019 fail:
4020 return NULL;
4021 }
4022
4023
4024 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4025 PyObject *resultobj = 0;
4026 wxPalette *arg1 = (wxPalette *) 0 ;
4027 void *argp1 = 0 ;
4028 int res1 = 0 ;
4029 PyObject *swig_obj[1] ;
4030
4031 if (!args) SWIG_fail;
4032 swig_obj[0] = args;
4033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4034 if (!SWIG_IsOK(res1)) {
4035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4036 }
4037 arg1 = reinterpret_cast< wxPalette * >(argp1);
4038 {
4039 PyThreadState* __tstate = wxPyBeginAllowThreads();
4040 delete arg1;
4041
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 resultobj = SWIG_Py_Void();
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj = 0;
4054 wxPalette *arg1 = (wxPalette *) 0 ;
4055 byte arg2 ;
4056 byte arg3 ;
4057 byte arg4 ;
4058 int result;
4059 void *argp1 = 0 ;
4060 int res1 = 0 ;
4061 unsigned char val2 ;
4062 int ecode2 = 0 ;
4063 unsigned char val3 ;
4064 int ecode3 = 0 ;
4065 unsigned char val4 ;
4066 int ecode4 = 0 ;
4067 PyObject * obj0 = 0 ;
4068 PyObject * obj1 = 0 ;
4069 PyObject * obj2 = 0 ;
4070 PyObject * obj3 = 0 ;
4071 char * kwnames[] = {
4072 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4073 };
4074
4075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4079 }
4080 arg1 = reinterpret_cast< wxPalette * >(argp1);
4081 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4082 if (!SWIG_IsOK(ecode2)) {
4083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4084 }
4085 arg2 = static_cast< byte >(val2);
4086 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4087 if (!SWIG_IsOK(ecode3)) {
4088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4089 }
4090 arg3 = static_cast< byte >(val3);
4091 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4092 if (!SWIG_IsOK(ecode4)) {
4093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4094 }
4095 arg4 = static_cast< byte >(val4);
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 resultobj = SWIG_From_int(static_cast< int >(result));
4103 return resultobj;
4104 fail:
4105 return NULL;
4106 }
4107
4108
4109 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj = 0;
4111 wxPalette *arg1 = (wxPalette *) 0 ;
4112 int arg2 ;
4113 byte *arg3 = (byte *) 0 ;
4114 byte *arg4 = (byte *) 0 ;
4115 byte *arg5 = (byte *) 0 ;
4116 bool result;
4117 void *argp1 = 0 ;
4118 int res1 = 0 ;
4119 int val2 ;
4120 int ecode2 = 0 ;
4121 byte temp3 ;
4122 int res3 = SWIG_TMPOBJ ;
4123 byte temp4 ;
4124 int res4 = SWIG_TMPOBJ ;
4125 byte temp5 ;
4126 int res5 = SWIG_TMPOBJ ;
4127 PyObject * obj0 = 0 ;
4128 PyObject * obj1 = 0 ;
4129 char * kwnames[] = {
4130 (char *) "self",(char *) "pixel", NULL
4131 };
4132
4133 arg3 = &temp3;
4134 arg4 = &temp4;
4135 arg5 = &temp5;
4136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4138 if (!SWIG_IsOK(res1)) {
4139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4140 }
4141 arg1 = reinterpret_cast< wxPalette * >(argp1);
4142 ecode2 = SWIG_AsVal_int(obj1, &val2);
4143 if (!SWIG_IsOK(ecode2)) {
4144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4145 }
4146 arg2 = static_cast< int >(val2);
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 {
4154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4155 }
4156 if (SWIG_IsTmpObj(res3)) {
4157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4158 } else {
4159 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4161 }
4162 if (SWIG_IsTmpObj(res4)) {
4163 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4164 } else {
4165 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4167 }
4168 if (SWIG_IsTmpObj(res5)) {
4169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4170 } else {
4171 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4173 }
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4181 PyObject *resultobj = 0;
4182 wxPalette *arg1 = (wxPalette *) 0 ;
4183 int result;
4184 void *argp1 = 0 ;
4185 int res1 = 0 ;
4186 PyObject *swig_obj[1] ;
4187
4188 if (!args) SWIG_fail;
4189 swig_obj[0] = args;
4190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4191 if (!SWIG_IsOK(res1)) {
4192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4193 }
4194 arg1 = reinterpret_cast< wxPalette * >(argp1);
4195 {
4196 PyThreadState* __tstate = wxPyBeginAllowThreads();
4197 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 }
4201 resultobj = SWIG_From_int(static_cast< int >(result));
4202 return resultobj;
4203 fail:
4204 return NULL;
4205 }
4206
4207
4208 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4209 PyObject *resultobj = 0;
4210 wxPalette *arg1 = (wxPalette *) 0 ;
4211 bool result;
4212 void *argp1 = 0 ;
4213 int res1 = 0 ;
4214 PyObject *swig_obj[1] ;
4215
4216 if (!args) SWIG_fail;
4217 swig_obj[0] = args;
4218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4219 if (!SWIG_IsOK(res1)) {
4220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4221 }
4222 arg1 = reinterpret_cast< wxPalette * >(argp1);
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 result = (bool)(arg1)->Ok();
4226 wxPyEndAllowThreads(__tstate);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 {
4230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4231 }
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *obj;
4240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4241 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4242 return SWIG_Py_Void();
4243 }
4244
4245 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4246 return SWIG_Python_InitShadowInstance(args);
4247 }
4248
4249 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj = 0;
4251 wxColour *arg1 = 0 ;
4252 int arg2 = (int) 1 ;
4253 int arg3 = (int) wxSOLID ;
4254 wxPen *result = 0 ;
4255 wxColour temp1 ;
4256 int val2 ;
4257 int ecode2 = 0 ;
4258 int val3 ;
4259 int ecode3 = 0 ;
4260 PyObject * obj0 = 0 ;
4261 PyObject * obj1 = 0 ;
4262 PyObject * obj2 = 0 ;
4263 char * kwnames[] = {
4264 (char *) "colour",(char *) "width",(char *) "style", NULL
4265 };
4266
4267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4268 {
4269 arg1 = &temp1;
4270 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4271 }
4272 if (obj1) {
4273 ecode2 = SWIG_AsVal_int(obj1, &val2);
4274 if (!SWIG_IsOK(ecode2)) {
4275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4276 }
4277 arg2 = static_cast< int >(val2);
4278 }
4279 if (obj2) {
4280 ecode3 = SWIG_AsVal_int(obj2, &val3);
4281 if (!SWIG_IsOK(ecode3)) {
4282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4283 }
4284 arg3 = static_cast< int >(val3);
4285 }
4286 {
4287 if (!wxPyCheckForApp()) SWIG_fail;
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4294 return resultobj;
4295 fail:
4296 return NULL;
4297 }
4298
4299
4300 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4301 PyObject *resultobj = 0;
4302 wxPen *arg1 = (wxPen *) 0 ;
4303 void *argp1 = 0 ;
4304 int res1 = 0 ;
4305 PyObject *swig_obj[1] ;
4306
4307 if (!args) SWIG_fail;
4308 swig_obj[0] = args;
4309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4310 if (!SWIG_IsOK(res1)) {
4311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4312 }
4313 arg1 = reinterpret_cast< wxPen * >(argp1);
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 delete arg1;
4317
4318 wxPyEndAllowThreads(__tstate);
4319 if (PyErr_Occurred()) SWIG_fail;
4320 }
4321 resultobj = SWIG_Py_Void();
4322 return resultobj;
4323 fail:
4324 return NULL;
4325 }
4326
4327
4328 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4329 PyObject *resultobj = 0;
4330 wxPen *arg1 = (wxPen *) 0 ;
4331 int result;
4332 void *argp1 = 0 ;
4333 int res1 = 0 ;
4334 PyObject *swig_obj[1] ;
4335
4336 if (!args) SWIG_fail;
4337 swig_obj[0] = args;
4338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4339 if (!SWIG_IsOK(res1)) {
4340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4341 }
4342 arg1 = reinterpret_cast< wxPen * >(argp1);
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 result = (int)(arg1)->GetCap();
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_From_int(static_cast< int >(result));
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4357 PyObject *resultobj = 0;
4358 wxPen *arg1 = (wxPen *) 0 ;
4359 wxColour result;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 PyObject *swig_obj[1] ;
4363
4364 if (!args) SWIG_fail;
4365 swig_obj[0] = args;
4366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4367 if (!SWIG_IsOK(res1)) {
4368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4369 }
4370 arg1 = reinterpret_cast< wxPen * >(argp1);
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 result = (arg1)->GetColour();
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4378 return resultobj;
4379 fail:
4380 return NULL;
4381 }
4382
4383
4384 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4385 PyObject *resultobj = 0;
4386 wxPen *arg1 = (wxPen *) 0 ;
4387 int result;
4388 void *argp1 = 0 ;
4389 int res1 = 0 ;
4390 PyObject *swig_obj[1] ;
4391
4392 if (!args) SWIG_fail;
4393 swig_obj[0] = args;
4394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4395 if (!SWIG_IsOK(res1)) {
4396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4397 }
4398 arg1 = reinterpret_cast< wxPen * >(argp1);
4399 {
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 result = (int)(arg1)->GetJoin();
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 resultobj = SWIG_From_int(static_cast< int >(result));
4406 return resultobj;
4407 fail:
4408 return NULL;
4409 }
4410
4411
4412 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4413 PyObject *resultobj = 0;
4414 wxPen *arg1 = (wxPen *) 0 ;
4415 int result;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 PyObject *swig_obj[1] ;
4419
4420 if (!args) SWIG_fail;
4421 swig_obj[0] = args;
4422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4423 if (!SWIG_IsOK(res1)) {
4424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4425 }
4426 arg1 = reinterpret_cast< wxPen * >(argp1);
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 result = (int)(arg1)->GetStyle();
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_From_int(static_cast< int >(result));
4434 return resultobj;
4435 fail:
4436 return NULL;
4437 }
4438
4439
4440 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4441 PyObject *resultobj = 0;
4442 wxPen *arg1 = (wxPen *) 0 ;
4443 int result;
4444 void *argp1 = 0 ;
4445 int res1 = 0 ;
4446 PyObject *swig_obj[1] ;
4447
4448 if (!args) SWIG_fail;
4449 swig_obj[0] = args;
4450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4451 if (!SWIG_IsOK(res1)) {
4452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4453 }
4454 arg1 = reinterpret_cast< wxPen * >(argp1);
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 result = (int)(arg1)->GetWidth();
4458 wxPyEndAllowThreads(__tstate);
4459 if (PyErr_Occurred()) SWIG_fail;
4460 }
4461 resultobj = SWIG_From_int(static_cast< int >(result));
4462 return resultobj;
4463 fail:
4464 return NULL;
4465 }
4466
4467
4468 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4469 PyObject *resultobj = 0;
4470 wxPen *arg1 = (wxPen *) 0 ;
4471 bool result;
4472 void *argp1 = 0 ;
4473 int res1 = 0 ;
4474 PyObject *swig_obj[1] ;
4475
4476 if (!args) SWIG_fail;
4477 swig_obj[0] = args;
4478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4479 if (!SWIG_IsOK(res1)) {
4480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4481 }
4482 arg1 = reinterpret_cast< wxPen * >(argp1);
4483 {
4484 PyThreadState* __tstate = wxPyBeginAllowThreads();
4485 result = (bool)(arg1)->Ok();
4486 wxPyEndAllowThreads(__tstate);
4487 if (PyErr_Occurred()) SWIG_fail;
4488 }
4489 {
4490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4491 }
4492 return resultobj;
4493 fail:
4494 return NULL;
4495 }
4496
4497
4498 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4499 PyObject *resultobj = 0;
4500 wxPen *arg1 = (wxPen *) 0 ;
4501 int arg2 ;
4502 void *argp1 = 0 ;
4503 int res1 = 0 ;
4504 int val2 ;
4505 int ecode2 = 0 ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char * kwnames[] = {
4509 (char *) "self",(char *) "cap_style", NULL
4510 };
4511
4512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4514 if (!SWIG_IsOK(res1)) {
4515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4516 }
4517 arg1 = reinterpret_cast< wxPen * >(argp1);
4518 ecode2 = SWIG_AsVal_int(obj1, &val2);
4519 if (!SWIG_IsOK(ecode2)) {
4520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4521 }
4522 arg2 = static_cast< int >(val2);
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 (arg1)->SetCap(arg2);
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_Py_Void();
4530 return resultobj;
4531 fail:
4532 return NULL;
4533 }
4534
4535
4536 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj = 0;
4538 wxPen *arg1 = (wxPen *) 0 ;
4539 wxColour *arg2 = 0 ;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
4542 wxColour temp2 ;
4543 PyObject * obj0 = 0 ;
4544 PyObject * obj1 = 0 ;
4545 char * kwnames[] = {
4546 (char *) "self",(char *) "colour", NULL
4547 };
4548
4549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4551 if (!SWIG_IsOK(res1)) {
4552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4553 }
4554 arg1 = reinterpret_cast< wxPen * >(argp1);
4555 {
4556 arg2 = &temp2;
4557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4558 }
4559 {
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 (arg1)->SetColour(*arg2);
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 resultobj = SWIG_Py_Void();
4566 return resultobj;
4567 fail:
4568 return NULL;
4569 }
4570
4571
4572 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj = 0;
4574 wxPen *arg1 = (wxPen *) 0 ;
4575 int arg2 ;
4576 void *argp1 = 0 ;
4577 int res1 = 0 ;
4578 int val2 ;
4579 int ecode2 = 0 ;
4580 PyObject * obj0 = 0 ;
4581 PyObject * obj1 = 0 ;
4582 char * kwnames[] = {
4583 (char *) "self",(char *) "join_style", NULL
4584 };
4585
4586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4588 if (!SWIG_IsOK(res1)) {
4589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4590 }
4591 arg1 = reinterpret_cast< wxPen * >(argp1);
4592 ecode2 = SWIG_AsVal_int(obj1, &val2);
4593 if (!SWIG_IsOK(ecode2)) {
4594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4595 }
4596 arg2 = static_cast< int >(val2);
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 (arg1)->SetJoin(arg2);
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 resultobj = SWIG_Py_Void();
4604 return resultobj;
4605 fail:
4606 return NULL;
4607 }
4608
4609
4610 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4611 PyObject *resultobj = 0;
4612 wxPen *arg1 = (wxPen *) 0 ;
4613 int arg2 ;
4614 void *argp1 = 0 ;
4615 int res1 = 0 ;
4616 int val2 ;
4617 int ecode2 = 0 ;
4618 PyObject * obj0 = 0 ;
4619 PyObject * obj1 = 0 ;
4620 char * kwnames[] = {
4621 (char *) "self",(char *) "style", NULL
4622 };
4623
4624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4626 if (!SWIG_IsOK(res1)) {
4627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4628 }
4629 arg1 = reinterpret_cast< wxPen * >(argp1);
4630 ecode2 = SWIG_AsVal_int(obj1, &val2);
4631 if (!SWIG_IsOK(ecode2)) {
4632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4633 }
4634 arg2 = static_cast< int >(val2);
4635 {
4636 PyThreadState* __tstate = wxPyBeginAllowThreads();
4637 (arg1)->SetStyle(arg2);
4638 wxPyEndAllowThreads(__tstate);
4639 if (PyErr_Occurred()) SWIG_fail;
4640 }
4641 resultobj = SWIG_Py_Void();
4642 return resultobj;
4643 fail:
4644 return NULL;
4645 }
4646
4647
4648 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj = 0;
4650 wxPen *arg1 = (wxPen *) 0 ;
4651 int arg2 ;
4652 void *argp1 = 0 ;
4653 int res1 = 0 ;
4654 int val2 ;
4655 int ecode2 = 0 ;
4656 PyObject * obj0 = 0 ;
4657 PyObject * obj1 = 0 ;
4658 char * kwnames[] = {
4659 (char *) "self",(char *) "width", NULL
4660 };
4661
4662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4664 if (!SWIG_IsOK(res1)) {
4665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4666 }
4667 arg1 = reinterpret_cast< wxPen * >(argp1);
4668 ecode2 = SWIG_AsVal_int(obj1, &val2);
4669 if (!SWIG_IsOK(ecode2)) {
4670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4671 }
4672 arg2 = static_cast< int >(val2);
4673 {
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 (arg1)->SetWidth(arg2);
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 resultobj = SWIG_Py_Void();
4680 return resultobj;
4681 fail:
4682 return NULL;
4683 }
4684
4685
4686 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4687 PyObject *resultobj = 0;
4688 wxPen *arg1 = (wxPen *) 0 ;
4689 int arg2 ;
4690 wxDash *arg3 = (wxDash *) 0 ;
4691 void *argp1 = 0 ;
4692 int res1 = 0 ;
4693 PyObject * obj0 = 0 ;
4694 PyObject * obj1 = 0 ;
4695 char * kwnames[] = {
4696 (char *) "self",(char *) "dashes", NULL
4697 };
4698
4699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4701 if (!SWIG_IsOK(res1)) {
4702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4703 }
4704 arg1 = reinterpret_cast< wxPen * >(argp1);
4705 {
4706 arg2 = PyList_Size(obj1);
4707 arg3 = (wxDash*)byte_LIST_helper(obj1);
4708 if (arg3 == NULL) SWIG_fail;
4709 }
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 (arg1)->SetDashes(arg2,arg3);
4713 wxPyEndAllowThreads(__tstate);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 resultobj = SWIG_Py_Void();
4717 {
4718 if (arg3) delete [] arg3;
4719 }
4720 return resultobj;
4721 fail:
4722 {
4723 if (arg3) delete [] arg3;
4724 }
4725 return NULL;
4726 }
4727
4728
4729 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4730 PyObject *resultobj = 0;
4731 wxPen *arg1 = (wxPen *) 0 ;
4732 PyObject *result = 0 ;
4733 void *argp1 = 0 ;
4734 int res1 = 0 ;
4735 PyObject *swig_obj[1] ;
4736
4737 if (!args) SWIG_fail;
4738 swig_obj[0] = args;
4739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4740 if (!SWIG_IsOK(res1)) {
4741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4742 }
4743 arg1 = reinterpret_cast< wxPen * >(argp1);
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (PyObject *)wxPen_GetDashes(arg1);
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 resultobj = result;
4751 return resultobj;
4752 fail:
4753 return NULL;
4754 }
4755
4756
4757 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4758 PyObject *resultobj = 0;
4759 wxPen *arg1 = (wxPen *) 0 ;
4760 PyObject *arg2 = (PyObject *) 0 ;
4761 PyObject *arg3 = (PyObject *) 0 ;
4762 void *argp1 = 0 ;
4763 int res1 = 0 ;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 PyObject * obj2 = 0 ;
4767 char * kwnames[] = {
4768 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4769 };
4770
4771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4773 if (!SWIG_IsOK(res1)) {
4774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4775 }
4776 arg1 = reinterpret_cast< wxPen * >(argp1);
4777 arg2 = obj1;
4778 arg3 = obj2;
4779 {
4780 PyThreadState* __tstate = wxPyBeginAllowThreads();
4781 wxPen__SetDashes(arg1,arg2,arg3);
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = SWIG_Py_Void();
4786 return resultobj;
4787 fail:
4788 return NULL;
4789 }
4790
4791
4792 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4793 PyObject *resultobj = 0;
4794 wxPen *arg1 = (wxPen *) 0 ;
4795 int result;
4796 void *argp1 = 0 ;
4797 int res1 = 0 ;
4798 PyObject *swig_obj[1] ;
4799
4800 if (!args) SWIG_fail;
4801 swig_obj[0] = args;
4802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4803 if (!SWIG_IsOK(res1)) {
4804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4805 }
4806 arg1 = reinterpret_cast< wxPen * >(argp1);
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (int)((wxPen const *)arg1)->GetDashCount();
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 resultobj = SWIG_From_int(static_cast< int >(result));
4814 return resultobj;
4815 fail:
4816 return NULL;
4817 }
4818
4819
4820 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj = 0;
4822 wxPen *arg1 = (wxPen *) 0 ;
4823 wxPen *arg2 = (wxPen *) 0 ;
4824 bool result;
4825 void *argp1 = 0 ;
4826 int res1 = 0 ;
4827 void *argp2 = 0 ;
4828 int res2 = 0 ;
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4831 char * kwnames[] = {
4832 (char *) "self",(char *) "other", NULL
4833 };
4834
4835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4837 if (!SWIG_IsOK(res1)) {
4838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4839 }
4840 arg1 = reinterpret_cast< wxPen * >(argp1);
4841 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4842 if (!SWIG_IsOK(res2)) {
4843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4844 }
4845 arg2 = reinterpret_cast< wxPen * >(argp2);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 {
4853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4854 }
4855 return resultobj;
4856 fail:
4857 return NULL;
4858 }
4859
4860
4861 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj = 0;
4863 wxPen *arg1 = (wxPen *) 0 ;
4864 wxPen *arg2 = (wxPen *) 0 ;
4865 bool result;
4866 void *argp1 = 0 ;
4867 int res1 = 0 ;
4868 void *argp2 = 0 ;
4869 int res2 = 0 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 char * kwnames[] = {
4873 (char *) "self",(char *) "other", NULL
4874 };
4875
4876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4878 if (!SWIG_IsOK(res1)) {
4879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4880 }
4881 arg1 = reinterpret_cast< wxPen * >(argp1);
4882 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4883 if (!SWIG_IsOK(res2)) {
4884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4885 }
4886 arg2 = reinterpret_cast< wxPen * >(argp2);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 {
4894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4895 }
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *obj;
4904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4905 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4906 return SWIG_Py_Void();
4907 }
4908
4909 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910 return SWIG_Python_InitShadowInstance(args);
4911 }
4912
4913 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj = 0;
4915 wxColour *arg1 = 0 ;
4916 int arg2 = (int) wxSOLID ;
4917 wxBrush *result = 0 ;
4918 wxColour temp1 ;
4919 int val2 ;
4920 int ecode2 = 0 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 char * kwnames[] = {
4924 (char *) "colour",(char *) "style", NULL
4925 };
4926
4927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4928 {
4929 arg1 = &temp1;
4930 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4931 }
4932 if (obj1) {
4933 ecode2 = SWIG_AsVal_int(obj1, &val2);
4934 if (!SWIG_IsOK(ecode2)) {
4935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4936 }
4937 arg2 = static_cast< int >(val2);
4938 }
4939 {
4940 if (!wxPyCheckForApp()) SWIG_fail;
4941 PyThreadState* __tstate = wxPyBeginAllowThreads();
4942 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4947 return resultobj;
4948 fail:
4949 return NULL;
4950 }
4951
4952
4953 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4954 PyObject *resultobj = 0;
4955 wxBitmap *arg1 = 0 ;
4956 wxBrush *result = 0 ;
4957 void *argp1 = 0 ;
4958 int res1 = 0 ;
4959 PyObject * obj0 = 0 ;
4960 char * kwnames[] = {
4961 (char *) "stippleBitmap", NULL
4962 };
4963
4964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4965 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4966 if (!SWIG_IsOK(res1)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4968 }
4969 if (!argp1) {
4970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4971 }
4972 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4973 {
4974 if (!wxPyCheckForApp()) SWIG_fail;
4975 PyThreadState* __tstate = wxPyBeginAllowThreads();
4976 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4981 return resultobj;
4982 fail:
4983 return NULL;
4984 }
4985
4986
4987 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4988 PyObject *resultobj = 0;
4989 wxBrush *arg1 = (wxBrush *) 0 ;
4990 void *argp1 = 0 ;
4991 int res1 = 0 ;
4992 PyObject *swig_obj[1] ;
4993
4994 if (!args) SWIG_fail;
4995 swig_obj[0] = args;
4996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4997 if (!SWIG_IsOK(res1)) {
4998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4999 }
5000 arg1 = reinterpret_cast< wxBrush * >(argp1);
5001 {
5002 PyThreadState* __tstate = wxPyBeginAllowThreads();
5003 delete arg1;
5004
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 resultobj = SWIG_Py_Void();
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj = 0;
5017 wxBrush *arg1 = (wxBrush *) 0 ;
5018 wxColour *arg2 = 0 ;
5019 void *argp1 = 0 ;
5020 int res1 = 0 ;
5021 wxColour temp2 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char * kwnames[] = {
5025 (char *) "self",(char *) "col", NULL
5026 };
5027
5028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5032 }
5033 arg1 = reinterpret_cast< wxBrush * >(argp1);
5034 {
5035 arg2 = &temp2;
5036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5037 }
5038 {
5039 PyThreadState* __tstate = wxPyBeginAllowThreads();
5040 (arg1)->SetColour((wxColour const &)*arg2);
5041 wxPyEndAllowThreads(__tstate);
5042 if (PyErr_Occurred()) SWIG_fail;
5043 }
5044 resultobj = SWIG_Py_Void();
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5052 PyObject *resultobj = 0;
5053 wxBrush *arg1 = (wxBrush *) 0 ;
5054 int arg2 ;
5055 void *argp1 = 0 ;
5056 int res1 = 0 ;
5057 int val2 ;
5058 int ecode2 = 0 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char * kwnames[] = {
5062 (char *) "self",(char *) "style", NULL
5063 };
5064
5065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5067 if (!SWIG_IsOK(res1)) {
5068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5069 }
5070 arg1 = reinterpret_cast< wxBrush * >(argp1);
5071 ecode2 = SWIG_AsVal_int(obj1, &val2);
5072 if (!SWIG_IsOK(ecode2)) {
5073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5074 }
5075 arg2 = static_cast< int >(val2);
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 (arg1)->SetStyle(arg2);
5079 wxPyEndAllowThreads(__tstate);
5080 if (PyErr_Occurred()) SWIG_fail;
5081 }
5082 resultobj = SWIG_Py_Void();
5083 return resultobj;
5084 fail:
5085 return NULL;
5086 }
5087
5088
5089 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5090 PyObject *resultobj = 0;
5091 wxBrush *arg1 = (wxBrush *) 0 ;
5092 wxBitmap *arg2 = 0 ;
5093 void *argp1 = 0 ;
5094 int res1 = 0 ;
5095 void *argp2 = 0 ;
5096 int res2 = 0 ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 char * kwnames[] = {
5100 (char *) "self",(char *) "stipple", NULL
5101 };
5102
5103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5107 }
5108 arg1 = reinterpret_cast< wxBrush * >(argp1);
5109 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5110 if (!SWIG_IsOK(res2)) {
5111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5112 }
5113 if (!argp2) {
5114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5115 }
5116 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 (arg1)->SetStipple((wxBitmap const &)*arg2);
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 resultobj = SWIG_Py_Void();
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5131 PyObject *resultobj = 0;
5132 wxBrush *arg1 = (wxBrush *) 0 ;
5133 wxColour result;
5134 void *argp1 = 0 ;
5135 int res1 = 0 ;
5136 PyObject *swig_obj[1] ;
5137
5138 if (!args) SWIG_fail;
5139 swig_obj[0] = args;
5140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5141 if (!SWIG_IsOK(res1)) {
5142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5143 }
5144 arg1 = reinterpret_cast< wxBrush * >(argp1);
5145 {
5146 PyThreadState* __tstate = wxPyBeginAllowThreads();
5147 result = ((wxBrush const *)arg1)->GetColour();
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) SWIG_fail;
5150 }
5151 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5152 return resultobj;
5153 fail:
5154 return NULL;
5155 }
5156
5157
5158 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5159 PyObject *resultobj = 0;
5160 wxBrush *arg1 = (wxBrush *) 0 ;
5161 int result;
5162 void *argp1 = 0 ;
5163 int res1 = 0 ;
5164 PyObject *swig_obj[1] ;
5165
5166 if (!args) SWIG_fail;
5167 swig_obj[0] = args;
5168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5169 if (!SWIG_IsOK(res1)) {
5170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5171 }
5172 arg1 = reinterpret_cast< wxBrush * >(argp1);
5173 {
5174 PyThreadState* __tstate = wxPyBeginAllowThreads();
5175 result = (int)((wxBrush const *)arg1)->GetStyle();
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 resultobj = SWIG_From_int(static_cast< int >(result));
5180 return resultobj;
5181 fail:
5182 return NULL;
5183 }
5184
5185
5186 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5187 PyObject *resultobj = 0;
5188 wxBrush *arg1 = (wxBrush *) 0 ;
5189 wxBitmap *result = 0 ;
5190 void *argp1 = 0 ;
5191 int res1 = 0 ;
5192 PyObject *swig_obj[1] ;
5193
5194 if (!args) SWIG_fail;
5195 swig_obj[0] = args;
5196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5197 if (!SWIG_IsOK(res1)) {
5198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5199 }
5200 arg1 = reinterpret_cast< wxBrush * >(argp1);
5201 {
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5208 return resultobj;
5209 fail:
5210 return NULL;
5211 }
5212
5213
5214 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5215 PyObject *resultobj = 0;
5216 wxBrush *arg1 = (wxBrush *) 0 ;
5217 bool result;
5218 void *argp1 = 0 ;
5219 int res1 = 0 ;
5220 PyObject *swig_obj[1] ;
5221
5222 if (!args) SWIG_fail;
5223 swig_obj[0] = args;
5224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5225 if (!SWIG_IsOK(res1)) {
5226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5227 }
5228 arg1 = reinterpret_cast< wxBrush * >(argp1);
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (bool)((wxBrush const *)arg1)->IsHatch();
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 {
5236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5237 }
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5245 PyObject *resultobj = 0;
5246 wxBrush *arg1 = (wxBrush *) 0 ;
5247 bool result;
5248 void *argp1 = 0 ;
5249 int res1 = 0 ;
5250 PyObject *swig_obj[1] ;
5251
5252 if (!args) SWIG_fail;
5253 swig_obj[0] = args;
5254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5255 if (!SWIG_IsOK(res1)) {
5256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5257 }
5258 arg1 = reinterpret_cast< wxBrush * >(argp1);
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (bool)(arg1)->Ok();
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 }
5265 {
5266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5267 }
5268 return resultobj;
5269 fail:
5270 return NULL;
5271 }
5272
5273
5274 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5275 PyObject *obj;
5276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5277 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5278 return SWIG_Py_Void();
5279 }
5280
5281 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5282 return SWIG_Python_InitShadowInstance(args);
5283 }
5284
5285 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj = 0;
5287 wxString *arg1 = 0 ;
5288 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5289 wxBitmap *result = 0 ;
5290 bool temp1 = false ;
5291 int val2 ;
5292 int ecode2 = 0 ;
5293 PyObject * obj0 = 0 ;
5294 PyObject * obj1 = 0 ;
5295 char * kwnames[] = {
5296 (char *) "name",(char *) "type", NULL
5297 };
5298
5299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5300 {
5301 arg1 = wxString_in_helper(obj0);
5302 if (arg1 == NULL) SWIG_fail;
5303 temp1 = true;
5304 }
5305 if (obj1) {
5306 ecode2 = SWIG_AsVal_int(obj1, &val2);
5307 if (!SWIG_IsOK(ecode2)) {
5308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5309 }
5310 arg2 = static_cast< wxBitmapType >(val2);
5311 }
5312 {
5313 if (!wxPyCheckForApp()) SWIG_fail;
5314 PyThreadState* __tstate = wxPyBeginAllowThreads();
5315 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5320 {
5321 if (temp1)
5322 delete arg1;
5323 }
5324 return resultobj;
5325 fail:
5326 {
5327 if (temp1)
5328 delete arg1;
5329 }
5330 return NULL;
5331 }
5332
5333
5334 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5335 PyObject *resultobj = 0;
5336 wxBitmap *arg1 = (wxBitmap *) 0 ;
5337 void *argp1 = 0 ;
5338 int res1 = 0 ;
5339 PyObject *swig_obj[1] ;
5340
5341 if (!args) SWIG_fail;
5342 swig_obj[0] = args;
5343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5344 if (!SWIG_IsOK(res1)) {
5345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5346 }
5347 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5348 {
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 delete arg1;
5351
5352 wxPyEndAllowThreads(__tstate);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 resultobj = SWIG_Py_Void();
5356 return resultobj;
5357 fail:
5358 return NULL;
5359 }
5360
5361
5362 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5363 PyObject *resultobj = 0;
5364 int arg1 ;
5365 int arg2 ;
5366 int arg3 = (int) -1 ;
5367 wxBitmap *result = 0 ;
5368 int val1 ;
5369 int ecode1 = 0 ;
5370 int val2 ;
5371 int ecode2 = 0 ;
5372 int val3 ;
5373 int ecode3 = 0 ;
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 PyObject * obj2 = 0 ;
5377 char * kwnames[] = {
5378 (char *) "width",(char *) "height",(char *) "depth", NULL
5379 };
5380
5381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5382 ecode1 = SWIG_AsVal_int(obj0, &val1);
5383 if (!SWIG_IsOK(ecode1)) {
5384 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5385 }
5386 arg1 = static_cast< int >(val1);
5387 ecode2 = SWIG_AsVal_int(obj1, &val2);
5388 if (!SWIG_IsOK(ecode2)) {
5389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5390 }
5391 arg2 = static_cast< int >(val2);
5392 if (obj2) {
5393 ecode3 = SWIG_AsVal_int(obj2, &val3);
5394 if (!SWIG_IsOK(ecode3)) {
5395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5396 }
5397 arg3 = static_cast< int >(val3);
5398 }
5399 {
5400 if (!wxPyCheckForApp()) SWIG_fail;
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj = 0;
5415 wxIcon *arg1 = 0 ;
5416 wxBitmap *result = 0 ;
5417 void *argp1 = 0 ;
5418 int res1 = 0 ;
5419 PyObject * obj0 = 0 ;
5420 char * kwnames[] = {
5421 (char *) "icon", NULL
5422 };
5423
5424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5425 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5426 if (!SWIG_IsOK(res1)) {
5427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5428 }
5429 if (!argp1) {
5430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5431 }
5432 arg1 = reinterpret_cast< wxIcon * >(argp1);
5433 {
5434 if (!wxPyCheckForApp()) SWIG_fail;
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5448 PyObject *resultobj = 0;
5449 wxImage *arg1 = 0 ;
5450 int arg2 = (int) -1 ;
5451 wxBitmap *result = 0 ;
5452 void *argp1 = 0 ;
5453 int res1 = 0 ;
5454 int val2 ;
5455 int ecode2 = 0 ;
5456 PyObject * obj0 = 0 ;
5457 PyObject * obj1 = 0 ;
5458 char * kwnames[] = {
5459 (char *) "image",(char *) "depth", NULL
5460 };
5461
5462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5463 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5464 if (!SWIG_IsOK(res1)) {
5465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5466 }
5467 if (!argp1) {
5468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5469 }
5470 arg1 = reinterpret_cast< wxImage * >(argp1);
5471 if (obj1) {
5472 ecode2 = SWIG_AsVal_int(obj1, &val2);
5473 if (!SWIG_IsOK(ecode2)) {
5474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5475 }
5476 arg2 = static_cast< int >(val2);
5477 }
5478 {
5479 if (!wxPyCheckForApp()) SWIG_fail;
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5486 return resultobj;
5487 fail:
5488 return NULL;
5489 }
5490
5491
5492 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5493 PyObject *resultobj = 0;
5494 PyObject *arg1 = (PyObject *) 0 ;
5495 wxBitmap *result = 0 ;
5496 PyObject * obj0 = 0 ;
5497 char * kwnames[] = {
5498 (char *) "listOfStrings", NULL
5499 };
5500
5501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5502 arg1 = obj0;
5503 {
5504 if (!wxPyCheckForApp()) SWIG_fail;
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (wxBitmap *)new_wxBitmap(arg1);
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5511 return resultobj;
5512 fail:
5513 return NULL;
5514 }
5515
5516
5517 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj = 0;
5519 PyObject *arg1 = (PyObject *) 0 ;
5520 int arg2 ;
5521 int arg3 ;
5522 int arg4 = (int) 1 ;
5523 wxBitmap *result = 0 ;
5524 int val2 ;
5525 int ecode2 = 0 ;
5526 int val3 ;
5527 int ecode3 = 0 ;
5528 int val4 ;
5529 int ecode4 = 0 ;
5530 PyObject * obj0 = 0 ;
5531 PyObject * obj1 = 0 ;
5532 PyObject * obj2 = 0 ;
5533 PyObject * obj3 = 0 ;
5534 char * kwnames[] = {
5535 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5536 };
5537
5538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5539 arg1 = obj0;
5540 ecode2 = SWIG_AsVal_int(obj1, &val2);
5541 if (!SWIG_IsOK(ecode2)) {
5542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5543 }
5544 arg2 = static_cast< int >(val2);
5545 ecode3 = SWIG_AsVal_int(obj2, &val3);
5546 if (!SWIG_IsOK(ecode3)) {
5547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5548 }
5549 arg3 = static_cast< int >(val3);
5550 if (obj3) {
5551 ecode4 = SWIG_AsVal_int(obj3, &val4);
5552 if (!SWIG_IsOK(ecode4)) {
5553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5554 }
5555 arg4 = static_cast< int >(val4);
5556 }
5557 {
5558 if (!wxPyCheckForApp()) SWIG_fail;
5559 PyThreadState* __tstate = wxPyBeginAllowThreads();
5560 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5572 PyObject *resultobj = 0;
5573 wxBitmap *arg1 = (wxBitmap *) 0 ;
5574 bool result;
5575 void *argp1 = 0 ;
5576 int res1 = 0 ;
5577 PyObject *swig_obj[1] ;
5578
5579 if (!args) SWIG_fail;
5580 swig_obj[0] = args;
5581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5582 if (!SWIG_IsOK(res1)) {
5583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5584 }
5585 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5586 {
5587 PyThreadState* __tstate = wxPyBeginAllowThreads();
5588 result = (bool)(arg1)->Ok();
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 }
5592 {
5593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5594 }
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5602 PyObject *resultobj = 0;
5603 wxBitmap *arg1 = (wxBitmap *) 0 ;
5604 int result;
5605 void *argp1 = 0 ;
5606 int res1 = 0 ;
5607 PyObject *swig_obj[1] ;
5608
5609 if (!args) SWIG_fail;
5610 swig_obj[0] = args;
5611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5612 if (!SWIG_IsOK(res1)) {
5613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5614 }
5615 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5616 {
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (int)(arg1)->GetWidth();
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_From_int(static_cast< int >(result));
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5630 PyObject *resultobj = 0;
5631 wxBitmap *arg1 = (wxBitmap *) 0 ;
5632 int result;
5633 void *argp1 = 0 ;
5634 int res1 = 0 ;
5635 PyObject *swig_obj[1] ;
5636
5637 if (!args) SWIG_fail;
5638 swig_obj[0] = args;
5639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5640 if (!SWIG_IsOK(res1)) {
5641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5642 }
5643 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5644 {
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 result = (int)(arg1)->GetHeight();
5647 wxPyEndAllowThreads(__tstate);
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 resultobj = SWIG_From_int(static_cast< int >(result));
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5658 PyObject *resultobj = 0;
5659 wxBitmap *arg1 = (wxBitmap *) 0 ;
5660 int result;
5661 void *argp1 = 0 ;
5662 int res1 = 0 ;
5663 PyObject *swig_obj[1] ;
5664
5665 if (!args) SWIG_fail;
5666 swig_obj[0] = args;
5667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5668 if (!SWIG_IsOK(res1)) {
5669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5670 }
5671 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 result = (int)(arg1)->GetDepth();
5675 wxPyEndAllowThreads(__tstate);
5676 if (PyErr_Occurred()) SWIG_fail;
5677 }
5678 resultobj = SWIG_From_int(static_cast< int >(result));
5679 return resultobj;
5680 fail:
5681 return NULL;
5682 }
5683
5684
5685 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5686 PyObject *resultobj = 0;
5687 wxBitmap *arg1 = (wxBitmap *) 0 ;
5688 wxSize result;
5689 void *argp1 = 0 ;
5690 int res1 = 0 ;
5691 PyObject *swig_obj[1] ;
5692
5693 if (!args) SWIG_fail;
5694 swig_obj[0] = args;
5695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5696 if (!SWIG_IsOK(res1)) {
5697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5698 }
5699 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = wxBitmap_GetSize(arg1);
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5707 return resultobj;
5708 fail:
5709 return NULL;
5710 }
5711
5712
5713 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5714 PyObject *resultobj = 0;
5715 wxBitmap *arg1 = (wxBitmap *) 0 ;
5716 SwigValueWrapper<wxImage > result;
5717 void *argp1 = 0 ;
5718 int res1 = 0 ;
5719 PyObject *swig_obj[1] ;
5720
5721 if (!args) SWIG_fail;
5722 swig_obj[0] = args;
5723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5724 if (!SWIG_IsOK(res1)) {
5725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5726 }
5727 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5728 {
5729 PyThreadState* __tstate = wxPyBeginAllowThreads();
5730 result = ((wxBitmap const *)arg1)->ConvertToImage();
5731 wxPyEndAllowThreads(__tstate);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5735 return resultobj;
5736 fail:
5737 return NULL;
5738 }
5739
5740
5741 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5742 PyObject *resultobj = 0;
5743 wxBitmap *arg1 = (wxBitmap *) 0 ;
5744 wxMask *result = 0 ;
5745 void *argp1 = 0 ;
5746 int res1 = 0 ;
5747 PyObject *swig_obj[1] ;
5748
5749 if (!args) SWIG_fail;
5750 swig_obj[0] = args;
5751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5752 if (!SWIG_IsOK(res1)) {
5753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5754 }
5755 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5763 return resultobj;
5764 fail:
5765 return NULL;
5766 }
5767
5768
5769 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj = 0;
5771 wxBitmap *arg1 = (wxBitmap *) 0 ;
5772 wxMask *arg2 = (wxMask *) 0 ;
5773 void *argp1 = 0 ;
5774 int res1 = 0 ;
5775 int res2 = 0 ;
5776 PyObject * obj0 = 0 ;
5777 PyObject * obj1 = 0 ;
5778 char * kwnames[] = {
5779 (char *) "self",(char *) "mask", NULL
5780 };
5781
5782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5784 if (!SWIG_IsOK(res1)) {
5785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5786 }
5787 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5788 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5789 if (!SWIG_IsOK(res2)) {
5790 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5791 }
5792 {
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 (arg1)->SetMask(arg2);
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 resultobj = SWIG_Py_Void();
5799 return resultobj;
5800 fail:
5801 return NULL;
5802 }
5803
5804
5805 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5806 PyObject *resultobj = 0;
5807 wxBitmap *arg1 = (wxBitmap *) 0 ;
5808 wxColour *arg2 = 0 ;
5809 void *argp1 = 0 ;
5810 int res1 = 0 ;
5811 wxColour temp2 ;
5812 PyObject * obj0 = 0 ;
5813 PyObject * obj1 = 0 ;
5814 char * kwnames[] = {
5815 (char *) "self",(char *) "colour", NULL
5816 };
5817
5818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5820 if (!SWIG_IsOK(res1)) {
5821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5822 }
5823 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5824 {
5825 arg2 = &temp2;
5826 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5827 }
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5831 wxPyEndAllowThreads(__tstate);
5832 if (PyErr_Occurred()) SWIG_fail;
5833 }
5834 resultobj = SWIG_Py_Void();
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj = 0;
5843 wxBitmap *arg1 = (wxBitmap *) 0 ;
5844 wxRect *arg2 = 0 ;
5845 SwigValueWrapper<wxBitmap > result;
5846 void *argp1 = 0 ;
5847 int res1 = 0 ;
5848 wxRect temp2 ;
5849 PyObject * obj0 = 0 ;
5850 PyObject * obj1 = 0 ;
5851 char * kwnames[] = {
5852 (char *) "self",(char *) "rect", NULL
5853 };
5854
5855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5857 if (!SWIG_IsOK(res1)) {
5858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5859 }
5860 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5861 {
5862 arg2 = &temp2;
5863 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5864 }
5865 {
5866 PyThreadState* __tstate = wxPyBeginAllowThreads();
5867 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj = 0;
5880 wxBitmap *arg1 = (wxBitmap *) 0 ;
5881 wxString *arg2 = 0 ;
5882 wxBitmapType arg3 ;
5883 wxPalette *arg4 = (wxPalette *) NULL ;
5884 bool result;
5885 void *argp1 = 0 ;
5886 int res1 = 0 ;
5887 bool temp2 = false ;
5888 int val3 ;
5889 int ecode3 = 0 ;
5890 void *argp4 = 0 ;
5891 int res4 = 0 ;
5892 PyObject * obj0 = 0 ;
5893 PyObject * obj1 = 0 ;
5894 PyObject * obj2 = 0 ;
5895 PyObject * obj3 = 0 ;
5896 char * kwnames[] = {
5897 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5898 };
5899
5900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5902 if (!SWIG_IsOK(res1)) {
5903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5904 }
5905 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5906 {
5907 arg2 = wxString_in_helper(obj1);
5908 if (arg2 == NULL) SWIG_fail;
5909 temp2 = true;
5910 }
5911 ecode3 = SWIG_AsVal_int(obj2, &val3);
5912 if (!SWIG_IsOK(ecode3)) {
5913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5914 }
5915 arg3 = static_cast< wxBitmapType >(val3);
5916 if (obj3) {
5917 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5918 if (!SWIG_IsOK(res4)) {
5919 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5920 }
5921 arg4 = reinterpret_cast< wxPalette * >(argp4);
5922 }
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 {
5930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5931 }
5932 {
5933 if (temp2)
5934 delete arg2;
5935 }
5936 return resultobj;
5937 fail:
5938 {
5939 if (temp2)
5940 delete arg2;
5941 }
5942 return NULL;
5943 }
5944
5945
5946 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj = 0;
5948 wxBitmap *arg1 = (wxBitmap *) 0 ;
5949 wxString *arg2 = 0 ;
5950 wxBitmapType arg3 ;
5951 bool result;
5952 void *argp1 = 0 ;
5953 int res1 = 0 ;
5954 bool temp2 = false ;
5955 int val3 ;
5956 int ecode3 = 0 ;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj1 = 0 ;
5959 PyObject * obj2 = 0 ;
5960 char * kwnames[] = {
5961 (char *) "self",(char *) "name",(char *) "type", NULL
5962 };
5963
5964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5968 }
5969 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5970 {
5971 arg2 = wxString_in_helper(obj1);
5972 if (arg2 == NULL) SWIG_fail;
5973 temp2 = true;
5974 }
5975 ecode3 = SWIG_AsVal_int(obj2, &val3);
5976 if (!SWIG_IsOK(ecode3)) {
5977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5978 }
5979 arg3 = static_cast< wxBitmapType >(val3);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 {
5987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5988 }
5989 {
5990 if (temp2)
5991 delete arg2;
5992 }
5993 return resultobj;
5994 fail:
5995 {
5996 if (temp2)
5997 delete arg2;
5998 }
5999 return NULL;
6000 }
6001
6002
6003 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6004 PyObject *resultobj = 0;
6005 wxBitmap *arg1 = (wxBitmap *) 0 ;
6006 wxPalette *result = 0 ;
6007 void *argp1 = 0 ;
6008 int res1 = 0 ;
6009 PyObject *swig_obj[1] ;
6010
6011 if (!args) SWIG_fail;
6012 swig_obj[0] = args;
6013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6014 if (!SWIG_IsOK(res1)) {
6015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6016 }
6017 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 wxBitmap *arg1 = (wxBitmap *) 0 ;
6034 wxIcon *arg2 = 0 ;
6035 bool result;
6036 void *argp1 = 0 ;
6037 int res1 = 0 ;
6038 void *argp2 = 0 ;
6039 int res2 = 0 ;
6040 PyObject * obj0 = 0 ;
6041 PyObject * obj1 = 0 ;
6042 char * kwnames[] = {
6043 (char *) "self",(char *) "icon", NULL
6044 };
6045
6046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6048 if (!SWIG_IsOK(res1)) {
6049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6050 }
6051 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6052 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6053 if (!SWIG_IsOK(res2)) {
6054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6055 }
6056 if (!argp2) {
6057 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6058 }
6059 arg2 = reinterpret_cast< wxIcon * >(argp2);
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 {
6067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6068 }
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj = 0;
6077 wxBitmap *arg1 = (wxBitmap *) 0 ;
6078 int arg2 ;
6079 void *argp1 = 0 ;
6080 int res1 = 0 ;
6081 int val2 ;
6082 int ecode2 = 0 ;
6083 PyObject * obj0 = 0 ;
6084 PyObject * obj1 = 0 ;
6085 char * kwnames[] = {
6086 (char *) "self",(char *) "height", NULL
6087 };
6088
6089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6091 if (!SWIG_IsOK(res1)) {
6092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6093 }
6094 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6095 ecode2 = SWIG_AsVal_int(obj1, &val2);
6096 if (!SWIG_IsOK(ecode2)) {
6097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6098 }
6099 arg2 = static_cast< int >(val2);
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 (arg1)->SetHeight(arg2);
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) SWIG_fail;
6105 }
6106 resultobj = SWIG_Py_Void();
6107 return resultobj;
6108 fail:
6109 return NULL;
6110 }
6111
6112
6113 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6114 PyObject *resultobj = 0;
6115 wxBitmap *arg1 = (wxBitmap *) 0 ;
6116 int arg2 ;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 int val2 ;
6120 int ecode2 = 0 ;
6121 PyObject * obj0 = 0 ;
6122 PyObject * obj1 = 0 ;
6123 char * kwnames[] = {
6124 (char *) "self",(char *) "width", NULL
6125 };
6126
6127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6129 if (!SWIG_IsOK(res1)) {
6130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6131 }
6132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6133 ecode2 = SWIG_AsVal_int(obj1, &val2);
6134 if (!SWIG_IsOK(ecode2)) {
6135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6136 }
6137 arg2 = static_cast< int >(val2);
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 (arg1)->SetWidth(arg2);
6141 wxPyEndAllowThreads(__tstate);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 }
6144 resultobj = SWIG_Py_Void();
6145 return resultobj;
6146 fail:
6147 return NULL;
6148 }
6149
6150
6151 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6152 PyObject *resultobj = 0;
6153 wxBitmap *arg1 = (wxBitmap *) 0 ;
6154 int arg2 ;
6155 void *argp1 = 0 ;
6156 int res1 = 0 ;
6157 int val2 ;
6158 int ecode2 = 0 ;
6159 PyObject * obj0 = 0 ;
6160 PyObject * obj1 = 0 ;
6161 char * kwnames[] = {
6162 (char *) "self",(char *) "depth", NULL
6163 };
6164
6165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6169 }
6170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6171 ecode2 = SWIG_AsVal_int(obj1, &val2);
6172 if (!SWIG_IsOK(ecode2)) {
6173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6174 }
6175 arg2 = static_cast< int >(val2);
6176 {
6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
6178 (arg1)->SetDepth(arg2);
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 resultobj = SWIG_Py_Void();
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6190 PyObject *resultobj = 0;
6191 wxBitmap *arg1 = (wxBitmap *) 0 ;
6192 wxSize *arg2 = 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 wxSize temp2 ;
6196 PyObject * obj0 = 0 ;
6197 PyObject * obj1 = 0 ;
6198 char * kwnames[] = {
6199 (char *) "self",(char *) "size", NULL
6200 };
6201
6202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6204 if (!SWIG_IsOK(res1)) {
6205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6206 }
6207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6208 {
6209 arg2 = &temp2;
6210 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6211 }
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 resultobj = SWIG_Py_Void();
6219 return resultobj;
6220 fail:
6221 return NULL;
6222 }
6223
6224
6225 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj = 0;
6227 wxBitmap *arg1 = (wxBitmap *) 0 ;
6228 wxBitmap *arg2 = (wxBitmap *) 0 ;
6229 bool result;
6230 void *argp1 = 0 ;
6231 int res1 = 0 ;
6232 void *argp2 = 0 ;
6233 int res2 = 0 ;
6234 PyObject * obj0 = 0 ;
6235 PyObject * obj1 = 0 ;
6236 char * kwnames[] = {
6237 (char *) "self",(char *) "other", NULL
6238 };
6239
6240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6242 if (!SWIG_IsOK(res1)) {
6243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6244 }
6245 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6247 if (!SWIG_IsOK(res2)) {
6248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6249 }
6250 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 {
6258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6259 }
6260 return resultobj;
6261 fail:
6262 return NULL;
6263 }
6264
6265
6266 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj = 0;
6268 wxBitmap *arg1 = (wxBitmap *) 0 ;
6269 wxBitmap *arg2 = (wxBitmap *) 0 ;
6270 bool result;
6271 void *argp1 = 0 ;
6272 int res1 = 0 ;
6273 void *argp2 = 0 ;
6274 int res2 = 0 ;
6275 PyObject * obj0 = 0 ;
6276 PyObject * obj1 = 0 ;
6277 char * kwnames[] = {
6278 (char *) "self",(char *) "other", NULL
6279 };
6280
6281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6283 if (!SWIG_IsOK(res1)) {
6284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6285 }
6286 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6287 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6288 if (!SWIG_IsOK(res2)) {
6289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6290 }
6291 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6292 {
6293 PyThreadState* __tstate = wxPyBeginAllowThreads();
6294 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 {
6299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6300 }
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6308 PyObject *obj;
6309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6310 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6311 return SWIG_Py_Void();
6312 }
6313
6314 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6315 return SWIG_Python_InitShadowInstance(args);
6316 }
6317
6318 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj = 0;
6320 wxBitmap *arg1 = 0 ;
6321 wxColour const &arg2_defvalue = wxNullColour ;
6322 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6323 wxMask *result = 0 ;
6324 void *argp1 = 0 ;
6325 int res1 = 0 ;
6326 wxColour temp2 ;
6327 PyObject * obj0 = 0 ;
6328 PyObject * obj1 = 0 ;
6329 char * kwnames[] = {
6330 (char *) "bitmap",(char *) "colour", NULL
6331 };
6332
6333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6334 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6335 if (!SWIG_IsOK(res1)) {
6336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6337 }
6338 if (!argp1) {
6339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6340 }
6341 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6342 if (obj1) {
6343 {
6344 arg2 = &temp2;
6345 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6346 }
6347 }
6348 {
6349 if (!wxPyCheckForApp()) SWIG_fail;
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6363 PyObject *resultobj = 0;
6364 wxMask *arg1 = (wxMask *) 0 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 PyObject *swig_obj[1] ;
6368
6369 if (!args) SWIG_fail;
6370 swig_obj[0] = args;
6371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6372 if (!SWIG_IsOK(res1)) {
6373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6374 }
6375 arg1 = reinterpret_cast< wxMask * >(argp1);
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 delete arg1;
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) SWIG_fail;
6382 }
6383 resultobj = SWIG_Py_Void();
6384 return resultobj;
6385 fail:
6386 return NULL;
6387 }
6388
6389
6390 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6391 PyObject *obj;
6392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6393 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6394 return SWIG_Py_Void();
6395 }
6396
6397 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6398 return SWIG_Python_InitShadowInstance(args);
6399 }
6400
6401 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6402 PyObject *resultobj = 0;
6403 wxString *arg1 = 0 ;
6404 wxBitmapType arg2 ;
6405 int arg3 = (int) -1 ;
6406 int arg4 = (int) -1 ;
6407 wxIcon *result = 0 ;
6408 bool temp1 = false ;
6409 int val2 ;
6410 int ecode2 = 0 ;
6411 int val3 ;
6412 int ecode3 = 0 ;
6413 int val4 ;
6414 int ecode4 = 0 ;
6415 PyObject * obj0 = 0 ;
6416 PyObject * obj1 = 0 ;
6417 PyObject * obj2 = 0 ;
6418 PyObject * obj3 = 0 ;
6419 char * kwnames[] = {
6420 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6421 };
6422
6423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6424 {
6425 arg1 = wxString_in_helper(obj0);
6426 if (arg1 == NULL) SWIG_fail;
6427 temp1 = true;
6428 }
6429 ecode2 = SWIG_AsVal_int(obj1, &val2);
6430 if (!SWIG_IsOK(ecode2)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6432 }
6433 arg2 = static_cast< wxBitmapType >(val2);
6434 if (obj2) {
6435 ecode3 = SWIG_AsVal_int(obj2, &val3);
6436 if (!SWIG_IsOK(ecode3)) {
6437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6438 }
6439 arg3 = static_cast< int >(val3);
6440 }
6441 if (obj3) {
6442 ecode4 = SWIG_AsVal_int(obj3, &val4);
6443 if (!SWIG_IsOK(ecode4)) {
6444 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6445 }
6446 arg4 = static_cast< int >(val4);
6447 }
6448 {
6449 if (!wxPyCheckForApp()) SWIG_fail;
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6452 wxPyEndAllowThreads(__tstate);
6453 if (PyErr_Occurred()) SWIG_fail;
6454 }
6455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6456 {
6457 if (temp1)
6458 delete arg1;
6459 }
6460 return resultobj;
6461 fail:
6462 {
6463 if (temp1)
6464 delete arg1;
6465 }
6466 return NULL;
6467 }
6468
6469
6470 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6471 PyObject *resultobj = 0;
6472 wxIcon *arg1 = (wxIcon *) 0 ;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 PyObject *swig_obj[1] ;
6476
6477 if (!args) SWIG_fail;
6478 swig_obj[0] = args;
6479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6480 if (!SWIG_IsOK(res1)) {
6481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6482 }
6483 arg1 = reinterpret_cast< wxIcon * >(argp1);
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 delete arg1;
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 resultobj = SWIG_Py_Void();
6492 return resultobj;
6493 fail:
6494 return NULL;
6495 }
6496
6497
6498 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6499 PyObject *resultobj = 0;
6500 wxIcon *result = 0 ;
6501
6502 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6503 {
6504 if (!wxPyCheckForApp()) SWIG_fail;
6505 PyThreadState* __tstate = wxPyBeginAllowThreads();
6506 result = (wxIcon *)new wxIcon();
6507 wxPyEndAllowThreads(__tstate);
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6511 return resultobj;
6512 fail:
6513 return NULL;
6514 }
6515
6516
6517 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6518 PyObject *resultobj = 0;
6519 wxIconLocation *arg1 = 0 ;
6520 wxIcon *result = 0 ;
6521 void *argp1 = 0 ;
6522 int res1 = 0 ;
6523 PyObject * obj0 = 0 ;
6524 char * kwnames[] = {
6525 (char *) "loc", NULL
6526 };
6527
6528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6529 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6530 if (!SWIG_IsOK(res1)) {
6531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6532 }
6533 if (!argp1) {
6534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6535 }
6536 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6537 {
6538 if (!wxPyCheckForApp()) SWIG_fail;
6539 PyThreadState* __tstate = wxPyBeginAllowThreads();
6540 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj = 0;
6553 wxBitmap *arg1 = 0 ;
6554 wxIcon *result = 0 ;
6555 void *argp1 = 0 ;
6556 int res1 = 0 ;
6557 PyObject * obj0 = 0 ;
6558 char * kwnames[] = {
6559 (char *) "bmp", NULL
6560 };
6561
6562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6563 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6564 if (!SWIG_IsOK(res1)) {
6565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6566 }
6567 if (!argp1) {
6568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6569 }
6570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6571 {
6572 if (!wxPyCheckForApp()) SWIG_fail;
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6579 return resultobj;
6580 fail:
6581 return NULL;
6582 }
6583
6584
6585 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6586 PyObject *resultobj = 0;
6587 PyObject *arg1 = (PyObject *) 0 ;
6588 wxIcon *result = 0 ;
6589 PyObject * obj0 = 0 ;
6590 char * kwnames[] = {
6591 (char *) "listOfStrings", NULL
6592 };
6593
6594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6595 arg1 = obj0;
6596 {
6597 if (!wxPyCheckForApp()) SWIG_fail;
6598 PyThreadState* __tstate = wxPyBeginAllowThreads();
6599 result = (wxIcon *)new_wxIcon(arg1);
6600 wxPyEndAllowThreads(__tstate);
6601 if (PyErr_Occurred()) SWIG_fail;
6602 }
6603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6604 return resultobj;
6605 fail:
6606 return NULL;
6607 }
6608
6609
6610 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6611 PyObject *resultobj = 0;
6612 wxIcon *arg1 = (wxIcon *) 0 ;
6613 wxString *arg2 = 0 ;
6614 wxBitmapType arg3 ;
6615 bool result;
6616 void *argp1 = 0 ;
6617 int res1 = 0 ;
6618 bool temp2 = false ;
6619 int val3 ;
6620 int ecode3 = 0 ;
6621 PyObject * obj0 = 0 ;
6622 PyObject * obj1 = 0 ;
6623 PyObject * obj2 = 0 ;
6624 char * kwnames[] = {
6625 (char *) "self",(char *) "name",(char *) "type", NULL
6626 };
6627
6628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6632 }
6633 arg1 = reinterpret_cast< wxIcon * >(argp1);
6634 {
6635 arg2 = wxString_in_helper(obj1);
6636 if (arg2 == NULL) SWIG_fail;
6637 temp2 = true;
6638 }
6639 ecode3 = SWIG_AsVal_int(obj2, &val3);
6640 if (!SWIG_IsOK(ecode3)) {
6641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6642 }
6643 arg3 = static_cast< wxBitmapType >(val3);
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6647 wxPyEndAllowThreads(__tstate);
6648 if (PyErr_Occurred()) SWIG_fail;
6649 }
6650 {
6651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6652 }
6653 {
6654 if (temp2)
6655 delete arg2;
6656 }
6657 return resultobj;
6658 fail:
6659 {
6660 if (temp2)
6661 delete arg2;
6662 }
6663 return NULL;
6664 }
6665
6666
6667 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6668 PyObject *resultobj = 0;
6669 wxIcon *arg1 = (wxIcon *) 0 ;
6670 bool result;
6671 void *argp1 = 0 ;
6672 int res1 = 0 ;
6673 PyObject *swig_obj[1] ;
6674
6675 if (!args) SWIG_fail;
6676 swig_obj[0] = args;
6677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6678 if (!SWIG_IsOK(res1)) {
6679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6680 }
6681 arg1 = reinterpret_cast< wxIcon * >(argp1);
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (bool)(arg1)->Ok();
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) SWIG_fail;
6687 }
6688 {
6689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6690 }
6691 return resultobj;
6692 fail:
6693 return NULL;
6694 }
6695
6696
6697 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6698 PyObject *resultobj = 0;
6699 wxIcon *arg1 = (wxIcon *) 0 ;
6700 int result;
6701 void *argp1 = 0 ;
6702 int res1 = 0 ;
6703 PyObject *swig_obj[1] ;
6704
6705 if (!args) SWIG_fail;
6706 swig_obj[0] = args;
6707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6708 if (!SWIG_IsOK(res1)) {
6709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6710 }
6711 arg1 = reinterpret_cast< wxIcon * >(argp1);
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 result = (int)(arg1)->GetWidth();
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 resultobj = SWIG_From_int(static_cast< int >(result));
6719 return resultobj;
6720 fail:
6721 return NULL;
6722 }
6723
6724
6725 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6726 PyObject *resultobj = 0;
6727 wxIcon *arg1 = (wxIcon *) 0 ;
6728 int result;
6729 void *argp1 = 0 ;
6730 int res1 = 0 ;
6731 PyObject *swig_obj[1] ;
6732
6733 if (!args) SWIG_fail;
6734 swig_obj[0] = args;
6735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6736 if (!SWIG_IsOK(res1)) {
6737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6738 }
6739 arg1 = reinterpret_cast< wxIcon * >(argp1);
6740 {
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 result = (int)(arg1)->GetHeight();
6743 wxPyEndAllowThreads(__tstate);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_From_int(static_cast< int >(result));
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6754 PyObject *resultobj = 0;
6755 wxIcon *arg1 = (wxIcon *) 0 ;
6756 int result;
6757 void *argp1 = 0 ;
6758 int res1 = 0 ;
6759 PyObject *swig_obj[1] ;
6760
6761 if (!args) SWIG_fail;
6762 swig_obj[0] = args;
6763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6764 if (!SWIG_IsOK(res1)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6766 }
6767 arg1 = reinterpret_cast< wxIcon * >(argp1);
6768 {
6769 PyThreadState* __tstate = wxPyBeginAllowThreads();
6770 result = (int)(arg1)->GetDepth();
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
6774 resultobj = SWIG_From_int(static_cast< int >(result));
6775 return resultobj;
6776 fail:
6777 return NULL;
6778 }
6779
6780
6781 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj = 0;
6783 wxIcon *arg1 = (wxIcon *) 0 ;
6784 int arg2 ;
6785 void *argp1 = 0 ;
6786 int res1 = 0 ;
6787 int val2 ;
6788 int ecode2 = 0 ;
6789 PyObject * obj0 = 0 ;
6790 PyObject * obj1 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "self",(char *) "w", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6799 }
6800 arg1 = reinterpret_cast< wxIcon * >(argp1);
6801 ecode2 = SWIG_AsVal_int(obj1, &val2);
6802 if (!SWIG_IsOK(ecode2)) {
6803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6804 }
6805 arg2 = static_cast< int >(val2);
6806 {
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 (arg1)->SetWidth(arg2);
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 resultobj = SWIG_Py_Void();
6813 return resultobj;
6814 fail:
6815 return NULL;
6816 }
6817
6818
6819 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj = 0;
6821 wxIcon *arg1 = (wxIcon *) 0 ;
6822 int arg2 ;
6823 void *argp1 = 0 ;
6824 int res1 = 0 ;
6825 int val2 ;
6826 int ecode2 = 0 ;
6827 PyObject * obj0 = 0 ;
6828 PyObject * obj1 = 0 ;
6829 char * kwnames[] = {
6830 (char *) "self",(char *) "h", NULL
6831 };
6832
6833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6835 if (!SWIG_IsOK(res1)) {
6836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6837 }
6838 arg1 = reinterpret_cast< wxIcon * >(argp1);
6839 ecode2 = SWIG_AsVal_int(obj1, &val2);
6840 if (!SWIG_IsOK(ecode2)) {
6841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6842 }
6843 arg2 = static_cast< int >(val2);
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 (arg1)->SetHeight(arg2);
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 resultobj = SWIG_Py_Void();
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj = 0;
6859 wxIcon *arg1 = (wxIcon *) 0 ;
6860 int arg2 ;
6861 void *argp1 = 0 ;
6862 int res1 = 0 ;
6863 int val2 ;
6864 int ecode2 = 0 ;
6865 PyObject * obj0 = 0 ;
6866 PyObject * obj1 = 0 ;
6867 char * kwnames[] = {
6868 (char *) "self",(char *) "d", NULL
6869 };
6870
6871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6873 if (!SWIG_IsOK(res1)) {
6874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6875 }
6876 arg1 = reinterpret_cast< wxIcon * >(argp1);
6877 ecode2 = SWIG_AsVal_int(obj1, &val2);
6878 if (!SWIG_IsOK(ecode2)) {
6879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6880 }
6881 arg2 = static_cast< int >(val2);
6882 {
6883 PyThreadState* __tstate = wxPyBeginAllowThreads();
6884 (arg1)->SetDepth(arg2);
6885 wxPyEndAllowThreads(__tstate);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 resultobj = SWIG_Py_Void();
6889 return resultobj;
6890 fail:
6891 return NULL;
6892 }
6893
6894
6895 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6896 PyObject *resultobj = 0;
6897 wxIcon *arg1 = (wxIcon *) 0 ;
6898 wxBitmap *arg2 = 0 ;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 void *argp2 = 0 ;
6902 int res2 = 0 ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char * kwnames[] = {
6906 (char *) "self",(char *) "bmp", NULL
6907 };
6908
6909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6911 if (!SWIG_IsOK(res1)) {
6912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6913 }
6914 arg1 = reinterpret_cast< wxIcon * >(argp1);
6915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6916 if (!SWIG_IsOK(res2)) {
6917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6918 }
6919 if (!argp2) {
6920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6921 }
6922 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6923 {
6924 PyThreadState* __tstate = wxPyBeginAllowThreads();
6925 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_Py_Void();
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6937 PyObject *obj;
6938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6939 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6940 return SWIG_Py_Void();
6941 }
6942
6943 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6944 return SWIG_Python_InitShadowInstance(args);
6945 }
6946
6947 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj = 0;
6949 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6950 int arg2 = (int) 0 ;
6951 wxIconLocation *result = 0 ;
6952 bool temp1 = false ;
6953 int val2 ;
6954 int ecode2 = 0 ;
6955 PyObject * obj0 = 0 ;
6956 PyObject * obj1 = 0 ;
6957 char * kwnames[] = {
6958 (char *) "filename",(char *) "num", NULL
6959 };
6960
6961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6962 if (obj0) {
6963 {
6964 arg1 = wxString_in_helper(obj0);
6965 if (arg1 == NULL) SWIG_fail;
6966 temp1 = true;
6967 }
6968 }
6969 if (obj1) {
6970 ecode2 = SWIG_AsVal_int(obj1, &val2);
6971 if (!SWIG_IsOK(ecode2)) {
6972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6973 }
6974 arg2 = static_cast< int >(val2);
6975 }
6976 {
6977 PyThreadState* __tstate = wxPyBeginAllowThreads();
6978 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6979 wxPyEndAllowThreads(__tstate);
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6983 {
6984 if (temp1)
6985 delete arg1;
6986 }
6987 return resultobj;
6988 fail:
6989 {
6990 if (temp1)
6991 delete arg1;
6992 }
6993 return NULL;
6994 }
6995
6996
6997 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6998 PyObject *resultobj = 0;
6999 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7000 void *argp1 = 0 ;
7001 int res1 = 0 ;
7002 PyObject *swig_obj[1] ;
7003
7004 if (!args) SWIG_fail;
7005 swig_obj[0] = args;
7006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7007 if (!SWIG_IsOK(res1)) {
7008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7009 }
7010 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 delete arg1;
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 resultobj = SWIG_Py_Void();
7019 return resultobj;
7020 fail:
7021 return NULL;
7022 }
7023
7024
7025 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7026 PyObject *resultobj = 0;
7027 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7028 bool result;
7029 void *argp1 = 0 ;
7030 int res1 = 0 ;
7031 PyObject *swig_obj[1] ;
7032
7033 if (!args) SWIG_fail;
7034 swig_obj[0] = args;
7035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7036 if (!SWIG_IsOK(res1)) {
7037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7038 }
7039 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7040 {
7041 PyThreadState* __tstate = wxPyBeginAllowThreads();
7042 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 {
7047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7048 }
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj = 0;
7057 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7058 wxString *arg2 = 0 ;
7059 void *argp1 = 0 ;
7060 int res1 = 0 ;
7061 bool temp2 = false ;
7062 PyObject * obj0 = 0 ;
7063 PyObject * obj1 = 0 ;
7064 char * kwnames[] = {
7065 (char *) "self",(char *) "filename", NULL
7066 };
7067
7068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7070 if (!SWIG_IsOK(res1)) {
7071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7072 }
7073 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7074 {
7075 arg2 = wxString_in_helper(obj1);
7076 if (arg2 == NULL) SWIG_fail;
7077 temp2 = true;
7078 }
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 (arg1)->SetFileName((wxString const &)*arg2);
7082 wxPyEndAllowThreads(__tstate);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 }
7085 resultobj = SWIG_Py_Void();
7086 {
7087 if (temp2)
7088 delete arg2;
7089 }
7090 return resultobj;
7091 fail:
7092 {
7093 if (temp2)
7094 delete arg2;
7095 }
7096 return NULL;
7097 }
7098
7099
7100 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7101 PyObject *resultobj = 0;
7102 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7103 wxString *result = 0 ;
7104 void *argp1 = 0 ;
7105 int res1 = 0 ;
7106 PyObject *swig_obj[1] ;
7107
7108 if (!args) SWIG_fail;
7109 swig_obj[0] = args;
7110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7111 if (!SWIG_IsOK(res1)) {
7112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7113 }
7114 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 {
7118 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7119 result = (wxString *) &_result_ref;
7120 }
7121 wxPyEndAllowThreads(__tstate);
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 {
7125 #if wxUSE_UNICODE
7126 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7127 #else
7128 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7129 #endif
7130 }
7131 return resultobj;
7132 fail:
7133 return NULL;
7134 }
7135
7136
7137 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj = 0;
7139 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7140 int arg2 ;
7141 void *argp1 = 0 ;
7142 int res1 = 0 ;
7143 int val2 ;
7144 int ecode2 = 0 ;
7145 PyObject * obj0 = 0 ;
7146 PyObject * obj1 = 0 ;
7147 char * kwnames[] = {
7148 (char *) "self",(char *) "num", NULL
7149 };
7150
7151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7153 if (!SWIG_IsOK(res1)) {
7154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7155 }
7156 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7157 ecode2 = SWIG_AsVal_int(obj1, &val2);
7158 if (!SWIG_IsOK(ecode2)) {
7159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7160 }
7161 arg2 = static_cast< int >(val2);
7162 {
7163 PyThreadState* __tstate = wxPyBeginAllowThreads();
7164 wxIconLocation_SetIndex(arg1,arg2);
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_Py_Void();
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7176 PyObject *resultobj = 0;
7177 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7178 int result;
7179 void *argp1 = 0 ;
7180 int res1 = 0 ;
7181 PyObject *swig_obj[1] ;
7182
7183 if (!args) SWIG_fail;
7184 swig_obj[0] = args;
7185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7186 if (!SWIG_IsOK(res1)) {
7187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7188 }
7189 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7190 {
7191 PyThreadState* __tstate = wxPyBeginAllowThreads();
7192 result = (int)wxIconLocation_GetIndex(arg1);
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 resultobj = SWIG_From_int(static_cast< int >(result));
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7204 PyObject *obj;
7205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7206 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7207 return SWIG_Py_Void();
7208 }
7209
7210 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7211 return SWIG_Python_InitShadowInstance(args);
7212 }
7213
7214 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7215 PyObject *resultobj = 0;
7216 wxIconBundle *result = 0 ;
7217
7218 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7219 {
7220 PyThreadState* __tstate = wxPyBeginAllowThreads();
7221 result = (wxIconBundle *)new wxIconBundle();
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj = 0;
7234 wxString *arg1 = 0 ;
7235 long arg2 ;
7236 wxIconBundle *result = 0 ;
7237 bool temp1 = false ;
7238 long val2 ;
7239 int ecode2 = 0 ;
7240 PyObject * obj0 = 0 ;
7241 PyObject * obj1 = 0 ;
7242 char * kwnames[] = {
7243 (char *) "file",(char *) "type", NULL
7244 };
7245
7246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7247 {
7248 arg1 = wxString_in_helper(obj0);
7249 if (arg1 == NULL) SWIG_fail;
7250 temp1 = true;
7251 }
7252 ecode2 = SWIG_AsVal_long(obj1, &val2);
7253 if (!SWIG_IsOK(ecode2)) {
7254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7255 }
7256 arg2 = static_cast< long >(val2);
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7260 wxPyEndAllowThreads(__tstate);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7264 {
7265 if (temp1)
7266 delete arg1;
7267 }
7268 return resultobj;
7269 fail:
7270 {
7271 if (temp1)
7272 delete arg1;
7273 }
7274 return NULL;
7275 }
7276
7277
7278 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7279 PyObject *resultobj = 0;
7280 wxIcon *arg1 = 0 ;
7281 wxIconBundle *result = 0 ;
7282 void *argp1 = 0 ;
7283 int res1 = 0 ;
7284 PyObject * obj0 = 0 ;
7285 char * kwnames[] = {
7286 (char *) "icon", NULL
7287 };
7288
7289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7290 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7291 if (!SWIG_IsOK(res1)) {
7292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7293 }
7294 if (!argp1) {
7295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7296 }
7297 arg1 = reinterpret_cast< wxIcon * >(argp1);
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7301 wxPyEndAllowThreads(__tstate);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7305 return resultobj;
7306 fail:
7307 return NULL;
7308 }
7309
7310
7311 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7312 PyObject *resultobj = 0;
7313 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7314 void *argp1 = 0 ;
7315 int res1 = 0 ;
7316 PyObject *swig_obj[1] ;
7317
7318 if (!args) SWIG_fail;
7319 swig_obj[0] = args;
7320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7321 if (!SWIG_IsOK(res1)) {
7322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7323 }
7324 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7325 {
7326 PyThreadState* __tstate = wxPyBeginAllowThreads();
7327 delete arg1;
7328
7329 wxPyEndAllowThreads(__tstate);
7330 if (PyErr_Occurred()) SWIG_fail;
7331 }
7332 resultobj = SWIG_Py_Void();
7333 return resultobj;
7334 fail:
7335 return NULL;
7336 }
7337
7338
7339 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7340 PyObject *resultobj = 0;
7341 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7342 wxIcon *arg2 = 0 ;
7343 void *argp1 = 0 ;
7344 int res1 = 0 ;
7345 void *argp2 = 0 ;
7346 int res2 = 0 ;
7347 PyObject * obj0 = 0 ;
7348 PyObject * obj1 = 0 ;
7349 char * kwnames[] = {
7350 (char *) "self",(char *) "icon", NULL
7351 };
7352
7353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7355 if (!SWIG_IsOK(res1)) {
7356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7357 }
7358 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7359 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7360 if (!SWIG_IsOK(res2)) {
7361 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7362 }
7363 if (!argp2) {
7364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7365 }
7366 arg2 = reinterpret_cast< wxIcon * >(argp2);
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 (arg1)->AddIcon((wxIcon const &)*arg2);
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) SWIG_fail;
7372 }
7373 resultobj = SWIG_Py_Void();
7374 return resultobj;
7375 fail:
7376 return NULL;
7377 }
7378
7379
7380 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7381 PyObject *resultobj = 0;
7382 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7383 wxString *arg2 = 0 ;
7384 long arg3 ;
7385 void *argp1 = 0 ;
7386 int res1 = 0 ;
7387 bool temp2 = false ;
7388 long val3 ;
7389 int ecode3 = 0 ;
7390 PyObject * obj0 = 0 ;
7391 PyObject * obj1 = 0 ;
7392 PyObject * obj2 = 0 ;
7393 char * kwnames[] = {
7394 (char *) "self",(char *) "file",(char *) "type", NULL
7395 };
7396
7397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7399 if (!SWIG_IsOK(res1)) {
7400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7401 }
7402 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7403 {
7404 arg2 = wxString_in_helper(obj1);
7405 if (arg2 == NULL) SWIG_fail;
7406 temp2 = true;
7407 }
7408 ecode3 = SWIG_AsVal_long(obj2, &val3);
7409 if (!SWIG_IsOK(ecode3)) {
7410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7411 }
7412 arg3 = static_cast< long >(val3);
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7416 wxPyEndAllowThreads(__tstate);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 resultobj = SWIG_Py_Void();
7420 {
7421 if (temp2)
7422 delete arg2;
7423 }
7424 return resultobj;
7425 fail:
7426 {
7427 if (temp2)
7428 delete arg2;
7429 }
7430 return NULL;
7431 }
7432
7433
7434 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7435 PyObject *resultobj = 0;
7436 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7437 wxSize *arg2 = 0 ;
7438 wxIcon *result = 0 ;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441 wxSize temp2 ;
7442 PyObject * obj0 = 0 ;
7443 PyObject * obj1 = 0 ;
7444 char * kwnames[] = {
7445 (char *) "self",(char *) "size", NULL
7446 };
7447
7448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7450 if (!SWIG_IsOK(res1)) {
7451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7452 }
7453 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7454 {
7455 arg2 = &temp2;
7456 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7457 }
7458 {
7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
7460 {
7461 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7462 result = (wxIcon *) &_result_ref;
7463 }
7464 wxPyEndAllowThreads(__tstate);
7465 if (PyErr_Occurred()) SWIG_fail;
7466 }
7467 {
7468 wxIcon* resultptr = new wxIcon(*result);
7469 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7470 }
7471 return resultobj;
7472 fail:
7473 return NULL;
7474 }
7475
7476
7477 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7478 PyObject *obj;
7479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7480 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7481 return SWIG_Py_Void();
7482 }
7483
7484 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7485 return SWIG_Python_InitShadowInstance(args);
7486 }
7487
7488 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7489 PyObject *resultobj = 0;
7490 wxString *arg1 = 0 ;
7491 long arg2 ;
7492 int arg3 = (int) 0 ;
7493 int arg4 = (int) 0 ;
7494 wxCursor *result = 0 ;
7495 bool temp1 = false ;
7496 long val2 ;
7497 int ecode2 = 0 ;
7498 int val3 ;
7499 int ecode3 = 0 ;
7500 int val4 ;
7501 int ecode4 = 0 ;
7502 PyObject * obj0 = 0 ;
7503 PyObject * obj1 = 0 ;
7504 PyObject * obj2 = 0 ;
7505 PyObject * obj3 = 0 ;
7506 char * kwnames[] = {
7507 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7508 };
7509
7510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7511 {
7512 arg1 = wxString_in_helper(obj0);
7513 if (arg1 == NULL) SWIG_fail;
7514 temp1 = true;
7515 }
7516 ecode2 = SWIG_AsVal_long(obj1, &val2);
7517 if (!SWIG_IsOK(ecode2)) {
7518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7519 }
7520 arg2 = static_cast< long >(val2);
7521 if (obj2) {
7522 ecode3 = SWIG_AsVal_int(obj2, &val3);
7523 if (!SWIG_IsOK(ecode3)) {
7524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7525 }
7526 arg3 = static_cast< int >(val3);
7527 }
7528 if (obj3) {
7529 ecode4 = SWIG_AsVal_int(obj3, &val4);
7530 if (!SWIG_IsOK(ecode4)) {
7531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7532 }
7533 arg4 = static_cast< int >(val4);
7534 }
7535 {
7536 if (!wxPyCheckForApp()) SWIG_fail;
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7539 wxPyEndAllowThreads(__tstate);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7543 {
7544 if (temp1)
7545 delete arg1;
7546 }
7547 return resultobj;
7548 fail:
7549 {
7550 if (temp1)
7551 delete arg1;
7552 }
7553 return NULL;
7554 }
7555
7556
7557 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7558 PyObject *resultobj = 0;
7559 wxCursor *arg1 = (wxCursor *) 0 ;
7560 void *argp1 = 0 ;
7561 int res1 = 0 ;
7562 PyObject *swig_obj[1] ;
7563
7564 if (!args) SWIG_fail;
7565 swig_obj[0] = args;
7566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7567 if (!SWIG_IsOK(res1)) {
7568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7569 }
7570 arg1 = reinterpret_cast< wxCursor * >(argp1);
7571 {
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 delete arg1;
7574
7575 wxPyEndAllowThreads(__tstate);
7576 if (PyErr_Occurred()) SWIG_fail;
7577 }
7578 resultobj = SWIG_Py_Void();
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj = 0;
7587 int arg1 ;
7588 wxCursor *result = 0 ;
7589 int val1 ;
7590 int ecode1 = 0 ;
7591 PyObject * obj0 = 0 ;
7592 char * kwnames[] = {
7593 (char *) "id", NULL
7594 };
7595
7596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7597 ecode1 = SWIG_AsVal_int(obj0, &val1);
7598 if (!SWIG_IsOK(ecode1)) {
7599 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7600 }
7601 arg1 = static_cast< int >(val1);
7602 {
7603 if (!wxPyCheckForApp()) SWIG_fail;
7604 PyThreadState* __tstate = wxPyBeginAllowThreads();
7605 result = (wxCursor *)new wxCursor(arg1);
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7610 return resultobj;
7611 fail:
7612 return NULL;
7613 }
7614
7615
7616 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7617 PyObject *resultobj = 0;
7618 wxImage *arg1 = 0 ;
7619 wxCursor *result = 0 ;
7620 void *argp1 = 0 ;
7621 int res1 = 0 ;
7622 PyObject * obj0 = 0 ;
7623 char * kwnames[] = {
7624 (char *) "image", NULL
7625 };
7626
7627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7628 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7629 if (!SWIG_IsOK(res1)) {
7630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7631 }
7632 if (!argp1) {
7633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7634 }
7635 arg1 = reinterpret_cast< wxImage * >(argp1);
7636 {
7637 if (!wxPyCheckForApp()) SWIG_fail;
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7651 PyObject *resultobj = 0;
7652 wxCursor *arg1 = (wxCursor *) 0 ;
7653 bool result;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 PyObject *swig_obj[1] ;
7657
7658 if (!args) SWIG_fail;
7659 swig_obj[0] = args;
7660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7661 if (!SWIG_IsOK(res1)) {
7662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7663 }
7664 arg1 = reinterpret_cast< wxCursor * >(argp1);
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 result = (bool)(arg1)->Ok();
7668 wxPyEndAllowThreads(__tstate);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 {
7672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7673 }
7674 return resultobj;
7675 fail:
7676 return NULL;
7677 }
7678
7679
7680 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7681 PyObject *obj;
7682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7683 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7684 return SWIG_Py_Void();
7685 }
7686
7687 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7688 return SWIG_Python_InitShadowInstance(args);
7689 }
7690
7691 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj = 0;
7693 int arg1 = (int) 0 ;
7694 int arg2 = (int) 0 ;
7695 int arg3 = (int) 0 ;
7696 int arg4 = (int) 0 ;
7697 wxRegion *result = 0 ;
7698 int val1 ;
7699 int ecode1 = 0 ;
7700 int val2 ;
7701 int ecode2 = 0 ;
7702 int val3 ;
7703 int ecode3 = 0 ;
7704 int val4 ;
7705 int ecode4 = 0 ;
7706 PyObject * obj0 = 0 ;
7707 PyObject * obj1 = 0 ;
7708 PyObject * obj2 = 0 ;
7709 PyObject * obj3 = 0 ;
7710 char * kwnames[] = {
7711 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7712 };
7713
7714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7715 if (obj0) {
7716 ecode1 = SWIG_AsVal_int(obj0, &val1);
7717 if (!SWIG_IsOK(ecode1)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7719 }
7720 arg1 = static_cast< int >(val1);
7721 }
7722 if (obj1) {
7723 ecode2 = SWIG_AsVal_int(obj1, &val2);
7724 if (!SWIG_IsOK(ecode2)) {
7725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7726 }
7727 arg2 = static_cast< int >(val2);
7728 }
7729 if (obj2) {
7730 ecode3 = SWIG_AsVal_int(obj2, &val3);
7731 if (!SWIG_IsOK(ecode3)) {
7732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7733 }
7734 arg3 = static_cast< int >(val3);
7735 }
7736 if (obj3) {
7737 ecode4 = SWIG_AsVal_int(obj3, &val4);
7738 if (!SWIG_IsOK(ecode4)) {
7739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7740 }
7741 arg4 = static_cast< int >(val4);
7742 }
7743 {
7744 if (!wxPyCheckForApp()) SWIG_fail;
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7747 wxPyEndAllowThreads(__tstate);
7748 if (PyErr_Occurred()) SWIG_fail;
7749 }
7750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7751 return resultobj;
7752 fail:
7753 return NULL;
7754 }
7755
7756
7757 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj = 0;
7759 wxBitmap *arg1 = 0 ;
7760 wxRegion *result = 0 ;
7761 void *argp1 = 0 ;
7762 int res1 = 0 ;
7763 PyObject * obj0 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "bmp", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7772 }
7773 if (!argp1) {
7774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7775 }
7776 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7777 {
7778 if (!wxPyCheckForApp()) SWIG_fail;
7779 PyThreadState* __tstate = wxPyBeginAllowThreads();
7780 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7781 wxPyEndAllowThreads(__tstate);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7785 return resultobj;
7786 fail:
7787 return NULL;
7788 }
7789
7790
7791 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7792 PyObject *resultobj = 0;
7793 wxBitmap *arg1 = 0 ;
7794 wxColour *arg2 = 0 ;
7795 int arg3 = (int) 0 ;
7796 wxRegion *result = 0 ;
7797 void *argp1 = 0 ;
7798 int res1 = 0 ;
7799 wxColour temp2 ;
7800 int val3 ;
7801 int ecode3 = 0 ;
7802 PyObject * obj0 = 0 ;
7803 PyObject * obj1 = 0 ;
7804 PyObject * obj2 = 0 ;
7805 char * kwnames[] = {
7806 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7807 };
7808
7809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7810 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7811 if (!SWIG_IsOK(res1)) {
7812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7813 }
7814 if (!argp1) {
7815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7816 }
7817 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7818 {
7819 arg2 = &temp2;
7820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7821 }
7822 if (obj2) {
7823 ecode3 = SWIG_AsVal_int(obj2, &val3);
7824 if (!SWIG_IsOK(ecode3)) {
7825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7826 }
7827 arg3 = static_cast< int >(val3);
7828 }
7829 {
7830 if (!wxPyCheckForApp()) SWIG_fail;
7831 PyThreadState* __tstate = wxPyBeginAllowThreads();
7832 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj = 0;
7845 int arg1 ;
7846 wxPoint *arg2 = (wxPoint *) 0 ;
7847 int arg3 = (int) wxWINDING_RULE ;
7848 wxRegion *result = 0 ;
7849 int val3 ;
7850 int ecode3 = 0 ;
7851 PyObject * obj0 = 0 ;
7852 PyObject * obj1 = 0 ;
7853 char * kwnames[] = {
7854 (char *) "points",(char *) "fillStyle", NULL
7855 };
7856
7857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7858 {
7859 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7860 if (arg2 == NULL) SWIG_fail;
7861 }
7862 if (obj1) {
7863 ecode3 = SWIG_AsVal_int(obj1, &val3);
7864 if (!SWIG_IsOK(ecode3)) {
7865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7866 }
7867 arg3 = static_cast< int >(val3);
7868 }
7869 {
7870 if (!wxPyCheckForApp()) SWIG_fail;
7871 PyThreadState* __tstate = wxPyBeginAllowThreads();
7872 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7873 wxPyEndAllowThreads(__tstate);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7877 {
7878 if (arg2) delete [] arg2;
7879 }
7880 return resultobj;
7881 fail:
7882 {
7883 if (arg2) delete [] arg2;
7884 }
7885 return NULL;
7886 }
7887
7888
7889 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7890 PyObject *resultobj = 0;
7891 wxRegion *arg1 = (wxRegion *) 0 ;
7892 void *argp1 = 0 ;
7893 int res1 = 0 ;
7894 PyObject *swig_obj[1] ;
7895
7896 if (!args) SWIG_fail;
7897 swig_obj[0] = args;
7898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7899 if (!SWIG_IsOK(res1)) {
7900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7901 }
7902 arg1 = reinterpret_cast< wxRegion * >(argp1);
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 delete arg1;
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_Py_Void();
7911 return resultobj;
7912 fail:
7913 return NULL;
7914 }
7915
7916
7917 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7918 PyObject *resultobj = 0;
7919 wxRegion *arg1 = (wxRegion *) 0 ;
7920 void *argp1 = 0 ;
7921 int res1 = 0 ;
7922 PyObject *swig_obj[1] ;
7923
7924 if (!args) SWIG_fail;
7925 swig_obj[0] = args;
7926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7927 if (!SWIG_IsOK(res1)) {
7928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7929 }
7930 arg1 = reinterpret_cast< wxRegion * >(argp1);
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 (arg1)->Clear();
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 resultobj = SWIG_Py_Void();
7938 return resultobj;
7939 fail:
7940 return NULL;
7941 }
7942
7943
7944 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7945 PyObject *resultobj = 0;
7946 wxRegion *arg1 = (wxRegion *) 0 ;
7947 int arg2 ;
7948 int arg3 ;
7949 bool result;
7950 void *argp1 = 0 ;
7951 int res1 = 0 ;
7952 int val2 ;
7953 int ecode2 = 0 ;
7954 int val3 ;
7955 int ecode3 = 0 ;
7956 PyObject * obj0 = 0 ;
7957 PyObject * obj1 = 0 ;
7958 PyObject * obj2 = 0 ;
7959 char * kwnames[] = {
7960 (char *) "self",(char *) "x",(char *) "y", NULL
7961 };
7962
7963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7967 }
7968 arg1 = reinterpret_cast< wxRegion * >(argp1);
7969 ecode2 = SWIG_AsVal_int(obj1, &val2);
7970 if (!SWIG_IsOK(ecode2)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7972 }
7973 arg2 = static_cast< int >(val2);
7974 ecode3 = SWIG_AsVal_int(obj2, &val3);
7975 if (!SWIG_IsOK(ecode3)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7977 }
7978 arg3 = static_cast< int >(val3);
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (bool)(arg1)->Offset(arg2,arg3);
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 {
7986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7987 }
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxRegion *arg1 = (wxRegion *) 0 ;
7997 int arg2 ;
7998 int arg3 ;
7999 wxRegionContain result;
8000 void *argp1 = 0 ;
8001 int res1 = 0 ;
8002 int val2 ;
8003 int ecode2 = 0 ;
8004 int val3 ;
8005 int ecode3 = 0 ;
8006 PyObject * obj0 = 0 ;
8007 PyObject * obj1 = 0 ;
8008 PyObject * obj2 = 0 ;
8009 char * kwnames[] = {
8010 (char *) "self",(char *) "x",(char *) "y", NULL
8011 };
8012
8013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8015 if (!SWIG_IsOK(res1)) {
8016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8017 }
8018 arg1 = reinterpret_cast< wxRegion * >(argp1);
8019 ecode2 = SWIG_AsVal_int(obj1, &val2);
8020 if (!SWIG_IsOK(ecode2)) {
8021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8022 }
8023 arg2 = static_cast< int >(val2);
8024 ecode3 = SWIG_AsVal_int(obj2, &val3);
8025 if (!SWIG_IsOK(ecode3)) {
8026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8027 }
8028 arg3 = static_cast< int >(val3);
8029 {
8030 PyThreadState* __tstate = wxPyBeginAllowThreads();
8031 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 resultobj = SWIG_From_int(static_cast< int >(result));
8036 return resultobj;
8037 fail:
8038 return NULL;
8039 }
8040
8041
8042 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj = 0;
8044 wxRegion *arg1 = (wxRegion *) 0 ;
8045 wxPoint *arg2 = 0 ;
8046 wxRegionContain result;
8047 void *argp1 = 0 ;
8048 int res1 = 0 ;
8049 wxPoint temp2 ;
8050 PyObject * obj0 = 0 ;
8051 PyObject * obj1 = 0 ;
8052 char * kwnames[] = {
8053 (char *) "self",(char *) "pt", NULL
8054 };
8055
8056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8058 if (!SWIG_IsOK(res1)) {
8059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8060 }
8061 arg1 = reinterpret_cast< wxRegion * >(argp1);
8062 {
8063 arg2 = &temp2;
8064 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8065 }
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8069 wxPyEndAllowThreads(__tstate);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 }
8072 resultobj = SWIG_From_int(static_cast< int >(result));
8073 return resultobj;
8074 fail:
8075 return NULL;
8076 }
8077
8078
8079 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8080 PyObject *resultobj = 0;
8081 wxRegion *arg1 = (wxRegion *) 0 ;
8082 wxRect *arg2 = 0 ;
8083 wxRegionContain result;
8084 void *argp1 = 0 ;
8085 int res1 = 0 ;
8086 wxRect temp2 ;
8087 PyObject * obj0 = 0 ;
8088 PyObject * obj1 = 0 ;
8089 char * kwnames[] = {
8090 (char *) "self",(char *) "rect", NULL
8091 };
8092
8093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8095 if (!SWIG_IsOK(res1)) {
8096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8097 }
8098 arg1 = reinterpret_cast< wxRegion * >(argp1);
8099 {
8100 arg2 = &temp2;
8101 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8102 }
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8106 wxPyEndAllowThreads(__tstate);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 resultobj = SWIG_From_int(static_cast< int >(result));
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj = 0;
8118 wxRegion *arg1 = (wxRegion *) 0 ;
8119 int arg2 ;
8120 int arg3 ;
8121 int arg4 ;
8122 int arg5 ;
8123 wxRegionContain result;
8124 void *argp1 = 0 ;
8125 int res1 = 0 ;
8126 int val2 ;
8127 int ecode2 = 0 ;
8128 int val3 ;
8129 int ecode3 = 0 ;
8130 int val4 ;
8131 int ecode4 = 0 ;
8132 int val5 ;
8133 int ecode5 = 0 ;
8134 PyObject * obj0 = 0 ;
8135 PyObject * obj1 = 0 ;
8136 PyObject * obj2 = 0 ;
8137 PyObject * obj3 = 0 ;
8138 PyObject * obj4 = 0 ;
8139 char * kwnames[] = {
8140 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8141 };
8142
8143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8147 }
8148 arg1 = reinterpret_cast< wxRegion * >(argp1);
8149 ecode2 = SWIG_AsVal_int(obj1, &val2);
8150 if (!SWIG_IsOK(ecode2)) {
8151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8152 }
8153 arg2 = static_cast< int >(val2);
8154 ecode3 = SWIG_AsVal_int(obj2, &val3);
8155 if (!SWIG_IsOK(ecode3)) {
8156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8157 }
8158 arg3 = static_cast< int >(val3);
8159 ecode4 = SWIG_AsVal_int(obj3, &val4);
8160 if (!SWIG_IsOK(ecode4)) {
8161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8162 }
8163 arg4 = static_cast< int >(val4);
8164 ecode5 = SWIG_AsVal_int(obj4, &val5);
8165 if (!SWIG_IsOK(ecode5)) {
8166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8167 }
8168 arg5 = static_cast< int >(val5);
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_From_int(static_cast< int >(result));
8176 return resultobj;
8177 fail:
8178 return NULL;
8179 }
8180
8181
8182 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8183 PyObject *resultobj = 0;
8184 wxRegion *arg1 = (wxRegion *) 0 ;
8185 wxRect result;
8186 void *argp1 = 0 ;
8187 int res1 = 0 ;
8188 PyObject *swig_obj[1] ;
8189
8190 if (!args) SWIG_fail;
8191 swig_obj[0] = args;
8192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8193 if (!SWIG_IsOK(res1)) {
8194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8195 }
8196 arg1 = reinterpret_cast< wxRegion * >(argp1);
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 result = (arg1)->GetBox();
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj = 0;
8212 wxRegion *arg1 = (wxRegion *) 0 ;
8213 int arg2 ;
8214 int arg3 ;
8215 int arg4 ;
8216 int arg5 ;
8217 bool result;
8218 void *argp1 = 0 ;
8219 int res1 = 0 ;
8220 int val2 ;
8221 int ecode2 = 0 ;
8222 int val3 ;
8223 int ecode3 = 0 ;
8224 int val4 ;
8225 int ecode4 = 0 ;
8226 int val5 ;
8227 int ecode5 = 0 ;
8228 PyObject * obj0 = 0 ;
8229 PyObject * obj1 = 0 ;
8230 PyObject * obj2 = 0 ;
8231 PyObject * obj3 = 0 ;
8232 PyObject * obj4 = 0 ;
8233 char * kwnames[] = {
8234 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8235 };
8236
8237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8239 if (!SWIG_IsOK(res1)) {
8240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8241 }
8242 arg1 = reinterpret_cast< wxRegion * >(argp1);
8243 ecode2 = SWIG_AsVal_int(obj1, &val2);
8244 if (!SWIG_IsOK(ecode2)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8246 }
8247 arg2 = static_cast< int >(val2);
8248 ecode3 = SWIG_AsVal_int(obj2, &val3);
8249 if (!SWIG_IsOK(ecode3)) {
8250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8251 }
8252 arg3 = static_cast< int >(val3);
8253 ecode4 = SWIG_AsVal_int(obj3, &val4);
8254 if (!SWIG_IsOK(ecode4)) {
8255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8256 }
8257 arg4 = static_cast< int >(val4);
8258 ecode5 = SWIG_AsVal_int(obj4, &val5);
8259 if (!SWIG_IsOK(ecode5)) {
8260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8261 }
8262 arg5 = static_cast< int >(val5);
8263 {
8264 PyThreadState* __tstate = wxPyBeginAllowThreads();
8265 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 }
8269 {
8270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8271 }
8272 return resultobj;
8273 fail:
8274 return NULL;
8275 }
8276
8277
8278 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8279 PyObject *resultobj = 0;
8280 wxRegion *arg1 = (wxRegion *) 0 ;
8281 wxRect *arg2 = 0 ;
8282 bool result;
8283 void *argp1 = 0 ;
8284 int res1 = 0 ;
8285 wxRect temp2 ;
8286 PyObject * obj0 = 0 ;
8287 PyObject * obj1 = 0 ;
8288 char * kwnames[] = {
8289 (char *) "self",(char *) "rect", NULL
8290 };
8291
8292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8294 if (!SWIG_IsOK(res1)) {
8295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8296 }
8297 arg1 = reinterpret_cast< wxRegion * >(argp1);
8298 {
8299 arg2 = &temp2;
8300 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8301 }
8302 {
8303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8304 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8305 wxPyEndAllowThreads(__tstate);
8306 if (PyErr_Occurred()) SWIG_fail;
8307 }
8308 {
8309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8310 }
8311 return resultobj;
8312 fail:
8313 return NULL;
8314 }
8315
8316
8317 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8318 PyObject *resultobj = 0;
8319 wxRegion *arg1 = (wxRegion *) 0 ;
8320 wxRegion *arg2 = 0 ;
8321 bool result;
8322 void *argp1 = 0 ;
8323 int res1 = 0 ;
8324 void *argp2 = 0 ;
8325 int res2 = 0 ;
8326 PyObject * obj0 = 0 ;
8327 PyObject * obj1 = 0 ;
8328 char * kwnames[] = {
8329 (char *) "self",(char *) "region", NULL
8330 };
8331
8332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8334 if (!SWIG_IsOK(res1)) {
8335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8336 }
8337 arg1 = reinterpret_cast< wxRegion * >(argp1);
8338 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8339 if (!SWIG_IsOK(res2)) {
8340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8341 }
8342 if (!argp2) {
8343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8344 }
8345 arg2 = reinterpret_cast< wxRegion * >(argp2);
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 {
8353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8354 }
8355 return resultobj;
8356 fail:
8357 return NULL;
8358 }
8359
8360
8361 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8362 PyObject *resultobj = 0;
8363 wxRegion *arg1 = (wxRegion *) 0 ;
8364 bool result;
8365 void *argp1 = 0 ;
8366 int res1 = 0 ;
8367 PyObject *swig_obj[1] ;
8368
8369 if (!args) SWIG_fail;
8370 swig_obj[0] = args;
8371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8372 if (!SWIG_IsOK(res1)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8374 }
8375 arg1 = reinterpret_cast< wxRegion * >(argp1);
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 result = (bool)(arg1)->IsEmpty();
8379 wxPyEndAllowThreads(__tstate);
8380 if (PyErr_Occurred()) SWIG_fail;
8381 }
8382 {
8383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8384 }
8385 return resultobj;
8386 fail:
8387 return NULL;
8388 }
8389
8390
8391 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj = 0;
8393 wxRegion *arg1 = (wxRegion *) 0 ;
8394 int arg2 ;
8395 int arg3 ;
8396 int arg4 ;
8397 int arg5 ;
8398 bool result;
8399 void *argp1 = 0 ;
8400 int res1 = 0 ;
8401 int val2 ;
8402 int ecode2 = 0 ;
8403 int val3 ;
8404 int ecode3 = 0 ;
8405 int val4 ;
8406 int ecode4 = 0 ;
8407 int val5 ;
8408 int ecode5 = 0 ;
8409 PyObject * obj0 = 0 ;
8410 PyObject * obj1 = 0 ;
8411 PyObject * obj2 = 0 ;
8412 PyObject * obj3 = 0 ;
8413 PyObject * obj4 = 0 ;
8414 char * kwnames[] = {
8415 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8416 };
8417
8418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8420 if (!SWIG_IsOK(res1)) {
8421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8422 }
8423 arg1 = reinterpret_cast< wxRegion * >(argp1);
8424 ecode2 = SWIG_AsVal_int(obj1, &val2);
8425 if (!SWIG_IsOK(ecode2)) {
8426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8427 }
8428 arg2 = static_cast< int >(val2);
8429 ecode3 = SWIG_AsVal_int(obj2, &val3);
8430 if (!SWIG_IsOK(ecode3)) {
8431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8432 }
8433 arg3 = static_cast< int >(val3);
8434 ecode4 = SWIG_AsVal_int(obj3, &val4);
8435 if (!SWIG_IsOK(ecode4)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8437 }
8438 arg4 = static_cast< int >(val4);
8439 ecode5 = SWIG_AsVal_int(obj4, &val5);
8440 if (!SWIG_IsOK(ecode5)) {
8441 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8442 }
8443 arg5 = static_cast< int >(val5);
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8447 wxPyEndAllowThreads(__tstate);
8448 if (PyErr_Occurred()) SWIG_fail;
8449 }
8450 {
8451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8452 }
8453 return resultobj;
8454 fail:
8455 return NULL;
8456 }
8457
8458
8459 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj = 0;
8461 wxRegion *arg1 = (wxRegion *) 0 ;
8462 wxRect *arg2 = 0 ;
8463 bool result;
8464 void *argp1 = 0 ;
8465 int res1 = 0 ;
8466 wxRect temp2 ;
8467 PyObject * obj0 = 0 ;
8468 PyObject * obj1 = 0 ;
8469 char * kwnames[] = {
8470 (char *) "self",(char *) "rect", NULL
8471 };
8472
8473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8475 if (!SWIG_IsOK(res1)) {
8476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8477 }
8478 arg1 = reinterpret_cast< wxRegion * >(argp1);
8479 {
8480 arg2 = &temp2;
8481 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8482 }
8483 {
8484 PyThreadState* __tstate = wxPyBeginAllowThreads();
8485 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8486 wxPyEndAllowThreads(__tstate);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 {
8490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8491 }
8492 return resultobj;
8493 fail:
8494 return NULL;
8495 }
8496
8497
8498 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8499 PyObject *resultobj = 0;
8500 wxRegion *arg1 = (wxRegion *) 0 ;
8501 wxRegion *arg2 = 0 ;
8502 bool result;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507 PyObject * obj0 = 0 ;
8508 PyObject * obj1 = 0 ;
8509 char * kwnames[] = {
8510 (char *) "self",(char *) "region", NULL
8511 };
8512
8513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8515 if (!SWIG_IsOK(res1)) {
8516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8517 }
8518 arg1 = reinterpret_cast< wxRegion * >(argp1);
8519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8520 if (!SWIG_IsOK(res2)) {
8521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8522 }
8523 if (!argp2) {
8524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8525 }
8526 arg2 = reinterpret_cast< wxRegion * >(argp2);
8527 {
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 {
8534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj = 0;
8544 wxRegion *arg1 = (wxRegion *) 0 ;
8545 int arg2 ;
8546 int arg3 ;
8547 int arg4 ;
8548 int arg5 ;
8549 bool result;
8550 void *argp1 = 0 ;
8551 int res1 = 0 ;
8552 int val2 ;
8553 int ecode2 = 0 ;
8554 int val3 ;
8555 int ecode3 = 0 ;
8556 int val4 ;
8557 int ecode4 = 0 ;
8558 int val5 ;
8559 int ecode5 = 0 ;
8560 PyObject * obj0 = 0 ;
8561 PyObject * obj1 = 0 ;
8562 PyObject * obj2 = 0 ;
8563 PyObject * obj3 = 0 ;
8564 PyObject * obj4 = 0 ;
8565 char * kwnames[] = {
8566 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8567 };
8568
8569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8571 if (!SWIG_IsOK(res1)) {
8572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8573 }
8574 arg1 = reinterpret_cast< wxRegion * >(argp1);
8575 ecode2 = SWIG_AsVal_int(obj1, &val2);
8576 if (!SWIG_IsOK(ecode2)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8578 }
8579 arg2 = static_cast< int >(val2);
8580 ecode3 = SWIG_AsVal_int(obj2, &val3);
8581 if (!SWIG_IsOK(ecode3)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8583 }
8584 arg3 = static_cast< int >(val3);
8585 ecode4 = SWIG_AsVal_int(obj3, &val4);
8586 if (!SWIG_IsOK(ecode4)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8588 }
8589 arg4 = static_cast< int >(val4);
8590 ecode5 = SWIG_AsVal_int(obj4, &val5);
8591 if (!SWIG_IsOK(ecode5)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8593 }
8594 arg5 = static_cast< int >(val5);
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 {
8602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8603 }
8604 return resultobj;
8605 fail:
8606 return NULL;
8607 }
8608
8609
8610 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8611 PyObject *resultobj = 0;
8612 wxRegion *arg1 = (wxRegion *) 0 ;
8613 wxRect *arg2 = 0 ;
8614 bool result;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 wxRect temp2 ;
8618 PyObject * obj0 = 0 ;
8619 PyObject * obj1 = 0 ;
8620 char * kwnames[] = {
8621 (char *) "self",(char *) "rect", NULL
8622 };
8623
8624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8626 if (!SWIG_IsOK(res1)) {
8627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8628 }
8629 arg1 = reinterpret_cast< wxRegion * >(argp1);
8630 {
8631 arg2 = &temp2;
8632 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8633 }
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8637 wxPyEndAllowThreads(__tstate);
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 {
8641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8642 }
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj = 0;
8651 wxRegion *arg1 = (wxRegion *) 0 ;
8652 wxRegion *arg2 = 0 ;
8653 bool result;
8654 void *argp1 = 0 ;
8655 int res1 = 0 ;
8656 void *argp2 = 0 ;
8657 int res2 = 0 ;
8658 PyObject * obj0 = 0 ;
8659 PyObject * obj1 = 0 ;
8660 char * kwnames[] = {
8661 (char *) "self",(char *) "region", NULL
8662 };
8663
8664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8666 if (!SWIG_IsOK(res1)) {
8667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8668 }
8669 arg1 = reinterpret_cast< wxRegion * >(argp1);
8670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8671 if (!SWIG_IsOK(res2)) {
8672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8673 }
8674 if (!argp2) {
8675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8676 }
8677 arg2 = reinterpret_cast< wxRegion * >(argp2);
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 {
8685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8686 }
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj = 0;
8695 wxRegion *arg1 = (wxRegion *) 0 ;
8696 int arg2 ;
8697 int arg3 ;
8698 int arg4 ;
8699 int arg5 ;
8700 bool result;
8701 void *argp1 = 0 ;
8702 int res1 = 0 ;
8703 int val2 ;
8704 int ecode2 = 0 ;
8705 int val3 ;
8706 int ecode3 = 0 ;
8707 int val4 ;
8708 int ecode4 = 0 ;
8709 int val5 ;
8710 int ecode5 = 0 ;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 PyObject * obj2 = 0 ;
8714 PyObject * obj3 = 0 ;
8715 PyObject * obj4 = 0 ;
8716 char * kwnames[] = {
8717 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8718 };
8719
8720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8722 if (!SWIG_IsOK(res1)) {
8723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8724 }
8725 arg1 = reinterpret_cast< wxRegion * >(argp1);
8726 ecode2 = SWIG_AsVal_int(obj1, &val2);
8727 if (!SWIG_IsOK(ecode2)) {
8728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8729 }
8730 arg2 = static_cast< int >(val2);
8731 ecode3 = SWIG_AsVal_int(obj2, &val3);
8732 if (!SWIG_IsOK(ecode3)) {
8733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8734 }
8735 arg3 = static_cast< int >(val3);
8736 ecode4 = SWIG_AsVal_int(obj3, &val4);
8737 if (!SWIG_IsOK(ecode4)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8739 }
8740 arg4 = static_cast< int >(val4);
8741 ecode5 = SWIG_AsVal_int(obj4, &val5);
8742 if (!SWIG_IsOK(ecode5)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8744 }
8745 arg5 = static_cast< int >(val5);
8746 {
8747 PyThreadState* __tstate = wxPyBeginAllowThreads();
8748 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8749 wxPyEndAllowThreads(__tstate);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 {
8753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8754 }
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj = 0;
8763 wxRegion *arg1 = (wxRegion *) 0 ;
8764 wxRect *arg2 = 0 ;
8765 bool result;
8766 void *argp1 = 0 ;
8767 int res1 = 0 ;
8768 wxRect temp2 ;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 char * kwnames[] = {
8772 (char *) "self",(char *) "rect", NULL
8773 };
8774
8775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8777 if (!SWIG_IsOK(res1)) {
8778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8779 }
8780 arg1 = reinterpret_cast< wxRegion * >(argp1);
8781 {
8782 arg2 = &temp2;
8783 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8784 }
8785 {
8786 PyThreadState* __tstate = wxPyBeginAllowThreads();
8787 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 {
8792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8793 }
8794 return resultobj;
8795 fail:
8796 return NULL;
8797 }
8798
8799
8800 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj = 0;
8802 wxRegion *arg1 = (wxRegion *) 0 ;
8803 wxRegion *arg2 = 0 ;
8804 bool result;
8805 void *argp1 = 0 ;
8806 int res1 = 0 ;
8807 void *argp2 = 0 ;
8808 int res2 = 0 ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 char * kwnames[] = {
8812 (char *) "self",(char *) "region", NULL
8813 };
8814
8815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8819 }
8820 arg1 = reinterpret_cast< wxRegion * >(argp1);
8821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8822 if (!SWIG_IsOK(res2)) {
8823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8824 }
8825 if (!argp2) {
8826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8827 }
8828 arg2 = reinterpret_cast< wxRegion * >(argp2);
8829 {
8830 PyThreadState* __tstate = wxPyBeginAllowThreads();
8831 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8832 wxPyEndAllowThreads(__tstate);
8833 if (PyErr_Occurred()) SWIG_fail;
8834 }
8835 {
8836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8837 }
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8845 PyObject *resultobj = 0;
8846 wxRegion *arg1 = (wxRegion *) 0 ;
8847 SwigValueWrapper<wxBitmap > result;
8848 void *argp1 = 0 ;
8849 int res1 = 0 ;
8850 PyObject *swig_obj[1] ;
8851
8852 if (!args) SWIG_fail;
8853 swig_obj[0] = args;
8854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8855 if (!SWIG_IsOK(res1)) {
8856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8857 }
8858 arg1 = reinterpret_cast< wxRegion * >(argp1);
8859 {
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 result = (arg1)->ConvertToBitmap();
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8866 return resultobj;
8867 fail:
8868 return NULL;
8869 }
8870
8871
8872 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj = 0;
8874 wxRegion *arg1 = (wxRegion *) 0 ;
8875 wxBitmap *arg2 = 0 ;
8876 bool result;
8877 void *argp1 = 0 ;
8878 int res1 = 0 ;
8879 void *argp2 = 0 ;
8880 int res2 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 PyObject * obj1 = 0 ;
8883 char * kwnames[] = {
8884 (char *) "self",(char *) "bmp", NULL
8885 };
8886
8887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8889 if (!SWIG_IsOK(res1)) {
8890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8891 }
8892 arg1 = reinterpret_cast< wxRegion * >(argp1);
8893 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8894 if (!SWIG_IsOK(res2)) {
8895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8896 }
8897 if (!argp2) {
8898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8899 }
8900 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 {
8908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8909 }
8910 return resultobj;
8911 fail:
8912 return NULL;
8913 }
8914
8915
8916 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj = 0;
8918 wxRegion *arg1 = (wxRegion *) 0 ;
8919 wxBitmap *arg2 = 0 ;
8920 wxColour *arg3 = 0 ;
8921 int arg4 = (int) 0 ;
8922 bool result;
8923 void *argp1 = 0 ;
8924 int res1 = 0 ;
8925 void *argp2 = 0 ;
8926 int res2 = 0 ;
8927 wxColour temp3 ;
8928 int val4 ;
8929 int ecode4 = 0 ;
8930 PyObject * obj0 = 0 ;
8931 PyObject * obj1 = 0 ;
8932 PyObject * obj2 = 0 ;
8933 PyObject * obj3 = 0 ;
8934 char * kwnames[] = {
8935 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8936 };
8937
8938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8940 if (!SWIG_IsOK(res1)) {
8941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8942 }
8943 arg1 = reinterpret_cast< wxRegion * >(argp1);
8944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8945 if (!SWIG_IsOK(res2)) {
8946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8947 }
8948 if (!argp2) {
8949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8950 }
8951 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8952 {
8953 arg3 = &temp3;
8954 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8955 }
8956 if (obj3) {
8957 ecode4 = SWIG_AsVal_int(obj3, &val4);
8958 if (!SWIG_IsOK(ecode4)) {
8959 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8960 }
8961 arg4 = static_cast< int >(val4);
8962 }
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
8965 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 {
8970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8971 }
8972 return resultobj;
8973 fail:
8974 return NULL;
8975 }
8976
8977
8978 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *obj;
8980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8981 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8982 return SWIG_Py_Void();
8983 }
8984
8985 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8986 return SWIG_Python_InitShadowInstance(args);
8987 }
8988
8989 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8990 PyObject *resultobj = 0;
8991 wxRegion *arg1 = 0 ;
8992 wxRegionIterator *result = 0 ;
8993 void *argp1 = 0 ;
8994 int res1 = 0 ;
8995 PyObject * obj0 = 0 ;
8996 char * kwnames[] = {
8997 (char *) "region", NULL
8998 };
8999
9000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9001 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9002 if (!SWIG_IsOK(res1)) {
9003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9004 }
9005 if (!argp1) {
9006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9007 }
9008 arg1 = reinterpret_cast< wxRegion * >(argp1);
9009 {
9010 if (!wxPyCheckForApp()) SWIG_fail;
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9017 return resultobj;
9018 fail:
9019 return NULL;
9020 }
9021
9022
9023 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9024 PyObject *resultobj = 0;
9025 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9026 void *argp1 = 0 ;
9027 int res1 = 0 ;
9028 PyObject *swig_obj[1] ;
9029
9030 if (!args) SWIG_fail;
9031 swig_obj[0] = args;
9032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9033 if (!SWIG_IsOK(res1)) {
9034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9035 }
9036 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 delete arg1;
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_Py_Void();
9045 return resultobj;
9046 fail:
9047 return NULL;
9048 }
9049
9050
9051 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9052 PyObject *resultobj = 0;
9053 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9054 int result;
9055 void *argp1 = 0 ;
9056 int res1 = 0 ;
9057 PyObject *swig_obj[1] ;
9058
9059 if (!args) SWIG_fail;
9060 swig_obj[0] = args;
9061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9062 if (!SWIG_IsOK(res1)) {
9063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9064 }
9065 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 result = (int)(arg1)->GetX();
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 resultobj = SWIG_From_int(static_cast< int >(result));
9073 return resultobj;
9074 fail:
9075 return NULL;
9076 }
9077
9078
9079 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9080 PyObject *resultobj = 0;
9081 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9082 int result;
9083 void *argp1 = 0 ;
9084 int res1 = 0 ;
9085 PyObject *swig_obj[1] ;
9086
9087 if (!args) SWIG_fail;
9088 swig_obj[0] = args;
9089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9090 if (!SWIG_IsOK(res1)) {
9091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9092 }
9093 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 result = (int)(arg1)->GetY();
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = SWIG_From_int(static_cast< int >(result));
9101 return resultobj;
9102 fail:
9103 return NULL;
9104 }
9105
9106
9107 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9108 PyObject *resultobj = 0;
9109 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9110 int result;
9111 void *argp1 = 0 ;
9112 int res1 = 0 ;
9113 PyObject *swig_obj[1] ;
9114
9115 if (!args) SWIG_fail;
9116 swig_obj[0] = args;
9117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9118 if (!SWIG_IsOK(res1)) {
9119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9120 }
9121 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9122 {
9123 PyThreadState* __tstate = wxPyBeginAllowThreads();
9124 result = (int)(arg1)->GetW();
9125 wxPyEndAllowThreads(__tstate);
9126 if (PyErr_Occurred()) SWIG_fail;
9127 }
9128 resultobj = SWIG_From_int(static_cast< int >(result));
9129 return resultobj;
9130 fail:
9131 return NULL;
9132 }
9133
9134
9135 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9136 PyObject *resultobj = 0;
9137 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9138 int result;
9139 void *argp1 = 0 ;
9140 int res1 = 0 ;
9141 PyObject *swig_obj[1] ;
9142
9143 if (!args) SWIG_fail;
9144 swig_obj[0] = args;
9145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9146 if (!SWIG_IsOK(res1)) {
9147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9148 }
9149 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 result = (int)(arg1)->GetWidth();
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = SWIG_From_int(static_cast< int >(result));
9157 return resultobj;
9158 fail:
9159 return NULL;
9160 }
9161
9162
9163 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9164 PyObject *resultobj = 0;
9165 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9166 int result;
9167 void *argp1 = 0 ;
9168 int res1 = 0 ;
9169 PyObject *swig_obj[1] ;
9170
9171 if (!args) SWIG_fail;
9172 swig_obj[0] = args;
9173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9176 }
9177 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 result = (int)(arg1)->GetH();
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
9184 resultobj = SWIG_From_int(static_cast< int >(result));
9185 return resultobj;
9186 fail:
9187 return NULL;
9188 }
9189
9190
9191 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9192 PyObject *resultobj = 0;
9193 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9194 int result;
9195 void *argp1 = 0 ;
9196 int res1 = 0 ;
9197 PyObject *swig_obj[1] ;
9198
9199 if (!args) SWIG_fail;
9200 swig_obj[0] = args;
9201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9202 if (!SWIG_IsOK(res1)) {
9203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9204 }
9205 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (int)(arg1)->GetHeight();
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 resultobj = SWIG_From_int(static_cast< int >(result));
9213 return resultobj;
9214 fail:
9215 return NULL;
9216 }
9217
9218
9219 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9220 PyObject *resultobj = 0;
9221 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9222 wxRect result;
9223 void *argp1 = 0 ;
9224 int res1 = 0 ;
9225 PyObject *swig_obj[1] ;
9226
9227 if (!args) SWIG_fail;
9228 swig_obj[0] = args;
9229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9230 if (!SWIG_IsOK(res1)) {
9231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9232 }
9233 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9234 {
9235 PyThreadState* __tstate = wxPyBeginAllowThreads();
9236 result = (arg1)->GetRect();
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9248 PyObject *resultobj = 0;
9249 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9250 bool result;
9251 void *argp1 = 0 ;
9252 int res1 = 0 ;
9253 PyObject *swig_obj[1] ;
9254
9255 if (!args) SWIG_fail;
9256 swig_obj[0] = args;
9257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9258 if (!SWIG_IsOK(res1)) {
9259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9260 }
9261 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9262 {
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (bool)(arg1)->HaveRects();
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 {
9269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9270 }
9271 return resultobj;
9272 fail:
9273 return NULL;
9274 }
9275
9276
9277 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9278 PyObject *resultobj = 0;
9279 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9280 void *argp1 = 0 ;
9281 int res1 = 0 ;
9282 PyObject *swig_obj[1] ;
9283
9284 if (!args) SWIG_fail;
9285 swig_obj[0] = args;
9286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9287 if (!SWIG_IsOK(res1)) {
9288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9289 }
9290 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 (arg1)->Reset();
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 resultobj = SWIG_Py_Void();
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9305 PyObject *resultobj = 0;
9306 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9307 void *argp1 = 0 ;
9308 int res1 = 0 ;
9309 PyObject *swig_obj[1] ;
9310
9311 if (!args) SWIG_fail;
9312 swig_obj[0] = args;
9313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9314 if (!SWIG_IsOK(res1)) {
9315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9316 }
9317 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 wxRegionIterator_Next(arg1);
9321 wxPyEndAllowThreads(__tstate);
9322 if (PyErr_Occurred()) SWIG_fail;
9323 }
9324 resultobj = SWIG_Py_Void();
9325 return resultobj;
9326 fail:
9327 return NULL;
9328 }
9329
9330
9331 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9332 PyObject *resultobj = 0;
9333 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9334 bool result;
9335 void *argp1 = 0 ;
9336 int res1 = 0 ;
9337 PyObject *swig_obj[1] ;
9338
9339 if (!args) SWIG_fail;
9340 swig_obj[0] = args;
9341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9342 if (!SWIG_IsOK(res1)) {
9343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9344 }
9345 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (bool)wxRegionIterator___nonzero__(arg1);
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 {
9353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9354 }
9355 return resultobj;
9356 fail:
9357 return NULL;
9358 }
9359
9360
9361 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9362 PyObject *obj;
9363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9364 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9365 return SWIG_Py_Void();
9366 }
9367
9368 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9369 return SWIG_Python_InitShadowInstance(args);
9370 }
9371
9372 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9373 PyObject *resultobj = 0;
9374 wxNativeFontInfo *result = 0 ;
9375
9376 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9380 wxPyEndAllowThreads(__tstate);
9381 if (PyErr_Occurred()) SWIG_fail;
9382 }
9383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9384 return resultobj;
9385 fail:
9386 return NULL;
9387 }
9388
9389
9390 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9391 PyObject *resultobj = 0;
9392 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9393 void *argp1 = 0 ;
9394 int res1 = 0 ;
9395 PyObject *swig_obj[1] ;
9396
9397 if (!args) SWIG_fail;
9398 swig_obj[0] = args;
9399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9400 if (!SWIG_IsOK(res1)) {
9401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9402 }
9403 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 delete arg1;
9407
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = SWIG_Py_Void();
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9419 PyObject *resultobj = 0;
9420 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9421 void *argp1 = 0 ;
9422 int res1 = 0 ;
9423 PyObject *swig_obj[1] ;
9424
9425 if (!args) SWIG_fail;
9426 swig_obj[0] = args;
9427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9428 if (!SWIG_IsOK(res1)) {
9429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9430 }
9431 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 (arg1)->Init();
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 resultobj = SWIG_Py_Void();
9439 return resultobj;
9440 fail:
9441 return NULL;
9442 }
9443
9444
9445 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj = 0;
9447 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9448 wxFont *arg2 = 0 ;
9449 void *argp1 = 0 ;
9450 int res1 = 0 ;
9451 void *argp2 = 0 ;
9452 int res2 = 0 ;
9453 PyObject * obj0 = 0 ;
9454 PyObject * obj1 = 0 ;
9455 char * kwnames[] = {
9456 (char *) "self",(char *) "font", NULL
9457 };
9458
9459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9461 if (!SWIG_IsOK(res1)) {
9462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9463 }
9464 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9466 if (!SWIG_IsOK(res2)) {
9467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9468 }
9469 if (!argp2) {
9470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9471 }
9472 arg2 = reinterpret_cast< wxFont * >(argp2);
9473 {
9474 PyThreadState* __tstate = wxPyBeginAllowThreads();
9475 (arg1)->InitFromFont((wxFont const &)*arg2);
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) SWIG_fail;
9478 }
9479 resultobj = SWIG_Py_Void();
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9487 PyObject *resultobj = 0;
9488 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9489 int result;
9490 void *argp1 = 0 ;
9491 int res1 = 0 ;
9492 PyObject *swig_obj[1] ;
9493
9494 if (!args) SWIG_fail;
9495 swig_obj[0] = args;
9496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9497 if (!SWIG_IsOK(res1)) {
9498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9499 }
9500 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_From_int(static_cast< int >(result));
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9515 PyObject *resultobj = 0;
9516 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9517 wxFontStyle result;
9518 void *argp1 = 0 ;
9519 int res1 = 0 ;
9520 PyObject *swig_obj[1] ;
9521
9522 if (!args) SWIG_fail;
9523 swig_obj[0] = args;
9524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9525 if (!SWIG_IsOK(res1)) {
9526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9527 }
9528 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9529 {
9530 PyThreadState* __tstate = wxPyBeginAllowThreads();
9531 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = SWIG_From_int(static_cast< int >(result));
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9543 PyObject *resultobj = 0;
9544 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9545 wxFontWeight result;
9546 void *argp1 = 0 ;
9547 int res1 = 0 ;
9548 PyObject *swig_obj[1] ;
9549
9550 if (!args) SWIG_fail;
9551 swig_obj[0] = args;
9552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9555 }
9556 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9560 wxPyEndAllowThreads(__tstate);
9561 if (PyErr_Occurred()) SWIG_fail;
9562 }
9563 resultobj = SWIG_From_int(static_cast< int >(result));
9564 return resultobj;
9565 fail:
9566 return NULL;
9567 }
9568
9569
9570 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9571 PyObject *resultobj = 0;
9572 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9573 bool result;
9574 void *argp1 = 0 ;
9575 int res1 = 0 ;
9576 PyObject *swig_obj[1] ;
9577
9578 if (!args) SWIG_fail;
9579 swig_obj[0] = args;
9580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9581 if (!SWIG_IsOK(res1)) {
9582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9583 }
9584 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9588 wxPyEndAllowThreads(__tstate);
9589 if (PyErr_Occurred()) SWIG_fail;
9590 }
9591 {
9592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9593 }
9594 return resultobj;
9595 fail:
9596 return NULL;
9597 }
9598
9599
9600 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9601 PyObject *resultobj = 0;
9602 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9603 wxString result;
9604 void *argp1 = 0 ;
9605 int res1 = 0 ;
9606 PyObject *swig_obj[1] ;
9607
9608 if (!args) SWIG_fail;
9609 swig_obj[0] = args;
9610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9611 if (!SWIG_IsOK(res1)) {
9612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9613 }
9614 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) SWIG_fail;
9620 }
9621 {
9622 #if wxUSE_UNICODE
9623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9624 #else
9625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9626 #endif
9627 }
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9635 PyObject *resultobj = 0;
9636 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9637 wxFontFamily result;
9638 void *argp1 = 0 ;
9639 int res1 = 0 ;
9640 PyObject *swig_obj[1] ;
9641
9642 if (!args) SWIG_fail;
9643 swig_obj[0] = args;
9644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9645 if (!SWIG_IsOK(res1)) {
9646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9647 }
9648 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_From_int(static_cast< int >(result));
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9663 PyObject *resultobj = 0;
9664 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9665 wxFontEncoding result;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 PyObject *swig_obj[1] ;
9669
9670 if (!args) SWIG_fail;
9671 swig_obj[0] = args;
9672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9675 }
9676 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9680 wxPyEndAllowThreads(__tstate);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 resultobj = SWIG_From_int(static_cast< int >(result));
9684 return resultobj;
9685 fail:
9686 return NULL;
9687 }
9688
9689
9690 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9691 PyObject *resultobj = 0;
9692 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9693 int arg2 ;
9694 void *argp1 = 0 ;
9695 int res1 = 0 ;
9696 int val2 ;
9697 int ecode2 = 0 ;
9698 PyObject * obj0 = 0 ;
9699 PyObject * obj1 = 0 ;
9700 char * kwnames[] = {
9701 (char *) "self",(char *) "pointsize", NULL
9702 };
9703
9704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9706 if (!SWIG_IsOK(res1)) {
9707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9708 }
9709 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9710 ecode2 = SWIG_AsVal_int(obj1, &val2);
9711 if (!SWIG_IsOK(ecode2)) {
9712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9713 }
9714 arg2 = static_cast< int >(val2);
9715 {
9716 PyThreadState* __tstate = wxPyBeginAllowThreads();
9717 (arg1)->SetPointSize(arg2);
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 resultobj = SWIG_Py_Void();
9722 return resultobj;
9723 fail:
9724 return NULL;
9725 }
9726
9727
9728 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9729 PyObject *resultobj = 0;
9730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9731 wxFontStyle arg2 ;
9732 void *argp1 = 0 ;
9733 int res1 = 0 ;
9734 int val2 ;
9735 int ecode2 = 0 ;
9736 PyObject * obj0 = 0 ;
9737 PyObject * obj1 = 0 ;
9738 char * kwnames[] = {
9739 (char *) "self",(char *) "style", NULL
9740 };
9741
9742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9744 if (!SWIG_IsOK(res1)) {
9745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9746 }
9747 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9748 ecode2 = SWIG_AsVal_int(obj1, &val2);
9749 if (!SWIG_IsOK(ecode2)) {
9750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9751 }
9752 arg2 = static_cast< wxFontStyle >(val2);
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 (arg1)->SetStyle(arg2);
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = SWIG_Py_Void();
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj = 0;
9768 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9769 wxFontWeight arg2 ;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 int val2 ;
9773 int ecode2 = 0 ;
9774 PyObject * obj0 = 0 ;
9775 PyObject * obj1 = 0 ;
9776 char * kwnames[] = {
9777 (char *) "self",(char *) "weight", NULL
9778 };
9779
9780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9782 if (!SWIG_IsOK(res1)) {
9783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9784 }
9785 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9786 ecode2 = SWIG_AsVal_int(obj1, &val2);
9787 if (!SWIG_IsOK(ecode2)) {
9788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9789 }
9790 arg2 = static_cast< wxFontWeight >(val2);
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 (arg1)->SetWeight(arg2);
9794 wxPyEndAllowThreads(__tstate);
9795 if (PyErr_Occurred()) SWIG_fail;
9796 }
9797 resultobj = SWIG_Py_Void();
9798 return resultobj;
9799 fail:
9800 return NULL;
9801 }
9802
9803
9804 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9805 PyObject *resultobj = 0;
9806 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9807 bool arg2 ;
9808 void *argp1 = 0 ;
9809 int res1 = 0 ;
9810 bool val2 ;
9811 int ecode2 = 0 ;
9812 PyObject * obj0 = 0 ;
9813 PyObject * obj1 = 0 ;
9814 char * kwnames[] = {
9815 (char *) "self",(char *) "underlined", NULL
9816 };
9817
9818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9820 if (!SWIG_IsOK(res1)) {
9821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9822 }
9823 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9824 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9825 if (!SWIG_IsOK(ecode2)) {
9826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9827 }
9828 arg2 = static_cast< bool >(val2);
9829 {
9830 PyThreadState* __tstate = wxPyBeginAllowThreads();
9831 (arg1)->SetUnderlined(arg2);
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 resultobj = SWIG_Py_Void();
9836 return resultobj;
9837 fail:
9838 return NULL;
9839 }
9840
9841
9842 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj = 0;
9844 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9845 wxString arg2 ;
9846 void *argp1 = 0 ;
9847 int res1 = 0 ;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 char * kwnames[] = {
9851 (char *) "self",(char *) "facename", NULL
9852 };
9853
9854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9856 if (!SWIG_IsOK(res1)) {
9857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9858 }
9859 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9860 {
9861 wxString* sptr = wxString_in_helper(obj1);
9862 if (sptr == NULL) SWIG_fail;
9863 arg2 = *sptr;
9864 delete sptr;
9865 }
9866 {
9867 PyThreadState* __tstate = wxPyBeginAllowThreads();
9868 (arg1)->SetFaceName(arg2);
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_Py_Void();
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj = 0;
9881 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9882 wxFontFamily arg2 ;
9883 void *argp1 = 0 ;
9884 int res1 = 0 ;
9885 int val2 ;
9886 int ecode2 = 0 ;
9887 PyObject * obj0 = 0 ;
9888 PyObject * obj1 = 0 ;
9889 char * kwnames[] = {
9890 (char *) "self",(char *) "family", NULL
9891 };
9892
9893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9895 if (!SWIG_IsOK(res1)) {
9896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9897 }
9898 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9899 ecode2 = SWIG_AsVal_int(obj1, &val2);
9900 if (!SWIG_IsOK(ecode2)) {
9901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9902 }
9903 arg2 = static_cast< wxFontFamily >(val2);
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 (arg1)->SetFamily(arg2);
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_Py_Void();
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj = 0;
9919 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9920 wxFontEncoding arg2 ;
9921 void *argp1 = 0 ;
9922 int res1 = 0 ;
9923 int val2 ;
9924 int ecode2 = 0 ;
9925 PyObject * obj0 = 0 ;
9926 PyObject * obj1 = 0 ;
9927 char * kwnames[] = {
9928 (char *) "self",(char *) "encoding", NULL
9929 };
9930
9931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9933 if (!SWIG_IsOK(res1)) {
9934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9935 }
9936 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9937 ecode2 = SWIG_AsVal_int(obj1, &val2);
9938 if (!SWIG_IsOK(ecode2)) {
9939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9940 }
9941 arg2 = static_cast< wxFontEncoding >(val2);
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 (arg1)->SetEncoding(arg2);
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_Py_Void();
9949 return resultobj;
9950 fail:
9951 return NULL;
9952 }
9953
9954
9955 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9956 PyObject *resultobj = 0;
9957 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9958 wxString *arg2 = 0 ;
9959 bool result;
9960 void *argp1 = 0 ;
9961 int res1 = 0 ;
9962 bool temp2 = false ;
9963 PyObject * obj0 = 0 ;
9964 PyObject * obj1 = 0 ;
9965 char * kwnames[] = {
9966 (char *) "self",(char *) "s", NULL
9967 };
9968
9969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9971 if (!SWIG_IsOK(res1)) {
9972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9973 }
9974 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9975 {
9976 arg2 = wxString_in_helper(obj1);
9977 if (arg2 == NULL) SWIG_fail;
9978 temp2 = true;
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9988 }
9989 {
9990 if (temp2)
9991 delete arg2;
9992 }
9993 return resultobj;
9994 fail:
9995 {
9996 if (temp2)
9997 delete arg2;
9998 }
9999 return NULL;
10000 }
10001
10002
10003 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10004 PyObject *resultobj = 0;
10005 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10006 wxString result;
10007 void *argp1 = 0 ;
10008 int res1 = 0 ;
10009 PyObject *swig_obj[1] ;
10010
10011 if (!args) SWIG_fail;
10012 swig_obj[0] = args;
10013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10014 if (!SWIG_IsOK(res1)) {
10015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10016 }
10017 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 result = ((wxNativeFontInfo const *)arg1)->ToString();
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 }
10024 {
10025 #if wxUSE_UNICODE
10026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10027 #else
10028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10029 #endif
10030 }
10031 return resultobj;
10032 fail:
10033 return NULL;
10034 }
10035
10036
10037 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10038 PyObject *resultobj = 0;
10039 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10040 wxString result;
10041 void *argp1 = 0 ;
10042 int res1 = 0 ;
10043 PyObject *swig_obj[1] ;
10044
10045 if (!args) SWIG_fail;
10046 swig_obj[0] = args;
10047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10048 if (!SWIG_IsOK(res1)) {
10049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10050 }
10051 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 result = wxNativeFontInfo___str__(arg1);
10055 wxPyEndAllowThreads(__tstate);
10056 if (PyErr_Occurred()) SWIG_fail;
10057 }
10058 {
10059 #if wxUSE_UNICODE
10060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10061 #else
10062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10063 #endif
10064 }
10065 return resultobj;
10066 fail:
10067 return NULL;
10068 }
10069
10070
10071 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10072 PyObject *resultobj = 0;
10073 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10074 wxString *arg2 = 0 ;
10075 bool result;
10076 void *argp1 = 0 ;
10077 int res1 = 0 ;
10078 bool temp2 = false ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 char * kwnames[] = {
10082 (char *) "self",(char *) "s", NULL
10083 };
10084
10085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10087 if (!SWIG_IsOK(res1)) {
10088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10089 }
10090 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10091 {
10092 arg2 = wxString_in_helper(obj1);
10093 if (arg2 == NULL) SWIG_fail;
10094 temp2 = true;
10095 }
10096 {
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 {
10103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10104 }
10105 {
10106 if (temp2)
10107 delete arg2;
10108 }
10109 return resultobj;
10110 fail:
10111 {
10112 if (temp2)
10113 delete arg2;
10114 }
10115 return NULL;
10116 }
10117
10118
10119 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10120 PyObject *resultobj = 0;
10121 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10122 wxString result;
10123 void *argp1 = 0 ;
10124 int res1 = 0 ;
10125 PyObject *swig_obj[1] ;
10126
10127 if (!args) SWIG_fail;
10128 swig_obj[0] = args;
10129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10130 if (!SWIG_IsOK(res1)) {
10131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10132 }
10133 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10134 {
10135 PyThreadState* __tstate = wxPyBeginAllowThreads();
10136 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10137 wxPyEndAllowThreads(__tstate);
10138 if (PyErr_Occurred()) SWIG_fail;
10139 }
10140 {
10141 #if wxUSE_UNICODE
10142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10143 #else
10144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10145 #endif
10146 }
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10154 PyObject *obj;
10155 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10156 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10157 return SWIG_Py_Void();
10158 }
10159
10160 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 return SWIG_Python_InitShadowInstance(args);
10162 }
10163
10164 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10165 PyObject *resultobj = 0;
10166 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10167 wxString *arg2 = (wxString *) 0 ;
10168 void *argp1 = 0 ;
10169 int res1 = 0 ;
10170 bool temp2 = false ;
10171 PyObject *swig_obj[2] ;
10172
10173 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10175 if (!SWIG_IsOK(res1)) {
10176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10177 }
10178 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10179 {
10180 arg2 = wxString_in_helper(swig_obj[1]);
10181 if (arg2 == NULL) SWIG_fail;
10182 temp2 = true;
10183 }
10184 if (arg1) (arg1)->facename = *arg2;
10185
10186 resultobj = SWIG_Py_Void();
10187 {
10188 if (temp2)
10189 delete arg2;
10190 }
10191 return resultobj;
10192 fail:
10193 {
10194 if (temp2)
10195 delete arg2;
10196 }
10197 return NULL;
10198 }
10199
10200
10201 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10202 PyObject *resultobj = 0;
10203 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10204 wxString *result = 0 ;
10205 void *argp1 = 0 ;
10206 int res1 = 0 ;
10207 PyObject *swig_obj[1] ;
10208
10209 if (!args) SWIG_fail;
10210 swig_obj[0] = args;
10211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10212 if (!SWIG_IsOK(res1)) {
10213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10214 }
10215 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10216 result = (wxString *)& ((arg1)->facename);
10217 {
10218 #if wxUSE_UNICODE
10219 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10220 #else
10221 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10222 #endif
10223 }
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10231 PyObject *resultobj = 0;
10232 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10233 wxFontEncoding arg2 ;
10234 void *argp1 = 0 ;
10235 int res1 = 0 ;
10236 int val2 ;
10237 int ecode2 = 0 ;
10238 PyObject *swig_obj[2] ;
10239
10240 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10242 if (!SWIG_IsOK(res1)) {
10243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10244 }
10245 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10246 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10247 if (!SWIG_IsOK(ecode2)) {
10248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10249 }
10250 arg2 = static_cast< wxFontEncoding >(val2);
10251 if (arg1) (arg1)->encoding = arg2;
10252
10253 resultobj = SWIG_Py_Void();
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10261 PyObject *resultobj = 0;
10262 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10263 wxFontEncoding result;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 PyObject *swig_obj[1] ;
10267
10268 if (!args) SWIG_fail;
10269 swig_obj[0] = args;
10270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10271 if (!SWIG_IsOK(res1)) {
10272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10273 }
10274 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10275 result = (wxFontEncoding) ((arg1)->encoding);
10276 resultobj = SWIG_From_int(static_cast< int >(result));
10277 return resultobj;
10278 fail:
10279 return NULL;
10280 }
10281
10282
10283 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10284 PyObject *resultobj = 0;
10285 wxNativeEncodingInfo *result = 0 ;
10286
10287 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10291 wxPyEndAllowThreads(__tstate);
10292 if (PyErr_Occurred()) SWIG_fail;
10293 }
10294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10295 return resultobj;
10296 fail:
10297 return NULL;
10298 }
10299
10300
10301 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10302 PyObject *resultobj = 0;
10303 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10304 void *argp1 = 0 ;
10305 int res1 = 0 ;
10306 PyObject *swig_obj[1] ;
10307
10308 if (!args) SWIG_fail;
10309 swig_obj[0] = args;
10310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10311 if (!SWIG_IsOK(res1)) {
10312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10313 }
10314 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10315 {
10316 PyThreadState* __tstate = wxPyBeginAllowThreads();
10317 delete arg1;
10318
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 resultobj = SWIG_Py_Void();
10323 return resultobj;
10324 fail:
10325 return NULL;
10326 }
10327
10328
10329 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = 0;
10331 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10332 wxString *arg2 = 0 ;
10333 bool result;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
10336 bool temp2 = false ;
10337 PyObject * obj0 = 0 ;
10338 PyObject * obj1 = 0 ;
10339 char * kwnames[] = {
10340 (char *) "self",(char *) "s", NULL
10341 };
10342
10343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10345 if (!SWIG_IsOK(res1)) {
10346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10347 }
10348 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10349 {
10350 arg2 = wxString_in_helper(obj1);
10351 if (arg2 == NULL) SWIG_fail;
10352 temp2 = true;
10353 }
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 }
10360 {
10361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10362 }
10363 {
10364 if (temp2)
10365 delete arg2;
10366 }
10367 return resultobj;
10368 fail:
10369 {
10370 if (temp2)
10371 delete arg2;
10372 }
10373 return NULL;
10374 }
10375
10376
10377 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10378 PyObject *resultobj = 0;
10379 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10380 wxString result;
10381 void *argp1 = 0 ;
10382 int res1 = 0 ;
10383 PyObject *swig_obj[1] ;
10384
10385 if (!args) SWIG_fail;
10386 swig_obj[0] = args;
10387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10388 if (!SWIG_IsOK(res1)) {
10389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10390 }
10391 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10392 {
10393 PyThreadState* __tstate = wxPyBeginAllowThreads();
10394 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10395 wxPyEndAllowThreads(__tstate);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 }
10398 {
10399 #if wxUSE_UNICODE
10400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10401 #else
10402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10403 #endif
10404 }
10405 return resultobj;
10406 fail:
10407 return NULL;
10408 }
10409
10410
10411 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10412 PyObject *obj;
10413 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10414 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10415 return SWIG_Py_Void();
10416 }
10417
10418 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10419 return SWIG_Python_InitShadowInstance(args);
10420 }
10421
10422 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10423 PyObject *resultobj = 0;
10424 wxFontEncoding arg1 ;
10425 wxNativeEncodingInfo *result = 0 ;
10426 int val1 ;
10427 int ecode1 = 0 ;
10428 PyObject * obj0 = 0 ;
10429 char * kwnames[] = {
10430 (char *) "encoding", NULL
10431 };
10432
10433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10434 ecode1 = SWIG_AsVal_int(obj0, &val1);
10435 if (!SWIG_IsOK(ecode1)) {
10436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10437 }
10438 arg1 = static_cast< wxFontEncoding >(val1);
10439 {
10440 PyThreadState* __tstate = wxPyBeginAllowThreads();
10441 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10442 wxPyEndAllowThreads(__tstate);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10446 return resultobj;
10447 fail:
10448 return NULL;
10449 }
10450
10451
10452 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10453 PyObject *resultobj = 0;
10454 wxNativeEncodingInfo *arg1 = 0 ;
10455 bool result;
10456 void *argp1 = 0 ;
10457 int res1 = 0 ;
10458 PyObject * obj0 = 0 ;
10459 char * kwnames[] = {
10460 (char *) "info", NULL
10461 };
10462
10463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10464 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10465 if (!SWIG_IsOK(res1)) {
10466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10467 }
10468 if (!argp1) {
10469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10470 }
10471 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 {
10479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10480 }
10481 return resultobj;
10482 fail:
10483 return NULL;
10484 }
10485
10486
10487 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10488 PyObject *resultobj = 0;
10489 wxFontMapper *result = 0 ;
10490
10491 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10492 {
10493 PyThreadState* __tstate = wxPyBeginAllowThreads();
10494 result = (wxFontMapper *)new wxFontMapper();
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10506 PyObject *resultobj = 0;
10507 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10508 void *argp1 = 0 ;
10509 int res1 = 0 ;
10510 PyObject *swig_obj[1] ;
10511
10512 if (!args) SWIG_fail;
10513 swig_obj[0] = args;
10514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10515 if (!SWIG_IsOK(res1)) {
10516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10517 }
10518 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 delete arg1;
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 resultobj = SWIG_Py_Void();
10527 return resultobj;
10528 fail:
10529 return NULL;
10530 }
10531
10532
10533 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10534 PyObject *resultobj = 0;
10535 wxFontMapper *result = 0 ;
10536
10537 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (wxFontMapper *)wxFontMapper::Get();
10541 wxPyEndAllowThreads(__tstate);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10545 return resultobj;
10546 fail:
10547 return NULL;
10548 }
10549
10550
10551 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10552 PyObject *resultobj = 0;
10553 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10554 wxFontMapper *result = 0 ;
10555 void *argp1 = 0 ;
10556 int res1 = 0 ;
10557 PyObject * obj0 = 0 ;
10558 char * kwnames[] = {
10559 (char *) "mapper", NULL
10560 };
10561
10562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10564 if (!SWIG_IsOK(res1)) {
10565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10566 }
10567 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) SWIG_fail;
10573 }
10574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10575 return resultobj;
10576 fail:
10577 return NULL;
10578 }
10579
10580
10581 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10582 PyObject *resultobj = 0;
10583 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10584 wxString *arg2 = 0 ;
10585 bool arg3 = (bool) true ;
10586 wxFontEncoding result;
10587 void *argp1 = 0 ;
10588 int res1 = 0 ;
10589 bool temp2 = false ;
10590 bool val3 ;
10591 int ecode3 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 PyObject * obj2 = 0 ;
10595 char * kwnames[] = {
10596 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10597 };
10598
10599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10601 if (!SWIG_IsOK(res1)) {
10602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10603 }
10604 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10605 {
10606 arg2 = wxString_in_helper(obj1);
10607 if (arg2 == NULL) SWIG_fail;
10608 temp2 = true;
10609 }
10610 if (obj2) {
10611 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10612 if (!SWIG_IsOK(ecode3)) {
10613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10614 }
10615 arg3 = static_cast< bool >(val3);
10616 }
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 resultobj = SWIG_From_int(static_cast< int >(result));
10624 {
10625 if (temp2)
10626 delete arg2;
10627 }
10628 return resultobj;
10629 fail:
10630 {
10631 if (temp2)
10632 delete arg2;
10633 }
10634 return NULL;
10635 }
10636
10637
10638 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10639 PyObject *resultobj = 0;
10640 size_t result;
10641
10642 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10650 return resultobj;
10651 fail:
10652 return NULL;
10653 }
10654
10655
10656 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10657 PyObject *resultobj = 0;
10658 size_t arg1 ;
10659 wxFontEncoding result;
10660 size_t val1 ;
10661 int ecode1 = 0 ;
10662 PyObject * obj0 = 0 ;
10663 char * kwnames[] = {
10664 (char *) "n", NULL
10665 };
10666
10667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10668 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10669 if (!SWIG_IsOK(ecode1)) {
10670 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10671 }
10672 arg1 = static_cast< size_t >(val1);
10673 {
10674 PyThreadState* __tstate = wxPyBeginAllowThreads();
10675 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 resultobj = SWIG_From_int(static_cast< int >(result));
10680 return resultobj;
10681 fail:
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10687 PyObject *resultobj = 0;
10688 wxFontEncoding arg1 ;
10689 wxString result;
10690 int val1 ;
10691 int ecode1 = 0 ;
10692 PyObject * obj0 = 0 ;
10693 char * kwnames[] = {
10694 (char *) "encoding", NULL
10695 };
10696
10697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10698 ecode1 = SWIG_AsVal_int(obj0, &val1);
10699 if (!SWIG_IsOK(ecode1)) {
10700 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10701 }
10702 arg1 = static_cast< wxFontEncoding >(val1);
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 result = wxFontMapper::GetEncodingName(arg1);
10706 wxPyEndAllowThreads(__tstate);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 }
10709 {
10710 #if wxUSE_UNICODE
10711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10712 #else
10713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10714 #endif
10715 }
10716 return resultobj;
10717 fail:
10718 return NULL;
10719 }
10720
10721
10722 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj = 0;
10724 wxFontEncoding arg1 ;
10725 wxString result;
10726 int val1 ;
10727 int ecode1 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "encoding", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10734 ecode1 = SWIG_AsVal_int(obj0, &val1);
10735 if (!SWIG_IsOK(ecode1)) {
10736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10737 }
10738 arg1 = static_cast< wxFontEncoding >(val1);
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 result = wxFontMapper::GetEncodingDescription(arg1);
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 {
10746 #if wxUSE_UNICODE
10747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10748 #else
10749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10750 #endif
10751 }
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj = 0;
10760 wxString *arg1 = 0 ;
10761 wxFontEncoding result;
10762 bool temp1 = false ;
10763 PyObject * obj0 = 0 ;
10764 char * kwnames[] = {
10765 (char *) "name", NULL
10766 };
10767
10768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10769 {
10770 arg1 = wxString_in_helper(obj0);
10771 if (arg1 == NULL) SWIG_fail;
10772 temp1 = true;
10773 }
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 resultobj = SWIG_From_int(static_cast< int >(result));
10781 {
10782 if (temp1)
10783 delete arg1;
10784 }
10785 return resultobj;
10786 fail:
10787 {
10788 if (temp1)
10789 delete arg1;
10790 }
10791 return NULL;
10792 }
10793
10794
10795 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10796 PyObject *resultobj = 0;
10797 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10798 wxString *arg2 = 0 ;
10799 void *argp1 = 0 ;
10800 int res1 = 0 ;
10801 bool temp2 = false ;
10802 PyObject * obj0 = 0 ;
10803 PyObject * obj1 = 0 ;
10804 char * kwnames[] = {
10805 (char *) "self",(char *) "prefix", NULL
10806 };
10807
10808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10810 if (!SWIG_IsOK(res1)) {
10811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10812 }
10813 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10814 {
10815 arg2 = wxString_in_helper(obj1);
10816 if (arg2 == NULL) SWIG_fail;
10817 temp2 = true;
10818 }
10819 {
10820 PyThreadState* __tstate = wxPyBeginAllowThreads();
10821 (arg1)->SetConfigPath((wxString const &)*arg2);
10822 wxPyEndAllowThreads(__tstate);
10823 if (PyErr_Occurred()) SWIG_fail;
10824 }
10825 resultobj = SWIG_Py_Void();
10826 {
10827 if (temp2)
10828 delete arg2;
10829 }
10830 return resultobj;
10831 fail:
10832 {
10833 if (temp2)
10834 delete arg2;
10835 }
10836 return NULL;
10837 }
10838
10839
10840 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10841 PyObject *resultobj = 0;
10842 wxString result;
10843
10844 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10845 {
10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
10847 result = wxFontMapper::GetDefaultConfigPath();
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 {
10852 #if wxUSE_UNICODE
10853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10854 #else
10855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10856 #endif
10857 }
10858 return resultobj;
10859 fail:
10860 return NULL;
10861 }
10862
10863
10864 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10865 PyObject *resultobj = 0;
10866 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10867 wxFontEncoding arg2 ;
10868 wxString const &arg3_defvalue = wxPyEmptyString ;
10869 wxString *arg3 = (wxString *) &arg3_defvalue ;
10870 bool arg4 = (bool) true ;
10871 PyObject *result = 0 ;
10872 void *argp1 = 0 ;
10873 int res1 = 0 ;
10874 int val2 ;
10875 int ecode2 = 0 ;
10876 bool temp3 = false ;
10877 bool val4 ;
10878 int ecode4 = 0 ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 PyObject * obj2 = 0 ;
10882 PyObject * obj3 = 0 ;
10883 char * kwnames[] = {
10884 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10885 };
10886
10887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10889 if (!SWIG_IsOK(res1)) {
10890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10891 }
10892 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10893 ecode2 = SWIG_AsVal_int(obj1, &val2);
10894 if (!SWIG_IsOK(ecode2)) {
10895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10896 }
10897 arg2 = static_cast< wxFontEncoding >(val2);
10898 if (obj2) {
10899 {
10900 arg3 = wxString_in_helper(obj2);
10901 if (arg3 == NULL) SWIG_fail;
10902 temp3 = true;
10903 }
10904 }
10905 if (obj3) {
10906 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10907 if (!SWIG_IsOK(ecode4)) {
10908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10909 }
10910 arg4 = static_cast< bool >(val4);
10911 }
10912 {
10913 PyThreadState* __tstate = wxPyBeginAllowThreads();
10914 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 }
10918 resultobj = result;
10919 {
10920 if (temp3)
10921 delete arg3;
10922 }
10923 return resultobj;
10924 fail:
10925 {
10926 if (temp3)
10927 delete arg3;
10928 }
10929 return NULL;
10930 }
10931
10932
10933 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10934 PyObject *resultobj = 0;
10935 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10936 wxFontEncoding arg2 ;
10937 wxString const &arg3_defvalue = wxPyEmptyString ;
10938 wxString *arg3 = (wxString *) &arg3_defvalue ;
10939 bool result;
10940 void *argp1 = 0 ;
10941 int res1 = 0 ;
10942 int val2 ;
10943 int ecode2 = 0 ;
10944 bool temp3 = false ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 PyObject * obj2 = 0 ;
10948 char * kwnames[] = {
10949 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10950 };
10951
10952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10956 }
10957 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10958 ecode2 = SWIG_AsVal_int(obj1, &val2);
10959 if (!SWIG_IsOK(ecode2)) {
10960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10961 }
10962 arg2 = static_cast< wxFontEncoding >(val2);
10963 if (obj2) {
10964 {
10965 arg3 = wxString_in_helper(obj2);
10966 if (arg3 == NULL) SWIG_fail;
10967 temp3 = true;
10968 }
10969 }
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 {
10977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10978 }
10979 {
10980 if (temp3)
10981 delete arg3;
10982 }
10983 return resultobj;
10984 fail:
10985 {
10986 if (temp3)
10987 delete arg3;
10988 }
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj = 0;
10995 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10996 wxWindow *arg2 = (wxWindow *) 0 ;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 void *argp2 = 0 ;
11000 int res2 = 0 ;
11001 PyObject * obj0 = 0 ;
11002 PyObject * obj1 = 0 ;
11003 char * kwnames[] = {
11004 (char *) "self",(char *) "parent", NULL
11005 };
11006
11007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11009 if (!SWIG_IsOK(res1)) {
11010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11011 }
11012 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11013 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11014 if (!SWIG_IsOK(res2)) {
11015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11016 }
11017 arg2 = reinterpret_cast< wxWindow * >(argp2);
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 (arg1)->SetDialogParent(arg2);
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 resultobj = SWIG_Py_Void();
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj = 0;
11033 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11034 wxString *arg2 = 0 ;
11035 void *argp1 = 0 ;
11036 int res1 = 0 ;
11037 bool temp2 = false ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 char * kwnames[] = {
11041 (char *) "self",(char *) "title", NULL
11042 };
11043
11044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11046 if (!SWIG_IsOK(res1)) {
11047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11048 }
11049 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11050 {
11051 arg2 = wxString_in_helper(obj1);
11052 if (arg2 == NULL) SWIG_fail;
11053 temp2 = true;
11054 }
11055 {
11056 PyThreadState* __tstate = wxPyBeginAllowThreads();
11057 (arg1)->SetDialogTitle((wxString const &)*arg2);
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 resultobj = SWIG_Py_Void();
11062 {
11063 if (temp2)
11064 delete arg2;
11065 }
11066 return resultobj;
11067 fail:
11068 {
11069 if (temp2)
11070 delete arg2;
11071 }
11072 return NULL;
11073 }
11074
11075
11076 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *obj;
11078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11079 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11080 return SWIG_Py_Void();
11081 }
11082
11083 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 return SWIG_Python_InitShadowInstance(args);
11085 }
11086
11087 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj = 0;
11089 int arg1 ;
11090 int arg2 ;
11091 int arg3 ;
11092 int arg4 ;
11093 bool arg5 = (bool) false ;
11094 wxString const &arg6_defvalue = wxPyEmptyString ;
11095 wxString *arg6 = (wxString *) &arg6_defvalue ;
11096 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11097 wxFont *result = 0 ;
11098 int val1 ;
11099 int ecode1 = 0 ;
11100 int val2 ;
11101 int ecode2 = 0 ;
11102 int val3 ;
11103 int ecode3 = 0 ;
11104 int val4 ;
11105 int ecode4 = 0 ;
11106 bool val5 ;
11107 int ecode5 = 0 ;
11108 bool temp6 = false ;
11109 int val7 ;
11110 int ecode7 = 0 ;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 PyObject * obj2 = 0 ;
11114 PyObject * obj3 = 0 ;
11115 PyObject * obj4 = 0 ;
11116 PyObject * obj5 = 0 ;
11117 PyObject * obj6 = 0 ;
11118 char * kwnames[] = {
11119 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11120 };
11121
11122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11123 ecode1 = SWIG_AsVal_int(obj0, &val1);
11124 if (!SWIG_IsOK(ecode1)) {
11125 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11126 }
11127 arg1 = static_cast< int >(val1);
11128 ecode2 = SWIG_AsVal_int(obj1, &val2);
11129 if (!SWIG_IsOK(ecode2)) {
11130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11131 }
11132 arg2 = static_cast< int >(val2);
11133 ecode3 = SWIG_AsVal_int(obj2, &val3);
11134 if (!SWIG_IsOK(ecode3)) {
11135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11136 }
11137 arg3 = static_cast< int >(val3);
11138 ecode4 = SWIG_AsVal_int(obj3, &val4);
11139 if (!SWIG_IsOK(ecode4)) {
11140 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11141 }
11142 arg4 = static_cast< int >(val4);
11143 if (obj4) {
11144 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11145 if (!SWIG_IsOK(ecode5)) {
11146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11147 }
11148 arg5 = static_cast< bool >(val5);
11149 }
11150 if (obj5) {
11151 {
11152 arg6 = wxString_in_helper(obj5);
11153 if (arg6 == NULL) SWIG_fail;
11154 temp6 = true;
11155 }
11156 }
11157 if (obj6) {
11158 ecode7 = SWIG_AsVal_int(obj6, &val7);
11159 if (!SWIG_IsOK(ecode7)) {
11160 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11161 }
11162 arg7 = static_cast< wxFontEncoding >(val7);
11163 }
11164 {
11165 if (!wxPyCheckForApp()) SWIG_fail;
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11168 wxPyEndAllowThreads(__tstate);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11172 {
11173 if (temp6)
11174 delete arg6;
11175 }
11176 return resultobj;
11177 fail:
11178 {
11179 if (temp6)
11180 delete arg6;
11181 }
11182 return NULL;
11183 }
11184
11185
11186 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11187 PyObject *resultobj = 0;
11188 wxFont *arg1 = (wxFont *) 0 ;
11189 void *argp1 = 0 ;
11190 int res1 = 0 ;
11191 PyObject *swig_obj[1] ;
11192
11193 if (!args) SWIG_fail;
11194 swig_obj[0] = args;
11195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11196 if (!SWIG_IsOK(res1)) {
11197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11198 }
11199 arg1 = reinterpret_cast< wxFont * >(argp1);
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 delete arg1;
11203
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 resultobj = SWIG_Py_Void();
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj = 0;
11216 wxNativeFontInfo *arg1 = 0 ;
11217 wxFont *result = 0 ;
11218 void *argp1 = 0 ;
11219 int res1 = 0 ;
11220 PyObject * obj0 = 0 ;
11221 char * kwnames[] = {
11222 (char *) "info", NULL
11223 };
11224
11225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11226 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11227 if (!SWIG_IsOK(res1)) {
11228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11229 }
11230 if (!argp1) {
11231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11232 }
11233 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11234 {
11235 if (!wxPyCheckForApp()) SWIG_fail;
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11242 return resultobj;
11243 fail:
11244 return NULL;
11245 }
11246
11247
11248 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11249 PyObject *resultobj = 0;
11250 wxString *arg1 = 0 ;
11251 wxFont *result = 0 ;
11252 bool temp1 = false ;
11253 PyObject * obj0 = 0 ;
11254 char * kwnames[] = {
11255 (char *) "info", NULL
11256 };
11257
11258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11259 {
11260 arg1 = wxString_in_helper(obj0);
11261 if (arg1 == NULL) SWIG_fail;
11262 temp1 = true;
11263 }
11264 {
11265 if (!wxPyCheckForApp()) SWIG_fail;
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11272 {
11273 if (temp1)
11274 delete arg1;
11275 }
11276 return resultobj;
11277 fail:
11278 {
11279 if (temp1)
11280 delete arg1;
11281 }
11282 return NULL;
11283 }
11284
11285
11286 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11287 PyObject *resultobj = 0;
11288 int arg1 ;
11289 wxFontFamily arg2 ;
11290 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11291 wxString const &arg4_defvalue = wxPyEmptyString ;
11292 wxString *arg4 = (wxString *) &arg4_defvalue ;
11293 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11294 wxFont *result = 0 ;
11295 int val1 ;
11296 int ecode1 = 0 ;
11297 int val2 ;
11298 int ecode2 = 0 ;
11299 int val3 ;
11300 int ecode3 = 0 ;
11301 bool temp4 = false ;
11302 int val5 ;
11303 int ecode5 = 0 ;
11304 PyObject * obj0 = 0 ;
11305 PyObject * obj1 = 0 ;
11306 PyObject * obj2 = 0 ;
11307 PyObject * obj3 = 0 ;
11308 PyObject * obj4 = 0 ;
11309 char * kwnames[] = {
11310 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11311 };
11312
11313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11314 ecode1 = SWIG_AsVal_int(obj0, &val1);
11315 if (!SWIG_IsOK(ecode1)) {
11316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11317 }
11318 arg1 = static_cast< int >(val1);
11319 ecode2 = SWIG_AsVal_int(obj1, &val2);
11320 if (!SWIG_IsOK(ecode2)) {
11321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11322 }
11323 arg2 = static_cast< wxFontFamily >(val2);
11324 if (obj2) {
11325 ecode3 = SWIG_AsVal_int(obj2, &val3);
11326 if (!SWIG_IsOK(ecode3)) {
11327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11328 }
11329 arg3 = static_cast< int >(val3);
11330 }
11331 if (obj3) {
11332 {
11333 arg4 = wxString_in_helper(obj3);
11334 if (arg4 == NULL) SWIG_fail;
11335 temp4 = true;
11336 }
11337 }
11338 if (obj4) {
11339 ecode5 = SWIG_AsVal_int(obj4, &val5);
11340 if (!SWIG_IsOK(ecode5)) {
11341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11342 }
11343 arg5 = static_cast< wxFontEncoding >(val5);
11344 }
11345 {
11346 if (!wxPyCheckForApp()) SWIG_fail;
11347 PyThreadState* __tstate = wxPyBeginAllowThreads();
11348 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11349 wxPyEndAllowThreads(__tstate);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 }
11352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11353 {
11354 if (temp4)
11355 delete arg4;
11356 }
11357 return resultobj;
11358 fail:
11359 {
11360 if (temp4)
11361 delete arg4;
11362 }
11363 return NULL;
11364 }
11365
11366
11367 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11368 PyObject *resultobj = 0;
11369 wxSize *arg1 = 0 ;
11370 int arg2 ;
11371 int arg3 ;
11372 int arg4 ;
11373 bool arg5 = (bool) false ;
11374 wxString const &arg6_defvalue = wxEmptyString ;
11375 wxString *arg6 = (wxString *) &arg6_defvalue ;
11376 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11377 wxFont *result = 0 ;
11378 wxSize temp1 ;
11379 int val2 ;
11380 int ecode2 = 0 ;
11381 int val3 ;
11382 int ecode3 = 0 ;
11383 int val4 ;
11384 int ecode4 = 0 ;
11385 bool val5 ;
11386 int ecode5 = 0 ;
11387 bool temp6 = false ;
11388 int val7 ;
11389 int ecode7 = 0 ;
11390 PyObject * obj0 = 0 ;
11391 PyObject * obj1 = 0 ;
11392 PyObject * obj2 = 0 ;
11393 PyObject * obj3 = 0 ;
11394 PyObject * obj4 = 0 ;
11395 PyObject * obj5 = 0 ;
11396 PyObject * obj6 = 0 ;
11397 char * kwnames[] = {
11398 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11399 };
11400
11401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11402 {
11403 arg1 = &temp1;
11404 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11405 }
11406 ecode2 = SWIG_AsVal_int(obj1, &val2);
11407 if (!SWIG_IsOK(ecode2)) {
11408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11409 }
11410 arg2 = static_cast< int >(val2);
11411 ecode3 = SWIG_AsVal_int(obj2, &val3);
11412 if (!SWIG_IsOK(ecode3)) {
11413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11414 }
11415 arg3 = static_cast< int >(val3);
11416 ecode4 = SWIG_AsVal_int(obj3, &val4);
11417 if (!SWIG_IsOK(ecode4)) {
11418 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11419 }
11420 arg4 = static_cast< int >(val4);
11421 if (obj4) {
11422 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11423 if (!SWIG_IsOK(ecode5)) {
11424 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11425 }
11426 arg5 = static_cast< bool >(val5);
11427 }
11428 if (obj5) {
11429 {
11430 arg6 = wxString_in_helper(obj5);
11431 if (arg6 == NULL) SWIG_fail;
11432 temp6 = true;
11433 }
11434 }
11435 if (obj6) {
11436 ecode7 = SWIG_AsVal_int(obj6, &val7);
11437 if (!SWIG_IsOK(ecode7)) {
11438 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11439 }
11440 arg7 = static_cast< wxFontEncoding >(val7);
11441 }
11442 {
11443 if (!wxPyCheckForApp()) SWIG_fail;
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11450 {
11451 if (temp6)
11452 delete arg6;
11453 }
11454 return resultobj;
11455 fail:
11456 {
11457 if (temp6)
11458 delete arg6;
11459 }
11460 return NULL;
11461 }
11462
11463
11464 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11465 PyObject *resultobj = 0;
11466 wxSize *arg1 = 0 ;
11467 wxFontFamily arg2 ;
11468 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11469 wxString const &arg4_defvalue = wxEmptyString ;
11470 wxString *arg4 = (wxString *) &arg4_defvalue ;
11471 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11472 wxFont *result = 0 ;
11473 wxSize temp1 ;
11474 int val2 ;
11475 int ecode2 = 0 ;
11476 int val3 ;
11477 int ecode3 = 0 ;
11478 bool temp4 = false ;
11479 int val5 ;
11480 int ecode5 = 0 ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 PyObject * obj2 = 0 ;
11484 PyObject * obj3 = 0 ;
11485 PyObject * obj4 = 0 ;
11486 char * kwnames[] = {
11487 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11488 };
11489
11490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11491 {
11492 arg1 = &temp1;
11493 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11494 }
11495 ecode2 = SWIG_AsVal_int(obj1, &val2);
11496 if (!SWIG_IsOK(ecode2)) {
11497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11498 }
11499 arg2 = static_cast< wxFontFamily >(val2);
11500 if (obj2) {
11501 ecode3 = SWIG_AsVal_int(obj2, &val3);
11502 if (!SWIG_IsOK(ecode3)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11504 }
11505 arg3 = static_cast< int >(val3);
11506 }
11507 if (obj3) {
11508 {
11509 arg4 = wxString_in_helper(obj3);
11510 if (arg4 == NULL) SWIG_fail;
11511 temp4 = true;
11512 }
11513 }
11514 if (obj4) {
11515 ecode5 = SWIG_AsVal_int(obj4, &val5);
11516 if (!SWIG_IsOK(ecode5)) {
11517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11518 }
11519 arg5 = static_cast< wxFontEncoding >(val5);
11520 }
11521 {
11522 if (!wxPyCheckForApp()) SWIG_fail;
11523 PyThreadState* __tstate = wxPyBeginAllowThreads();
11524 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11525 wxPyEndAllowThreads(__tstate);
11526 if (PyErr_Occurred()) SWIG_fail;
11527 }
11528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11529 {
11530 if (temp4)
11531 delete arg4;
11532 }
11533 return resultobj;
11534 fail:
11535 {
11536 if (temp4)
11537 delete arg4;
11538 }
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11544 PyObject *resultobj = 0;
11545 wxFont *arg1 = (wxFont *) 0 ;
11546 bool result;
11547 void *argp1 = 0 ;
11548 int res1 = 0 ;
11549 PyObject *swig_obj[1] ;
11550
11551 if (!args) SWIG_fail;
11552 swig_obj[0] = args;
11553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11554 if (!SWIG_IsOK(res1)) {
11555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11556 }
11557 arg1 = reinterpret_cast< wxFont * >(argp1);
11558 {
11559 PyThreadState* __tstate = wxPyBeginAllowThreads();
11560 result = (bool)((wxFont const *)arg1)->Ok();
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 }
11564 {
11565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11566 }
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj = 0;
11575 wxFont *arg1 = (wxFont *) 0 ;
11576 wxFont *arg2 = (wxFont *) 0 ;
11577 bool result;
11578 void *argp1 = 0 ;
11579 int res1 = 0 ;
11580 void *argp2 = 0 ;
11581 int res2 = 0 ;
11582 PyObject * obj0 = 0 ;
11583 PyObject * obj1 = 0 ;
11584 char * kwnames[] = {
11585 (char *) "self",(char *) "other", NULL
11586 };
11587
11588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11590 if (!SWIG_IsOK(res1)) {
11591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11592 }
11593 arg1 = reinterpret_cast< wxFont * >(argp1);
11594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11595 if (!SWIG_IsOK(res2)) {
11596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11597 }
11598 arg2 = reinterpret_cast< wxFont * >(argp2);
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 {
11606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11607 }
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = 0;
11616 wxFont *arg1 = (wxFont *) 0 ;
11617 wxFont *arg2 = (wxFont *) 0 ;
11618 bool result;
11619 void *argp1 = 0 ;
11620 int res1 = 0 ;
11621 void *argp2 = 0 ;
11622 int res2 = 0 ;
11623 PyObject * obj0 = 0 ;
11624 PyObject * obj1 = 0 ;
11625 char * kwnames[] = {
11626 (char *) "self",(char *) "other", NULL
11627 };
11628
11629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11631 if (!SWIG_IsOK(res1)) {
11632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11633 }
11634 arg1 = reinterpret_cast< wxFont * >(argp1);
11635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11636 if (!SWIG_IsOK(res2)) {
11637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11638 }
11639 arg2 = reinterpret_cast< wxFont * >(argp2);
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 {
11647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11648 }
11649 return resultobj;
11650 fail:
11651 return NULL;
11652 }
11653
11654
11655 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11656 PyObject *resultobj = 0;
11657 wxFont *arg1 = (wxFont *) 0 ;
11658 int result;
11659 void *argp1 = 0 ;
11660 int res1 = 0 ;
11661 PyObject *swig_obj[1] ;
11662
11663 if (!args) SWIG_fail;
11664 swig_obj[0] = args;
11665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11666 if (!SWIG_IsOK(res1)) {
11667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11668 }
11669 arg1 = reinterpret_cast< wxFont * >(argp1);
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 result = (int)((wxFont const *)arg1)->GetPointSize();
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 resultobj = SWIG_From_int(static_cast< int >(result));
11677 return resultobj;
11678 fail:
11679 return NULL;
11680 }
11681
11682
11683 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxFont *arg1 = (wxFont *) 0 ;
11686 wxSize result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 PyObject *swig_obj[1] ;
11690
11691 if (!args) SWIG_fail;
11692 swig_obj[0] = args;
11693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11694 if (!SWIG_IsOK(res1)) {
11695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11696 }
11697 arg1 = reinterpret_cast< wxFont * >(argp1);
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = ((wxFont const *)arg1)->GetPixelSize();
11701 wxPyEndAllowThreads(__tstate);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11705 return resultobj;
11706 fail:
11707 return NULL;
11708 }
11709
11710
11711 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11712 PyObject *resultobj = 0;
11713 wxFont *arg1 = (wxFont *) 0 ;
11714 bool result;
11715 void *argp1 = 0 ;
11716 int res1 = 0 ;
11717 PyObject *swig_obj[1] ;
11718
11719 if (!args) SWIG_fail;
11720 swig_obj[0] = args;
11721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11722 if (!SWIG_IsOK(res1)) {
11723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11724 }
11725 arg1 = reinterpret_cast< wxFont * >(argp1);
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 {
11733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11734 }
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11742 PyObject *resultobj = 0;
11743 wxFont *arg1 = (wxFont *) 0 ;
11744 int result;
11745 void *argp1 = 0 ;
11746 int res1 = 0 ;
11747 PyObject *swig_obj[1] ;
11748
11749 if (!args) SWIG_fail;
11750 swig_obj[0] = args;
11751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11752 if (!SWIG_IsOK(res1)) {
11753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11754 }
11755 arg1 = reinterpret_cast< wxFont * >(argp1);
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (int)((wxFont const *)arg1)->GetFamily();
11759 wxPyEndAllowThreads(__tstate);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
11762 resultobj = SWIG_From_int(static_cast< int >(result));
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11770 PyObject *resultobj = 0;
11771 wxFont *arg1 = (wxFont *) 0 ;
11772 int result;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 PyObject *swig_obj[1] ;
11776
11777 if (!args) SWIG_fail;
11778 swig_obj[0] = args;
11779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11780 if (!SWIG_IsOK(res1)) {
11781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11782 }
11783 arg1 = reinterpret_cast< wxFont * >(argp1);
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (int)((wxFont const *)arg1)->GetStyle();
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 resultobj = SWIG_From_int(static_cast< int >(result));
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11798 PyObject *resultobj = 0;
11799 wxFont *arg1 = (wxFont *) 0 ;
11800 int result;
11801 void *argp1 = 0 ;
11802 int res1 = 0 ;
11803 PyObject *swig_obj[1] ;
11804
11805 if (!args) SWIG_fail;
11806 swig_obj[0] = args;
11807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11808 if (!SWIG_IsOK(res1)) {
11809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11810 }
11811 arg1 = reinterpret_cast< wxFont * >(argp1);
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 result = (int)((wxFont const *)arg1)->GetWeight();
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 resultobj = SWIG_From_int(static_cast< int >(result));
11819 return resultobj;
11820 fail:
11821 return NULL;
11822 }
11823
11824
11825 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11826 PyObject *resultobj = 0;
11827 wxFont *arg1 = (wxFont *) 0 ;
11828 bool result;
11829 void *argp1 = 0 ;
11830 int res1 = 0 ;
11831 PyObject *swig_obj[1] ;
11832
11833 if (!args) SWIG_fail;
11834 swig_obj[0] = args;
11835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11836 if (!SWIG_IsOK(res1)) {
11837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11838 }
11839 arg1 = reinterpret_cast< wxFont * >(argp1);
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 {
11847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11848 }
11849 return resultobj;
11850 fail:
11851 return NULL;
11852 }
11853
11854
11855 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11856 PyObject *resultobj = 0;
11857 wxFont *arg1 = (wxFont *) 0 ;
11858 wxString result;
11859 void *argp1 = 0 ;
11860 int res1 = 0 ;
11861 PyObject *swig_obj[1] ;
11862
11863 if (!args) SWIG_fail;
11864 swig_obj[0] = args;
11865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11868 }
11869 arg1 = reinterpret_cast< wxFont * >(argp1);
11870 {
11871 PyThreadState* __tstate = wxPyBeginAllowThreads();
11872 result = ((wxFont const *)arg1)->GetFaceName();
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 {
11877 #if wxUSE_UNICODE
11878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11879 #else
11880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11881 #endif
11882 }
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11890 PyObject *resultobj = 0;
11891 wxFont *arg1 = (wxFont *) 0 ;
11892 wxFontEncoding result;
11893 void *argp1 = 0 ;
11894 int res1 = 0 ;
11895 PyObject *swig_obj[1] ;
11896
11897 if (!args) SWIG_fail;
11898 swig_obj[0] = args;
11899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11900 if (!SWIG_IsOK(res1)) {
11901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11902 }
11903 arg1 = reinterpret_cast< wxFont * >(argp1);
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 resultobj = SWIG_From_int(static_cast< int >(result));
11911 return resultobj;
11912 fail:
11913 return NULL;
11914 }
11915
11916
11917 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11918 PyObject *resultobj = 0;
11919 wxFont *arg1 = (wxFont *) 0 ;
11920 wxNativeFontInfo *result = 0 ;
11921 void *argp1 = 0 ;
11922 int res1 = 0 ;
11923 PyObject *swig_obj[1] ;
11924
11925 if (!args) SWIG_fail;
11926 swig_obj[0] = args;
11927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11930 }
11931 arg1 = reinterpret_cast< wxFont * >(argp1);
11932 {
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11939 return resultobj;
11940 fail:
11941 return NULL;
11942 }
11943
11944
11945 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11946 PyObject *resultobj = 0;
11947 wxFont *arg1 = (wxFont *) 0 ;
11948 bool result;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 PyObject *swig_obj[1] ;
11952
11953 if (!args) SWIG_fail;
11954 swig_obj[0] = args;
11955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11956 if (!SWIG_IsOK(res1)) {
11957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11958 }
11959 arg1 = reinterpret_cast< wxFont * >(argp1);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 {
11967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11968 }
11969 return resultobj;
11970 fail:
11971 return NULL;
11972 }
11973
11974
11975 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11976 PyObject *resultobj = 0;
11977 wxFont *arg1 = (wxFont *) 0 ;
11978 wxString result;
11979 void *argp1 = 0 ;
11980 int res1 = 0 ;
11981 PyObject *swig_obj[1] ;
11982
11983 if (!args) SWIG_fail;
11984 swig_obj[0] = args;
11985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11986 if (!SWIG_IsOK(res1)) {
11987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11988 }
11989 arg1 = reinterpret_cast< wxFont * >(argp1);
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 {
11997 #if wxUSE_UNICODE
11998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11999 #else
12000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12001 #endif
12002 }
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12010 PyObject *resultobj = 0;
12011 wxFont *arg1 = (wxFont *) 0 ;
12012 wxString result;
12013 void *argp1 = 0 ;
12014 int res1 = 0 ;
12015 PyObject *swig_obj[1] ;
12016
12017 if (!args) SWIG_fail;
12018 swig_obj[0] = args;
12019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12020 if (!SWIG_IsOK(res1)) {
12021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12022 }
12023 arg1 = reinterpret_cast< wxFont * >(argp1);
12024 {
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 {
12031 #if wxUSE_UNICODE
12032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12033 #else
12034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12035 #endif
12036 }
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxFont *arg1 = (wxFont *) 0 ;
12046 int arg2 ;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 int val2 ;
12050 int ecode2 = 0 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char * kwnames[] = {
12054 (char *) "self",(char *) "pointSize", NULL
12055 };
12056
12057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12061 }
12062 arg1 = reinterpret_cast< wxFont * >(argp1);
12063 ecode2 = SWIG_AsVal_int(obj1, &val2);
12064 if (!SWIG_IsOK(ecode2)) {
12065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12066 }
12067 arg2 = static_cast< int >(val2);
12068 {
12069 PyThreadState* __tstate = wxPyBeginAllowThreads();
12070 (arg1)->SetPointSize(arg2);
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) SWIG_fail;
12073 }
12074 resultobj = SWIG_Py_Void();
12075 return resultobj;
12076 fail:
12077 return NULL;
12078 }
12079
12080
12081 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12082 PyObject *resultobj = 0;
12083 wxFont *arg1 = (wxFont *) 0 ;
12084 wxSize *arg2 = 0 ;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 wxSize temp2 ;
12088 PyObject * obj0 = 0 ;
12089 PyObject * obj1 = 0 ;
12090 char * kwnames[] = {
12091 (char *) "self",(char *) "pixelSize", NULL
12092 };
12093
12094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12096 if (!SWIG_IsOK(res1)) {
12097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12098 }
12099 arg1 = reinterpret_cast< wxFont * >(argp1);
12100 {
12101 arg2 = &temp2;
12102 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12103 }
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 (arg1)->SetPixelSize((wxSize const &)*arg2);
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_Py_Void();
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj = 0;
12119 wxFont *arg1 = (wxFont *) 0 ;
12120 int arg2 ;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 int val2 ;
12124 int ecode2 = 0 ;
12125 PyObject * obj0 = 0 ;
12126 PyObject * obj1 = 0 ;
12127 char * kwnames[] = {
12128 (char *) "self",(char *) "family", NULL
12129 };
12130
12131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12133 if (!SWIG_IsOK(res1)) {
12134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12135 }
12136 arg1 = reinterpret_cast< wxFont * >(argp1);
12137 ecode2 = SWIG_AsVal_int(obj1, &val2);
12138 if (!SWIG_IsOK(ecode2)) {
12139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12140 }
12141 arg2 = static_cast< int >(val2);
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 (arg1)->SetFamily(arg2);
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 resultobj = SWIG_Py_Void();
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12156 PyObject *resultobj = 0;
12157 wxFont *arg1 = (wxFont *) 0 ;
12158 int arg2 ;
12159 void *argp1 = 0 ;
12160 int res1 = 0 ;
12161 int val2 ;
12162 int ecode2 = 0 ;
12163 PyObject * obj0 = 0 ;
12164 PyObject * obj1 = 0 ;
12165 char * kwnames[] = {
12166 (char *) "self",(char *) "style", NULL
12167 };
12168
12169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12171 if (!SWIG_IsOK(res1)) {
12172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12173 }
12174 arg1 = reinterpret_cast< wxFont * >(argp1);
12175 ecode2 = SWIG_AsVal_int(obj1, &val2);
12176 if (!SWIG_IsOK(ecode2)) {
12177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12178 }
12179 arg2 = static_cast< int >(val2);
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 (arg1)->SetStyle(arg2);
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 resultobj = SWIG_Py_Void();
12187 return resultobj;
12188 fail:
12189 return NULL;
12190 }
12191
12192
12193 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12194 PyObject *resultobj = 0;
12195 wxFont *arg1 = (wxFont *) 0 ;
12196 int arg2 ;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 int val2 ;
12200 int ecode2 = 0 ;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 char * kwnames[] = {
12204 (char *) "self",(char *) "weight", NULL
12205 };
12206
12207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12211 }
12212 arg1 = reinterpret_cast< wxFont * >(argp1);
12213 ecode2 = SWIG_AsVal_int(obj1, &val2);
12214 if (!SWIG_IsOK(ecode2)) {
12215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12216 }
12217 arg2 = static_cast< int >(val2);
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 (arg1)->SetWeight(arg2);
12221 wxPyEndAllowThreads(__tstate);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 resultobj = SWIG_Py_Void();
12225 return resultobj;
12226 fail:
12227 return NULL;
12228 }
12229
12230
12231 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj = 0;
12233 wxFont *arg1 = (wxFont *) 0 ;
12234 wxString *arg2 = 0 ;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 bool temp2 = false ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char * kwnames[] = {
12241 (char *) "self",(char *) "faceName", NULL
12242 };
12243
12244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12246 if (!SWIG_IsOK(res1)) {
12247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12248 }
12249 arg1 = reinterpret_cast< wxFont * >(argp1);
12250 {
12251 arg2 = wxString_in_helper(obj1);
12252 if (arg2 == NULL) SWIG_fail;
12253 temp2 = true;
12254 }
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 (arg1)->SetFaceName((wxString const &)*arg2);
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 resultobj = SWIG_Py_Void();
12262 {
12263 if (temp2)
12264 delete arg2;
12265 }
12266 return resultobj;
12267 fail:
12268 {
12269 if (temp2)
12270 delete arg2;
12271 }
12272 return NULL;
12273 }
12274
12275
12276 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12277 PyObject *resultobj = 0;
12278 wxFont *arg1 = (wxFont *) 0 ;
12279 bool arg2 ;
12280 void *argp1 = 0 ;
12281 int res1 = 0 ;
12282 bool val2 ;
12283 int ecode2 = 0 ;
12284 PyObject * obj0 = 0 ;
12285 PyObject * obj1 = 0 ;
12286 char * kwnames[] = {
12287 (char *) "self",(char *) "underlined", NULL
12288 };
12289
12290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12292 if (!SWIG_IsOK(res1)) {
12293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12294 }
12295 arg1 = reinterpret_cast< wxFont * >(argp1);
12296 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12297 if (!SWIG_IsOK(ecode2)) {
12298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12299 }
12300 arg2 = static_cast< bool >(val2);
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->SetUnderlined(arg2);
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 resultobj = SWIG_Py_Void();
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj = 0;
12316 wxFont *arg1 = (wxFont *) 0 ;
12317 wxFontEncoding arg2 ;
12318 void *argp1 = 0 ;
12319 int res1 = 0 ;
12320 int val2 ;
12321 int ecode2 = 0 ;
12322 PyObject * obj0 = 0 ;
12323 PyObject * obj1 = 0 ;
12324 char * kwnames[] = {
12325 (char *) "self",(char *) "encoding", NULL
12326 };
12327
12328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12330 if (!SWIG_IsOK(res1)) {
12331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12332 }
12333 arg1 = reinterpret_cast< wxFont * >(argp1);
12334 ecode2 = SWIG_AsVal_int(obj1, &val2);
12335 if (!SWIG_IsOK(ecode2)) {
12336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12337 }
12338 arg2 = static_cast< wxFontEncoding >(val2);
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 (arg1)->SetEncoding(arg2);
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 resultobj = SWIG_Py_Void();
12346 return resultobj;
12347 fail:
12348 return NULL;
12349 }
12350
12351
12352 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12353 PyObject *resultobj = 0;
12354 wxFont *arg1 = (wxFont *) 0 ;
12355 wxNativeFontInfo *arg2 = 0 ;
12356 void *argp1 = 0 ;
12357 int res1 = 0 ;
12358 void *argp2 = 0 ;
12359 int res2 = 0 ;
12360 PyObject * obj0 = 0 ;
12361 PyObject * obj1 = 0 ;
12362 char * kwnames[] = {
12363 (char *) "self",(char *) "info", NULL
12364 };
12365
12366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12368 if (!SWIG_IsOK(res1)) {
12369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12370 }
12371 arg1 = reinterpret_cast< wxFont * >(argp1);
12372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12373 if (!SWIG_IsOK(res2)) {
12374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12375 }
12376 if (!argp2) {
12377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12378 }
12379 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12383 wxPyEndAllowThreads(__tstate);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 }
12386 resultobj = SWIG_Py_Void();
12387 return resultobj;
12388 fail:
12389 return NULL;
12390 }
12391
12392
12393 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj = 0;
12395 wxFont *arg1 = (wxFont *) 0 ;
12396 wxString *arg2 = 0 ;
12397 void *argp1 = 0 ;
12398 int res1 = 0 ;
12399 bool temp2 = false ;
12400 PyObject * obj0 = 0 ;
12401 PyObject * obj1 = 0 ;
12402 char * kwnames[] = {
12403 (char *) "self",(char *) "info", NULL
12404 };
12405
12406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12408 if (!SWIG_IsOK(res1)) {
12409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12410 }
12411 arg1 = reinterpret_cast< wxFont * >(argp1);
12412 {
12413 arg2 = wxString_in_helper(obj1);
12414 if (arg2 == NULL) SWIG_fail;
12415 temp2 = true;
12416 }
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 resultobj = SWIG_Py_Void();
12424 {
12425 if (temp2)
12426 delete arg2;
12427 }
12428 return resultobj;
12429 fail:
12430 {
12431 if (temp2)
12432 delete arg2;
12433 }
12434 return NULL;
12435 }
12436
12437
12438 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12439 PyObject *resultobj = 0;
12440 wxFont *arg1 = (wxFont *) 0 ;
12441 wxString *arg2 = 0 ;
12442 void *argp1 = 0 ;
12443 int res1 = 0 ;
12444 bool temp2 = false ;
12445 PyObject * obj0 = 0 ;
12446 PyObject * obj1 = 0 ;
12447 char * kwnames[] = {
12448 (char *) "self",(char *) "info", NULL
12449 };
12450
12451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12455 }
12456 arg1 = reinterpret_cast< wxFont * >(argp1);
12457 {
12458 arg2 = wxString_in_helper(obj1);
12459 if (arg2 == NULL) SWIG_fail;
12460 temp2 = true;
12461 }
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_Py_Void();
12469 {
12470 if (temp2)
12471 delete arg2;
12472 }
12473 return resultobj;
12474 fail:
12475 {
12476 if (temp2)
12477 delete arg2;
12478 }
12479 return NULL;
12480 }
12481
12482
12483 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12484 PyObject *resultobj = 0;
12485 wxFont *arg1 = (wxFont *) 0 ;
12486 wxString result;
12487 void *argp1 = 0 ;
12488 int res1 = 0 ;
12489 PyObject *swig_obj[1] ;
12490
12491 if (!args) SWIG_fail;
12492 swig_obj[0] = args;
12493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12494 if (!SWIG_IsOK(res1)) {
12495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12496 }
12497 arg1 = reinterpret_cast< wxFont * >(argp1);
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 result = ((wxFont const *)arg1)->GetFamilyString();
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 {
12505 #if wxUSE_UNICODE
12506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12507 #else
12508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12509 #endif
12510 }
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12518 PyObject *resultobj = 0;
12519 wxFont *arg1 = (wxFont *) 0 ;
12520 wxString result;
12521 void *argp1 = 0 ;
12522 int res1 = 0 ;
12523 PyObject *swig_obj[1] ;
12524
12525 if (!args) SWIG_fail;
12526 swig_obj[0] = args;
12527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12528 if (!SWIG_IsOK(res1)) {
12529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12530 }
12531 arg1 = reinterpret_cast< wxFont * >(argp1);
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 result = ((wxFont const *)arg1)->GetStyleString();
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 {
12539 #if wxUSE_UNICODE
12540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12541 #else
12542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12543 #endif
12544 }
12545 return resultobj;
12546 fail:
12547 return NULL;
12548 }
12549
12550
12551 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12552 PyObject *resultobj = 0;
12553 wxFont *arg1 = (wxFont *) 0 ;
12554 wxString result;
12555 void *argp1 = 0 ;
12556 int res1 = 0 ;
12557 PyObject *swig_obj[1] ;
12558
12559 if (!args) SWIG_fail;
12560 swig_obj[0] = args;
12561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12562 if (!SWIG_IsOK(res1)) {
12563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12564 }
12565 arg1 = reinterpret_cast< wxFont * >(argp1);
12566 {
12567 PyThreadState* __tstate = wxPyBeginAllowThreads();
12568 result = ((wxFont const *)arg1)->GetWeightString();
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 {
12573 #if wxUSE_UNICODE
12574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12575 #else
12576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12577 #endif
12578 }
12579 return resultobj;
12580 fail:
12581 return NULL;
12582 }
12583
12584
12585 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj = 0;
12587 wxFont *arg1 = (wxFont *) 0 ;
12588 bool arg2 = (bool) true ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 bool val2 ;
12592 int ecode2 = 0 ;
12593 PyObject * obj0 = 0 ;
12594 PyObject * obj1 = 0 ;
12595 char * kwnames[] = {
12596 (char *) "self",(char *) "no", NULL
12597 };
12598
12599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12601 if (!SWIG_IsOK(res1)) {
12602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12603 }
12604 arg1 = reinterpret_cast< wxFont * >(argp1);
12605 if (obj1) {
12606 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12607 if (!SWIG_IsOK(ecode2)) {
12608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12609 }
12610 arg2 = static_cast< bool >(val2);
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 (arg1)->SetNoAntiAliasing(arg2);
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 resultobj = SWIG_Py_Void();
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12626 PyObject *resultobj = 0;
12627 wxFont *arg1 = (wxFont *) 0 ;
12628 bool result;
12629 void *argp1 = 0 ;
12630 int res1 = 0 ;
12631 PyObject *swig_obj[1] ;
12632
12633 if (!args) SWIG_fail;
12634 swig_obj[0] = args;
12635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12636 if (!SWIG_IsOK(res1)) {
12637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12638 }
12639 arg1 = reinterpret_cast< wxFont * >(argp1);
12640 {
12641 PyThreadState* __tstate = wxPyBeginAllowThreads();
12642 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12643 wxPyEndAllowThreads(__tstate);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 {
12647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12648 }
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12656 PyObject *resultobj = 0;
12657 wxFontEncoding result;
12658
12659 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12660 {
12661 if (!wxPyCheckForApp()) SWIG_fail;
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12664 wxPyEndAllowThreads(__tstate);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 }
12667 resultobj = SWIG_From_int(static_cast< int >(result));
12668 return resultobj;
12669 fail:
12670 return NULL;
12671 }
12672
12673
12674 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12675 PyObject *resultobj = 0;
12676 wxFontEncoding arg1 ;
12677 int val1 ;
12678 int ecode1 = 0 ;
12679 PyObject * obj0 = 0 ;
12680 char * kwnames[] = {
12681 (char *) "encoding", NULL
12682 };
12683
12684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12685 ecode1 = SWIG_AsVal_int(obj0, &val1);
12686 if (!SWIG_IsOK(ecode1)) {
12687 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12688 }
12689 arg1 = static_cast< wxFontEncoding >(val1);
12690 {
12691 if (!wxPyCheckForApp()) SWIG_fail;
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 wxFont::SetDefaultEncoding(arg1);
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 resultobj = SWIG_Py_Void();
12698 return resultobj;
12699 fail:
12700 return NULL;
12701 }
12702
12703
12704 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12705 PyObject *obj;
12706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12707 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12708 return SWIG_Py_Void();
12709 }
12710
12711 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12712 return SWIG_Python_InitShadowInstance(args);
12713 }
12714
12715 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12716 PyObject *resultobj = 0;
12717 wxPyFontEnumerator *result = 0 ;
12718
12719 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12720 {
12721 if (!wxPyCheckForApp()) SWIG_fail;
12722 PyThreadState* __tstate = wxPyBeginAllowThreads();
12723 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12728 return resultobj;
12729 fail:
12730 return NULL;
12731 }
12732
12733
12734 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12735 PyObject *resultobj = 0;
12736 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12737 void *argp1 = 0 ;
12738 int res1 = 0 ;
12739 PyObject *swig_obj[1] ;
12740
12741 if (!args) SWIG_fail;
12742 swig_obj[0] = args;
12743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12744 if (!SWIG_IsOK(res1)) {
12745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12746 }
12747 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 delete arg1;
12751
12752 wxPyEndAllowThreads(__tstate);
12753 if (PyErr_Occurred()) SWIG_fail;
12754 }
12755 resultobj = SWIG_Py_Void();
12756 return resultobj;
12757 fail:
12758 return NULL;
12759 }
12760
12761
12762 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12763 PyObject *resultobj = 0;
12764 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12765 PyObject *arg2 = (PyObject *) 0 ;
12766 PyObject *arg3 = (PyObject *) 0 ;
12767 bool arg4 ;
12768 void *argp1 = 0 ;
12769 int res1 = 0 ;
12770 bool val4 ;
12771 int ecode4 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 PyObject * obj1 = 0 ;
12774 PyObject * obj2 = 0 ;
12775 PyObject * obj3 = 0 ;
12776 char * kwnames[] = {
12777 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12778 };
12779
12780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12782 if (!SWIG_IsOK(res1)) {
12783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12784 }
12785 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12786 arg2 = obj1;
12787 arg3 = obj2;
12788 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12789 if (!SWIG_IsOK(ecode4)) {
12790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12791 }
12792 arg4 = static_cast< bool >(val4);
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12796 wxPyEndAllowThreads(__tstate);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 resultobj = SWIG_Py_Void();
12800 return resultobj;
12801 fail:
12802 return NULL;
12803 }
12804
12805
12806 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12807 PyObject *resultobj = 0;
12808 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12809 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12810 bool arg3 = (bool) false ;
12811 bool result;
12812 void *argp1 = 0 ;
12813 int res1 = 0 ;
12814 int val2 ;
12815 int ecode2 = 0 ;
12816 bool val3 ;
12817 int ecode3 = 0 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 char * kwnames[] = {
12822 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12823 };
12824
12825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12827 if (!SWIG_IsOK(res1)) {
12828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12829 }
12830 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12831 if (obj1) {
12832 ecode2 = SWIG_AsVal_int(obj1, &val2);
12833 if (!SWIG_IsOK(ecode2)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12835 }
12836 arg2 = static_cast< wxFontEncoding >(val2);
12837 }
12838 if (obj2) {
12839 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12840 if (!SWIG_IsOK(ecode3)) {
12841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12842 }
12843 arg3 = static_cast< bool >(val3);
12844 }
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 {
12852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12853 }
12854 return resultobj;
12855 fail:
12856 return NULL;
12857 }
12858
12859
12860 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj = 0;
12862 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12863 wxString const &arg2_defvalue = wxPyEmptyString ;
12864 wxString *arg2 = (wxString *) &arg2_defvalue ;
12865 bool result;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 bool temp2 = false ;
12869 PyObject * obj0 = 0 ;
12870 PyObject * obj1 = 0 ;
12871 char * kwnames[] = {
12872 (char *) "self",(char *) "facename", NULL
12873 };
12874
12875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12877 if (!SWIG_IsOK(res1)) {
12878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12879 }
12880 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12881 if (obj1) {
12882 {
12883 arg2 = wxString_in_helper(obj1);
12884 if (arg2 == NULL) SWIG_fail;
12885 temp2 = true;
12886 }
12887 }
12888 {
12889 PyThreadState* __tstate = wxPyBeginAllowThreads();
12890 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12891 wxPyEndAllowThreads(__tstate);
12892 if (PyErr_Occurred()) SWIG_fail;
12893 }
12894 {
12895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12896 }
12897 {
12898 if (temp2)
12899 delete arg2;
12900 }
12901 return resultobj;
12902 fail:
12903 {
12904 if (temp2)
12905 delete arg2;
12906 }
12907 return NULL;
12908 }
12909
12910
12911 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12912 PyObject *resultobj = 0;
12913 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12914 PyObject *result = 0 ;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 PyObject *swig_obj[1] ;
12918
12919 if (!args) SWIG_fail;
12920 swig_obj[0] = args;
12921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12922 if (!SWIG_IsOK(res1)) {
12923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12924 }
12925 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = result;
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12940 PyObject *resultobj = 0;
12941 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12942 PyObject *result = 0 ;
12943 void *argp1 = 0 ;
12944 int res1 = 0 ;
12945 PyObject *swig_obj[1] ;
12946
12947 if (!args) SWIG_fail;
12948 swig_obj[0] = args;
12949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12950 if (!SWIG_IsOK(res1)) {
12951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12952 }
12953 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12957 wxPyEndAllowThreads(__tstate);
12958 if (PyErr_Occurred()) SWIG_fail;
12959 }
12960 resultobj = result;
12961 return resultobj;
12962 fail:
12963 return NULL;
12964 }
12965
12966
12967 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12968 PyObject *obj;
12969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12970 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12971 return SWIG_Py_Void();
12972 }
12973
12974 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 return SWIG_Python_InitShadowInstance(args);
12976 }
12977
12978 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12979 PyObject *resultobj = 0;
12980 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12981 int arg2 ;
12982 void *argp1 = 0 ;
12983 int res1 = 0 ;
12984 int val2 ;
12985 int ecode2 = 0 ;
12986 PyObject *swig_obj[2] ;
12987
12988 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12990 if (!SWIG_IsOK(res1)) {
12991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12992 }
12993 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12994 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12995 if (!SWIG_IsOK(ecode2)) {
12996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12997 }
12998 arg2 = static_cast< int >(val2);
12999 if (arg1) (arg1)->Language = arg2;
13000
13001 resultobj = SWIG_Py_Void();
13002 return resultobj;
13003 fail:
13004 return NULL;
13005 }
13006
13007
13008 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13009 PyObject *resultobj = 0;
13010 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13011 int result;
13012 void *argp1 = 0 ;
13013 int res1 = 0 ;
13014 PyObject *swig_obj[1] ;
13015
13016 if (!args) SWIG_fail;
13017 swig_obj[0] = args;
13018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13021 }
13022 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13023 result = (int) ((arg1)->Language);
13024 resultobj = SWIG_From_int(static_cast< int >(result));
13025 return resultobj;
13026 fail:
13027 return NULL;
13028 }
13029
13030
13031 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13032 PyObject *resultobj = 0;
13033 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13034 wxString *arg2 = (wxString *) 0 ;
13035 void *argp1 = 0 ;
13036 int res1 = 0 ;
13037 bool temp2 = false ;
13038 PyObject *swig_obj[2] ;
13039
13040 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13042 if (!SWIG_IsOK(res1)) {
13043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13044 }
13045 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13046 {
13047 arg2 = wxString_in_helper(swig_obj[1]);
13048 if (arg2 == NULL) SWIG_fail;
13049 temp2 = true;
13050 }
13051 if (arg1) (arg1)->CanonicalName = *arg2;
13052
13053 resultobj = SWIG_Py_Void();
13054 {
13055 if (temp2)
13056 delete arg2;
13057 }
13058 return resultobj;
13059 fail:
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return NULL;
13065 }
13066
13067
13068 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13069 PyObject *resultobj = 0;
13070 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13071 wxString *result = 0 ;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 PyObject *swig_obj[1] ;
13075
13076 if (!args) SWIG_fail;
13077 swig_obj[0] = args;
13078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13079 if (!SWIG_IsOK(res1)) {
13080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13081 }
13082 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13083 result = (wxString *)& ((arg1)->CanonicalName);
13084 {
13085 #if wxUSE_UNICODE
13086 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13087 #else
13088 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13089 #endif
13090 }
13091 return resultobj;
13092 fail:
13093 return NULL;
13094 }
13095
13096
13097 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13098 PyObject *resultobj = 0;
13099 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13100 wxString *arg2 = (wxString *) 0 ;
13101 void *argp1 = 0 ;
13102 int res1 = 0 ;
13103 bool temp2 = false ;
13104 PyObject *swig_obj[2] ;
13105
13106 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13108 if (!SWIG_IsOK(res1)) {
13109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13110 }
13111 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13112 {
13113 arg2 = wxString_in_helper(swig_obj[1]);
13114 if (arg2 == NULL) SWIG_fail;
13115 temp2 = true;
13116 }
13117 if (arg1) (arg1)->Description = *arg2;
13118
13119 resultobj = SWIG_Py_Void();
13120 {
13121 if (temp2)
13122 delete arg2;
13123 }
13124 return resultobj;
13125 fail:
13126 {
13127 if (temp2)
13128 delete arg2;
13129 }
13130 return NULL;
13131 }
13132
13133
13134 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13135 PyObject *resultobj = 0;
13136 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13137 wxString *result = 0 ;
13138 void *argp1 = 0 ;
13139 int res1 = 0 ;
13140 PyObject *swig_obj[1] ;
13141
13142 if (!args) SWIG_fail;
13143 swig_obj[0] = args;
13144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13145 if (!SWIG_IsOK(res1)) {
13146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13147 }
13148 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13149 result = (wxString *)& ((arg1)->Description);
13150 {
13151 #if wxUSE_UNICODE
13152 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13153 #else
13154 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13155 #endif
13156 }
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13164 PyObject *obj;
13165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13166 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13167 return SWIG_Py_Void();
13168 }
13169
13170 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13171 PyObject *resultobj = 0;
13172 int arg1 = (int) -1 ;
13173 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13174 wxLocale *result = 0 ;
13175 int val1 ;
13176 int ecode1 = 0 ;
13177 int val2 ;
13178 int ecode2 = 0 ;
13179 PyObject * obj0 = 0 ;
13180 PyObject * obj1 = 0 ;
13181 char * kwnames[] = {
13182 (char *) "language",(char *) "flags", NULL
13183 };
13184
13185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13186 if (obj0) {
13187 ecode1 = SWIG_AsVal_int(obj0, &val1);
13188 if (!SWIG_IsOK(ecode1)) {
13189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13190 }
13191 arg1 = static_cast< int >(val1);
13192 }
13193 if (obj1) {
13194 ecode2 = SWIG_AsVal_int(obj1, &val2);
13195 if (!SWIG_IsOK(ecode2)) {
13196 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13197 }
13198 arg2 = static_cast< int >(val2);
13199 }
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = (wxLocale *)new_wxLocale(arg1,arg2);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13207 return resultobj;
13208 fail:
13209 return NULL;
13210 }
13211
13212
13213 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13214 PyObject *resultobj = 0;
13215 wxLocale *arg1 = (wxLocale *) 0 ;
13216 void *argp1 = 0 ;
13217 int res1 = 0 ;
13218 PyObject *swig_obj[1] ;
13219
13220 if (!args) SWIG_fail;
13221 swig_obj[0] = args;
13222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13225 }
13226 arg1 = reinterpret_cast< wxLocale * >(argp1);
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 delete arg1;
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_Py_Void();
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxLocale *arg1 = (wxLocale *) 0 ;
13244 wxString *arg2 = 0 ;
13245 wxString const &arg3_defvalue = wxPyEmptyString ;
13246 wxString *arg3 = (wxString *) &arg3_defvalue ;
13247 wxString const &arg4_defvalue = wxPyEmptyString ;
13248 wxString *arg4 = (wxString *) &arg4_defvalue ;
13249 bool arg5 = (bool) true ;
13250 bool arg6 = (bool) false ;
13251 bool result;
13252 void *argp1 = 0 ;
13253 int res1 = 0 ;
13254 bool temp2 = false ;
13255 bool temp3 = false ;
13256 bool temp4 = false ;
13257 bool val5 ;
13258 int ecode5 = 0 ;
13259 bool val6 ;
13260 int ecode6 = 0 ;
13261 PyObject * obj0 = 0 ;
13262 PyObject * obj1 = 0 ;
13263 PyObject * obj2 = 0 ;
13264 PyObject * obj3 = 0 ;
13265 PyObject * obj4 = 0 ;
13266 PyObject * obj5 = 0 ;
13267 char * kwnames[] = {
13268 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13269 };
13270
13271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13273 if (!SWIG_IsOK(res1)) {
13274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13275 }
13276 arg1 = reinterpret_cast< wxLocale * >(argp1);
13277 {
13278 arg2 = wxString_in_helper(obj1);
13279 if (arg2 == NULL) SWIG_fail;
13280 temp2 = true;
13281 }
13282 if (obj2) {
13283 {
13284 arg3 = wxString_in_helper(obj2);
13285 if (arg3 == NULL) SWIG_fail;
13286 temp3 = true;
13287 }
13288 }
13289 if (obj3) {
13290 {
13291 arg4 = wxString_in_helper(obj3);
13292 if (arg4 == NULL) SWIG_fail;
13293 temp4 = true;
13294 }
13295 }
13296 if (obj4) {
13297 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13298 if (!SWIG_IsOK(ecode5)) {
13299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13300 }
13301 arg5 = static_cast< bool >(val5);
13302 }
13303 if (obj5) {
13304 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13305 if (!SWIG_IsOK(ecode6)) {
13306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13307 }
13308 arg6 = static_cast< bool >(val6);
13309 }
13310 {
13311 PyThreadState* __tstate = wxPyBeginAllowThreads();
13312 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13313 wxPyEndAllowThreads(__tstate);
13314 if (PyErr_Occurred()) SWIG_fail;
13315 }
13316 {
13317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13318 }
13319 {
13320 if (temp2)
13321 delete arg2;
13322 }
13323 {
13324 if (temp3)
13325 delete arg3;
13326 }
13327 {
13328 if (temp4)
13329 delete arg4;
13330 }
13331 return resultobj;
13332 fail:
13333 {
13334 if (temp2)
13335 delete arg2;
13336 }
13337 {
13338 if (temp3)
13339 delete arg3;
13340 }
13341 {
13342 if (temp4)
13343 delete arg4;
13344 }
13345 return NULL;
13346 }
13347
13348
13349 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13350 PyObject *resultobj = 0;
13351 wxLocale *arg1 = (wxLocale *) 0 ;
13352 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13353 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13354 bool result;
13355 void *argp1 = 0 ;
13356 int res1 = 0 ;
13357 int val2 ;
13358 int ecode2 = 0 ;
13359 int val3 ;
13360 int ecode3 = 0 ;
13361 PyObject * obj0 = 0 ;
13362 PyObject * obj1 = 0 ;
13363 PyObject * obj2 = 0 ;
13364 char * kwnames[] = {
13365 (char *) "self",(char *) "language",(char *) "flags", NULL
13366 };
13367
13368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13370 if (!SWIG_IsOK(res1)) {
13371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13372 }
13373 arg1 = reinterpret_cast< wxLocale * >(argp1);
13374 if (obj1) {
13375 ecode2 = SWIG_AsVal_int(obj1, &val2);
13376 if (!SWIG_IsOK(ecode2)) {
13377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13378 }
13379 arg2 = static_cast< int >(val2);
13380 }
13381 if (obj2) {
13382 ecode3 = SWIG_AsVal_int(obj2, &val3);
13383 if (!SWIG_IsOK(ecode3)) {
13384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13385 }
13386 arg3 = static_cast< int >(val3);
13387 }
13388 {
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 {
13395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13396 }
13397 return resultobj;
13398 fail:
13399 return NULL;
13400 }
13401
13402
13403 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13404 PyObject *resultobj = 0;
13405 int result;
13406
13407 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13408 {
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (int)wxLocale::GetSystemLanguage();
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_From_int(static_cast< int >(result));
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *resultobj = 0;
13423 wxFontEncoding result;
13424
13425 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = SWIG_From_int(static_cast< int >(result));
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxString result;
13442
13443 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = wxLocale::GetSystemEncodingName();
13447 wxPyEndAllowThreads(__tstate);
13448 if (PyErr_Occurred()) SWIG_fail;
13449 }
13450 {
13451 #if wxUSE_UNICODE
13452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13453 #else
13454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13455 #endif
13456 }
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 wxLocale *arg1 = (wxLocale *) 0 ;
13466 bool result;
13467 void *argp1 = 0 ;
13468 int res1 = 0 ;
13469 PyObject *swig_obj[1] ;
13470
13471 if (!args) SWIG_fail;
13472 swig_obj[0] = args;
13473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13474 if (!SWIG_IsOK(res1)) {
13475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13476 }
13477 arg1 = reinterpret_cast< wxLocale * >(argp1);
13478 {
13479 PyThreadState* __tstate = wxPyBeginAllowThreads();
13480 result = (bool)((wxLocale const *)arg1)->IsOk();
13481 wxPyEndAllowThreads(__tstate);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 {
13485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13486 }
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 wxLocale *arg1 = (wxLocale *) 0 ;
13496 wxString result;
13497 void *argp1 = 0 ;
13498 int res1 = 0 ;
13499 PyObject *swig_obj[1] ;
13500
13501 if (!args) SWIG_fail;
13502 swig_obj[0] = args;
13503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13504 if (!SWIG_IsOK(res1)) {
13505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13506 }
13507 arg1 = reinterpret_cast< wxLocale * >(argp1);
13508 {
13509 PyThreadState* __tstate = wxPyBeginAllowThreads();
13510 result = ((wxLocale const *)arg1)->GetLocale();
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 {
13515 #if wxUSE_UNICODE
13516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13517 #else
13518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13519 #endif
13520 }
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxLocale *arg1 = (wxLocale *) 0 ;
13530 int result;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject *swig_obj[1] ;
13534
13535 if (!args) SWIG_fail;
13536 swig_obj[0] = args;
13537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13540 }
13541 arg1 = reinterpret_cast< wxLocale * >(argp1);
13542 {
13543 PyThreadState* __tstate = wxPyBeginAllowThreads();
13544 result = (int)((wxLocale const *)arg1)->GetLanguage();
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 resultobj = SWIG_From_int(static_cast< int >(result));
13549 return resultobj;
13550 fail:
13551 return NULL;
13552 }
13553
13554
13555 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13556 PyObject *resultobj = 0;
13557 wxLocale *arg1 = (wxLocale *) 0 ;
13558 wxString result;
13559 void *argp1 = 0 ;
13560 int res1 = 0 ;
13561 PyObject *swig_obj[1] ;
13562
13563 if (!args) SWIG_fail;
13564 swig_obj[0] = args;
13565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13566 if (!SWIG_IsOK(res1)) {
13567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13568 }
13569 arg1 = reinterpret_cast< wxLocale * >(argp1);
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 result = ((wxLocale const *)arg1)->GetSysName();
13573 wxPyEndAllowThreads(__tstate);
13574 if (PyErr_Occurred()) SWIG_fail;
13575 }
13576 {
13577 #if wxUSE_UNICODE
13578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13579 #else
13580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13581 #endif
13582 }
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13590 PyObject *resultobj = 0;
13591 wxLocale *arg1 = (wxLocale *) 0 ;
13592 wxString result;
13593 void *argp1 = 0 ;
13594 int res1 = 0 ;
13595 PyObject *swig_obj[1] ;
13596
13597 if (!args) SWIG_fail;
13598 swig_obj[0] = args;
13599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13600 if (!SWIG_IsOK(res1)) {
13601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13602 }
13603 arg1 = reinterpret_cast< wxLocale * >(argp1);
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = ((wxLocale const *)arg1)->GetCanonicalName();
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 {
13611 #if wxUSE_UNICODE
13612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13613 #else
13614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13615 #endif
13616 }
13617 return resultobj;
13618 fail:
13619 return NULL;
13620 }
13621
13622
13623 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13624 PyObject *resultobj = 0;
13625 wxString *arg1 = 0 ;
13626 bool temp1 = false ;
13627 PyObject * obj0 = 0 ;
13628 char * kwnames[] = {
13629 (char *) "prefix", NULL
13630 };
13631
13632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13633 {
13634 arg1 = wxString_in_helper(obj0);
13635 if (arg1 == NULL) SWIG_fail;
13636 temp1 = true;
13637 }
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 resultobj = SWIG_Py_Void();
13645 {
13646 if (temp1)
13647 delete arg1;
13648 }
13649 return resultobj;
13650 fail:
13651 {
13652 if (temp1)
13653 delete arg1;
13654 }
13655 return NULL;
13656 }
13657
13658
13659 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj = 0;
13661 wxLocale *arg1 = (wxLocale *) 0 ;
13662 wxString *arg2 = 0 ;
13663 bool result;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 bool temp2 = false ;
13667 PyObject * obj0 = 0 ;
13668 PyObject * obj1 = 0 ;
13669 char * kwnames[] = {
13670 (char *) "self",(char *) "szDomain", NULL
13671 };
13672
13673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13675 if (!SWIG_IsOK(res1)) {
13676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13677 }
13678 arg1 = reinterpret_cast< wxLocale * >(argp1);
13679 {
13680 arg2 = wxString_in_helper(obj1);
13681 if (arg2 == NULL) SWIG_fail;
13682 temp2 = true;
13683 }
13684 {
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 {
13691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13692 }
13693 {
13694 if (temp2)
13695 delete arg2;
13696 }
13697 return resultobj;
13698 fail:
13699 {
13700 if (temp2)
13701 delete arg2;
13702 }
13703 return NULL;
13704 }
13705
13706
13707 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj = 0;
13709 wxLocale *arg1 = (wxLocale *) 0 ;
13710 wxString *arg2 = 0 ;
13711 bool result;
13712 void *argp1 = 0 ;
13713 int res1 = 0 ;
13714 bool temp2 = false ;
13715 PyObject * obj0 = 0 ;
13716 PyObject * obj1 = 0 ;
13717 char * kwnames[] = {
13718 (char *) "self",(char *) "szDomain", NULL
13719 };
13720
13721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13723 if (!SWIG_IsOK(res1)) {
13724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13725 }
13726 arg1 = reinterpret_cast< wxLocale * >(argp1);
13727 {
13728 arg2 = wxString_in_helper(obj1);
13729 if (arg2 == NULL) SWIG_fail;
13730 temp2 = true;
13731 }
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13740 }
13741 {
13742 if (temp2)
13743 delete arg2;
13744 }
13745 return resultobj;
13746 fail:
13747 {
13748 if (temp2)
13749 delete arg2;
13750 }
13751 return NULL;
13752 }
13753
13754
13755 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13756 PyObject *resultobj = 0;
13757 int arg1 ;
13758 wxLanguageInfo *result = 0 ;
13759 int val1 ;
13760 int ecode1 = 0 ;
13761 PyObject * obj0 = 0 ;
13762 char * kwnames[] = {
13763 (char *) "lang", NULL
13764 };
13765
13766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13767 ecode1 = SWIG_AsVal_int(obj0, &val1);
13768 if (!SWIG_IsOK(ecode1)) {
13769 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13770 }
13771 arg1 = static_cast< int >(val1);
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13775 wxPyEndAllowThreads(__tstate);
13776 if (PyErr_Occurred()) SWIG_fail;
13777 }
13778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13779 return resultobj;
13780 fail:
13781 return NULL;
13782 }
13783
13784
13785 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13786 PyObject *resultobj = 0;
13787 int arg1 ;
13788 wxString result;
13789 int val1 ;
13790 int ecode1 = 0 ;
13791 PyObject * obj0 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "lang", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13797 ecode1 = SWIG_AsVal_int(obj0, &val1);
13798 if (!SWIG_IsOK(ecode1)) {
13799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13800 }
13801 arg1 = static_cast< int >(val1);
13802 {
13803 PyThreadState* __tstate = wxPyBeginAllowThreads();
13804 result = wxLocale::GetLanguageName(arg1);
13805 wxPyEndAllowThreads(__tstate);
13806 if (PyErr_Occurred()) SWIG_fail;
13807 }
13808 {
13809 #if wxUSE_UNICODE
13810 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13811 #else
13812 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13813 #endif
13814 }
13815 return resultobj;
13816 fail:
13817 return NULL;
13818 }
13819
13820
13821 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13822 PyObject *resultobj = 0;
13823 wxString *arg1 = 0 ;
13824 wxLanguageInfo *result = 0 ;
13825 bool temp1 = false ;
13826 PyObject * obj0 = 0 ;
13827 char * kwnames[] = {
13828 (char *) "locale", NULL
13829 };
13830
13831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13832 {
13833 arg1 = wxString_in_helper(obj0);
13834 if (arg1 == NULL) SWIG_fail;
13835 temp1 = true;
13836 }
13837 {
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13844 {
13845 if (temp1)
13846 delete arg1;
13847 }
13848 return resultobj;
13849 fail:
13850 {
13851 if (temp1)
13852 delete arg1;
13853 }
13854 return NULL;
13855 }
13856
13857
13858 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13859 PyObject *resultobj = 0;
13860 wxLanguageInfo *arg1 = 0 ;
13861 void *argp1 = 0 ;
13862 int res1 = 0 ;
13863 PyObject * obj0 = 0 ;
13864 char * kwnames[] = {
13865 (char *) "info", NULL
13866 };
13867
13868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13869 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13870 if (!SWIG_IsOK(res1)) {
13871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13872 }
13873 if (!argp1) {
13874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13875 }
13876 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_Py_Void();
13884 return resultobj;
13885 fail:
13886 return NULL;
13887 }
13888
13889
13890 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj = 0;
13892 wxLocale *arg1 = (wxLocale *) 0 ;
13893 wxString *arg2 = 0 ;
13894 wxString const &arg3_defvalue = wxPyEmptyString ;
13895 wxString *arg3 = (wxString *) &arg3_defvalue ;
13896 wxString result;
13897 void *argp1 = 0 ;
13898 int res1 = 0 ;
13899 bool temp2 = false ;
13900 bool temp3 = false ;
13901 PyObject * obj0 = 0 ;
13902 PyObject * obj1 = 0 ;
13903 PyObject * obj2 = 0 ;
13904 char * kwnames[] = {
13905 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13906 };
13907
13908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13910 if (!SWIG_IsOK(res1)) {
13911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13912 }
13913 arg1 = reinterpret_cast< wxLocale * >(argp1);
13914 {
13915 arg2 = wxString_in_helper(obj1);
13916 if (arg2 == NULL) SWIG_fail;
13917 temp2 = true;
13918 }
13919 if (obj2) {
13920 {
13921 arg3 = wxString_in_helper(obj2);
13922 if (arg3 == NULL) SWIG_fail;
13923 temp3 = true;
13924 }
13925 }
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 {
13933 #if wxUSE_UNICODE
13934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13935 #else
13936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13937 #endif
13938 }
13939 {
13940 if (temp2)
13941 delete arg2;
13942 }
13943 {
13944 if (temp3)
13945 delete arg3;
13946 }
13947 return resultobj;
13948 fail:
13949 {
13950 if (temp2)
13951 delete arg2;
13952 }
13953 {
13954 if (temp3)
13955 delete arg3;
13956 }
13957 return NULL;
13958 }
13959
13960
13961 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13962 PyObject *resultobj = 0;
13963 wxLocale *arg1 = (wxLocale *) 0 ;
13964 wxString *result = 0 ;
13965 void *argp1 = 0 ;
13966 int res1 = 0 ;
13967 PyObject *swig_obj[1] ;
13968
13969 if (!args) SWIG_fail;
13970 swig_obj[0] = args;
13971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13972 if (!SWIG_IsOK(res1)) {
13973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13974 }
13975 arg1 = reinterpret_cast< wxLocale * >(argp1);
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 {
13979 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13980 result = (wxString *) &_result_ref;
13981 }
13982 wxPyEndAllowThreads(__tstate);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 }
13985 {
13986 #if wxUSE_UNICODE
13987 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13988 #else
13989 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13990 #endif
13991 }
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13999 PyObject *obj;
14000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14001 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14002 return SWIG_Py_Void();
14003 }
14004
14005 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14006 return SWIG_Python_InitShadowInstance(args);
14007 }
14008
14009 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14010 PyObject *resultobj = 0;
14011 wxLocale *result = 0 ;
14012
14013 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (wxLocale *)wxGetLocale();
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14021 return resultobj;
14022 fail:
14023 return NULL;
14024 }
14025
14026
14027 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14028 PyObject *resultobj = 0;
14029 wxString *arg1 = 0 ;
14030 wxString result;
14031 bool temp1 = false ;
14032
14033 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14034 {
14035 arg1 = wxString_in_helper(swig_obj[0]);
14036 if (arg1 == NULL) SWIG_fail;
14037 temp1 = true;
14038 }
14039 {
14040 PyThreadState* __tstate = wxPyBeginAllowThreads();
14041 result = wxGetTranslation((wxString const &)*arg1);
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 #if wxUSE_UNICODE
14047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14048 #else
14049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14050 #endif
14051 }
14052 {
14053 if (temp1)
14054 delete arg1;
14055 }
14056 return resultobj;
14057 fail:
14058 {
14059 if (temp1)
14060 delete arg1;
14061 }
14062 return NULL;
14063 }
14064
14065
14066 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14067 PyObject *resultobj = 0;
14068 wxString *arg1 = 0 ;
14069 wxString *arg2 = 0 ;
14070 size_t arg3 ;
14071 wxString result;
14072 bool temp1 = false ;
14073 bool temp2 = false ;
14074 size_t val3 ;
14075 int ecode3 = 0 ;
14076
14077 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14078 {
14079 arg1 = wxString_in_helper(swig_obj[0]);
14080 if (arg1 == NULL) SWIG_fail;
14081 temp1 = true;
14082 }
14083 {
14084 arg2 = wxString_in_helper(swig_obj[1]);
14085 if (arg2 == NULL) SWIG_fail;
14086 temp2 = true;
14087 }
14088 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14089 if (!SWIG_IsOK(ecode3)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14091 }
14092 arg3 = static_cast< size_t >(val3);
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 {
14100 #if wxUSE_UNICODE
14101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14102 #else
14103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14104 #endif
14105 }
14106 {
14107 if (temp1)
14108 delete arg1;
14109 }
14110 {
14111 if (temp2)
14112 delete arg2;
14113 }
14114 return resultobj;
14115 fail:
14116 {
14117 if (temp1)
14118 delete arg1;
14119 }
14120 {
14121 if (temp2)
14122 delete arg2;
14123 }
14124 return NULL;
14125 }
14126
14127
14128 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14129 int argc;
14130 PyObject *argv[4];
14131
14132 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14133 --argc;
14134 if (argc == 1) {
14135 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14136 }
14137 if (argc == 3) {
14138 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14139 }
14140
14141 fail:
14142 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14143 return NULL;
14144 }
14145
14146
14147 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14148 PyObject *resultobj = 0;
14149 wxEncodingConverter *result = 0 ;
14150
14151 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14152 {
14153 PyThreadState* __tstate = wxPyBeginAllowThreads();
14154 result = (wxEncodingConverter *)new wxEncodingConverter();
14155 wxPyEndAllowThreads(__tstate);
14156 if (PyErr_Occurred()) SWIG_fail;
14157 }
14158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14159 return resultobj;
14160 fail:
14161 return NULL;
14162 }
14163
14164
14165 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14166 PyObject *resultobj = 0;
14167 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14168 void *argp1 = 0 ;
14169 int res1 = 0 ;
14170 PyObject *swig_obj[1] ;
14171
14172 if (!args) SWIG_fail;
14173 swig_obj[0] = args;
14174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14175 if (!SWIG_IsOK(res1)) {
14176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14177 }
14178 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14179 {
14180 PyThreadState* __tstate = wxPyBeginAllowThreads();
14181 delete arg1;
14182
14183 wxPyEndAllowThreads(__tstate);
14184 if (PyErr_Occurred()) SWIG_fail;
14185 }
14186 resultobj = SWIG_Py_Void();
14187 return resultobj;
14188 fail:
14189 return NULL;
14190 }
14191
14192
14193 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14194 PyObject *resultobj = 0;
14195 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14196 wxFontEncoding arg2 ;
14197 wxFontEncoding arg3 ;
14198 int arg4 = (int) wxCONVERT_STRICT ;
14199 bool result;
14200 void *argp1 = 0 ;
14201 int res1 = 0 ;
14202 int val2 ;
14203 int ecode2 = 0 ;
14204 int val3 ;
14205 int ecode3 = 0 ;
14206 int val4 ;
14207 int ecode4 = 0 ;
14208 PyObject * obj0 = 0 ;
14209 PyObject * obj1 = 0 ;
14210 PyObject * obj2 = 0 ;
14211 PyObject * obj3 = 0 ;
14212 char * kwnames[] = {
14213 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14214 };
14215
14216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14218 if (!SWIG_IsOK(res1)) {
14219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14220 }
14221 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14222 ecode2 = SWIG_AsVal_int(obj1, &val2);
14223 if (!SWIG_IsOK(ecode2)) {
14224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14225 }
14226 arg2 = static_cast< wxFontEncoding >(val2);
14227 ecode3 = SWIG_AsVal_int(obj2, &val3);
14228 if (!SWIG_IsOK(ecode3)) {
14229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14230 }
14231 arg3 = static_cast< wxFontEncoding >(val3);
14232 if (obj3) {
14233 ecode4 = SWIG_AsVal_int(obj3, &val4);
14234 if (!SWIG_IsOK(ecode4)) {
14235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14236 }
14237 arg4 = static_cast< int >(val4);
14238 }
14239 {
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 {
14246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14247 }
14248 return resultobj;
14249 fail:
14250 return NULL;
14251 }
14252
14253
14254 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14255 PyObject *resultobj = 0;
14256 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14257 wxString *arg2 = 0 ;
14258 wxString result;
14259 void *argp1 = 0 ;
14260 int res1 = 0 ;
14261 bool temp2 = false ;
14262 PyObject * obj0 = 0 ;
14263 PyObject * obj1 = 0 ;
14264 char * kwnames[] = {
14265 (char *) "self",(char *) "input", NULL
14266 };
14267
14268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14270 if (!SWIG_IsOK(res1)) {
14271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14272 }
14273 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14274 {
14275 arg2 = wxString_in_helper(obj1);
14276 if (arg2 == NULL) SWIG_fail;
14277 temp2 = true;
14278 }
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 result = (arg1)->Convert((wxString const &)*arg2);
14282 wxPyEndAllowThreads(__tstate);
14283 if (PyErr_Occurred()) SWIG_fail;
14284 }
14285 {
14286 #if wxUSE_UNICODE
14287 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14288 #else
14289 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14290 #endif
14291 }
14292 {
14293 if (temp2)
14294 delete arg2;
14295 }
14296 return resultobj;
14297 fail:
14298 {
14299 if (temp2)
14300 delete arg2;
14301 }
14302 return NULL;
14303 }
14304
14305
14306 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14307 PyObject *resultobj = 0;
14308 wxFontEncoding arg1 ;
14309 int arg2 = (int) wxPLATFORM_CURRENT ;
14310 wxFontEncodingArray result;
14311 int val1 ;
14312 int ecode1 = 0 ;
14313 int val2 ;
14314 int ecode2 = 0 ;
14315 PyObject * obj0 = 0 ;
14316 PyObject * obj1 = 0 ;
14317 char * kwnames[] = {
14318 (char *) "enc",(char *) "platform", NULL
14319 };
14320
14321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14322 ecode1 = SWIG_AsVal_int(obj0, &val1);
14323 if (!SWIG_IsOK(ecode1)) {
14324 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14325 }
14326 arg1 = static_cast< wxFontEncoding >(val1);
14327 if (obj1) {
14328 ecode2 = SWIG_AsVal_int(obj1, &val2);
14329 if (!SWIG_IsOK(ecode2)) {
14330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14331 }
14332 arg2 = static_cast< int >(val2);
14333 }
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 {
14341 resultobj = PyList_New(0);
14342 for (size_t i=0; i < (&result)->GetCount(); i++) {
14343 PyObject* number = PyInt_FromLong((&result)->Item(i));
14344 PyList_Append(resultobj, number);
14345 Py_DECREF(number);
14346 }
14347 }
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj = 0;
14356 wxFontEncoding arg1 ;
14357 wxFontEncodingArray result;
14358 int val1 ;
14359 int ecode1 = 0 ;
14360 PyObject * obj0 = 0 ;
14361 char * kwnames[] = {
14362 (char *) "enc", NULL
14363 };
14364
14365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14366 ecode1 = SWIG_AsVal_int(obj0, &val1);
14367 if (!SWIG_IsOK(ecode1)) {
14368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14369 }
14370 arg1 = static_cast< wxFontEncoding >(val1);
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = wxEncodingConverter::GetAllEquivalents(arg1);
14374 wxPyEndAllowThreads(__tstate);
14375 if (PyErr_Occurred()) SWIG_fail;
14376 }
14377 {
14378 resultobj = PyList_New(0);
14379 for (size_t i=0; i < (&result)->GetCount(); i++) {
14380 PyObject* number = PyInt_FromLong((&result)->Item(i));
14381 PyList_Append(resultobj, number);
14382 Py_DECREF(number);
14383 }
14384 }
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14392 PyObject *resultobj = 0;
14393 wxFontEncoding arg1 ;
14394 wxFontEncoding arg2 ;
14395 bool result;
14396 int val1 ;
14397 int ecode1 = 0 ;
14398 int val2 ;
14399 int ecode2 = 0 ;
14400 PyObject * obj0 = 0 ;
14401 PyObject * obj1 = 0 ;
14402 char * kwnames[] = {
14403 (char *) "encIn",(char *) "encOut", NULL
14404 };
14405
14406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14407 ecode1 = SWIG_AsVal_int(obj0, &val1);
14408 if (!SWIG_IsOK(ecode1)) {
14409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14410 }
14411 arg1 = static_cast< wxFontEncoding >(val1);
14412 ecode2 = SWIG_AsVal_int(obj1, &val2);
14413 if (!SWIG_IsOK(ecode2)) {
14414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14415 }
14416 arg2 = static_cast< wxFontEncoding >(val2);
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14420 wxPyEndAllowThreads(__tstate);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 }
14423 {
14424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14425 }
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14433 PyObject *obj;
14434 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14435 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14436 return SWIG_Py_Void();
14437 }
14438
14439 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14440 return SWIG_Python_InitShadowInstance(args);
14441 }
14442
14443 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14444 PyObject *resultobj = 0;
14445 wxDC *arg1 = (wxDC *) 0 ;
14446 void *argp1 = 0 ;
14447 int res1 = 0 ;
14448 PyObject *swig_obj[1] ;
14449
14450 if (!args) SWIG_fail;
14451 swig_obj[0] = args;
14452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14453 if (!SWIG_IsOK(res1)) {
14454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14455 }
14456 arg1 = reinterpret_cast< wxDC * >(argp1);
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 delete arg1;
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 resultobj = SWIG_Py_Void();
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj = 0;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 int arg2 ;
14475 int arg3 ;
14476 wxColour *arg4 = 0 ;
14477 int arg5 = (int) wxFLOOD_SURFACE ;
14478 bool result;
14479 void *argp1 = 0 ;
14480 int res1 = 0 ;
14481 int val2 ;
14482 int ecode2 = 0 ;
14483 int val3 ;
14484 int ecode3 = 0 ;
14485 wxColour temp4 ;
14486 int val5 ;
14487 int ecode5 = 0 ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 PyObject * obj2 = 0 ;
14491 PyObject * obj3 = 0 ;
14492 PyObject * obj4 = 0 ;
14493 char * kwnames[] = {
14494 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14495 };
14496
14497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14501 }
14502 arg1 = reinterpret_cast< wxDC * >(argp1);
14503 ecode2 = SWIG_AsVal_int(obj1, &val2);
14504 if (!SWIG_IsOK(ecode2)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14506 }
14507 arg2 = static_cast< int >(val2);
14508 ecode3 = SWIG_AsVal_int(obj2, &val3);
14509 if (!SWIG_IsOK(ecode3)) {
14510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14511 }
14512 arg3 = static_cast< int >(val3);
14513 {
14514 arg4 = &temp4;
14515 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14516 }
14517 if (obj4) {
14518 ecode5 = SWIG_AsVal_int(obj4, &val5);
14519 if (!SWIG_IsOK(ecode5)) {
14520 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14521 }
14522 arg5 = static_cast< int >(val5);
14523 }
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 {
14531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14532 }
14533 return resultobj;
14534 fail:
14535 return NULL;
14536 }
14537
14538
14539 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj = 0;
14541 wxDC *arg1 = (wxDC *) 0 ;
14542 wxPoint *arg2 = 0 ;
14543 wxColour *arg3 = 0 ;
14544 int arg4 = (int) wxFLOOD_SURFACE ;
14545 bool result;
14546 void *argp1 = 0 ;
14547 int res1 = 0 ;
14548 wxPoint temp2 ;
14549 wxColour temp3 ;
14550 int val4 ;
14551 int ecode4 = 0 ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 PyObject * obj2 = 0 ;
14555 PyObject * obj3 = 0 ;
14556 char * kwnames[] = {
14557 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14558 };
14559
14560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14562 if (!SWIG_IsOK(res1)) {
14563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14564 }
14565 arg1 = reinterpret_cast< wxDC * >(argp1);
14566 {
14567 arg2 = &temp2;
14568 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14569 }
14570 {
14571 arg3 = &temp3;
14572 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14573 }
14574 if (obj3) {
14575 ecode4 = SWIG_AsVal_int(obj3, &val4);
14576 if (!SWIG_IsOK(ecode4)) {
14577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14578 }
14579 arg4 = static_cast< int >(val4);
14580 }
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 {
14588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14589 }
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj = 0;
14598 wxDC *arg1 = (wxDC *) 0 ;
14599 wxRect *arg2 = 0 ;
14600 wxColour *arg3 = 0 ;
14601 wxColour *arg4 = 0 ;
14602 wxPoint *arg5 = 0 ;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 wxRect temp2 ;
14606 wxColour temp3 ;
14607 wxColour temp4 ;
14608 wxPoint temp5 ;
14609 PyObject * obj0 = 0 ;
14610 PyObject * obj1 = 0 ;
14611 PyObject * obj2 = 0 ;
14612 PyObject * obj3 = 0 ;
14613 PyObject * obj4 = 0 ;
14614 char * kwnames[] = {
14615 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14616 };
14617
14618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14620 if (!SWIG_IsOK(res1)) {
14621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14622 }
14623 arg1 = reinterpret_cast< wxDC * >(argp1);
14624 {
14625 arg2 = &temp2;
14626 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14627 }
14628 {
14629 arg3 = &temp3;
14630 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14631 }
14632 {
14633 arg4 = &temp4;
14634 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14635 }
14636 {
14637 arg5 = &temp5;
14638 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14639 }
14640 {
14641 PyThreadState* __tstate = wxPyBeginAllowThreads();
14642 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14643 wxPyEndAllowThreads(__tstate);
14644 if (PyErr_Occurred()) SWIG_fail;
14645 }
14646 resultobj = SWIG_Py_Void();
14647 return resultobj;
14648 fail:
14649 return NULL;
14650 }
14651
14652
14653 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj = 0;
14655 wxDC *arg1 = (wxDC *) 0 ;
14656 wxRect *arg2 = 0 ;
14657 wxColour *arg3 = 0 ;
14658 wxColour *arg4 = 0 ;
14659 wxDirection arg5 = (wxDirection) wxEAST ;
14660 void *argp1 = 0 ;
14661 int res1 = 0 ;
14662 wxRect temp2 ;
14663 wxColour temp3 ;
14664 wxColour temp4 ;
14665 int val5 ;
14666 int ecode5 = 0 ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 PyObject * obj2 = 0 ;
14670 PyObject * obj3 = 0 ;
14671 PyObject * obj4 = 0 ;
14672 char * kwnames[] = {
14673 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14674 };
14675
14676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14680 }
14681 arg1 = reinterpret_cast< wxDC * >(argp1);
14682 {
14683 arg2 = &temp2;
14684 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14685 }
14686 {
14687 arg3 = &temp3;
14688 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14689 }
14690 {
14691 arg4 = &temp4;
14692 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14693 }
14694 if (obj4) {
14695 ecode5 = SWIG_AsVal_int(obj4, &val5);
14696 if (!SWIG_IsOK(ecode5)) {
14697 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14698 }
14699 arg5 = static_cast< wxDirection >(val5);
14700 }
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_Py_Void();
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj = 0;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 int arg2 ;
14718 int arg3 ;
14719 wxColour result;
14720 void *argp1 = 0 ;
14721 int res1 = 0 ;
14722 int val2 ;
14723 int ecode2 = 0 ;
14724 int val3 ;
14725 int ecode3 = 0 ;
14726 PyObject * obj0 = 0 ;
14727 PyObject * obj1 = 0 ;
14728 PyObject * obj2 = 0 ;
14729 char * kwnames[] = {
14730 (char *) "self",(char *) "x",(char *) "y", NULL
14731 };
14732
14733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14735 if (!SWIG_IsOK(res1)) {
14736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14737 }
14738 arg1 = reinterpret_cast< wxDC * >(argp1);
14739 ecode2 = SWIG_AsVal_int(obj1, &val2);
14740 if (!SWIG_IsOK(ecode2)) {
14741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14742 }
14743 arg2 = static_cast< int >(val2);
14744 ecode3 = SWIG_AsVal_int(obj2, &val3);
14745 if (!SWIG_IsOK(ecode3)) {
14746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14747 }
14748 arg3 = static_cast< int >(val3);
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = wxDC_GetPixel(arg1,arg2,arg3);
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj = 0;
14764 wxDC *arg1 = (wxDC *) 0 ;
14765 wxPoint *arg2 = 0 ;
14766 wxColour result;
14767 void *argp1 = 0 ;
14768 int res1 = 0 ;
14769 wxPoint temp2 ;
14770 PyObject * obj0 = 0 ;
14771 PyObject * obj1 = 0 ;
14772 char * kwnames[] = {
14773 (char *) "self",(char *) "pt", NULL
14774 };
14775
14776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14778 if (!SWIG_IsOK(res1)) {
14779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14780 }
14781 arg1 = reinterpret_cast< wxDC * >(argp1);
14782 {
14783 arg2 = &temp2;
14784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14785 }
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14793 return resultobj;
14794 fail:
14795 return NULL;
14796 }
14797
14798
14799 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14800 PyObject *resultobj = 0;
14801 wxDC *arg1 = (wxDC *) 0 ;
14802 int arg2 ;
14803 int arg3 ;
14804 int arg4 ;
14805 int arg5 ;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 int val2 ;
14809 int ecode2 = 0 ;
14810 int val3 ;
14811 int ecode3 = 0 ;
14812 int val4 ;
14813 int ecode4 = 0 ;
14814 int val5 ;
14815 int ecode5 = 0 ;
14816 PyObject * obj0 = 0 ;
14817 PyObject * obj1 = 0 ;
14818 PyObject * obj2 = 0 ;
14819 PyObject * obj3 = 0 ;
14820 PyObject * obj4 = 0 ;
14821 char * kwnames[] = {
14822 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14823 };
14824
14825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14827 if (!SWIG_IsOK(res1)) {
14828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14829 }
14830 arg1 = reinterpret_cast< wxDC * >(argp1);
14831 ecode2 = SWIG_AsVal_int(obj1, &val2);
14832 if (!SWIG_IsOK(ecode2)) {
14833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14834 }
14835 arg2 = static_cast< int >(val2);
14836 ecode3 = SWIG_AsVal_int(obj2, &val3);
14837 if (!SWIG_IsOK(ecode3)) {
14838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14839 }
14840 arg3 = static_cast< int >(val3);
14841 ecode4 = SWIG_AsVal_int(obj3, &val4);
14842 if (!SWIG_IsOK(ecode4)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14844 }
14845 arg4 = static_cast< int >(val4);
14846 ecode5 = SWIG_AsVal_int(obj4, &val5);
14847 if (!SWIG_IsOK(ecode5)) {
14848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14849 }
14850 arg5 = static_cast< int >(val5);
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14854 wxPyEndAllowThreads(__tstate);
14855 if (PyErr_Occurred()) SWIG_fail;
14856 }
14857 resultobj = SWIG_Py_Void();
14858 return resultobj;
14859 fail:
14860 return NULL;
14861 }
14862
14863
14864 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14865 PyObject *resultobj = 0;
14866 wxDC *arg1 = (wxDC *) 0 ;
14867 wxPoint *arg2 = 0 ;
14868 wxPoint *arg3 = 0 ;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 wxPoint temp2 ;
14872 wxPoint temp3 ;
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 PyObject * obj2 = 0 ;
14876 char * kwnames[] = {
14877 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14878 };
14879
14880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14884 }
14885 arg1 = reinterpret_cast< wxDC * >(argp1);
14886 {
14887 arg2 = &temp2;
14888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14889 }
14890 {
14891 arg3 = &temp3;
14892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14893 }
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
14900 resultobj = SWIG_Py_Void();
14901 return resultobj;
14902 fail:
14903 return NULL;
14904 }
14905
14906
14907 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj = 0;
14909 wxDC *arg1 = (wxDC *) 0 ;
14910 int arg2 ;
14911 int arg3 ;
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 int val2 ;
14915 int ecode2 = 0 ;
14916 int val3 ;
14917 int ecode3 = 0 ;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14921 char * kwnames[] = {
14922 (char *) "self",(char *) "x",(char *) "y", NULL
14923 };
14924
14925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14927 if (!SWIG_IsOK(res1)) {
14928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14929 }
14930 arg1 = reinterpret_cast< wxDC * >(argp1);
14931 ecode2 = SWIG_AsVal_int(obj1, &val2);
14932 if (!SWIG_IsOK(ecode2)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14934 }
14935 arg2 = static_cast< int >(val2);
14936 ecode3 = SWIG_AsVal_int(obj2, &val3);
14937 if (!SWIG_IsOK(ecode3)) {
14938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14939 }
14940 arg3 = static_cast< int >(val3);
14941 {
14942 PyThreadState* __tstate = wxPyBeginAllowThreads();
14943 (arg1)->CrossHair(arg2,arg3);
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_Py_Void();
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj = 0;
14956 wxDC *arg1 = (wxDC *) 0 ;
14957 wxPoint *arg2 = 0 ;
14958 void *argp1 = 0 ;
14959 int res1 = 0 ;
14960 wxPoint temp2 ;
14961 PyObject * obj0 = 0 ;
14962 PyObject * obj1 = 0 ;
14963 char * kwnames[] = {
14964 (char *) "self",(char *) "pt", NULL
14965 };
14966
14967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14969 if (!SWIG_IsOK(res1)) {
14970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14971 }
14972 arg1 = reinterpret_cast< wxDC * >(argp1);
14973 {
14974 arg2 = &temp2;
14975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14976 }
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 (arg1)->CrossHair((wxPoint const &)*arg2);
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 resultobj = SWIG_Py_Void();
14984 return resultobj;
14985 fail:
14986 return NULL;
14987 }
14988
14989
14990 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = 0;
14992 wxDC *arg1 = (wxDC *) 0 ;
14993 int arg2 ;
14994 int arg3 ;
14995 int arg4 ;
14996 int arg5 ;
14997 int arg6 ;
14998 int arg7 ;
14999 void *argp1 = 0 ;
15000 int res1 = 0 ;
15001 int val2 ;
15002 int ecode2 = 0 ;
15003 int val3 ;
15004 int ecode3 = 0 ;
15005 int val4 ;
15006 int ecode4 = 0 ;
15007 int val5 ;
15008 int ecode5 = 0 ;
15009 int val6 ;
15010 int ecode6 = 0 ;
15011 int val7 ;
15012 int ecode7 = 0 ;
15013 PyObject * obj0 = 0 ;
15014 PyObject * obj1 = 0 ;
15015 PyObject * obj2 = 0 ;
15016 PyObject * obj3 = 0 ;
15017 PyObject * obj4 = 0 ;
15018 PyObject * obj5 = 0 ;
15019 PyObject * obj6 = 0 ;
15020 char * kwnames[] = {
15021 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15022 };
15023
15024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15026 if (!SWIG_IsOK(res1)) {
15027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15028 }
15029 arg1 = reinterpret_cast< wxDC * >(argp1);
15030 ecode2 = SWIG_AsVal_int(obj1, &val2);
15031 if (!SWIG_IsOK(ecode2)) {
15032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15033 }
15034 arg2 = static_cast< int >(val2);
15035 ecode3 = SWIG_AsVal_int(obj2, &val3);
15036 if (!SWIG_IsOK(ecode3)) {
15037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15038 }
15039 arg3 = static_cast< int >(val3);
15040 ecode4 = SWIG_AsVal_int(obj3, &val4);
15041 if (!SWIG_IsOK(ecode4)) {
15042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15043 }
15044 arg4 = static_cast< int >(val4);
15045 ecode5 = SWIG_AsVal_int(obj4, &val5);
15046 if (!SWIG_IsOK(ecode5)) {
15047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15048 }
15049 arg5 = static_cast< int >(val5);
15050 ecode6 = SWIG_AsVal_int(obj5, &val6);
15051 if (!SWIG_IsOK(ecode6)) {
15052 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15053 }
15054 arg6 = static_cast< int >(val6);
15055 ecode7 = SWIG_AsVal_int(obj6, &val7);
15056 if (!SWIG_IsOK(ecode7)) {
15057 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15058 }
15059 arg7 = static_cast< int >(val7);
15060 {
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
15066 resultobj = SWIG_Py_Void();
15067 return resultobj;
15068 fail:
15069 return NULL;
15070 }
15071
15072
15073 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj = 0;
15075 wxDC *arg1 = (wxDC *) 0 ;
15076 wxPoint *arg2 = 0 ;
15077 wxPoint *arg3 = 0 ;
15078 wxPoint *arg4 = 0 ;
15079 void *argp1 = 0 ;
15080 int res1 = 0 ;
15081 wxPoint temp2 ;
15082 wxPoint temp3 ;
15083 wxPoint temp4 ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 PyObject * obj2 = 0 ;
15087 PyObject * obj3 = 0 ;
15088 char * kwnames[] = {
15089 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15090 };
15091
15092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15094 if (!SWIG_IsOK(res1)) {
15095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15096 }
15097 arg1 = reinterpret_cast< wxDC * >(argp1);
15098 {
15099 arg2 = &temp2;
15100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15101 }
15102 {
15103 arg3 = &temp3;
15104 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15105 }
15106 {
15107 arg4 = &temp4;
15108 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15109 }
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
15116 resultobj = SWIG_Py_Void();
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj = 0;
15125 wxDC *arg1 = (wxDC *) 0 ;
15126 int arg2 ;
15127 int arg3 ;
15128 int arg4 ;
15129 int arg5 ;
15130 void *argp1 = 0 ;
15131 int res1 = 0 ;
15132 int val2 ;
15133 int ecode2 = 0 ;
15134 int val3 ;
15135 int ecode3 = 0 ;
15136 int val4 ;
15137 int ecode4 = 0 ;
15138 int val5 ;
15139 int ecode5 = 0 ;
15140 PyObject * obj0 = 0 ;
15141 PyObject * obj1 = 0 ;
15142 PyObject * obj2 = 0 ;
15143 PyObject * obj3 = 0 ;
15144 PyObject * obj4 = 0 ;
15145 char * kwnames[] = {
15146 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15147 };
15148
15149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15151 if (!SWIG_IsOK(res1)) {
15152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15153 }
15154 arg1 = reinterpret_cast< wxDC * >(argp1);
15155 ecode2 = SWIG_AsVal_int(obj1, &val2);
15156 if (!SWIG_IsOK(ecode2)) {
15157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15158 }
15159 arg2 = static_cast< int >(val2);
15160 ecode3 = SWIG_AsVal_int(obj2, &val3);
15161 if (!SWIG_IsOK(ecode3)) {
15162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15163 }
15164 arg3 = static_cast< int >(val3);
15165 ecode4 = SWIG_AsVal_int(obj3, &val4);
15166 if (!SWIG_IsOK(ecode4)) {
15167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15168 }
15169 arg4 = static_cast< int >(val4);
15170 ecode5 = SWIG_AsVal_int(obj4, &val5);
15171 if (!SWIG_IsOK(ecode5)) {
15172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15173 }
15174 arg5 = static_cast< int >(val5);
15175 {
15176 PyThreadState* __tstate = wxPyBeginAllowThreads();
15177 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15178 wxPyEndAllowThreads(__tstate);
15179 if (PyErr_Occurred()) SWIG_fail;
15180 }
15181 resultobj = SWIG_Py_Void();
15182 return resultobj;
15183 fail:
15184 return NULL;
15185 }
15186
15187
15188 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15189 PyObject *resultobj = 0;
15190 wxDC *arg1 = (wxDC *) 0 ;
15191 wxRect *arg2 = 0 ;
15192 void *argp1 = 0 ;
15193 int res1 = 0 ;
15194 wxRect temp2 ;
15195 PyObject * obj0 = 0 ;
15196 PyObject * obj1 = 0 ;
15197 char * kwnames[] = {
15198 (char *) "self",(char *) "rect", NULL
15199 };
15200
15201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15203 if (!SWIG_IsOK(res1)) {
15204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15205 }
15206 arg1 = reinterpret_cast< wxDC * >(argp1);
15207 {
15208 arg2 = &temp2;
15209 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15210 }
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = SWIG_Py_Void();
15218 return resultobj;
15219 fail:
15220 return NULL;
15221 }
15222
15223
15224 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj = 0;
15226 wxDC *arg1 = (wxDC *) 0 ;
15227 int arg2 ;
15228 int arg3 ;
15229 int arg4 ;
15230 int arg5 ;
15231 double arg6 ;
15232 double arg7 ;
15233 void *argp1 = 0 ;
15234 int res1 = 0 ;
15235 int val2 ;
15236 int ecode2 = 0 ;
15237 int val3 ;
15238 int ecode3 = 0 ;
15239 int val4 ;
15240 int ecode4 = 0 ;
15241 int val5 ;
15242 int ecode5 = 0 ;
15243 double val6 ;
15244 int ecode6 = 0 ;
15245 double val7 ;
15246 int ecode7 = 0 ;
15247 PyObject * obj0 = 0 ;
15248 PyObject * obj1 = 0 ;
15249 PyObject * obj2 = 0 ;
15250 PyObject * obj3 = 0 ;
15251 PyObject * obj4 = 0 ;
15252 PyObject * obj5 = 0 ;
15253 PyObject * obj6 = 0 ;
15254 char * kwnames[] = {
15255 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15256 };
15257
15258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15260 if (!SWIG_IsOK(res1)) {
15261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15262 }
15263 arg1 = reinterpret_cast< wxDC * >(argp1);
15264 ecode2 = SWIG_AsVal_int(obj1, &val2);
15265 if (!SWIG_IsOK(ecode2)) {
15266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15267 }
15268 arg2 = static_cast< int >(val2);
15269 ecode3 = SWIG_AsVal_int(obj2, &val3);
15270 if (!SWIG_IsOK(ecode3)) {
15271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15272 }
15273 arg3 = static_cast< int >(val3);
15274 ecode4 = SWIG_AsVal_int(obj3, &val4);
15275 if (!SWIG_IsOK(ecode4)) {
15276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15277 }
15278 arg4 = static_cast< int >(val4);
15279 ecode5 = SWIG_AsVal_int(obj4, &val5);
15280 if (!SWIG_IsOK(ecode5)) {
15281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15282 }
15283 arg5 = static_cast< int >(val5);
15284 ecode6 = SWIG_AsVal_double(obj5, &val6);
15285 if (!SWIG_IsOK(ecode6)) {
15286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15287 }
15288 arg6 = static_cast< double >(val6);
15289 ecode7 = SWIG_AsVal_double(obj6, &val7);
15290 if (!SWIG_IsOK(ecode7)) {
15291 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15292 }
15293 arg7 = static_cast< double >(val7);
15294 {
15295 PyThreadState* __tstate = wxPyBeginAllowThreads();
15296 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15297 wxPyEndAllowThreads(__tstate);
15298 if (PyErr_Occurred()) SWIG_fail;
15299 }
15300 resultobj = SWIG_Py_Void();
15301 return resultobj;
15302 fail:
15303 return NULL;
15304 }
15305
15306
15307 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15308 PyObject *resultobj = 0;
15309 wxDC *arg1 = (wxDC *) 0 ;
15310 wxPoint *arg2 = 0 ;
15311 wxSize *arg3 = 0 ;
15312 double arg4 ;
15313 double arg5 ;
15314 void *argp1 = 0 ;
15315 int res1 = 0 ;
15316 wxPoint temp2 ;
15317 wxSize temp3 ;
15318 double val4 ;
15319 int ecode4 = 0 ;
15320 double val5 ;
15321 int ecode5 = 0 ;
15322 PyObject * obj0 = 0 ;
15323 PyObject * obj1 = 0 ;
15324 PyObject * obj2 = 0 ;
15325 PyObject * obj3 = 0 ;
15326 PyObject * obj4 = 0 ;
15327 char * kwnames[] = {
15328 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15329 };
15330
15331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15333 if (!SWIG_IsOK(res1)) {
15334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15335 }
15336 arg1 = reinterpret_cast< wxDC * >(argp1);
15337 {
15338 arg2 = &temp2;
15339 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15340 }
15341 {
15342 arg3 = &temp3;
15343 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15344 }
15345 ecode4 = SWIG_AsVal_double(obj3, &val4);
15346 if (!SWIG_IsOK(ecode4)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15348 }
15349 arg4 = static_cast< double >(val4);
15350 ecode5 = SWIG_AsVal_double(obj4, &val5);
15351 if (!SWIG_IsOK(ecode5)) {
15352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15353 }
15354 arg5 = static_cast< double >(val5);
15355 {
15356 PyThreadState* __tstate = wxPyBeginAllowThreads();
15357 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 resultobj = SWIG_Py_Void();
15362 return resultobj;
15363 fail:
15364 return NULL;
15365 }
15366
15367
15368 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15369 PyObject *resultobj = 0;
15370 wxDC *arg1 = (wxDC *) 0 ;
15371 int arg2 ;
15372 int arg3 ;
15373 void *argp1 = 0 ;
15374 int res1 = 0 ;
15375 int val2 ;
15376 int ecode2 = 0 ;
15377 int val3 ;
15378 int ecode3 = 0 ;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 PyObject * obj2 = 0 ;
15382 char * kwnames[] = {
15383 (char *) "self",(char *) "x",(char *) "y", NULL
15384 };
15385
15386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15390 }
15391 arg1 = reinterpret_cast< wxDC * >(argp1);
15392 ecode2 = SWIG_AsVal_int(obj1, &val2);
15393 if (!SWIG_IsOK(ecode2)) {
15394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15395 }
15396 arg2 = static_cast< int >(val2);
15397 ecode3 = SWIG_AsVal_int(obj2, &val3);
15398 if (!SWIG_IsOK(ecode3)) {
15399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15400 }
15401 arg3 = static_cast< int >(val3);
15402 {
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 (arg1)->DrawPoint(arg2,arg3);
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_Py_Void();
15409 return resultobj;
15410 fail:
15411 return NULL;
15412 }
15413
15414
15415 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj = 0;
15417 wxDC *arg1 = (wxDC *) 0 ;
15418 wxPoint *arg2 = 0 ;
15419 void *argp1 = 0 ;
15420 int res1 = 0 ;
15421 wxPoint temp2 ;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 char * kwnames[] = {
15425 (char *) "self",(char *) "pt", NULL
15426 };
15427
15428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15430 if (!SWIG_IsOK(res1)) {
15431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15432 }
15433 arg1 = reinterpret_cast< wxDC * >(argp1);
15434 {
15435 arg2 = &temp2;
15436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15437 }
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 (arg1)->DrawPoint((wxPoint const &)*arg2);
15441 wxPyEndAllowThreads(__tstate);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 resultobj = SWIG_Py_Void();
15445 return resultobj;
15446 fail:
15447 return NULL;
15448 }
15449
15450
15451 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15452 PyObject *resultobj = 0;
15453 wxDC *arg1 = (wxDC *) 0 ;
15454 int arg2 ;
15455 int arg3 ;
15456 int arg4 ;
15457 int arg5 ;
15458 void *argp1 = 0 ;
15459 int res1 = 0 ;
15460 int val2 ;
15461 int ecode2 = 0 ;
15462 int val3 ;
15463 int ecode3 = 0 ;
15464 int val4 ;
15465 int ecode4 = 0 ;
15466 int val5 ;
15467 int ecode5 = 0 ;
15468 PyObject * obj0 = 0 ;
15469 PyObject * obj1 = 0 ;
15470 PyObject * obj2 = 0 ;
15471 PyObject * obj3 = 0 ;
15472 PyObject * obj4 = 0 ;
15473 char * kwnames[] = {
15474 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15475 };
15476
15477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15479 if (!SWIG_IsOK(res1)) {
15480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15481 }
15482 arg1 = reinterpret_cast< wxDC * >(argp1);
15483 ecode2 = SWIG_AsVal_int(obj1, &val2);
15484 if (!SWIG_IsOK(ecode2)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15486 }
15487 arg2 = static_cast< int >(val2);
15488 ecode3 = SWIG_AsVal_int(obj2, &val3);
15489 if (!SWIG_IsOK(ecode3)) {
15490 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15491 }
15492 arg3 = static_cast< int >(val3);
15493 ecode4 = SWIG_AsVal_int(obj3, &val4);
15494 if (!SWIG_IsOK(ecode4)) {
15495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15496 }
15497 arg4 = static_cast< int >(val4);
15498 ecode5 = SWIG_AsVal_int(obj4, &val5);
15499 if (!SWIG_IsOK(ecode5)) {
15500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15501 }
15502 arg5 = static_cast< int >(val5);
15503 {
15504 PyThreadState* __tstate = wxPyBeginAllowThreads();
15505 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = SWIG_Py_Void();
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = 0;
15518 wxDC *arg1 = (wxDC *) 0 ;
15519 wxRect *arg2 = 0 ;
15520 void *argp1 = 0 ;
15521 int res1 = 0 ;
15522 wxRect temp2 ;
15523 PyObject * obj0 = 0 ;
15524 PyObject * obj1 = 0 ;
15525 char * kwnames[] = {
15526 (char *) "self",(char *) "rect", NULL
15527 };
15528
15529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15531 if (!SWIG_IsOK(res1)) {
15532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15533 }
15534 arg1 = reinterpret_cast< wxDC * >(argp1);
15535 {
15536 arg2 = &temp2;
15537 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15538 }
15539 {
15540 PyThreadState* __tstate = wxPyBeginAllowThreads();
15541 (arg1)->DrawRectangle((wxRect const &)*arg2);
15542 wxPyEndAllowThreads(__tstate);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 }
15545 resultobj = SWIG_Py_Void();
15546 return resultobj;
15547 fail:
15548 return NULL;
15549 }
15550
15551
15552 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15553 PyObject *resultobj = 0;
15554 wxDC *arg1 = (wxDC *) 0 ;
15555 wxPoint *arg2 = 0 ;
15556 wxSize *arg3 = 0 ;
15557 void *argp1 = 0 ;
15558 int res1 = 0 ;
15559 wxPoint temp2 ;
15560 wxSize temp3 ;
15561 PyObject * obj0 = 0 ;
15562 PyObject * obj1 = 0 ;
15563 PyObject * obj2 = 0 ;
15564 char * kwnames[] = {
15565 (char *) "self",(char *) "pt",(char *) "sz", NULL
15566 };
15567
15568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15570 if (!SWIG_IsOK(res1)) {
15571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15572 }
15573 arg1 = reinterpret_cast< wxDC * >(argp1);
15574 {
15575 arg2 = &temp2;
15576 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15577 }
15578 {
15579 arg3 = &temp3;
15580 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15581 }
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 resultobj = SWIG_Py_Void();
15589 return resultobj;
15590 fail:
15591 return NULL;
15592 }
15593
15594
15595 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15596 PyObject *resultobj = 0;
15597 wxDC *arg1 = (wxDC *) 0 ;
15598 int arg2 ;
15599 int arg3 ;
15600 int arg4 ;
15601 int arg5 ;
15602 double arg6 ;
15603 void *argp1 = 0 ;
15604 int res1 = 0 ;
15605 int val2 ;
15606 int ecode2 = 0 ;
15607 int val3 ;
15608 int ecode3 = 0 ;
15609 int val4 ;
15610 int ecode4 = 0 ;
15611 int val5 ;
15612 int ecode5 = 0 ;
15613 double val6 ;
15614 int ecode6 = 0 ;
15615 PyObject * obj0 = 0 ;
15616 PyObject * obj1 = 0 ;
15617 PyObject * obj2 = 0 ;
15618 PyObject * obj3 = 0 ;
15619 PyObject * obj4 = 0 ;
15620 PyObject * obj5 = 0 ;
15621 char * kwnames[] = {
15622 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15623 };
15624
15625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15627 if (!SWIG_IsOK(res1)) {
15628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15629 }
15630 arg1 = reinterpret_cast< wxDC * >(argp1);
15631 ecode2 = SWIG_AsVal_int(obj1, &val2);
15632 if (!SWIG_IsOK(ecode2)) {
15633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15634 }
15635 arg2 = static_cast< int >(val2);
15636 ecode3 = SWIG_AsVal_int(obj2, &val3);
15637 if (!SWIG_IsOK(ecode3)) {
15638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15639 }
15640 arg3 = static_cast< int >(val3);
15641 ecode4 = SWIG_AsVal_int(obj3, &val4);
15642 if (!SWIG_IsOK(ecode4)) {
15643 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15644 }
15645 arg4 = static_cast< int >(val4);
15646 ecode5 = SWIG_AsVal_int(obj4, &val5);
15647 if (!SWIG_IsOK(ecode5)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15649 }
15650 arg5 = static_cast< int >(val5);
15651 ecode6 = SWIG_AsVal_double(obj5, &val6);
15652 if (!SWIG_IsOK(ecode6)) {
15653 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15654 }
15655 arg6 = static_cast< double >(val6);
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 resultobj = SWIG_Py_Void();
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj = 0;
15671 wxDC *arg1 = (wxDC *) 0 ;
15672 wxRect *arg2 = 0 ;
15673 double arg3 ;
15674 void *argp1 = 0 ;
15675 int res1 = 0 ;
15676 wxRect temp2 ;
15677 double val3 ;
15678 int ecode3 = 0 ;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 PyObject * obj2 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "self",(char *) "r",(char *) "radius", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15688 if (!SWIG_IsOK(res1)) {
15689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15690 }
15691 arg1 = reinterpret_cast< wxDC * >(argp1);
15692 {
15693 arg2 = &temp2;
15694 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15695 }
15696 ecode3 = SWIG_AsVal_double(obj2, &val3);
15697 if (!SWIG_IsOK(ecode3)) {
15698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15699 }
15700 arg3 = static_cast< double >(val3);
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15704 wxPyEndAllowThreads(__tstate);
15705 if (PyErr_Occurred()) SWIG_fail;
15706 }
15707 resultobj = SWIG_Py_Void();
15708 return resultobj;
15709 fail:
15710 return NULL;
15711 }
15712
15713
15714 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj = 0;
15716 wxDC *arg1 = (wxDC *) 0 ;
15717 wxPoint *arg2 = 0 ;
15718 wxSize *arg3 = 0 ;
15719 double arg4 ;
15720 void *argp1 = 0 ;
15721 int res1 = 0 ;
15722 wxPoint temp2 ;
15723 wxSize temp3 ;
15724 double val4 ;
15725 int ecode4 = 0 ;
15726 PyObject * obj0 = 0 ;
15727 PyObject * obj1 = 0 ;
15728 PyObject * obj2 = 0 ;
15729 PyObject * obj3 = 0 ;
15730 char * kwnames[] = {
15731 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15732 };
15733
15734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15736 if (!SWIG_IsOK(res1)) {
15737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15738 }
15739 arg1 = reinterpret_cast< wxDC * >(argp1);
15740 {
15741 arg2 = &temp2;
15742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15743 }
15744 {
15745 arg3 = &temp3;
15746 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15747 }
15748 ecode4 = SWIG_AsVal_double(obj3, &val4);
15749 if (!SWIG_IsOK(ecode4)) {
15750 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15751 }
15752 arg4 = static_cast< double >(val4);
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15756 wxPyEndAllowThreads(__tstate);
15757 if (PyErr_Occurred()) SWIG_fail;
15758 }
15759 resultobj = SWIG_Py_Void();
15760 return resultobj;
15761 fail:
15762 return NULL;
15763 }
15764
15765
15766 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15767 PyObject *resultobj = 0;
15768 wxDC *arg1 = (wxDC *) 0 ;
15769 int arg2 ;
15770 int arg3 ;
15771 int arg4 ;
15772 void *argp1 = 0 ;
15773 int res1 = 0 ;
15774 int val2 ;
15775 int ecode2 = 0 ;
15776 int val3 ;
15777 int ecode3 = 0 ;
15778 int val4 ;
15779 int ecode4 = 0 ;
15780 PyObject * obj0 = 0 ;
15781 PyObject * obj1 = 0 ;
15782 PyObject * obj2 = 0 ;
15783 PyObject * obj3 = 0 ;
15784 char * kwnames[] = {
15785 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15786 };
15787
15788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15790 if (!SWIG_IsOK(res1)) {
15791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15792 }
15793 arg1 = reinterpret_cast< wxDC * >(argp1);
15794 ecode2 = SWIG_AsVal_int(obj1, &val2);
15795 if (!SWIG_IsOK(ecode2)) {
15796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15797 }
15798 arg2 = static_cast< int >(val2);
15799 ecode3 = SWIG_AsVal_int(obj2, &val3);
15800 if (!SWIG_IsOK(ecode3)) {
15801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15802 }
15803 arg3 = static_cast< int >(val3);
15804 ecode4 = SWIG_AsVal_int(obj3, &val4);
15805 if (!SWIG_IsOK(ecode4)) {
15806 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15807 }
15808 arg4 = static_cast< int >(val4);
15809 {
15810 PyThreadState* __tstate = wxPyBeginAllowThreads();
15811 (arg1)->DrawCircle(arg2,arg3,arg4);
15812 wxPyEndAllowThreads(__tstate);
15813 if (PyErr_Occurred()) SWIG_fail;
15814 }
15815 resultobj = SWIG_Py_Void();
15816 return resultobj;
15817 fail:
15818 return NULL;
15819 }
15820
15821
15822 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15823 PyObject *resultobj = 0;
15824 wxDC *arg1 = (wxDC *) 0 ;
15825 wxPoint *arg2 = 0 ;
15826 int arg3 ;
15827 void *argp1 = 0 ;
15828 int res1 = 0 ;
15829 wxPoint temp2 ;
15830 int val3 ;
15831 int ecode3 = 0 ;
15832 PyObject * obj0 = 0 ;
15833 PyObject * obj1 = 0 ;
15834 PyObject * obj2 = 0 ;
15835 char * kwnames[] = {
15836 (char *) "self",(char *) "pt",(char *) "radius", NULL
15837 };
15838
15839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15841 if (!SWIG_IsOK(res1)) {
15842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15843 }
15844 arg1 = reinterpret_cast< wxDC * >(argp1);
15845 {
15846 arg2 = &temp2;
15847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15848 }
15849 ecode3 = SWIG_AsVal_int(obj2, &val3);
15850 if (!SWIG_IsOK(ecode3)) {
15851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15852 }
15853 arg3 = static_cast< int >(val3);
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 resultobj = SWIG_Py_Void();
15861 return resultobj;
15862 fail:
15863 return NULL;
15864 }
15865
15866
15867 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15868 PyObject *resultobj = 0;
15869 wxDC *arg1 = (wxDC *) 0 ;
15870 int arg2 ;
15871 int arg3 ;
15872 int arg4 ;
15873 int arg5 ;
15874 void *argp1 = 0 ;
15875 int res1 = 0 ;
15876 int val2 ;
15877 int ecode2 = 0 ;
15878 int val3 ;
15879 int ecode3 = 0 ;
15880 int val4 ;
15881 int ecode4 = 0 ;
15882 int val5 ;
15883 int ecode5 = 0 ;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 PyObject * obj2 = 0 ;
15887 PyObject * obj3 = 0 ;
15888 PyObject * obj4 = 0 ;
15889 char * kwnames[] = {
15890 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15891 };
15892
15893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15895 if (!SWIG_IsOK(res1)) {
15896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15897 }
15898 arg1 = reinterpret_cast< wxDC * >(argp1);
15899 ecode2 = SWIG_AsVal_int(obj1, &val2);
15900 if (!SWIG_IsOK(ecode2)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15902 }
15903 arg2 = static_cast< int >(val2);
15904 ecode3 = SWIG_AsVal_int(obj2, &val3);
15905 if (!SWIG_IsOK(ecode3)) {
15906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15907 }
15908 arg3 = static_cast< int >(val3);
15909 ecode4 = SWIG_AsVal_int(obj3, &val4);
15910 if (!SWIG_IsOK(ecode4)) {
15911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15912 }
15913 arg4 = static_cast< int >(val4);
15914 ecode5 = SWIG_AsVal_int(obj4, &val5);
15915 if (!SWIG_IsOK(ecode5)) {
15916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15917 }
15918 arg5 = static_cast< int >(val5);
15919 {
15920 PyThreadState* __tstate = wxPyBeginAllowThreads();
15921 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15922 wxPyEndAllowThreads(__tstate);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 resultobj = SWIG_Py_Void();
15926 return resultobj;
15927 fail:
15928 return NULL;
15929 }
15930
15931
15932 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15933 PyObject *resultobj = 0;
15934 wxDC *arg1 = (wxDC *) 0 ;
15935 wxRect *arg2 = 0 ;
15936 void *argp1 = 0 ;
15937 int res1 = 0 ;
15938 wxRect temp2 ;
15939 PyObject * obj0 = 0 ;
15940 PyObject * obj1 = 0 ;
15941 char * kwnames[] = {
15942 (char *) "self",(char *) "rect", NULL
15943 };
15944
15945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15947 if (!SWIG_IsOK(res1)) {
15948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15949 }
15950 arg1 = reinterpret_cast< wxDC * >(argp1);
15951 {
15952 arg2 = &temp2;
15953 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15954 }
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 (arg1)->DrawEllipse((wxRect const &)*arg2);
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_Py_Void();
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15969 PyObject *resultobj = 0;
15970 wxDC *arg1 = (wxDC *) 0 ;
15971 wxPoint *arg2 = 0 ;
15972 wxSize *arg3 = 0 ;
15973 void *argp1 = 0 ;
15974 int res1 = 0 ;
15975 wxPoint temp2 ;
15976 wxSize temp3 ;
15977 PyObject * obj0 = 0 ;
15978 PyObject * obj1 = 0 ;
15979 PyObject * obj2 = 0 ;
15980 char * kwnames[] = {
15981 (char *) "self",(char *) "pt",(char *) "sz", NULL
15982 };
15983
15984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15986 if (!SWIG_IsOK(res1)) {
15987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15988 }
15989 arg1 = reinterpret_cast< wxDC * >(argp1);
15990 {
15991 arg2 = &temp2;
15992 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15993 }
15994 {
15995 arg3 = &temp3;
15996 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15997 }
15998 {
15999 PyThreadState* __tstate = wxPyBeginAllowThreads();
16000 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16001 wxPyEndAllowThreads(__tstate);
16002 if (PyErr_Occurred()) SWIG_fail;
16003 }
16004 resultobj = SWIG_Py_Void();
16005 return resultobj;
16006 fail:
16007 return NULL;
16008 }
16009
16010
16011 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16012 PyObject *resultobj = 0;
16013 wxDC *arg1 = (wxDC *) 0 ;
16014 wxIcon *arg2 = 0 ;
16015 int arg3 ;
16016 int arg4 ;
16017 void *argp1 = 0 ;
16018 int res1 = 0 ;
16019 void *argp2 = 0 ;
16020 int res2 = 0 ;
16021 int val3 ;
16022 int ecode3 = 0 ;
16023 int val4 ;
16024 int ecode4 = 0 ;
16025 PyObject * obj0 = 0 ;
16026 PyObject * obj1 = 0 ;
16027 PyObject * obj2 = 0 ;
16028 PyObject * obj3 = 0 ;
16029 char * kwnames[] = {
16030 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16031 };
16032
16033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16037 }
16038 arg1 = reinterpret_cast< wxDC * >(argp1);
16039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16040 if (!SWIG_IsOK(res2)) {
16041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16042 }
16043 if (!argp2) {
16044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16045 }
16046 arg2 = reinterpret_cast< wxIcon * >(argp2);
16047 ecode3 = SWIG_AsVal_int(obj2, &val3);
16048 if (!SWIG_IsOK(ecode3)) {
16049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16050 }
16051 arg3 = static_cast< int >(val3);
16052 ecode4 = SWIG_AsVal_int(obj3, &val4);
16053 if (!SWIG_IsOK(ecode4)) {
16054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16055 }
16056 arg4 = static_cast< int >(val4);
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 resultobj = SWIG_Py_Void();
16064 return resultobj;
16065 fail:
16066 return NULL;
16067 }
16068
16069
16070 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16071 PyObject *resultobj = 0;
16072 wxDC *arg1 = (wxDC *) 0 ;
16073 wxIcon *arg2 = 0 ;
16074 wxPoint *arg3 = 0 ;
16075 void *argp1 = 0 ;
16076 int res1 = 0 ;
16077 void *argp2 = 0 ;
16078 int res2 = 0 ;
16079 wxPoint temp3 ;
16080 PyObject * obj0 = 0 ;
16081 PyObject * obj1 = 0 ;
16082 PyObject * obj2 = 0 ;
16083 char * kwnames[] = {
16084 (char *) "self",(char *) "icon",(char *) "pt", NULL
16085 };
16086
16087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16089 if (!SWIG_IsOK(res1)) {
16090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16091 }
16092 arg1 = reinterpret_cast< wxDC * >(argp1);
16093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16094 if (!SWIG_IsOK(res2)) {
16095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16096 }
16097 if (!argp2) {
16098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16099 }
16100 arg2 = reinterpret_cast< wxIcon * >(argp2);
16101 {
16102 arg3 = &temp3;
16103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_Py_Void();
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj = 0;
16120 wxDC *arg1 = (wxDC *) 0 ;
16121 wxBitmap *arg2 = 0 ;
16122 int arg3 ;
16123 int arg4 ;
16124 bool arg5 = (bool) false ;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 void *argp2 = 0 ;
16128 int res2 = 0 ;
16129 int val3 ;
16130 int ecode3 = 0 ;
16131 int val4 ;
16132 int ecode4 = 0 ;
16133 bool val5 ;
16134 int ecode5 = 0 ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16139 PyObject * obj4 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16148 }
16149 arg1 = reinterpret_cast< wxDC * >(argp1);
16150 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16151 if (!SWIG_IsOK(res2)) {
16152 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16153 }
16154 if (!argp2) {
16155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16156 }
16157 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16158 ecode3 = SWIG_AsVal_int(obj2, &val3);
16159 if (!SWIG_IsOK(ecode3)) {
16160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16161 }
16162 arg3 = static_cast< int >(val3);
16163 ecode4 = SWIG_AsVal_int(obj3, &val4);
16164 if (!SWIG_IsOK(ecode4)) {
16165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16166 }
16167 arg4 = static_cast< int >(val4);
16168 if (obj4) {
16169 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16170 if (!SWIG_IsOK(ecode5)) {
16171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16172 }
16173 arg5 = static_cast< bool >(val5);
16174 }
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_Py_Void();
16182 return resultobj;
16183 fail:
16184 return NULL;
16185 }
16186
16187
16188 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16189 PyObject *resultobj = 0;
16190 wxDC *arg1 = (wxDC *) 0 ;
16191 wxBitmap *arg2 = 0 ;
16192 wxPoint *arg3 = 0 ;
16193 bool arg4 = (bool) false ;
16194 void *argp1 = 0 ;
16195 int res1 = 0 ;
16196 void *argp2 = 0 ;
16197 int res2 = 0 ;
16198 wxPoint temp3 ;
16199 bool val4 ;
16200 int ecode4 = 0 ;
16201 PyObject * obj0 = 0 ;
16202 PyObject * obj1 = 0 ;
16203 PyObject * obj2 = 0 ;
16204 PyObject * obj3 = 0 ;
16205 char * kwnames[] = {
16206 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16207 };
16208
16209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16211 if (!SWIG_IsOK(res1)) {
16212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16213 }
16214 arg1 = reinterpret_cast< wxDC * >(argp1);
16215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16216 if (!SWIG_IsOK(res2)) {
16217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16218 }
16219 if (!argp2) {
16220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16221 }
16222 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16223 {
16224 arg3 = &temp3;
16225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16226 }
16227 if (obj3) {
16228 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16229 if (!SWIG_IsOK(ecode4)) {
16230 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16231 }
16232 arg4 = static_cast< bool >(val4);
16233 }
16234 {
16235 PyThreadState* __tstate = wxPyBeginAllowThreads();
16236 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16237 wxPyEndAllowThreads(__tstate);
16238 if (PyErr_Occurred()) SWIG_fail;
16239 }
16240 resultobj = SWIG_Py_Void();
16241 return resultobj;
16242 fail:
16243 return NULL;
16244 }
16245
16246
16247 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16248 PyObject *resultobj = 0;
16249 wxDC *arg1 = (wxDC *) 0 ;
16250 wxString *arg2 = 0 ;
16251 int arg3 ;
16252 int arg4 ;
16253 void *argp1 = 0 ;
16254 int res1 = 0 ;
16255 bool temp2 = false ;
16256 int val3 ;
16257 int ecode3 = 0 ;
16258 int val4 ;
16259 int ecode4 = 0 ;
16260 PyObject * obj0 = 0 ;
16261 PyObject * obj1 = 0 ;
16262 PyObject * obj2 = 0 ;
16263 PyObject * obj3 = 0 ;
16264 char * kwnames[] = {
16265 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16266 };
16267
16268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16270 if (!SWIG_IsOK(res1)) {
16271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16272 }
16273 arg1 = reinterpret_cast< wxDC * >(argp1);
16274 {
16275 arg2 = wxString_in_helper(obj1);
16276 if (arg2 == NULL) SWIG_fail;
16277 temp2 = true;
16278 }
16279 ecode3 = SWIG_AsVal_int(obj2, &val3);
16280 if (!SWIG_IsOK(ecode3)) {
16281 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16282 }
16283 arg3 = static_cast< int >(val3);
16284 ecode4 = SWIG_AsVal_int(obj3, &val4);
16285 if (!SWIG_IsOK(ecode4)) {
16286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16287 }
16288 arg4 = static_cast< int >(val4);
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 resultobj = SWIG_Py_Void();
16296 {
16297 if (temp2)
16298 delete arg2;
16299 }
16300 return resultobj;
16301 fail:
16302 {
16303 if (temp2)
16304 delete arg2;
16305 }
16306 return NULL;
16307 }
16308
16309
16310 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16311 PyObject *resultobj = 0;
16312 wxDC *arg1 = (wxDC *) 0 ;
16313 wxString *arg2 = 0 ;
16314 wxPoint *arg3 = 0 ;
16315 void *argp1 = 0 ;
16316 int res1 = 0 ;
16317 bool temp2 = false ;
16318 wxPoint temp3 ;
16319 PyObject * obj0 = 0 ;
16320 PyObject * obj1 = 0 ;
16321 PyObject * obj2 = 0 ;
16322 char * kwnames[] = {
16323 (char *) "self",(char *) "text",(char *) "pt", NULL
16324 };
16325
16326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16328 if (!SWIG_IsOK(res1)) {
16329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16330 }
16331 arg1 = reinterpret_cast< wxDC * >(argp1);
16332 {
16333 arg2 = wxString_in_helper(obj1);
16334 if (arg2 == NULL) SWIG_fail;
16335 temp2 = true;
16336 }
16337 {
16338 arg3 = &temp3;
16339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16340 }
16341 {
16342 PyThreadState* __tstate = wxPyBeginAllowThreads();
16343 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16344 wxPyEndAllowThreads(__tstate);
16345 if (PyErr_Occurred()) SWIG_fail;
16346 }
16347 resultobj = SWIG_Py_Void();
16348 {
16349 if (temp2)
16350 delete arg2;
16351 }
16352 return resultobj;
16353 fail:
16354 {
16355 if (temp2)
16356 delete arg2;
16357 }
16358 return NULL;
16359 }
16360
16361
16362 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = 0;
16364 wxDC *arg1 = (wxDC *) 0 ;
16365 wxString *arg2 = 0 ;
16366 int arg3 ;
16367 int arg4 ;
16368 double arg5 ;
16369 void *argp1 = 0 ;
16370 int res1 = 0 ;
16371 bool temp2 = false ;
16372 int val3 ;
16373 int ecode3 = 0 ;
16374 int val4 ;
16375 int ecode4 = 0 ;
16376 double val5 ;
16377 int ecode5 = 0 ;
16378 PyObject * obj0 = 0 ;
16379 PyObject * obj1 = 0 ;
16380 PyObject * obj2 = 0 ;
16381 PyObject * obj3 = 0 ;
16382 PyObject * obj4 = 0 ;
16383 char * kwnames[] = {
16384 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16385 };
16386
16387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16389 if (!SWIG_IsOK(res1)) {
16390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16391 }
16392 arg1 = reinterpret_cast< wxDC * >(argp1);
16393 {
16394 arg2 = wxString_in_helper(obj1);
16395 if (arg2 == NULL) SWIG_fail;
16396 temp2 = true;
16397 }
16398 ecode3 = SWIG_AsVal_int(obj2, &val3);
16399 if (!SWIG_IsOK(ecode3)) {
16400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16401 }
16402 arg3 = static_cast< int >(val3);
16403 ecode4 = SWIG_AsVal_int(obj3, &val4);
16404 if (!SWIG_IsOK(ecode4)) {
16405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16406 }
16407 arg4 = static_cast< int >(val4);
16408 ecode5 = SWIG_AsVal_double(obj4, &val5);
16409 if (!SWIG_IsOK(ecode5)) {
16410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16411 }
16412 arg5 = static_cast< double >(val5);
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16416 wxPyEndAllowThreads(__tstate);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 resultobj = SWIG_Py_Void();
16420 {
16421 if (temp2)
16422 delete arg2;
16423 }
16424 return resultobj;
16425 fail:
16426 {
16427 if (temp2)
16428 delete arg2;
16429 }
16430 return NULL;
16431 }
16432
16433
16434 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16435 PyObject *resultobj = 0;
16436 wxDC *arg1 = (wxDC *) 0 ;
16437 wxString *arg2 = 0 ;
16438 wxPoint *arg3 = 0 ;
16439 double arg4 ;
16440 void *argp1 = 0 ;
16441 int res1 = 0 ;
16442 bool temp2 = false ;
16443 wxPoint temp3 ;
16444 double val4 ;
16445 int ecode4 = 0 ;
16446 PyObject * obj0 = 0 ;
16447 PyObject * obj1 = 0 ;
16448 PyObject * obj2 = 0 ;
16449 PyObject * obj3 = 0 ;
16450 char * kwnames[] = {
16451 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16452 };
16453
16454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16456 if (!SWIG_IsOK(res1)) {
16457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16458 }
16459 arg1 = reinterpret_cast< wxDC * >(argp1);
16460 {
16461 arg2 = wxString_in_helper(obj1);
16462 if (arg2 == NULL) SWIG_fail;
16463 temp2 = true;
16464 }
16465 {
16466 arg3 = &temp3;
16467 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16468 }
16469 ecode4 = SWIG_AsVal_double(obj3, &val4);
16470 if (!SWIG_IsOK(ecode4)) {
16471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16472 }
16473 arg4 = static_cast< double >(val4);
16474 {
16475 PyThreadState* __tstate = wxPyBeginAllowThreads();
16476 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16477 wxPyEndAllowThreads(__tstate);
16478 if (PyErr_Occurred()) SWIG_fail;
16479 }
16480 resultobj = SWIG_Py_Void();
16481 {
16482 if (temp2)
16483 delete arg2;
16484 }
16485 return resultobj;
16486 fail:
16487 {
16488 if (temp2)
16489 delete arg2;
16490 }
16491 return NULL;
16492 }
16493
16494
16495 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj = 0;
16497 wxDC *arg1 = (wxDC *) 0 ;
16498 int arg2 ;
16499 int arg3 ;
16500 int arg4 ;
16501 int arg5 ;
16502 wxDC *arg6 = (wxDC *) 0 ;
16503 int arg7 ;
16504 int arg8 ;
16505 int arg9 = (int) wxCOPY ;
16506 bool arg10 = (bool) false ;
16507 int arg11 = (int) -1 ;
16508 int arg12 = (int) -1 ;
16509 bool result;
16510 void *argp1 = 0 ;
16511 int res1 = 0 ;
16512 int val2 ;
16513 int ecode2 = 0 ;
16514 int val3 ;
16515 int ecode3 = 0 ;
16516 int val4 ;
16517 int ecode4 = 0 ;
16518 int val5 ;
16519 int ecode5 = 0 ;
16520 void *argp6 = 0 ;
16521 int res6 = 0 ;
16522 int val7 ;
16523 int ecode7 = 0 ;
16524 int val8 ;
16525 int ecode8 = 0 ;
16526 int val9 ;
16527 int ecode9 = 0 ;
16528 bool val10 ;
16529 int ecode10 = 0 ;
16530 int val11 ;
16531 int ecode11 = 0 ;
16532 int val12 ;
16533 int ecode12 = 0 ;
16534 PyObject * obj0 = 0 ;
16535 PyObject * obj1 = 0 ;
16536 PyObject * obj2 = 0 ;
16537 PyObject * obj3 = 0 ;
16538 PyObject * obj4 = 0 ;
16539 PyObject * obj5 = 0 ;
16540 PyObject * obj6 = 0 ;
16541 PyObject * obj7 = 0 ;
16542 PyObject * obj8 = 0 ;
16543 PyObject * obj9 = 0 ;
16544 PyObject * obj10 = 0 ;
16545 PyObject * obj11 = 0 ;
16546 char * kwnames[] = {
16547 (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
16548 };
16549
16550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
16551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16552 if (!SWIG_IsOK(res1)) {
16553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16554 }
16555 arg1 = reinterpret_cast< wxDC * >(argp1);
16556 ecode2 = SWIG_AsVal_int(obj1, &val2);
16557 if (!SWIG_IsOK(ecode2)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16559 }
16560 arg2 = static_cast< int >(val2);
16561 ecode3 = SWIG_AsVal_int(obj2, &val3);
16562 if (!SWIG_IsOK(ecode3)) {
16563 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16564 }
16565 arg3 = static_cast< int >(val3);
16566 ecode4 = SWIG_AsVal_int(obj3, &val4);
16567 if (!SWIG_IsOK(ecode4)) {
16568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16569 }
16570 arg4 = static_cast< int >(val4);
16571 ecode5 = SWIG_AsVal_int(obj4, &val5);
16572 if (!SWIG_IsOK(ecode5)) {
16573 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16574 }
16575 arg5 = static_cast< int >(val5);
16576 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16577 if (!SWIG_IsOK(res6)) {
16578 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16579 }
16580 arg6 = reinterpret_cast< wxDC * >(argp6);
16581 ecode7 = SWIG_AsVal_int(obj6, &val7);
16582 if (!SWIG_IsOK(ecode7)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16584 }
16585 arg7 = static_cast< int >(val7);
16586 ecode8 = SWIG_AsVal_int(obj7, &val8);
16587 if (!SWIG_IsOK(ecode8)) {
16588 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16589 }
16590 arg8 = static_cast< int >(val8);
16591 if (obj8) {
16592 ecode9 = SWIG_AsVal_int(obj8, &val9);
16593 if (!SWIG_IsOK(ecode9)) {
16594 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16595 }
16596 arg9 = static_cast< int >(val9);
16597 }
16598 if (obj9) {
16599 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16600 if (!SWIG_IsOK(ecode10)) {
16601 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16602 }
16603 arg10 = static_cast< bool >(val10);
16604 }
16605 if (obj10) {
16606 ecode11 = SWIG_AsVal_int(obj10, &val11);
16607 if (!SWIG_IsOK(ecode11)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16609 }
16610 arg11 = static_cast< int >(val11);
16611 }
16612 if (obj11) {
16613 ecode12 = SWIG_AsVal_int(obj11, &val12);
16614 if (!SWIG_IsOK(ecode12)) {
16615 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16616 }
16617 arg12 = static_cast< int >(val12);
16618 }
16619 {
16620 PyThreadState* __tstate = wxPyBeginAllowThreads();
16621 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 {
16626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16627 }
16628 return resultobj;
16629 fail:
16630 return NULL;
16631 }
16632
16633
16634 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16635 PyObject *resultobj = 0;
16636 wxDC *arg1 = (wxDC *) 0 ;
16637 wxPoint *arg2 = 0 ;
16638 wxSize *arg3 = 0 ;
16639 wxDC *arg4 = (wxDC *) 0 ;
16640 wxPoint *arg5 = 0 ;
16641 int arg6 = (int) wxCOPY ;
16642 bool arg7 = (bool) false ;
16643 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16644 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16645 bool result;
16646 void *argp1 = 0 ;
16647 int res1 = 0 ;
16648 wxPoint temp2 ;
16649 wxSize temp3 ;
16650 void *argp4 = 0 ;
16651 int res4 = 0 ;
16652 wxPoint temp5 ;
16653 int val6 ;
16654 int ecode6 = 0 ;
16655 bool val7 ;
16656 int ecode7 = 0 ;
16657 wxPoint temp8 ;
16658 PyObject * obj0 = 0 ;
16659 PyObject * obj1 = 0 ;
16660 PyObject * obj2 = 0 ;
16661 PyObject * obj3 = 0 ;
16662 PyObject * obj4 = 0 ;
16663 PyObject * obj5 = 0 ;
16664 PyObject * obj6 = 0 ;
16665 PyObject * obj7 = 0 ;
16666 char * kwnames[] = {
16667 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16668 };
16669
16670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16672 if (!SWIG_IsOK(res1)) {
16673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16674 }
16675 arg1 = reinterpret_cast< wxDC * >(argp1);
16676 {
16677 arg2 = &temp2;
16678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16679 }
16680 {
16681 arg3 = &temp3;
16682 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16683 }
16684 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16685 if (!SWIG_IsOK(res4)) {
16686 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16687 }
16688 arg4 = reinterpret_cast< wxDC * >(argp4);
16689 {
16690 arg5 = &temp5;
16691 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16692 }
16693 if (obj5) {
16694 ecode6 = SWIG_AsVal_int(obj5, &val6);
16695 if (!SWIG_IsOK(ecode6)) {
16696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16697 }
16698 arg6 = static_cast< int >(val6);
16699 }
16700 if (obj6) {
16701 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16702 if (!SWIG_IsOK(ecode7)) {
16703 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16704 }
16705 arg7 = static_cast< bool >(val7);
16706 }
16707 if (obj7) {
16708 {
16709 arg8 = &temp8;
16710 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16711 }
16712 }
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16716 wxPyEndAllowThreads(__tstate);
16717 if (PyErr_Occurred()) SWIG_fail;
16718 }
16719 {
16720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16721 }
16722 return resultobj;
16723 fail:
16724 return NULL;
16725 }
16726
16727
16728 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 wxDC *arg1 = (wxDC *) 0 ;
16731 int arg2 ;
16732 int arg3 ;
16733 int arg4 ;
16734 int arg5 ;
16735 void *argp1 = 0 ;
16736 int res1 = 0 ;
16737 int val2 ;
16738 int ecode2 = 0 ;
16739 int val3 ;
16740 int ecode3 = 0 ;
16741 int val4 ;
16742 int ecode4 = 0 ;
16743 int val5 ;
16744 int ecode5 = 0 ;
16745 PyObject * obj0 = 0 ;
16746 PyObject * obj1 = 0 ;
16747 PyObject * obj2 = 0 ;
16748 PyObject * obj3 = 0 ;
16749 PyObject * obj4 = 0 ;
16750 char * kwnames[] = {
16751 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16752 };
16753
16754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16756 if (!SWIG_IsOK(res1)) {
16757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16758 }
16759 arg1 = reinterpret_cast< wxDC * >(argp1);
16760 ecode2 = SWIG_AsVal_int(obj1, &val2);
16761 if (!SWIG_IsOK(ecode2)) {
16762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16763 }
16764 arg2 = static_cast< int >(val2);
16765 ecode3 = SWIG_AsVal_int(obj2, &val3);
16766 if (!SWIG_IsOK(ecode3)) {
16767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16768 }
16769 arg3 = static_cast< int >(val3);
16770 ecode4 = SWIG_AsVal_int(obj3, &val4);
16771 if (!SWIG_IsOK(ecode4)) {
16772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16773 }
16774 arg4 = static_cast< int >(val4);
16775 ecode5 = SWIG_AsVal_int(obj4, &val5);
16776 if (!SWIG_IsOK(ecode5)) {
16777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16778 }
16779 arg5 = static_cast< int >(val5);
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 resultobj = SWIG_Py_Void();
16787 return resultobj;
16788 fail:
16789 return NULL;
16790 }
16791
16792
16793 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16794 PyObject *resultobj = 0;
16795 wxDC *arg1 = (wxDC *) 0 ;
16796 wxPoint *arg2 = 0 ;
16797 wxSize *arg3 = 0 ;
16798 void *argp1 = 0 ;
16799 int res1 = 0 ;
16800 wxPoint temp2 ;
16801 wxSize temp3 ;
16802 PyObject * obj0 = 0 ;
16803 PyObject * obj1 = 0 ;
16804 PyObject * obj2 = 0 ;
16805 char * kwnames[] = {
16806 (char *) "self",(char *) "pt",(char *) "sz", NULL
16807 };
16808
16809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16811 if (!SWIG_IsOK(res1)) {
16812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16813 }
16814 arg1 = reinterpret_cast< wxDC * >(argp1);
16815 {
16816 arg2 = &temp2;
16817 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16818 }
16819 {
16820 arg3 = &temp3;
16821 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16822 }
16823 {
16824 PyThreadState* __tstate = wxPyBeginAllowThreads();
16825 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16826 wxPyEndAllowThreads(__tstate);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 resultobj = SWIG_Py_Void();
16830 return resultobj;
16831 fail:
16832 return NULL;
16833 }
16834
16835
16836 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16837 PyObject *resultobj = 0;
16838 wxDC *arg1 = (wxDC *) 0 ;
16839 wxRegion *arg2 = 0 ;
16840 void *argp1 = 0 ;
16841 int res1 = 0 ;
16842 void *argp2 = 0 ;
16843 int res2 = 0 ;
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 char * kwnames[] = {
16847 (char *) "self",(char *) "region", NULL
16848 };
16849
16850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16852 if (!SWIG_IsOK(res1)) {
16853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16854 }
16855 arg1 = reinterpret_cast< wxDC * >(argp1);
16856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16857 if (!SWIG_IsOK(res2)) {
16858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16859 }
16860 if (!argp2) {
16861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16862 }
16863 arg2 = reinterpret_cast< wxRegion * >(argp2);
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16867 wxPyEndAllowThreads(__tstate);
16868 if (PyErr_Occurred()) SWIG_fail;
16869 }
16870 resultobj = SWIG_Py_Void();
16871 return resultobj;
16872 fail:
16873 return NULL;
16874 }
16875
16876
16877 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16878 PyObject *resultobj = 0;
16879 wxDC *arg1 = (wxDC *) 0 ;
16880 wxRect *arg2 = 0 ;
16881 void *argp1 = 0 ;
16882 int res1 = 0 ;
16883 wxRect temp2 ;
16884 PyObject * obj0 = 0 ;
16885 PyObject * obj1 = 0 ;
16886 char * kwnames[] = {
16887 (char *) "self",(char *) "rect", NULL
16888 };
16889
16890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16892 if (!SWIG_IsOK(res1)) {
16893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16894 }
16895 arg1 = reinterpret_cast< wxDC * >(argp1);
16896 {
16897 arg2 = &temp2;
16898 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16899 }
16900 {
16901 PyThreadState* __tstate = wxPyBeginAllowThreads();
16902 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 resultobj = SWIG_Py_Void();
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj = 0;
16915 wxDC *arg1 = (wxDC *) 0 ;
16916 int arg2 ;
16917 wxPoint *arg3 = (wxPoint *) 0 ;
16918 int arg4 = (int) 0 ;
16919 int arg5 = (int) 0 ;
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
16922 int val4 ;
16923 int ecode4 = 0 ;
16924 int val5 ;
16925 int ecode5 = 0 ;
16926 PyObject * obj0 = 0 ;
16927 PyObject * obj1 = 0 ;
16928 PyObject * obj2 = 0 ;
16929 PyObject * obj3 = 0 ;
16930 char * kwnames[] = {
16931 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16932 };
16933
16934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16936 if (!SWIG_IsOK(res1)) {
16937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16938 }
16939 arg1 = reinterpret_cast< wxDC * >(argp1);
16940 {
16941 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16942 if (arg3 == NULL) SWIG_fail;
16943 }
16944 if (obj2) {
16945 ecode4 = SWIG_AsVal_int(obj2, &val4);
16946 if (!SWIG_IsOK(ecode4)) {
16947 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16948 }
16949 arg4 = static_cast< int >(val4);
16950 }
16951 if (obj3) {
16952 ecode5 = SWIG_AsVal_int(obj3, &val5);
16953 if (!SWIG_IsOK(ecode5)) {
16954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16955 }
16956 arg5 = static_cast< int >(val5);
16957 }
16958 {
16959 PyThreadState* __tstate = wxPyBeginAllowThreads();
16960 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 resultobj = SWIG_Py_Void();
16965 {
16966 if (arg3) delete [] arg3;
16967 }
16968 return resultobj;
16969 fail:
16970 {
16971 if (arg3) delete [] arg3;
16972 }
16973 return NULL;
16974 }
16975
16976
16977 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16978 PyObject *resultobj = 0;
16979 wxDC *arg1 = (wxDC *) 0 ;
16980 int arg2 ;
16981 wxPoint *arg3 = (wxPoint *) 0 ;
16982 int arg4 = (int) 0 ;
16983 int arg5 = (int) 0 ;
16984 int arg6 = (int) wxODDEVEN_RULE ;
16985 void *argp1 = 0 ;
16986 int res1 = 0 ;
16987 int val4 ;
16988 int ecode4 = 0 ;
16989 int val5 ;
16990 int ecode5 = 0 ;
16991 int val6 ;
16992 int ecode6 = 0 ;
16993 PyObject * obj0 = 0 ;
16994 PyObject * obj1 = 0 ;
16995 PyObject * obj2 = 0 ;
16996 PyObject * obj3 = 0 ;
16997 PyObject * obj4 = 0 ;
16998 char * kwnames[] = {
16999 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17000 };
17001
17002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17004 if (!SWIG_IsOK(res1)) {
17005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17006 }
17007 arg1 = reinterpret_cast< wxDC * >(argp1);
17008 {
17009 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17010 if (arg3 == NULL) SWIG_fail;
17011 }
17012 if (obj2) {
17013 ecode4 = SWIG_AsVal_int(obj2, &val4);
17014 if (!SWIG_IsOK(ecode4)) {
17015 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17016 }
17017 arg4 = static_cast< int >(val4);
17018 }
17019 if (obj3) {
17020 ecode5 = SWIG_AsVal_int(obj3, &val5);
17021 if (!SWIG_IsOK(ecode5)) {
17022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17023 }
17024 arg5 = static_cast< int >(val5);
17025 }
17026 if (obj4) {
17027 ecode6 = SWIG_AsVal_int(obj4, &val6);
17028 if (!SWIG_IsOK(ecode6)) {
17029 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17030 }
17031 arg6 = static_cast< int >(val6);
17032 }
17033 {
17034 PyThreadState* __tstate = wxPyBeginAllowThreads();
17035 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 resultobj = SWIG_Py_Void();
17040 {
17041 if (arg3) delete [] arg3;
17042 }
17043 return resultobj;
17044 fail:
17045 {
17046 if (arg3) delete [] arg3;
17047 }
17048 return NULL;
17049 }
17050
17051
17052 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj = 0;
17054 wxDC *arg1 = (wxDC *) 0 ;
17055 wxString *arg2 = 0 ;
17056 wxRect *arg3 = 0 ;
17057 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17058 int arg5 = (int) -1 ;
17059 void *argp1 = 0 ;
17060 int res1 = 0 ;
17061 bool temp2 = false ;
17062 wxRect temp3 ;
17063 int val4 ;
17064 int ecode4 = 0 ;
17065 int val5 ;
17066 int ecode5 = 0 ;
17067 PyObject * obj0 = 0 ;
17068 PyObject * obj1 = 0 ;
17069 PyObject * obj2 = 0 ;
17070 PyObject * obj3 = 0 ;
17071 PyObject * obj4 = 0 ;
17072 char * kwnames[] = {
17073 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17074 };
17075
17076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17078 if (!SWIG_IsOK(res1)) {
17079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17080 }
17081 arg1 = reinterpret_cast< wxDC * >(argp1);
17082 {
17083 arg2 = wxString_in_helper(obj1);
17084 if (arg2 == NULL) SWIG_fail;
17085 temp2 = true;
17086 }
17087 {
17088 arg3 = &temp3;
17089 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17090 }
17091 if (obj3) {
17092 ecode4 = SWIG_AsVal_int(obj3, &val4);
17093 if (!SWIG_IsOK(ecode4)) {
17094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17095 }
17096 arg4 = static_cast< int >(val4);
17097 }
17098 if (obj4) {
17099 ecode5 = SWIG_AsVal_int(obj4, &val5);
17100 if (!SWIG_IsOK(ecode5)) {
17101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17102 }
17103 arg5 = static_cast< int >(val5);
17104 }
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 resultobj = SWIG_Py_Void();
17112 {
17113 if (temp2)
17114 delete arg2;
17115 }
17116 return resultobj;
17117 fail:
17118 {
17119 if (temp2)
17120 delete arg2;
17121 }
17122 return NULL;
17123 }
17124
17125
17126 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj = 0;
17128 wxDC *arg1 = (wxDC *) 0 ;
17129 wxString *arg2 = 0 ;
17130 wxBitmap *arg3 = 0 ;
17131 wxRect *arg4 = 0 ;
17132 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17133 int arg6 = (int) -1 ;
17134 wxRect result;
17135 void *argp1 = 0 ;
17136 int res1 = 0 ;
17137 bool temp2 = false ;
17138 void *argp3 = 0 ;
17139 int res3 = 0 ;
17140 wxRect temp4 ;
17141 int val5 ;
17142 int ecode5 = 0 ;
17143 int val6 ;
17144 int ecode6 = 0 ;
17145 PyObject * obj0 = 0 ;
17146 PyObject * obj1 = 0 ;
17147 PyObject * obj2 = 0 ;
17148 PyObject * obj3 = 0 ;
17149 PyObject * obj4 = 0 ;
17150 PyObject * obj5 = 0 ;
17151 char * kwnames[] = {
17152 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17153 };
17154
17155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17157 if (!SWIG_IsOK(res1)) {
17158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17159 }
17160 arg1 = reinterpret_cast< wxDC * >(argp1);
17161 {
17162 arg2 = wxString_in_helper(obj1);
17163 if (arg2 == NULL) SWIG_fail;
17164 temp2 = true;
17165 }
17166 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17167 if (!SWIG_IsOK(res3)) {
17168 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17169 }
17170 if (!argp3) {
17171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17172 }
17173 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17174 {
17175 arg4 = &temp4;
17176 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17177 }
17178 if (obj4) {
17179 ecode5 = SWIG_AsVal_int(obj4, &val5);
17180 if (!SWIG_IsOK(ecode5)) {
17181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17182 }
17183 arg5 = static_cast< int >(val5);
17184 }
17185 if (obj5) {
17186 ecode6 = SWIG_AsVal_int(obj5, &val6);
17187 if (!SWIG_IsOK(ecode6)) {
17188 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17189 }
17190 arg6 = static_cast< int >(val6);
17191 }
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17199 {
17200 if (temp2)
17201 delete arg2;
17202 }
17203 return resultobj;
17204 fail:
17205 {
17206 if (temp2)
17207 delete arg2;
17208 }
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj = 0;
17215 wxDC *arg1 = (wxDC *) 0 ;
17216 int arg2 ;
17217 wxPoint *arg3 = (wxPoint *) 0 ;
17218 void *argp1 = 0 ;
17219 int res1 = 0 ;
17220 PyObject * obj0 = 0 ;
17221 PyObject * obj1 = 0 ;
17222 char * kwnames[] = {
17223 (char *) "self",(char *) "points", NULL
17224 };
17225
17226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17228 if (!SWIG_IsOK(res1)) {
17229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17230 }
17231 arg1 = reinterpret_cast< wxDC * >(argp1);
17232 {
17233 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17234 if (arg3 == NULL) SWIG_fail;
17235 }
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 (arg1)->DrawSpline(arg2,arg3);
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 resultobj = SWIG_Py_Void();
17243 {
17244 if (arg3) delete [] arg3;
17245 }
17246 return resultobj;
17247 fail:
17248 {
17249 if (arg3) delete [] arg3;
17250 }
17251 return NULL;
17252 }
17253
17254
17255 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17256 PyObject *resultobj = 0;
17257 wxDC *arg1 = (wxDC *) 0 ;
17258 void *argp1 = 0 ;
17259 int res1 = 0 ;
17260 PyObject *swig_obj[1] ;
17261
17262 if (!args) SWIG_fail;
17263 swig_obj[0] = args;
17264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17265 if (!SWIG_IsOK(res1)) {
17266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17267 }
17268 arg1 = reinterpret_cast< wxDC * >(argp1);
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 (arg1)->Clear();
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 resultobj = SWIG_Py_Void();
17276 return resultobj;
17277 fail:
17278 return NULL;
17279 }
17280
17281
17282 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17283 PyObject *resultobj = 0;
17284 wxDC *arg1 = (wxDC *) 0 ;
17285 wxString *arg2 = 0 ;
17286 bool result;
17287 void *argp1 = 0 ;
17288 int res1 = 0 ;
17289 bool temp2 = false ;
17290 PyObject * obj0 = 0 ;
17291 PyObject * obj1 = 0 ;
17292 char * kwnames[] = {
17293 (char *) "self",(char *) "message", NULL
17294 };
17295
17296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17298 if (!SWIG_IsOK(res1)) {
17299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17300 }
17301 arg1 = reinterpret_cast< wxDC * >(argp1);
17302 {
17303 arg2 = wxString_in_helper(obj1);
17304 if (arg2 == NULL) SWIG_fail;
17305 temp2 = true;
17306 }
17307 {
17308 PyThreadState* __tstate = wxPyBeginAllowThreads();
17309 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17310 wxPyEndAllowThreads(__tstate);
17311 if (PyErr_Occurred()) SWIG_fail;
17312 }
17313 {
17314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17315 }
17316 {
17317 if (temp2)
17318 delete arg2;
17319 }
17320 return resultobj;
17321 fail:
17322 {
17323 if (temp2)
17324 delete arg2;
17325 }
17326 return NULL;
17327 }
17328
17329
17330 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17331 PyObject *resultobj = 0;
17332 wxDC *arg1 = (wxDC *) 0 ;
17333 void *argp1 = 0 ;
17334 int res1 = 0 ;
17335 PyObject *swig_obj[1] ;
17336
17337 if (!args) SWIG_fail;
17338 swig_obj[0] = args;
17339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17340 if (!SWIG_IsOK(res1)) {
17341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17342 }
17343 arg1 = reinterpret_cast< wxDC * >(argp1);
17344 {
17345 PyThreadState* __tstate = wxPyBeginAllowThreads();
17346 (arg1)->EndDoc();
17347 wxPyEndAllowThreads(__tstate);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 }
17350 resultobj = SWIG_Py_Void();
17351 return resultobj;
17352 fail:
17353 return NULL;
17354 }
17355
17356
17357 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17358 PyObject *resultobj = 0;
17359 wxDC *arg1 = (wxDC *) 0 ;
17360 void *argp1 = 0 ;
17361 int res1 = 0 ;
17362 PyObject *swig_obj[1] ;
17363
17364 if (!args) SWIG_fail;
17365 swig_obj[0] = args;
17366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17367 if (!SWIG_IsOK(res1)) {
17368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17369 }
17370 arg1 = reinterpret_cast< wxDC * >(argp1);
17371 {
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 (arg1)->StartPage();
17374 wxPyEndAllowThreads(__tstate);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 resultobj = SWIG_Py_Void();
17378 return resultobj;
17379 fail:
17380 return NULL;
17381 }
17382
17383
17384 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17385 PyObject *resultobj = 0;
17386 wxDC *arg1 = (wxDC *) 0 ;
17387 void *argp1 = 0 ;
17388 int res1 = 0 ;
17389 PyObject *swig_obj[1] ;
17390
17391 if (!args) SWIG_fail;
17392 swig_obj[0] = args;
17393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17394 if (!SWIG_IsOK(res1)) {
17395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17396 }
17397 arg1 = reinterpret_cast< wxDC * >(argp1);
17398 {
17399 PyThreadState* __tstate = wxPyBeginAllowThreads();
17400 (arg1)->EndPage();
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 resultobj = SWIG_Py_Void();
17405 return resultobj;
17406 fail:
17407 return NULL;
17408 }
17409
17410
17411 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17412 PyObject *resultobj = 0;
17413 wxDC *arg1 = (wxDC *) 0 ;
17414 wxFont *arg2 = 0 ;
17415 void *argp1 = 0 ;
17416 int res1 = 0 ;
17417 void *argp2 = 0 ;
17418 int res2 = 0 ;
17419 PyObject * obj0 = 0 ;
17420 PyObject * obj1 = 0 ;
17421 char * kwnames[] = {
17422 (char *) "self",(char *) "font", NULL
17423 };
17424
17425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17427 if (!SWIG_IsOK(res1)) {
17428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17429 }
17430 arg1 = reinterpret_cast< wxDC * >(argp1);
17431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17432 if (!SWIG_IsOK(res2)) {
17433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17434 }
17435 if (!argp2) {
17436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17437 }
17438 arg2 = reinterpret_cast< wxFont * >(argp2);
17439 {
17440 PyThreadState* __tstate = wxPyBeginAllowThreads();
17441 (arg1)->SetFont((wxFont const &)*arg2);
17442 wxPyEndAllowThreads(__tstate);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 resultobj = SWIG_Py_Void();
17446 return resultobj;
17447 fail:
17448 return NULL;
17449 }
17450
17451
17452 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj = 0;
17454 wxDC *arg1 = (wxDC *) 0 ;
17455 wxPen *arg2 = 0 ;
17456 void *argp1 = 0 ;
17457 int res1 = 0 ;
17458 void *argp2 = 0 ;
17459 int res2 = 0 ;
17460 PyObject * obj0 = 0 ;
17461 PyObject * obj1 = 0 ;
17462 char * kwnames[] = {
17463 (char *) "self",(char *) "pen", NULL
17464 };
17465
17466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17468 if (!SWIG_IsOK(res1)) {
17469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17470 }
17471 arg1 = reinterpret_cast< wxDC * >(argp1);
17472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17473 if (!SWIG_IsOK(res2)) {
17474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17475 }
17476 if (!argp2) {
17477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17478 }
17479 arg2 = reinterpret_cast< wxPen * >(argp2);
17480 {
17481 PyThreadState* __tstate = wxPyBeginAllowThreads();
17482 (arg1)->SetPen((wxPen const &)*arg2);
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
17486 resultobj = SWIG_Py_Void();
17487 return resultobj;
17488 fail:
17489 return NULL;
17490 }
17491
17492
17493 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17494 PyObject *resultobj = 0;
17495 wxDC *arg1 = (wxDC *) 0 ;
17496 wxBrush *arg2 = 0 ;
17497 void *argp1 = 0 ;
17498 int res1 = 0 ;
17499 void *argp2 = 0 ;
17500 int res2 = 0 ;
17501 PyObject * obj0 = 0 ;
17502 PyObject * obj1 = 0 ;
17503 char * kwnames[] = {
17504 (char *) "self",(char *) "brush", NULL
17505 };
17506
17507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17509 if (!SWIG_IsOK(res1)) {
17510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17511 }
17512 arg1 = reinterpret_cast< wxDC * >(argp1);
17513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17514 if (!SWIG_IsOK(res2)) {
17515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17516 }
17517 if (!argp2) {
17518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17519 }
17520 arg2 = reinterpret_cast< wxBrush * >(argp2);
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 (arg1)->SetBrush((wxBrush const &)*arg2);
17524 wxPyEndAllowThreads(__tstate);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
17527 resultobj = SWIG_Py_Void();
17528 return resultobj;
17529 fail:
17530 return NULL;
17531 }
17532
17533
17534 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17535 PyObject *resultobj = 0;
17536 wxDC *arg1 = (wxDC *) 0 ;
17537 wxBrush *arg2 = 0 ;
17538 void *argp1 = 0 ;
17539 int res1 = 0 ;
17540 void *argp2 = 0 ;
17541 int res2 = 0 ;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 char * kwnames[] = {
17545 (char *) "self",(char *) "brush", NULL
17546 };
17547
17548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17550 if (!SWIG_IsOK(res1)) {
17551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17552 }
17553 arg1 = reinterpret_cast< wxDC * >(argp1);
17554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17555 if (!SWIG_IsOK(res2)) {
17556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17557 }
17558 if (!argp2) {
17559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17560 }
17561 arg2 = reinterpret_cast< wxBrush * >(argp2);
17562 {
17563 PyThreadState* __tstate = wxPyBeginAllowThreads();
17564 (arg1)->SetBackground((wxBrush const &)*arg2);
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
17568 resultobj = SWIG_Py_Void();
17569 return resultobj;
17570 fail:
17571 return NULL;
17572 }
17573
17574
17575 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17576 PyObject *resultobj = 0;
17577 wxDC *arg1 = (wxDC *) 0 ;
17578 int arg2 ;
17579 void *argp1 = 0 ;
17580 int res1 = 0 ;
17581 int val2 ;
17582 int ecode2 = 0 ;
17583 PyObject * obj0 = 0 ;
17584 PyObject * obj1 = 0 ;
17585 char * kwnames[] = {
17586 (char *) "self",(char *) "mode", NULL
17587 };
17588
17589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17591 if (!SWIG_IsOK(res1)) {
17592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17593 }
17594 arg1 = reinterpret_cast< wxDC * >(argp1);
17595 ecode2 = SWIG_AsVal_int(obj1, &val2);
17596 if (!SWIG_IsOK(ecode2)) {
17597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17598 }
17599 arg2 = static_cast< int >(val2);
17600 {
17601 PyThreadState* __tstate = wxPyBeginAllowThreads();
17602 (arg1)->SetBackgroundMode(arg2);
17603 wxPyEndAllowThreads(__tstate);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 resultobj = SWIG_Py_Void();
17607 return resultobj;
17608 fail:
17609 return NULL;
17610 }
17611
17612
17613 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj = 0;
17615 wxDC *arg1 = (wxDC *) 0 ;
17616 wxPalette *arg2 = 0 ;
17617 void *argp1 = 0 ;
17618 int res1 = 0 ;
17619 void *argp2 = 0 ;
17620 int res2 = 0 ;
17621 PyObject * obj0 = 0 ;
17622 PyObject * obj1 = 0 ;
17623 char * kwnames[] = {
17624 (char *) "self",(char *) "palette", NULL
17625 };
17626
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17629 if (!SWIG_IsOK(res1)) {
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17631 }
17632 arg1 = reinterpret_cast< wxDC * >(argp1);
17633 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17634 if (!SWIG_IsOK(res2)) {
17635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17636 }
17637 if (!argp2) {
17638 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17639 }
17640 arg2 = reinterpret_cast< wxPalette * >(argp2);
17641 {
17642 PyThreadState* __tstate = wxPyBeginAllowThreads();
17643 (arg1)->SetPalette((wxPalette const &)*arg2);
17644 wxPyEndAllowThreads(__tstate);
17645 if (PyErr_Occurred()) SWIG_fail;
17646 }
17647 resultobj = SWIG_Py_Void();
17648 return resultobj;
17649 fail:
17650 return NULL;
17651 }
17652
17653
17654 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17655 PyObject *resultobj = 0;
17656 wxDC *arg1 = (wxDC *) 0 ;
17657 void *argp1 = 0 ;
17658 int res1 = 0 ;
17659 PyObject *swig_obj[1] ;
17660
17661 if (!args) SWIG_fail;
17662 swig_obj[0] = args;
17663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17664 if (!SWIG_IsOK(res1)) {
17665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17666 }
17667 arg1 = reinterpret_cast< wxDC * >(argp1);
17668 {
17669 PyThreadState* __tstate = wxPyBeginAllowThreads();
17670 (arg1)->DestroyClippingRegion();
17671 wxPyEndAllowThreads(__tstate);
17672 if (PyErr_Occurred()) SWIG_fail;
17673 }
17674 resultobj = SWIG_Py_Void();
17675 return resultobj;
17676 fail:
17677 return NULL;
17678 }
17679
17680
17681 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17682 PyObject *resultobj = 0;
17683 wxDC *arg1 = (wxDC *) 0 ;
17684 int *arg2 = (int *) 0 ;
17685 int *arg3 = (int *) 0 ;
17686 int *arg4 = (int *) 0 ;
17687 int *arg5 = (int *) 0 ;
17688 void *argp1 = 0 ;
17689 int res1 = 0 ;
17690 int temp2 ;
17691 int res2 = SWIG_TMPOBJ ;
17692 int temp3 ;
17693 int res3 = SWIG_TMPOBJ ;
17694 int temp4 ;
17695 int res4 = SWIG_TMPOBJ ;
17696 int temp5 ;
17697 int res5 = SWIG_TMPOBJ ;
17698 PyObject *swig_obj[1] ;
17699
17700 arg2 = &temp2;
17701 arg3 = &temp3;
17702 arg4 = &temp4;
17703 arg5 = &temp5;
17704 if (!args) SWIG_fail;
17705 swig_obj[0] = args;
17706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17707 if (!SWIG_IsOK(res1)) {
17708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17709 }
17710 arg1 = reinterpret_cast< wxDC * >(argp1);
17711 {
17712 PyThreadState* __tstate = wxPyBeginAllowThreads();
17713 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17714 wxPyEndAllowThreads(__tstate);
17715 if (PyErr_Occurred()) SWIG_fail;
17716 }
17717 resultobj = SWIG_Py_Void();
17718 if (SWIG_IsTmpObj(res2)) {
17719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17720 } else {
17721 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17723 }
17724 if (SWIG_IsTmpObj(res3)) {
17725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17726 } else {
17727 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17729 }
17730 if (SWIG_IsTmpObj(res4)) {
17731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17732 } else {
17733 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17735 }
17736 if (SWIG_IsTmpObj(res5)) {
17737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17738 } else {
17739 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17740 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17741 }
17742 return resultobj;
17743 fail:
17744 return NULL;
17745 }
17746
17747
17748 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17749 PyObject *resultobj = 0;
17750 wxDC *arg1 = (wxDC *) 0 ;
17751 wxRect result;
17752 void *argp1 = 0 ;
17753 int res1 = 0 ;
17754 PyObject *swig_obj[1] ;
17755
17756 if (!args) SWIG_fail;
17757 swig_obj[0] = args;
17758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17759 if (!SWIG_IsOK(res1)) {
17760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17761 }
17762 arg1 = reinterpret_cast< wxDC * >(argp1);
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = wxDC_GetClippingRect(arg1);
17766 wxPyEndAllowThreads(__tstate);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 }
17769 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777 PyObject *resultobj = 0;
17778 wxDC *arg1 = (wxDC *) 0 ;
17779 int result;
17780 void *argp1 = 0 ;
17781 int res1 = 0 ;
17782 PyObject *swig_obj[1] ;
17783
17784 if (!args) SWIG_fail;
17785 swig_obj[0] = args;
17786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17787 if (!SWIG_IsOK(res1)) {
17788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17789 }
17790 arg1 = reinterpret_cast< wxDC * >(argp1);
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 result = (int)((wxDC const *)arg1)->GetCharHeight();
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 resultobj = SWIG_From_int(static_cast< int >(result));
17798 return resultobj;
17799 fail:
17800 return NULL;
17801 }
17802
17803
17804 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17805 PyObject *resultobj = 0;
17806 wxDC *arg1 = (wxDC *) 0 ;
17807 int result;
17808 void *argp1 = 0 ;
17809 int res1 = 0 ;
17810 PyObject *swig_obj[1] ;
17811
17812 if (!args) SWIG_fail;
17813 swig_obj[0] = args;
17814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17815 if (!SWIG_IsOK(res1)) {
17816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17817 }
17818 arg1 = reinterpret_cast< wxDC * >(argp1);
17819 {
17820 PyThreadState* __tstate = wxPyBeginAllowThreads();
17821 result = (int)((wxDC const *)arg1)->GetCharWidth();
17822 wxPyEndAllowThreads(__tstate);
17823 if (PyErr_Occurred()) SWIG_fail;
17824 }
17825 resultobj = SWIG_From_int(static_cast< int >(result));
17826 return resultobj;
17827 fail:
17828 return NULL;
17829 }
17830
17831
17832 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17833 PyObject *resultobj = 0;
17834 wxDC *arg1 = (wxDC *) 0 ;
17835 wxString *arg2 = 0 ;
17836 int *arg3 = (int *) 0 ;
17837 int *arg4 = (int *) 0 ;
17838 void *argp1 = 0 ;
17839 int res1 = 0 ;
17840 bool temp2 = false ;
17841 int temp3 ;
17842 int res3 = SWIG_TMPOBJ ;
17843 int temp4 ;
17844 int res4 = SWIG_TMPOBJ ;
17845 PyObject * obj0 = 0 ;
17846 PyObject * obj1 = 0 ;
17847 char * kwnames[] = {
17848 (char *) "self",(char *) "string", NULL
17849 };
17850
17851 arg3 = &temp3;
17852 arg4 = &temp4;
17853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17855 if (!SWIG_IsOK(res1)) {
17856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17857 }
17858 arg1 = reinterpret_cast< wxDC * >(argp1);
17859 {
17860 arg2 = wxString_in_helper(obj1);
17861 if (arg2 == NULL) SWIG_fail;
17862 temp2 = true;
17863 }
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 resultobj = SWIG_Py_Void();
17871 if (SWIG_IsTmpObj(res3)) {
17872 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17873 } else {
17874 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17876 }
17877 if (SWIG_IsTmpObj(res4)) {
17878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17879 } else {
17880 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17882 }
17883 {
17884 if (temp2)
17885 delete arg2;
17886 }
17887 return resultobj;
17888 fail:
17889 {
17890 if (temp2)
17891 delete arg2;
17892 }
17893 return NULL;
17894 }
17895
17896
17897 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj = 0;
17899 wxDC *arg1 = (wxDC *) 0 ;
17900 wxString *arg2 = 0 ;
17901 int *arg3 = (int *) 0 ;
17902 int *arg4 = (int *) 0 ;
17903 int *arg5 = (int *) 0 ;
17904 int *arg6 = (int *) 0 ;
17905 wxFont *arg7 = (wxFont *) NULL ;
17906 void *argp1 = 0 ;
17907 int res1 = 0 ;
17908 bool temp2 = false ;
17909 int temp3 ;
17910 int res3 = SWIG_TMPOBJ ;
17911 int temp4 ;
17912 int res4 = SWIG_TMPOBJ ;
17913 int temp5 ;
17914 int res5 = SWIG_TMPOBJ ;
17915 int temp6 ;
17916 int res6 = SWIG_TMPOBJ ;
17917 void *argp7 = 0 ;
17918 int res7 = 0 ;
17919 PyObject * obj0 = 0 ;
17920 PyObject * obj1 = 0 ;
17921 PyObject * obj2 = 0 ;
17922 char * kwnames[] = {
17923 (char *) "self",(char *) "string",(char *) "font", NULL
17924 };
17925
17926 arg3 = &temp3;
17927 arg4 = &temp4;
17928 arg5 = &temp5;
17929 arg6 = &temp6;
17930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17932 if (!SWIG_IsOK(res1)) {
17933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17934 }
17935 arg1 = reinterpret_cast< wxDC * >(argp1);
17936 {
17937 arg2 = wxString_in_helper(obj1);
17938 if (arg2 == NULL) SWIG_fail;
17939 temp2 = true;
17940 }
17941 if (obj2) {
17942 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17943 if (!SWIG_IsOK(res7)) {
17944 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17945 }
17946 arg7 = reinterpret_cast< wxFont * >(argp7);
17947 }
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17951 wxPyEndAllowThreads(__tstate);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 }
17954 resultobj = SWIG_Py_Void();
17955 if (SWIG_IsTmpObj(res3)) {
17956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17957 } else {
17958 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17960 }
17961 if (SWIG_IsTmpObj(res4)) {
17962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17963 } else {
17964 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17966 }
17967 if (SWIG_IsTmpObj(res5)) {
17968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17969 } else {
17970 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17972 }
17973 if (SWIG_IsTmpObj(res6)) {
17974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17975 } else {
17976 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17978 }
17979 {
17980 if (temp2)
17981 delete arg2;
17982 }
17983 return resultobj;
17984 fail:
17985 {
17986 if (temp2)
17987 delete arg2;
17988 }
17989 return NULL;
17990 }
17991
17992
17993 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17994 PyObject *resultobj = 0;
17995 wxDC *arg1 = (wxDC *) 0 ;
17996 wxString *arg2 = 0 ;
17997 int *arg3 = (int *) 0 ;
17998 int *arg4 = (int *) 0 ;
17999 int *arg5 = (int *) 0 ;
18000 wxFont *arg6 = (wxFont *) NULL ;
18001 void *argp1 = 0 ;
18002 int res1 = 0 ;
18003 bool temp2 = false ;
18004 int temp3 ;
18005 int res3 = SWIG_TMPOBJ ;
18006 int temp4 ;
18007 int res4 = SWIG_TMPOBJ ;
18008 int temp5 ;
18009 int res5 = SWIG_TMPOBJ ;
18010 void *argp6 = 0 ;
18011 int res6 = 0 ;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 PyObject * obj2 = 0 ;
18015 char * kwnames[] = {
18016 (char *) "self",(char *) "text",(char *) "font", NULL
18017 };
18018
18019 arg3 = &temp3;
18020 arg4 = &temp4;
18021 arg5 = &temp5;
18022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18024 if (!SWIG_IsOK(res1)) {
18025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18026 }
18027 arg1 = reinterpret_cast< wxDC * >(argp1);
18028 {
18029 arg2 = wxString_in_helper(obj1);
18030 if (arg2 == NULL) SWIG_fail;
18031 temp2 = true;
18032 }
18033 if (obj2) {
18034 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18035 if (!SWIG_IsOK(res6)) {
18036 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18037 }
18038 arg6 = reinterpret_cast< wxFont * >(argp6);
18039 }
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 resultobj = SWIG_Py_Void();
18047 if (SWIG_IsTmpObj(res3)) {
18048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18049 } else {
18050 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18052 }
18053 if (SWIG_IsTmpObj(res4)) {
18054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18055 } else {
18056 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18058 }
18059 if (SWIG_IsTmpObj(res5)) {
18060 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18061 } else {
18062 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18063 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18064 }
18065 {
18066 if (temp2)
18067 delete arg2;
18068 }
18069 return resultobj;
18070 fail:
18071 {
18072 if (temp2)
18073 delete arg2;
18074 }
18075 return NULL;
18076 }
18077
18078
18079 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj = 0;
18081 wxDC *arg1 = (wxDC *) 0 ;
18082 wxString *arg2 = 0 ;
18083 wxArrayInt result;
18084 void *argp1 = 0 ;
18085 int res1 = 0 ;
18086 bool temp2 = false ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 char * kwnames[] = {
18090 (char *) "self",(char *) "text", NULL
18091 };
18092
18093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18095 if (!SWIG_IsOK(res1)) {
18096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18097 }
18098 arg1 = reinterpret_cast< wxDC * >(argp1);
18099 {
18100 arg2 = wxString_in_helper(obj1);
18101 if (arg2 == NULL) SWIG_fail;
18102 temp2 = true;
18103 }
18104 {
18105 PyThreadState* __tstate = wxPyBeginAllowThreads();
18106 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 {
18111 resultobj = PyList_New(0);
18112 size_t idx;
18113 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18114 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18115 PyList_Append(resultobj, val);
18116 Py_DECREF(val);
18117 }
18118 }
18119 {
18120 if (temp2)
18121 delete arg2;
18122 }
18123 return resultobj;
18124 fail:
18125 {
18126 if (temp2)
18127 delete arg2;
18128 }
18129 return NULL;
18130 }
18131
18132
18133 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18134 PyObject *resultobj = 0;
18135 wxDC *arg1 = (wxDC *) 0 ;
18136 wxSize result;
18137 void *argp1 = 0 ;
18138 int res1 = 0 ;
18139 PyObject *swig_obj[1] ;
18140
18141 if (!args) SWIG_fail;
18142 swig_obj[0] = args;
18143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18144 if (!SWIG_IsOK(res1)) {
18145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18146 }
18147 arg1 = reinterpret_cast< wxDC * >(argp1);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 result = (arg1)->GetSize();
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18162 PyObject *resultobj = 0;
18163 wxDC *arg1 = (wxDC *) 0 ;
18164 int *arg2 = (int *) 0 ;
18165 int *arg3 = (int *) 0 ;
18166 void *argp1 = 0 ;
18167 int res1 = 0 ;
18168 int temp2 ;
18169 int res2 = SWIG_TMPOBJ ;
18170 int temp3 ;
18171 int res3 = SWIG_TMPOBJ ;
18172 PyObject *swig_obj[1] ;
18173
18174 arg2 = &temp2;
18175 arg3 = &temp3;
18176 if (!args) SWIG_fail;
18177 swig_obj[0] = args;
18178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18179 if (!SWIG_IsOK(res1)) {
18180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18181 }
18182 arg1 = reinterpret_cast< wxDC * >(argp1);
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->GetSize(arg2,arg3);
18186 wxPyEndAllowThreads(__tstate);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 }
18189 resultobj = SWIG_Py_Void();
18190 if (SWIG_IsTmpObj(res2)) {
18191 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18192 } else {
18193 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18194 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18195 }
18196 if (SWIG_IsTmpObj(res3)) {
18197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18198 } else {
18199 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18201 }
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18209 PyObject *resultobj = 0;
18210 wxDC *arg1 = (wxDC *) 0 ;
18211 wxSize result;
18212 void *argp1 = 0 ;
18213 int res1 = 0 ;
18214 PyObject *swig_obj[1] ;
18215
18216 if (!args) SWIG_fail;
18217 swig_obj[0] = args;
18218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18219 if (!SWIG_IsOK(res1)) {
18220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18221 }
18222 arg1 = reinterpret_cast< wxDC * >(argp1);
18223 {
18224 PyThreadState* __tstate = wxPyBeginAllowThreads();
18225 result = ((wxDC const *)arg1)->GetSizeMM();
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18230 return resultobj;
18231 fail:
18232 return NULL;
18233 }
18234
18235
18236 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18237 PyObject *resultobj = 0;
18238 wxDC *arg1 = (wxDC *) 0 ;
18239 int *arg2 = (int *) 0 ;
18240 int *arg3 = (int *) 0 ;
18241 void *argp1 = 0 ;
18242 int res1 = 0 ;
18243 int temp2 ;
18244 int res2 = SWIG_TMPOBJ ;
18245 int temp3 ;
18246 int res3 = SWIG_TMPOBJ ;
18247 PyObject *swig_obj[1] ;
18248
18249 arg2 = &temp2;
18250 arg3 = &temp3;
18251 if (!args) SWIG_fail;
18252 swig_obj[0] = args;
18253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18254 if (!SWIG_IsOK(res1)) {
18255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18256 }
18257 arg1 = reinterpret_cast< wxDC * >(argp1);
18258 {
18259 PyThreadState* __tstate = wxPyBeginAllowThreads();
18260 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18261 wxPyEndAllowThreads(__tstate);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 resultobj = SWIG_Py_Void();
18265 if (SWIG_IsTmpObj(res2)) {
18266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18267 } else {
18268 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18270 }
18271 if (SWIG_IsTmpObj(res3)) {
18272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18273 } else {
18274 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18276 }
18277 return resultobj;
18278 fail:
18279 return NULL;
18280 }
18281
18282
18283 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj = 0;
18285 wxDC *arg1 = (wxDC *) 0 ;
18286 int arg2 ;
18287 int result;
18288 void *argp1 = 0 ;
18289 int res1 = 0 ;
18290 int val2 ;
18291 int ecode2 = 0 ;
18292 PyObject * obj0 = 0 ;
18293 PyObject * obj1 = 0 ;
18294 char * kwnames[] = {
18295 (char *) "self",(char *) "x", NULL
18296 };
18297
18298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18300 if (!SWIG_IsOK(res1)) {
18301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18302 }
18303 arg1 = reinterpret_cast< wxDC * >(argp1);
18304 ecode2 = SWIG_AsVal_int(obj1, &val2);
18305 if (!SWIG_IsOK(ecode2)) {
18306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18307 }
18308 arg2 = static_cast< int >(val2);
18309 {
18310 PyThreadState* __tstate = wxPyBeginAllowThreads();
18311 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 resultobj = SWIG_From_int(static_cast< int >(result));
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj = 0;
18324 wxDC *arg1 = (wxDC *) 0 ;
18325 int arg2 ;
18326 int result;
18327 void *argp1 = 0 ;
18328 int res1 = 0 ;
18329 int val2 ;
18330 int ecode2 = 0 ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "y", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18341 }
18342 arg1 = reinterpret_cast< wxDC * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_From_int(static_cast< int >(result));
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18362 PyObject *resultobj = 0;
18363 wxDC *arg1 = (wxDC *) 0 ;
18364 int arg2 ;
18365 int result;
18366 void *argp1 = 0 ;
18367 int res1 = 0 ;
18368 int val2 ;
18369 int ecode2 = 0 ;
18370 PyObject * obj0 = 0 ;
18371 PyObject * obj1 = 0 ;
18372 char * kwnames[] = {
18373 (char *) "self",(char *) "x", NULL
18374 };
18375
18376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18378 if (!SWIG_IsOK(res1)) {
18379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18380 }
18381 arg1 = reinterpret_cast< wxDC * >(argp1);
18382 ecode2 = SWIG_AsVal_int(obj1, &val2);
18383 if (!SWIG_IsOK(ecode2)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18385 }
18386 arg2 = static_cast< int >(val2);
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 resultobj = SWIG_From_int(static_cast< int >(result));
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj = 0;
18402 wxDC *arg1 = (wxDC *) 0 ;
18403 int arg2 ;
18404 int result;
18405 void *argp1 = 0 ;
18406 int res1 = 0 ;
18407 int val2 ;
18408 int ecode2 = 0 ;
18409 PyObject * obj0 = 0 ;
18410 PyObject * obj1 = 0 ;
18411 char * kwnames[] = {
18412 (char *) "self",(char *) "y", NULL
18413 };
18414
18415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18417 if (!SWIG_IsOK(res1)) {
18418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18419 }
18420 arg1 = reinterpret_cast< wxDC * >(argp1);
18421 ecode2 = SWIG_AsVal_int(obj1, &val2);
18422 if (!SWIG_IsOK(ecode2)) {
18423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18424 }
18425 arg2 = static_cast< int >(val2);
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18429 wxPyEndAllowThreads(__tstate);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 resultobj = SWIG_From_int(static_cast< int >(result));
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18440 PyObject *resultobj = 0;
18441 wxDC *arg1 = (wxDC *) 0 ;
18442 int arg2 ;
18443 int result;
18444 void *argp1 = 0 ;
18445 int res1 = 0 ;
18446 int val2 ;
18447 int ecode2 = 0 ;
18448 PyObject * obj0 = 0 ;
18449 PyObject * obj1 = 0 ;
18450 char * kwnames[] = {
18451 (char *) "self",(char *) "x", NULL
18452 };
18453
18454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18456 if (!SWIG_IsOK(res1)) {
18457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18458 }
18459 arg1 = reinterpret_cast< wxDC * >(argp1);
18460 ecode2 = SWIG_AsVal_int(obj1, &val2);
18461 if (!SWIG_IsOK(ecode2)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18463 }
18464 arg2 = static_cast< int >(val2);
18465 {
18466 PyThreadState* __tstate = wxPyBeginAllowThreads();
18467 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18468 wxPyEndAllowThreads(__tstate);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 }
18471 resultobj = SWIG_From_int(static_cast< int >(result));
18472 return resultobj;
18473 fail:
18474 return NULL;
18475 }
18476
18477
18478 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18479 PyObject *resultobj = 0;
18480 wxDC *arg1 = (wxDC *) 0 ;
18481 int arg2 ;
18482 int result;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 int val2 ;
18486 int ecode2 = 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 char * kwnames[] = {
18490 (char *) "self",(char *) "y", NULL
18491 };
18492
18493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18495 if (!SWIG_IsOK(res1)) {
18496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18497 }
18498 arg1 = reinterpret_cast< wxDC * >(argp1);
18499 ecode2 = SWIG_AsVal_int(obj1, &val2);
18500 if (!SWIG_IsOK(ecode2)) {
18501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18502 }
18503 arg2 = static_cast< int >(val2);
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 resultobj = SWIG_From_int(static_cast< int >(result));
18511 return resultobj;
18512 fail:
18513 return NULL;
18514 }
18515
18516
18517 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj = 0;
18519 wxDC *arg1 = (wxDC *) 0 ;
18520 int arg2 ;
18521 int result;
18522 void *argp1 = 0 ;
18523 int res1 = 0 ;
18524 int val2 ;
18525 int ecode2 = 0 ;
18526 PyObject * obj0 = 0 ;
18527 PyObject * obj1 = 0 ;
18528 char * kwnames[] = {
18529 (char *) "self",(char *) "x", NULL
18530 };
18531
18532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18534 if (!SWIG_IsOK(res1)) {
18535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18536 }
18537 arg1 = reinterpret_cast< wxDC * >(argp1);
18538 ecode2 = SWIG_AsVal_int(obj1, &val2);
18539 if (!SWIG_IsOK(ecode2)) {
18540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18541 }
18542 arg2 = static_cast< int >(val2);
18543 {
18544 PyThreadState* __tstate = wxPyBeginAllowThreads();
18545 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18546 wxPyEndAllowThreads(__tstate);
18547 if (PyErr_Occurred()) SWIG_fail;
18548 }
18549 resultobj = SWIG_From_int(static_cast< int >(result));
18550 return resultobj;
18551 fail:
18552 return NULL;
18553 }
18554
18555
18556 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18557 PyObject *resultobj = 0;
18558 wxDC *arg1 = (wxDC *) 0 ;
18559 int arg2 ;
18560 int result;
18561 void *argp1 = 0 ;
18562 int res1 = 0 ;
18563 int val2 ;
18564 int ecode2 = 0 ;
18565 PyObject * obj0 = 0 ;
18566 PyObject * obj1 = 0 ;
18567 char * kwnames[] = {
18568 (char *) "self",(char *) "y", NULL
18569 };
18570
18571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18573 if (!SWIG_IsOK(res1)) {
18574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18575 }
18576 arg1 = reinterpret_cast< wxDC * >(argp1);
18577 ecode2 = SWIG_AsVal_int(obj1, &val2);
18578 if (!SWIG_IsOK(ecode2)) {
18579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18580 }
18581 arg2 = static_cast< int >(val2);
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18585 wxPyEndAllowThreads(__tstate);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 }
18588 resultobj = SWIG_From_int(static_cast< int >(result));
18589 return resultobj;
18590 fail:
18591 return NULL;
18592 }
18593
18594
18595 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18596 PyObject *resultobj = 0;
18597 wxDC *arg1 = (wxDC *) 0 ;
18598 bool result;
18599 void *argp1 = 0 ;
18600 int res1 = 0 ;
18601 PyObject *swig_obj[1] ;
18602
18603 if (!args) SWIG_fail;
18604 swig_obj[0] = args;
18605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18606 if (!SWIG_IsOK(res1)) {
18607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18608 }
18609 arg1 = reinterpret_cast< wxDC * >(argp1);
18610 {
18611 PyThreadState* __tstate = wxPyBeginAllowThreads();
18612 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18613 wxPyEndAllowThreads(__tstate);
18614 if (PyErr_Occurred()) SWIG_fail;
18615 }
18616 {
18617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18618 }
18619 return resultobj;
18620 fail:
18621 return NULL;
18622 }
18623
18624
18625 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18626 PyObject *resultobj = 0;
18627 wxDC *arg1 = (wxDC *) 0 ;
18628 bool result;
18629 void *argp1 = 0 ;
18630 int res1 = 0 ;
18631 PyObject *swig_obj[1] ;
18632
18633 if (!args) SWIG_fail;
18634 swig_obj[0] = args;
18635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18636 if (!SWIG_IsOK(res1)) {
18637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18638 }
18639 arg1 = reinterpret_cast< wxDC * >(argp1);
18640 {
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 {
18647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18648 }
18649 return resultobj;
18650 fail:
18651 return NULL;
18652 }
18653
18654
18655 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18656 PyObject *resultobj = 0;
18657 wxDC *arg1 = (wxDC *) 0 ;
18658 int result;
18659 void *argp1 = 0 ;
18660 int res1 = 0 ;
18661 PyObject *swig_obj[1] ;
18662
18663 if (!args) SWIG_fail;
18664 swig_obj[0] = args;
18665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18666 if (!SWIG_IsOK(res1)) {
18667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18668 }
18669 arg1 = reinterpret_cast< wxDC * >(argp1);
18670 {
18671 PyThreadState* __tstate = wxPyBeginAllowThreads();
18672 result = (int)((wxDC const *)arg1)->GetDepth();
18673 wxPyEndAllowThreads(__tstate);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 }
18676 resultobj = SWIG_From_int(static_cast< int >(result));
18677 return resultobj;
18678 fail:
18679 return NULL;
18680 }
18681
18682
18683 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18684 PyObject *resultobj = 0;
18685 wxDC *arg1 = (wxDC *) 0 ;
18686 wxSize result;
18687 void *argp1 = 0 ;
18688 int res1 = 0 ;
18689 PyObject *swig_obj[1] ;
18690
18691 if (!args) SWIG_fail;
18692 swig_obj[0] = args;
18693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18694 if (!SWIG_IsOK(res1)) {
18695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18696 }
18697 arg1 = reinterpret_cast< wxDC * >(argp1);
18698 {
18699 PyThreadState* __tstate = wxPyBeginAllowThreads();
18700 result = ((wxDC const *)arg1)->GetPPI();
18701 wxPyEndAllowThreads(__tstate);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 }
18704 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18705 return resultobj;
18706 fail:
18707 return NULL;
18708 }
18709
18710
18711 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18712 PyObject *resultobj = 0;
18713 wxDC *arg1 = (wxDC *) 0 ;
18714 bool result;
18715 void *argp1 = 0 ;
18716 int res1 = 0 ;
18717 PyObject *swig_obj[1] ;
18718
18719 if (!args) SWIG_fail;
18720 swig_obj[0] = args;
18721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18722 if (!SWIG_IsOK(res1)) {
18723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18724 }
18725 arg1 = reinterpret_cast< wxDC * >(argp1);
18726 {
18727 PyThreadState* __tstate = wxPyBeginAllowThreads();
18728 result = (bool)((wxDC const *)arg1)->Ok();
18729 wxPyEndAllowThreads(__tstate);
18730 if (PyErr_Occurred()) SWIG_fail;
18731 }
18732 {
18733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18734 }
18735 return resultobj;
18736 fail:
18737 return NULL;
18738 }
18739
18740
18741 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18742 PyObject *resultobj = 0;
18743 wxDC *arg1 = (wxDC *) 0 ;
18744 int result;
18745 void *argp1 = 0 ;
18746 int res1 = 0 ;
18747 PyObject *swig_obj[1] ;
18748
18749 if (!args) SWIG_fail;
18750 swig_obj[0] = args;
18751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18752 if (!SWIG_IsOK(res1)) {
18753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18754 }
18755 arg1 = reinterpret_cast< wxDC * >(argp1);
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18759 wxPyEndAllowThreads(__tstate);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 }
18762 resultobj = SWIG_From_int(static_cast< int >(result));
18763 return resultobj;
18764 fail:
18765 return NULL;
18766 }
18767
18768
18769 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18770 PyObject *resultobj = 0;
18771 wxDC *arg1 = (wxDC *) 0 ;
18772 wxBrush *result = 0 ;
18773 void *argp1 = 0 ;
18774 int res1 = 0 ;
18775 PyObject *swig_obj[1] ;
18776
18777 if (!args) SWIG_fail;
18778 swig_obj[0] = args;
18779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18780 if (!SWIG_IsOK(res1)) {
18781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18782 }
18783 arg1 = reinterpret_cast< wxDC * >(argp1);
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 {
18787 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18788 result = (wxBrush *) &_result_ref;
18789 }
18790 wxPyEndAllowThreads(__tstate);
18791 if (PyErr_Occurred()) SWIG_fail;
18792 }
18793 {
18794 wxBrush* resultptr = new wxBrush(*result);
18795 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18796 }
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18804 PyObject *resultobj = 0;
18805 wxDC *arg1 = (wxDC *) 0 ;
18806 wxBrush *result = 0 ;
18807 void *argp1 = 0 ;
18808 int res1 = 0 ;
18809 PyObject *swig_obj[1] ;
18810
18811 if (!args) SWIG_fail;
18812 swig_obj[0] = args;
18813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18814 if (!SWIG_IsOK(res1)) {
18815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18816 }
18817 arg1 = reinterpret_cast< wxDC * >(argp1);
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 {
18821 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18822 result = (wxBrush *) &_result_ref;
18823 }
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 {
18828 wxBrush* resultptr = new wxBrush(*result);
18829 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18830 }
18831 return resultobj;
18832 fail:
18833 return NULL;
18834 }
18835
18836
18837 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18838 PyObject *resultobj = 0;
18839 wxDC *arg1 = (wxDC *) 0 ;
18840 wxFont *result = 0 ;
18841 void *argp1 = 0 ;
18842 int res1 = 0 ;
18843 PyObject *swig_obj[1] ;
18844
18845 if (!args) SWIG_fail;
18846 swig_obj[0] = args;
18847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18848 if (!SWIG_IsOK(res1)) {
18849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18850 }
18851 arg1 = reinterpret_cast< wxDC * >(argp1);
18852 {
18853 PyThreadState* __tstate = wxPyBeginAllowThreads();
18854 {
18855 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18856 result = (wxFont *) &_result_ref;
18857 }
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 {
18862 wxFont* resultptr = new wxFont(*result);
18863 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18864 }
18865 return resultobj;
18866 fail:
18867 return NULL;
18868 }
18869
18870
18871 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18872 PyObject *resultobj = 0;
18873 wxDC *arg1 = (wxDC *) 0 ;
18874 wxPen *result = 0 ;
18875 void *argp1 = 0 ;
18876 int res1 = 0 ;
18877 PyObject *swig_obj[1] ;
18878
18879 if (!args) SWIG_fail;
18880 swig_obj[0] = args;
18881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18882 if (!SWIG_IsOK(res1)) {
18883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18884 }
18885 arg1 = reinterpret_cast< wxDC * >(argp1);
18886 {
18887 PyThreadState* __tstate = wxPyBeginAllowThreads();
18888 {
18889 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18890 result = (wxPen *) &_result_ref;
18891 }
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 {
18896 wxPen* resultptr = new wxPen(*result);
18897 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18898 }
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18906 PyObject *resultobj = 0;
18907 wxDC *arg1 = (wxDC *) 0 ;
18908 wxColour *result = 0 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 PyObject *swig_obj[1] ;
18912
18913 if (!args) SWIG_fail;
18914 swig_obj[0] = args;
18915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18918 }
18919 arg1 = reinterpret_cast< wxDC * >(argp1);
18920 {
18921 PyThreadState* __tstate = wxPyBeginAllowThreads();
18922 {
18923 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18924 result = (wxColour *) &_result_ref;
18925 }
18926 wxPyEndAllowThreads(__tstate);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18930 return resultobj;
18931 fail:
18932 return NULL;
18933 }
18934
18935
18936 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18937 PyObject *resultobj = 0;
18938 wxDC *arg1 = (wxDC *) 0 ;
18939 wxColour *result = 0 ;
18940 void *argp1 = 0 ;
18941 int res1 = 0 ;
18942 PyObject *swig_obj[1] ;
18943
18944 if (!args) SWIG_fail;
18945 swig_obj[0] = args;
18946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18949 }
18950 arg1 = reinterpret_cast< wxDC * >(argp1);
18951 {
18952 PyThreadState* __tstate = wxPyBeginAllowThreads();
18953 {
18954 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18955 result = (wxColour *) &_result_ref;
18956 }
18957 wxPyEndAllowThreads(__tstate);
18958 if (PyErr_Occurred()) SWIG_fail;
18959 }
18960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18961 return resultobj;
18962 fail:
18963 return NULL;
18964 }
18965
18966
18967 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18968 PyObject *resultobj = 0;
18969 wxDC *arg1 = (wxDC *) 0 ;
18970 wxColour *arg2 = 0 ;
18971 void *argp1 = 0 ;
18972 int res1 = 0 ;
18973 wxColour temp2 ;
18974 PyObject * obj0 = 0 ;
18975 PyObject * obj1 = 0 ;
18976 char * kwnames[] = {
18977 (char *) "self",(char *) "colour", NULL
18978 };
18979
18980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18982 if (!SWIG_IsOK(res1)) {
18983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18984 }
18985 arg1 = reinterpret_cast< wxDC * >(argp1);
18986 {
18987 arg2 = &temp2;
18988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18989 }
18990 {
18991 PyThreadState* __tstate = wxPyBeginAllowThreads();
18992 (arg1)->SetTextForeground((wxColour const &)*arg2);
18993 wxPyEndAllowThreads(__tstate);
18994 if (PyErr_Occurred()) SWIG_fail;
18995 }
18996 resultobj = SWIG_Py_Void();
18997 return resultobj;
18998 fail:
18999 return NULL;
19000 }
19001
19002
19003 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19004 PyObject *resultobj = 0;
19005 wxDC *arg1 = (wxDC *) 0 ;
19006 wxColour *arg2 = 0 ;
19007 void *argp1 = 0 ;
19008 int res1 = 0 ;
19009 wxColour temp2 ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 char * kwnames[] = {
19013 (char *) "self",(char *) "colour", NULL
19014 };
19015
19016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19018 if (!SWIG_IsOK(res1)) {
19019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19020 }
19021 arg1 = reinterpret_cast< wxDC * >(argp1);
19022 {
19023 arg2 = &temp2;
19024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19025 }
19026 {
19027 PyThreadState* __tstate = wxPyBeginAllowThreads();
19028 (arg1)->SetTextBackground((wxColour const &)*arg2);
19029 wxPyEndAllowThreads(__tstate);
19030 if (PyErr_Occurred()) SWIG_fail;
19031 }
19032 resultobj = SWIG_Py_Void();
19033 return resultobj;
19034 fail:
19035 return NULL;
19036 }
19037
19038
19039 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19040 PyObject *resultobj = 0;
19041 wxDC *arg1 = (wxDC *) 0 ;
19042 int result;
19043 void *argp1 = 0 ;
19044 int res1 = 0 ;
19045 PyObject *swig_obj[1] ;
19046
19047 if (!args) SWIG_fail;
19048 swig_obj[0] = args;
19049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19050 if (!SWIG_IsOK(res1)) {
19051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19052 }
19053 arg1 = reinterpret_cast< wxDC * >(argp1);
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 result = (int)((wxDC const *)arg1)->GetMapMode();
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 resultobj = SWIG_From_int(static_cast< int >(result));
19061 return resultobj;
19062 fail:
19063 return NULL;
19064 }
19065
19066
19067 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19068 PyObject *resultobj = 0;
19069 wxDC *arg1 = (wxDC *) 0 ;
19070 int arg2 ;
19071 void *argp1 = 0 ;
19072 int res1 = 0 ;
19073 int val2 ;
19074 int ecode2 = 0 ;
19075 PyObject * obj0 = 0 ;
19076 PyObject * obj1 = 0 ;
19077 char * kwnames[] = {
19078 (char *) "self",(char *) "mode", NULL
19079 };
19080
19081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19083 if (!SWIG_IsOK(res1)) {
19084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19085 }
19086 arg1 = reinterpret_cast< wxDC * >(argp1);
19087 ecode2 = SWIG_AsVal_int(obj1, &val2);
19088 if (!SWIG_IsOK(ecode2)) {
19089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19090 }
19091 arg2 = static_cast< int >(val2);
19092 {
19093 PyThreadState* __tstate = wxPyBeginAllowThreads();
19094 (arg1)->SetMapMode(arg2);
19095 wxPyEndAllowThreads(__tstate);
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 resultobj = SWIG_Py_Void();
19099 return resultobj;
19100 fail:
19101 return NULL;
19102 }
19103
19104
19105 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19106 PyObject *resultobj = 0;
19107 wxDC *arg1 = (wxDC *) 0 ;
19108 double *arg2 = (double *) 0 ;
19109 double *arg3 = (double *) 0 ;
19110 void *argp1 = 0 ;
19111 int res1 = 0 ;
19112 double temp2 ;
19113 int res2 = SWIG_TMPOBJ ;
19114 double temp3 ;
19115 int res3 = SWIG_TMPOBJ ;
19116 PyObject *swig_obj[1] ;
19117
19118 arg2 = &temp2;
19119 arg3 = &temp3;
19120 if (!args) SWIG_fail;
19121 swig_obj[0] = args;
19122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19123 if (!SWIG_IsOK(res1)) {
19124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19125 }
19126 arg1 = reinterpret_cast< wxDC * >(argp1);
19127 {
19128 PyThreadState* __tstate = wxPyBeginAllowThreads();
19129 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19130 wxPyEndAllowThreads(__tstate);
19131 if (PyErr_Occurred()) SWIG_fail;
19132 }
19133 resultobj = SWIG_Py_Void();
19134 if (SWIG_IsTmpObj(res2)) {
19135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19136 } else {
19137 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19139 }
19140 if (SWIG_IsTmpObj(res3)) {
19141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19142 } else {
19143 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19145 }
19146 return resultobj;
19147 fail:
19148 return NULL;
19149 }
19150
19151
19152 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19153 PyObject *resultobj = 0;
19154 wxDC *arg1 = (wxDC *) 0 ;
19155 double arg2 ;
19156 double arg3 ;
19157 void *argp1 = 0 ;
19158 int res1 = 0 ;
19159 double val2 ;
19160 int ecode2 = 0 ;
19161 double val3 ;
19162 int ecode3 = 0 ;
19163 PyObject * obj0 = 0 ;
19164 PyObject * obj1 = 0 ;
19165 PyObject * obj2 = 0 ;
19166 char * kwnames[] = {
19167 (char *) "self",(char *) "x",(char *) "y", NULL
19168 };
19169
19170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19172 if (!SWIG_IsOK(res1)) {
19173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19174 }
19175 arg1 = reinterpret_cast< wxDC * >(argp1);
19176 ecode2 = SWIG_AsVal_double(obj1, &val2);
19177 if (!SWIG_IsOK(ecode2)) {
19178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19179 }
19180 arg2 = static_cast< double >(val2);
19181 ecode3 = SWIG_AsVal_double(obj2, &val3);
19182 if (!SWIG_IsOK(ecode3)) {
19183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19184 }
19185 arg3 = static_cast< double >(val3);
19186 {
19187 PyThreadState* __tstate = wxPyBeginAllowThreads();
19188 (arg1)->SetUserScale(arg2,arg3);
19189 wxPyEndAllowThreads(__tstate);
19190 if (PyErr_Occurred()) SWIG_fail;
19191 }
19192 resultobj = SWIG_Py_Void();
19193 return resultobj;
19194 fail:
19195 return NULL;
19196 }
19197
19198
19199 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19200 PyObject *resultobj = 0;
19201 wxDC *arg1 = (wxDC *) 0 ;
19202 double *arg2 = (double *) 0 ;
19203 double *arg3 = (double *) 0 ;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 double temp2 ;
19207 int res2 = SWIG_TMPOBJ ;
19208 double temp3 ;
19209 int res3 = SWIG_TMPOBJ ;
19210 PyObject *swig_obj[1] ;
19211
19212 arg2 = &temp2;
19213 arg3 = &temp3;
19214 if (!args) SWIG_fail;
19215 swig_obj[0] = args;
19216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19217 if (!SWIG_IsOK(res1)) {
19218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19219 }
19220 arg1 = reinterpret_cast< wxDC * >(argp1);
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 (arg1)->GetLogicalScale(arg2,arg3);
19224 wxPyEndAllowThreads(__tstate);
19225 if (PyErr_Occurred()) SWIG_fail;
19226 }
19227 resultobj = SWIG_Py_Void();
19228 if (SWIG_IsTmpObj(res2)) {
19229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19230 } else {
19231 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19232 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19233 }
19234 if (SWIG_IsTmpObj(res3)) {
19235 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19236 } else {
19237 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19238 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19239 }
19240 return resultobj;
19241 fail:
19242 return NULL;
19243 }
19244
19245
19246 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj = 0;
19248 wxDC *arg1 = (wxDC *) 0 ;
19249 double arg2 ;
19250 double arg3 ;
19251 void *argp1 = 0 ;
19252 int res1 = 0 ;
19253 double val2 ;
19254 int ecode2 = 0 ;
19255 double val3 ;
19256 int ecode3 = 0 ;
19257 PyObject * obj0 = 0 ;
19258 PyObject * obj1 = 0 ;
19259 PyObject * obj2 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "x",(char *) "y", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19268 }
19269 arg1 = reinterpret_cast< wxDC * >(argp1);
19270 ecode2 = SWIG_AsVal_double(obj1, &val2);
19271 if (!SWIG_IsOK(ecode2)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19273 }
19274 arg2 = static_cast< double >(val2);
19275 ecode3 = SWIG_AsVal_double(obj2, &val3);
19276 if (!SWIG_IsOK(ecode3)) {
19277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19278 }
19279 arg3 = static_cast< double >(val3);
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 (arg1)->SetLogicalScale(arg2,arg3);
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 resultobj = SWIG_Py_Void();
19287 return resultobj;
19288 fail:
19289 return NULL;
19290 }
19291
19292
19293 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19294 PyObject *resultobj = 0;
19295 wxDC *arg1 = (wxDC *) 0 ;
19296 wxPoint result;
19297 void *argp1 = 0 ;
19298 int res1 = 0 ;
19299 PyObject *swig_obj[1] ;
19300
19301 if (!args) SWIG_fail;
19302 swig_obj[0] = args;
19303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19304 if (!SWIG_IsOK(res1)) {
19305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19306 }
19307 arg1 = reinterpret_cast< wxDC * >(argp1);
19308 {
19309 PyThreadState* __tstate = wxPyBeginAllowThreads();
19310 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19311 wxPyEndAllowThreads(__tstate);
19312 if (PyErr_Occurred()) SWIG_fail;
19313 }
19314 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19315 return resultobj;
19316 fail:
19317 return NULL;
19318 }
19319
19320
19321 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19322 PyObject *resultobj = 0;
19323 wxDC *arg1 = (wxDC *) 0 ;
19324 int *arg2 = (int *) 0 ;
19325 int *arg3 = (int *) 0 ;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 int temp2 ;
19329 int res2 = SWIG_TMPOBJ ;
19330 int temp3 ;
19331 int res3 = SWIG_TMPOBJ ;
19332 PyObject *swig_obj[1] ;
19333
19334 arg2 = &temp2;
19335 arg3 = &temp3;
19336 if (!args) SWIG_fail;
19337 swig_obj[0] = args;
19338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19339 if (!SWIG_IsOK(res1)) {
19340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19341 }
19342 arg1 = reinterpret_cast< wxDC * >(argp1);
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19346 wxPyEndAllowThreads(__tstate);
19347 if (PyErr_Occurred()) SWIG_fail;
19348 }
19349 resultobj = SWIG_Py_Void();
19350 if (SWIG_IsTmpObj(res2)) {
19351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19352 } else {
19353 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19355 }
19356 if (SWIG_IsTmpObj(res3)) {
19357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19358 } else {
19359 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19361 }
19362 return resultobj;
19363 fail:
19364 return NULL;
19365 }
19366
19367
19368 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19369 PyObject *resultobj = 0;
19370 wxDC *arg1 = (wxDC *) 0 ;
19371 int arg2 ;
19372 int arg3 ;
19373 void *argp1 = 0 ;
19374 int res1 = 0 ;
19375 int val2 ;
19376 int ecode2 = 0 ;
19377 int val3 ;
19378 int ecode3 = 0 ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 PyObject * obj2 = 0 ;
19382 char * kwnames[] = {
19383 (char *) "self",(char *) "x",(char *) "y", NULL
19384 };
19385
19386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19388 if (!SWIG_IsOK(res1)) {
19389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19390 }
19391 arg1 = reinterpret_cast< wxDC * >(argp1);
19392 ecode2 = SWIG_AsVal_int(obj1, &val2);
19393 if (!SWIG_IsOK(ecode2)) {
19394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19395 }
19396 arg2 = static_cast< int >(val2);
19397 ecode3 = SWIG_AsVal_int(obj2, &val3);
19398 if (!SWIG_IsOK(ecode3)) {
19399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19400 }
19401 arg3 = static_cast< int >(val3);
19402 {
19403 PyThreadState* __tstate = wxPyBeginAllowThreads();
19404 (arg1)->SetLogicalOrigin(arg2,arg3);
19405 wxPyEndAllowThreads(__tstate);
19406 if (PyErr_Occurred()) SWIG_fail;
19407 }
19408 resultobj = SWIG_Py_Void();
19409 return resultobj;
19410 fail:
19411 return NULL;
19412 }
19413
19414
19415 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19416 PyObject *resultobj = 0;
19417 wxDC *arg1 = (wxDC *) 0 ;
19418 wxPoint *arg2 = 0 ;
19419 void *argp1 = 0 ;
19420 int res1 = 0 ;
19421 wxPoint temp2 ;
19422 PyObject * obj0 = 0 ;
19423 PyObject * obj1 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "self",(char *) "point", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19432 }
19433 arg1 = reinterpret_cast< wxDC * >(argp1);
19434 {
19435 arg2 = &temp2;
19436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19437 }
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19452 PyObject *resultobj = 0;
19453 wxDC *arg1 = (wxDC *) 0 ;
19454 wxPoint result;
19455 void *argp1 = 0 ;
19456 int res1 = 0 ;
19457 PyObject *swig_obj[1] ;
19458
19459 if (!args) SWIG_fail;
19460 swig_obj[0] = args;
19461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19462 if (!SWIG_IsOK(res1)) {
19463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19464 }
19465 arg1 = reinterpret_cast< wxDC * >(argp1);
19466 {
19467 PyThreadState* __tstate = wxPyBeginAllowThreads();
19468 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
19472 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19473 return resultobj;
19474 fail:
19475 return NULL;
19476 }
19477
19478
19479 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19480 PyObject *resultobj = 0;
19481 wxDC *arg1 = (wxDC *) 0 ;
19482 int *arg2 = (int *) 0 ;
19483 int *arg3 = (int *) 0 ;
19484 void *argp1 = 0 ;
19485 int res1 = 0 ;
19486 int temp2 ;
19487 int res2 = SWIG_TMPOBJ ;
19488 int temp3 ;
19489 int res3 = SWIG_TMPOBJ ;
19490 PyObject *swig_obj[1] ;
19491
19492 arg2 = &temp2;
19493 arg3 = &temp3;
19494 if (!args) SWIG_fail;
19495 swig_obj[0] = args;
19496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19497 if (!SWIG_IsOK(res1)) {
19498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19499 }
19500 arg1 = reinterpret_cast< wxDC * >(argp1);
19501 {
19502 PyThreadState* __tstate = wxPyBeginAllowThreads();
19503 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19504 wxPyEndAllowThreads(__tstate);
19505 if (PyErr_Occurred()) SWIG_fail;
19506 }
19507 resultobj = SWIG_Py_Void();
19508 if (SWIG_IsTmpObj(res2)) {
19509 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19510 } else {
19511 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19512 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19513 }
19514 if (SWIG_IsTmpObj(res3)) {
19515 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19516 } else {
19517 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19519 }
19520 return resultobj;
19521 fail:
19522 return NULL;
19523 }
19524
19525
19526 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19527 PyObject *resultobj = 0;
19528 wxDC *arg1 = (wxDC *) 0 ;
19529 int arg2 ;
19530 int arg3 ;
19531 void *argp1 = 0 ;
19532 int res1 = 0 ;
19533 int val2 ;
19534 int ecode2 = 0 ;
19535 int val3 ;
19536 int ecode3 = 0 ;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 PyObject * obj2 = 0 ;
19540 char * kwnames[] = {
19541 (char *) "self",(char *) "x",(char *) "y", NULL
19542 };
19543
19544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19546 if (!SWIG_IsOK(res1)) {
19547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19548 }
19549 arg1 = reinterpret_cast< wxDC * >(argp1);
19550 ecode2 = SWIG_AsVal_int(obj1, &val2);
19551 if (!SWIG_IsOK(ecode2)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19553 }
19554 arg2 = static_cast< int >(val2);
19555 ecode3 = SWIG_AsVal_int(obj2, &val3);
19556 if (!SWIG_IsOK(ecode3)) {
19557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19558 }
19559 arg3 = static_cast< int >(val3);
19560 {
19561 PyThreadState* __tstate = wxPyBeginAllowThreads();
19562 (arg1)->SetDeviceOrigin(arg2,arg3);
19563 wxPyEndAllowThreads(__tstate);
19564 if (PyErr_Occurred()) SWIG_fail;
19565 }
19566 resultobj = SWIG_Py_Void();
19567 return resultobj;
19568 fail:
19569 return NULL;
19570 }
19571
19572
19573 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj = 0;
19575 wxDC *arg1 = (wxDC *) 0 ;
19576 wxPoint *arg2 = 0 ;
19577 void *argp1 = 0 ;
19578 int res1 = 0 ;
19579 wxPoint temp2 ;
19580 PyObject * obj0 = 0 ;
19581 PyObject * obj1 = 0 ;
19582 char * kwnames[] = {
19583 (char *) "self",(char *) "point", NULL
19584 };
19585
19586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19588 if (!SWIG_IsOK(res1)) {
19589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19590 }
19591 arg1 = reinterpret_cast< wxDC * >(argp1);
19592 {
19593 arg2 = &temp2;
19594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19595 }
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_Py_Void();
19603 return resultobj;
19604 fail:
19605 return NULL;
19606 }
19607
19608
19609 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj = 0;
19611 wxDC *arg1 = (wxDC *) 0 ;
19612 bool arg2 ;
19613 bool arg3 ;
19614 void *argp1 = 0 ;
19615 int res1 = 0 ;
19616 bool val2 ;
19617 int ecode2 = 0 ;
19618 bool val3 ;
19619 int ecode3 = 0 ;
19620 PyObject * obj0 = 0 ;
19621 PyObject * obj1 = 0 ;
19622 PyObject * obj2 = 0 ;
19623 char * kwnames[] = {
19624 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19625 };
19626
19627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19629 if (!SWIG_IsOK(res1)) {
19630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19631 }
19632 arg1 = reinterpret_cast< wxDC * >(argp1);
19633 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19634 if (!SWIG_IsOK(ecode2)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19636 }
19637 arg2 = static_cast< bool >(val2);
19638 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19639 if (!SWIG_IsOK(ecode3)) {
19640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19641 }
19642 arg3 = static_cast< bool >(val3);
19643 {
19644 PyThreadState* __tstate = wxPyBeginAllowThreads();
19645 (arg1)->SetAxisOrientation(arg2,arg3);
19646 wxPyEndAllowThreads(__tstate);
19647 if (PyErr_Occurred()) SWIG_fail;
19648 }
19649 resultobj = SWIG_Py_Void();
19650 return resultobj;
19651 fail:
19652 return NULL;
19653 }
19654
19655
19656 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19657 PyObject *resultobj = 0;
19658 wxDC *arg1 = (wxDC *) 0 ;
19659 int result;
19660 void *argp1 = 0 ;
19661 int res1 = 0 ;
19662 PyObject *swig_obj[1] ;
19663
19664 if (!args) SWIG_fail;
19665 swig_obj[0] = args;
19666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19667 if (!SWIG_IsOK(res1)) {
19668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19669 }
19670 arg1 = reinterpret_cast< wxDC * >(argp1);
19671 {
19672 PyThreadState* __tstate = wxPyBeginAllowThreads();
19673 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19674 wxPyEndAllowThreads(__tstate);
19675 if (PyErr_Occurred()) SWIG_fail;
19676 }
19677 resultobj = SWIG_From_int(static_cast< int >(result));
19678 return resultobj;
19679 fail:
19680 return NULL;
19681 }
19682
19683
19684 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19685 PyObject *resultobj = 0;
19686 wxDC *arg1 = (wxDC *) 0 ;
19687 int arg2 ;
19688 void *argp1 = 0 ;
19689 int res1 = 0 ;
19690 int val2 ;
19691 int ecode2 = 0 ;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 char * kwnames[] = {
19695 (char *) "self",(char *) "function", NULL
19696 };
19697
19698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19700 if (!SWIG_IsOK(res1)) {
19701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19702 }
19703 arg1 = reinterpret_cast< wxDC * >(argp1);
19704 ecode2 = SWIG_AsVal_int(obj1, &val2);
19705 if (!SWIG_IsOK(ecode2)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19707 }
19708 arg2 = static_cast< int >(val2);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->SetLogicalFunction(arg2);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 return resultobj;
19717 fail:
19718 return NULL;
19719 }
19720
19721
19722 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19723 PyObject *resultobj = 0;
19724 wxDC *arg1 = (wxDC *) 0 ;
19725 void *argp1 = 0 ;
19726 int res1 = 0 ;
19727 PyObject *swig_obj[1] ;
19728
19729 if (!args) SWIG_fail;
19730 swig_obj[0] = args;
19731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19732 if (!SWIG_IsOK(res1)) {
19733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19734 }
19735 arg1 = reinterpret_cast< wxDC * >(argp1);
19736 {
19737 PyThreadState* __tstate = wxPyBeginAllowThreads();
19738 (arg1)->ComputeScaleAndOrigin();
19739 wxPyEndAllowThreads(__tstate);
19740 if (PyErr_Occurred()) SWIG_fail;
19741 }
19742 resultobj = SWIG_Py_Void();
19743 return resultobj;
19744 fail:
19745 return NULL;
19746 }
19747
19748
19749 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19750 PyObject *resultobj = 0;
19751 wxDC *arg1 = (wxDC *) 0 ;
19752 int arg2 ;
19753 int arg3 ;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 int val2 ;
19757 int ecode2 = 0 ;
19758 int val3 ;
19759 int ecode3 = 0 ;
19760 PyObject * obj0 = 0 ;
19761 PyObject * obj1 = 0 ;
19762 PyObject * obj2 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "x",(char *) "y", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19771 }
19772 arg1 = reinterpret_cast< wxDC * >(argp1);
19773 ecode2 = SWIG_AsVal_int(obj1, &val2);
19774 if (!SWIG_IsOK(ecode2)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19776 }
19777 arg2 = static_cast< int >(val2);
19778 ecode3 = SWIG_AsVal_int(obj2, &val3);
19779 if (!SWIG_IsOK(ecode3)) {
19780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19781 }
19782 arg3 = static_cast< int >(val3);
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->CalcBoundingBox(arg2,arg3);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 return resultobj;
19791 fail:
19792 return NULL;
19793 }
19794
19795
19796 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19797 PyObject *resultobj = 0;
19798 wxDC *arg1 = (wxDC *) 0 ;
19799 wxPoint *arg2 = 0 ;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 wxPoint temp2 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 char * kwnames[] = {
19806 (char *) "self",(char *) "point", NULL
19807 };
19808
19809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19811 if (!SWIG_IsOK(res1)) {
19812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19813 }
19814 arg1 = reinterpret_cast< wxDC * >(argp1);
19815 {
19816 arg2 = &temp2;
19817 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19818 }
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19822 wxPyEndAllowThreads(__tstate);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 resultobj = SWIG_Py_Void();
19826 return resultobj;
19827 fail:
19828 return NULL;
19829 }
19830
19831
19832 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19833 PyObject *resultobj = 0;
19834 wxDC *arg1 = (wxDC *) 0 ;
19835 void *argp1 = 0 ;
19836 int res1 = 0 ;
19837 PyObject *swig_obj[1] ;
19838
19839 if (!args) SWIG_fail;
19840 swig_obj[0] = args;
19841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19842 if (!SWIG_IsOK(res1)) {
19843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19844 }
19845 arg1 = reinterpret_cast< wxDC * >(argp1);
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 (arg1)->ResetBoundingBox();
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 resultobj = SWIG_Py_Void();
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 int result;
19863 void *argp1 = 0 ;
19864 int res1 = 0 ;
19865 PyObject *swig_obj[1] ;
19866
19867 if (!args) SWIG_fail;
19868 swig_obj[0] = args;
19869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19870 if (!SWIG_IsOK(res1)) {
19871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19872 }
19873 arg1 = reinterpret_cast< wxDC * >(argp1);
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 result = (int)((wxDC const *)arg1)->MinX();
19877 wxPyEndAllowThreads(__tstate);
19878 if (PyErr_Occurred()) SWIG_fail;
19879 }
19880 resultobj = SWIG_From_int(static_cast< int >(result));
19881 return resultobj;
19882 fail:
19883 return NULL;
19884 }
19885
19886
19887 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19888 PyObject *resultobj = 0;
19889 wxDC *arg1 = (wxDC *) 0 ;
19890 int result;
19891 void *argp1 = 0 ;
19892 int res1 = 0 ;
19893 PyObject *swig_obj[1] ;
19894
19895 if (!args) SWIG_fail;
19896 swig_obj[0] = args;
19897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19898 if (!SWIG_IsOK(res1)) {
19899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19900 }
19901 arg1 = reinterpret_cast< wxDC * >(argp1);
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 result = (int)((wxDC const *)arg1)->MaxX();
19905 wxPyEndAllowThreads(__tstate);
19906 if (PyErr_Occurred()) SWIG_fail;
19907 }
19908 resultobj = SWIG_From_int(static_cast< int >(result));
19909 return resultobj;
19910 fail:
19911 return NULL;
19912 }
19913
19914
19915 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19916 PyObject *resultobj = 0;
19917 wxDC *arg1 = (wxDC *) 0 ;
19918 int result;
19919 void *argp1 = 0 ;
19920 int res1 = 0 ;
19921 PyObject *swig_obj[1] ;
19922
19923 if (!args) SWIG_fail;
19924 swig_obj[0] = args;
19925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19926 if (!SWIG_IsOK(res1)) {
19927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19928 }
19929 arg1 = reinterpret_cast< wxDC * >(argp1);
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 result = (int)((wxDC const *)arg1)->MinY();
19933 wxPyEndAllowThreads(__tstate);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 }
19936 resultobj = SWIG_From_int(static_cast< int >(result));
19937 return resultobj;
19938 fail:
19939 return NULL;
19940 }
19941
19942
19943 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19944 PyObject *resultobj = 0;
19945 wxDC *arg1 = (wxDC *) 0 ;
19946 int result;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 PyObject *swig_obj[1] ;
19950
19951 if (!args) SWIG_fail;
19952 swig_obj[0] = args;
19953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19954 if (!SWIG_IsOK(res1)) {
19955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19956 }
19957 arg1 = reinterpret_cast< wxDC * >(argp1);
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 result = (int)((wxDC const *)arg1)->MaxY();
19961 wxPyEndAllowThreads(__tstate);
19962 if (PyErr_Occurred()) SWIG_fail;
19963 }
19964 resultobj = SWIG_From_int(static_cast< int >(result));
19965 return resultobj;
19966 fail:
19967 return NULL;
19968 }
19969
19970
19971 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19972 PyObject *resultobj = 0;
19973 wxDC *arg1 = (wxDC *) 0 ;
19974 int *arg2 = (int *) 0 ;
19975 int *arg3 = (int *) 0 ;
19976 int *arg4 = (int *) 0 ;
19977 int *arg5 = (int *) 0 ;
19978 void *argp1 = 0 ;
19979 int res1 = 0 ;
19980 int temp2 ;
19981 int res2 = SWIG_TMPOBJ ;
19982 int temp3 ;
19983 int res3 = SWIG_TMPOBJ ;
19984 int temp4 ;
19985 int res4 = SWIG_TMPOBJ ;
19986 int temp5 ;
19987 int res5 = SWIG_TMPOBJ ;
19988 PyObject *swig_obj[1] ;
19989
19990 arg2 = &temp2;
19991 arg3 = &temp3;
19992 arg4 = &temp4;
19993 arg5 = &temp5;
19994 if (!args) SWIG_fail;
19995 swig_obj[0] = args;
19996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19999 }
20000 arg1 = reinterpret_cast< wxDC * >(argp1);
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = SWIG_Py_Void();
20008 if (SWIG_IsTmpObj(res2)) {
20009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20010 } else {
20011 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20013 }
20014 if (SWIG_IsTmpObj(res3)) {
20015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20016 } else {
20017 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20019 }
20020 if (SWIG_IsTmpObj(res4)) {
20021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20022 } else {
20023 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20025 }
20026 if (SWIG_IsTmpObj(res5)) {
20027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20028 } else {
20029 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20031 }
20032 return resultobj;
20033 fail:
20034 return NULL;
20035 }
20036
20037
20038 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20039 PyObject *resultobj = 0;
20040 wxDC *arg1 = (wxDC *) 0 ;
20041 PyObject *arg2 = (PyObject *) 0 ;
20042 PyObject *arg3 = (PyObject *) 0 ;
20043 PyObject *arg4 = (PyObject *) 0 ;
20044 PyObject *result = 0 ;
20045 void *argp1 = 0 ;
20046 int res1 = 0 ;
20047 PyObject * obj0 = 0 ;
20048 PyObject * obj1 = 0 ;
20049 PyObject * obj2 = 0 ;
20050 PyObject * obj3 = 0 ;
20051 char * kwnames[] = {
20052 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20053 };
20054
20055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20057 if (!SWIG_IsOK(res1)) {
20058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20059 }
20060 arg1 = reinterpret_cast< wxDC * >(argp1);
20061 arg2 = obj1;
20062 arg3 = obj2;
20063 arg4 = obj3;
20064 {
20065 PyThreadState* __tstate = wxPyBeginAllowThreads();
20066 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20067 wxPyEndAllowThreads(__tstate);
20068 if (PyErr_Occurred()) SWIG_fail;
20069 }
20070 resultobj = result;
20071 return resultobj;
20072 fail:
20073 return NULL;
20074 }
20075
20076
20077 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20078 PyObject *resultobj = 0;
20079 wxDC *arg1 = (wxDC *) 0 ;
20080 PyObject *arg2 = (PyObject *) 0 ;
20081 PyObject *arg3 = (PyObject *) 0 ;
20082 PyObject *arg4 = (PyObject *) 0 ;
20083 PyObject *result = 0 ;
20084 void *argp1 = 0 ;
20085 int res1 = 0 ;
20086 PyObject * obj0 = 0 ;
20087 PyObject * obj1 = 0 ;
20088 PyObject * obj2 = 0 ;
20089 PyObject * obj3 = 0 ;
20090 char * kwnames[] = {
20091 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20092 };
20093
20094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20096 if (!SWIG_IsOK(res1)) {
20097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20098 }
20099 arg1 = reinterpret_cast< wxDC * >(argp1);
20100 arg2 = obj1;
20101 arg3 = obj2;
20102 arg4 = obj3;
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20106 wxPyEndAllowThreads(__tstate);
20107 if (PyErr_Occurred()) SWIG_fail;
20108 }
20109 resultobj = result;
20110 return resultobj;
20111 fail:
20112 return NULL;
20113 }
20114
20115
20116 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj = 0;
20118 wxDC *arg1 = (wxDC *) 0 ;
20119 PyObject *arg2 = (PyObject *) 0 ;
20120 PyObject *arg3 = (PyObject *) 0 ;
20121 PyObject *arg4 = (PyObject *) 0 ;
20122 PyObject *result = 0 ;
20123 void *argp1 = 0 ;
20124 int res1 = 0 ;
20125 PyObject * obj0 = 0 ;
20126 PyObject * obj1 = 0 ;
20127 PyObject * obj2 = 0 ;
20128 PyObject * obj3 = 0 ;
20129 char * kwnames[] = {
20130 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20131 };
20132
20133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20135 if (!SWIG_IsOK(res1)) {
20136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20137 }
20138 arg1 = reinterpret_cast< wxDC * >(argp1);
20139 arg2 = obj1;
20140 arg3 = obj2;
20141 arg4 = obj3;
20142 {
20143 PyThreadState* __tstate = wxPyBeginAllowThreads();
20144 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20145 wxPyEndAllowThreads(__tstate);
20146 if (PyErr_Occurred()) SWIG_fail;
20147 }
20148 resultobj = result;
20149 return resultobj;
20150 fail:
20151 return NULL;
20152 }
20153
20154
20155 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20156 PyObject *resultobj = 0;
20157 wxDC *arg1 = (wxDC *) 0 ;
20158 PyObject *arg2 = (PyObject *) 0 ;
20159 PyObject *arg3 = (PyObject *) 0 ;
20160 PyObject *arg4 = (PyObject *) 0 ;
20161 PyObject *result = 0 ;
20162 void *argp1 = 0 ;
20163 int res1 = 0 ;
20164 PyObject * obj0 = 0 ;
20165 PyObject * obj1 = 0 ;
20166 PyObject * obj2 = 0 ;
20167 PyObject * obj3 = 0 ;
20168 char * kwnames[] = {
20169 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20170 };
20171
20172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20174 if (!SWIG_IsOK(res1)) {
20175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20176 }
20177 arg1 = reinterpret_cast< wxDC * >(argp1);
20178 arg2 = obj1;
20179 arg3 = obj2;
20180 arg4 = obj3;
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 resultobj = result;
20188 return resultobj;
20189 fail:
20190 return NULL;
20191 }
20192
20193
20194 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj = 0;
20196 wxDC *arg1 = (wxDC *) 0 ;
20197 PyObject *arg2 = (PyObject *) 0 ;
20198 PyObject *arg3 = (PyObject *) 0 ;
20199 PyObject *arg4 = (PyObject *) 0 ;
20200 PyObject *result = 0 ;
20201 void *argp1 = 0 ;
20202 int res1 = 0 ;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 PyObject * obj2 = 0 ;
20206 PyObject * obj3 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20215 }
20216 arg1 = reinterpret_cast< wxDC * >(argp1);
20217 arg2 = obj1;
20218 arg3 = obj2;
20219 arg4 = obj3;
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = result;
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 PyObject *arg2 = (PyObject *) 0 ;
20237 PyObject *arg3 = (PyObject *) 0 ;
20238 PyObject *arg4 = (PyObject *) 0 ;
20239 PyObject *arg5 = (PyObject *) 0 ;
20240 PyObject *result = 0 ;
20241 void *argp1 = 0 ;
20242 int res1 = 0 ;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20245 PyObject * obj2 = 0 ;
20246 PyObject * obj3 = 0 ;
20247 PyObject * obj4 = 0 ;
20248 char * kwnames[] = {
20249 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20250 };
20251
20252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20254 if (!SWIG_IsOK(res1)) {
20255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20256 }
20257 arg1 = reinterpret_cast< wxDC * >(argp1);
20258 arg2 = obj1;
20259 arg3 = obj2;
20260 arg4 = obj3;
20261 arg5 = obj4;
20262 {
20263 PyThreadState* __tstate = wxPyBeginAllowThreads();
20264 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20265 wxPyEndAllowThreads(__tstate);
20266 if (PyErr_Occurred()) SWIG_fail;
20267 }
20268 resultobj = result;
20269 return resultobj;
20270 fail:
20271 return NULL;
20272 }
20273
20274
20275 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20276 PyObject *obj;
20277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20278 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20279 return SWIG_Py_Void();
20280 }
20281
20282 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20283 PyObject *resultobj = 0;
20284 wxMemoryDC *result = 0 ;
20285
20286 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20287 {
20288 if (!wxPyCheckForApp()) SWIG_fail;
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 result = (wxMemoryDC *)new wxMemoryDC();
20291 wxPyEndAllowThreads(__tstate);
20292 if (PyErr_Occurred()) SWIG_fail;
20293 }
20294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20295 return resultobj;
20296 fail:
20297 return NULL;
20298 }
20299
20300
20301 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20302 PyObject *resultobj = 0;
20303 wxDC *arg1 = (wxDC *) 0 ;
20304 wxMemoryDC *result = 0 ;
20305 void *argp1 = 0 ;
20306 int res1 = 0 ;
20307 PyObject * obj0 = 0 ;
20308 char * kwnames[] = {
20309 (char *) "oldDC", NULL
20310 };
20311
20312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20314 if (!SWIG_IsOK(res1)) {
20315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20316 }
20317 arg1 = reinterpret_cast< wxDC * >(argp1);
20318 {
20319 if (!wxPyCheckForApp()) SWIG_fail;
20320 PyThreadState* __tstate = wxPyBeginAllowThreads();
20321 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20322 wxPyEndAllowThreads(__tstate);
20323 if (PyErr_Occurred()) SWIG_fail;
20324 }
20325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20326 return resultobj;
20327 fail:
20328 return NULL;
20329 }
20330
20331
20332 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj = 0;
20334 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20335 wxBitmap *arg2 = 0 ;
20336 void *argp1 = 0 ;
20337 int res1 = 0 ;
20338 void *argp2 = 0 ;
20339 int res2 = 0 ;
20340 PyObject * obj0 = 0 ;
20341 PyObject * obj1 = 0 ;
20342 char * kwnames[] = {
20343 (char *) "self",(char *) "bitmap", NULL
20344 };
20345
20346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20348 if (!SWIG_IsOK(res1)) {
20349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20350 }
20351 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20352 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20353 if (!SWIG_IsOK(res2)) {
20354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20355 }
20356 if (!argp2) {
20357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20358 }
20359 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 (arg1)->SelectObject((wxBitmap const &)*arg2);
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 resultobj = SWIG_Py_Void();
20367 return resultobj;
20368 fail:
20369 return NULL;
20370 }
20371
20372
20373 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20374 PyObject *obj;
20375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20376 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20377 return SWIG_Py_Void();
20378 }
20379
20380 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20381 return SWIG_Python_InitShadowInstance(args);
20382 }
20383
20384 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20385 PyObject *resultobj = 0;
20386 wxDC *arg1 = (wxDC *) 0 ;
20387 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20388 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20389 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20390 wxBufferedDC *result = 0 ;
20391 void *argp1 = 0 ;
20392 int res1 = 0 ;
20393 void *argp2 = 0 ;
20394 int res2 = 0 ;
20395 int val3 ;
20396 int ecode3 = 0 ;
20397
20398 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20400 if (!SWIG_IsOK(res1)) {
20401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20402 }
20403 arg1 = reinterpret_cast< wxDC * >(argp1);
20404 if (swig_obj[1]) {
20405 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20406 if (!SWIG_IsOK(res2)) {
20407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20408 }
20409 if (!argp2) {
20410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20411 }
20412 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20413 }
20414 if (swig_obj[2]) {
20415 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20416 if (!SWIG_IsOK(ecode3)) {
20417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20418 }
20419 arg3 = static_cast< int >(val3);
20420 }
20421 {
20422 if (!wxPyCheckForApp()) SWIG_fail;
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20425 wxPyEndAllowThreads(__tstate);
20426 if (PyErr_Occurred()) SWIG_fail;
20427 }
20428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20429 return resultobj;
20430 fail:
20431 return NULL;
20432 }
20433
20434
20435 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20436 PyObject *resultobj = 0;
20437 wxDC *arg1 = (wxDC *) 0 ;
20438 wxSize *arg2 = 0 ;
20439 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20440 wxBufferedDC *result = 0 ;
20441 void *argp1 = 0 ;
20442 int res1 = 0 ;
20443 wxSize temp2 ;
20444 int val3 ;
20445 int ecode3 = 0 ;
20446
20447 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20449 if (!SWIG_IsOK(res1)) {
20450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20451 }
20452 arg1 = reinterpret_cast< wxDC * >(argp1);
20453 {
20454 arg2 = &temp2;
20455 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20456 }
20457 if (swig_obj[2]) {
20458 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20459 if (!SWIG_IsOK(ecode3)) {
20460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20461 }
20462 arg3 = static_cast< int >(val3);
20463 }
20464 {
20465 if (!wxPyCheckForApp()) SWIG_fail;
20466 PyThreadState* __tstate = wxPyBeginAllowThreads();
20467 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20468 wxPyEndAllowThreads(__tstate);
20469 if (PyErr_Occurred()) SWIG_fail;
20470 }
20471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20472 return resultobj;
20473 fail:
20474 return NULL;
20475 }
20476
20477
20478 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20479 int argc;
20480 PyObject *argv[4];
20481
20482 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20483 --argc;
20484 if ((argc >= 1) && (argc <= 3)) {
20485 int _v = 0;
20486 if (argc > 1) {
20487 {
20488 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20489 _v = SWIG_CheckState(res);
20490 }
20491 if (!_v) goto check_1;
20492 }
20493 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20494 }
20495 check_1:
20496
20497 if ((argc >= 2) && (argc <= 3)) {
20498 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20499 }
20500
20501 fail:
20502 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20508 PyObject *resultobj = 0;
20509 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20510 void *argp1 = 0 ;
20511 int res1 = 0 ;
20512 PyObject *swig_obj[1] ;
20513
20514 if (!args) SWIG_fail;
20515 swig_obj[0] = args;
20516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20519 }
20520 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20521 {
20522 PyThreadState* __tstate = wxPyBeginAllowThreads();
20523 delete arg1;
20524
20525 wxPyEndAllowThreads(__tstate);
20526 if (PyErr_Occurred()) SWIG_fail;
20527 }
20528 resultobj = SWIG_Py_Void();
20529 return resultobj;
20530 fail:
20531 return NULL;
20532 }
20533
20534
20535 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20536 PyObject *resultobj = 0;
20537 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 PyObject *swig_obj[1] ;
20541
20542 if (!args) SWIG_fail;
20543 swig_obj[0] = args;
20544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20545 if (!SWIG_IsOK(res1)) {
20546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20547 }
20548 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20549 {
20550 PyThreadState* __tstate = wxPyBeginAllowThreads();
20551 (arg1)->UnMask();
20552 wxPyEndAllowThreads(__tstate);
20553 if (PyErr_Occurred()) SWIG_fail;
20554 }
20555 resultobj = SWIG_Py_Void();
20556 return resultobj;
20557 fail:
20558 return NULL;
20559 }
20560
20561
20562 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20563 PyObject *obj;
20564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20565 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20566 return SWIG_Py_Void();
20567 }
20568
20569 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20570 return SWIG_Python_InitShadowInstance(args);
20571 }
20572
20573 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj = 0;
20575 wxWindow *arg1 = (wxWindow *) 0 ;
20576 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20577 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20578 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20579 wxBufferedPaintDC *result = 0 ;
20580 void *argp1 = 0 ;
20581 int res1 = 0 ;
20582 void *argp2 = 0 ;
20583 int res2 = 0 ;
20584 int val3 ;
20585 int ecode3 = 0 ;
20586 PyObject * obj0 = 0 ;
20587 PyObject * obj1 = 0 ;
20588 PyObject * obj2 = 0 ;
20589 char * kwnames[] = {
20590 (char *) "window",(char *) "buffer",(char *) "style", NULL
20591 };
20592
20593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20595 if (!SWIG_IsOK(res1)) {
20596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20597 }
20598 arg1 = reinterpret_cast< wxWindow * >(argp1);
20599 if (obj1) {
20600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20601 if (!SWIG_IsOK(res2)) {
20602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20603 }
20604 if (!argp2) {
20605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20606 }
20607 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20608 }
20609 if (obj2) {
20610 ecode3 = SWIG_AsVal_int(obj2, &val3);
20611 if (!SWIG_IsOK(ecode3)) {
20612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20613 }
20614 arg3 = static_cast< int >(val3);
20615 }
20616 {
20617 if (!wxPyCheckForApp()) SWIG_fail;
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20624 return resultobj;
20625 fail:
20626 return NULL;
20627 }
20628
20629
20630 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20631 PyObject *obj;
20632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20633 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20634 return SWIG_Py_Void();
20635 }
20636
20637 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20638 return SWIG_Python_InitShadowInstance(args);
20639 }
20640
20641 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20642 PyObject *resultobj = 0;
20643 wxScreenDC *result = 0 ;
20644
20645 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20646 {
20647 if (!wxPyCheckForApp()) SWIG_fail;
20648 PyThreadState* __tstate = wxPyBeginAllowThreads();
20649 result = (wxScreenDC *)new wxScreenDC();
20650 wxPyEndAllowThreads(__tstate);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 }
20653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20654 return resultobj;
20655 fail:
20656 return NULL;
20657 }
20658
20659
20660 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20661 PyObject *resultobj = 0;
20662 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20663 wxWindow *arg2 = (wxWindow *) 0 ;
20664 bool result;
20665 void *argp1 = 0 ;
20666 int res1 = 0 ;
20667 void *argp2 = 0 ;
20668 int res2 = 0 ;
20669 PyObject * obj0 = 0 ;
20670 PyObject * obj1 = 0 ;
20671 char * kwnames[] = {
20672 (char *) "self",(char *) "window", NULL
20673 };
20674
20675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20677 if (!SWIG_IsOK(res1)) {
20678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20679 }
20680 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20681 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20682 if (!SWIG_IsOK(res2)) {
20683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20684 }
20685 arg2 = reinterpret_cast< wxWindow * >(argp2);
20686 {
20687 PyThreadState* __tstate = wxPyBeginAllowThreads();
20688 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 {
20693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20694 }
20695 return resultobj;
20696 fail:
20697 return NULL;
20698 }
20699
20700
20701 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20702 PyObject *resultobj = 0;
20703 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20704 wxRect *arg2 = (wxRect *) NULL ;
20705 bool result;
20706 void *argp1 = 0 ;
20707 int res1 = 0 ;
20708 void *argp2 = 0 ;
20709 int res2 = 0 ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "rect", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20720 }
20721 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20722 if (obj1) {
20723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20724 if (!SWIG_IsOK(res2)) {
20725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20726 }
20727 arg2 = reinterpret_cast< wxRect * >(argp2);
20728 }
20729 {
20730 PyThreadState* __tstate = wxPyBeginAllowThreads();
20731 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20732 wxPyEndAllowThreads(__tstate);
20733 if (PyErr_Occurred()) SWIG_fail;
20734 }
20735 {
20736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20737 }
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20745 PyObject *resultobj = 0;
20746 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20747 bool result;
20748 void *argp1 = 0 ;
20749 int res1 = 0 ;
20750 PyObject *swig_obj[1] ;
20751
20752 if (!args) SWIG_fail;
20753 swig_obj[0] = args;
20754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20755 if (!SWIG_IsOK(res1)) {
20756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20757 }
20758 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (bool)(arg1)->EndDrawingOnTop();
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 {
20766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20767 }
20768 return resultobj;
20769 fail:
20770 return NULL;
20771 }
20772
20773
20774 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20775 PyObject *obj;
20776 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20777 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20778 return SWIG_Py_Void();
20779 }
20780
20781 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20782 return SWIG_Python_InitShadowInstance(args);
20783 }
20784
20785 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20786 PyObject *resultobj = 0;
20787 wxWindow *arg1 = (wxWindow *) 0 ;
20788 wxClientDC *result = 0 ;
20789 void *argp1 = 0 ;
20790 int res1 = 0 ;
20791 PyObject * obj0 = 0 ;
20792 char * kwnames[] = {
20793 (char *) "win", NULL
20794 };
20795
20796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20798 if (!SWIG_IsOK(res1)) {
20799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20800 }
20801 arg1 = reinterpret_cast< wxWindow * >(argp1);
20802 {
20803 if (!wxPyCheckForApp()) SWIG_fail;
20804 PyThreadState* __tstate = wxPyBeginAllowThreads();
20805 result = (wxClientDC *)new wxClientDC(arg1);
20806 wxPyEndAllowThreads(__tstate);
20807 if (PyErr_Occurred()) SWIG_fail;
20808 }
20809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20810 return resultobj;
20811 fail:
20812 return NULL;
20813 }
20814
20815
20816 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20817 PyObject *obj;
20818 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20819 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20820 return SWIG_Py_Void();
20821 }
20822
20823 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20824 return SWIG_Python_InitShadowInstance(args);
20825 }
20826
20827 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20828 PyObject *resultobj = 0;
20829 wxWindow *arg1 = (wxWindow *) 0 ;
20830 wxPaintDC *result = 0 ;
20831 void *argp1 = 0 ;
20832 int res1 = 0 ;
20833 PyObject * obj0 = 0 ;
20834 char * kwnames[] = {
20835 (char *) "win", NULL
20836 };
20837
20838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20840 if (!SWIG_IsOK(res1)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20842 }
20843 arg1 = reinterpret_cast< wxWindow * >(argp1);
20844 {
20845 if (!wxPyCheckForApp()) SWIG_fail;
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = (wxPaintDC *)new wxPaintDC(arg1);
20848 wxPyEndAllowThreads(__tstate);
20849 if (PyErr_Occurred()) SWIG_fail;
20850 }
20851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20852 return resultobj;
20853 fail:
20854 return NULL;
20855 }
20856
20857
20858 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20859 PyObject *obj;
20860 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20861 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20862 return SWIG_Py_Void();
20863 }
20864
20865 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20866 return SWIG_Python_InitShadowInstance(args);
20867 }
20868
20869 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20870 PyObject *resultobj = 0;
20871 wxWindow *arg1 = (wxWindow *) 0 ;
20872 wxWindowDC *result = 0 ;
20873 void *argp1 = 0 ;
20874 int res1 = 0 ;
20875 PyObject * obj0 = 0 ;
20876 char * kwnames[] = {
20877 (char *) "win", NULL
20878 };
20879
20880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20882 if (!SWIG_IsOK(res1)) {
20883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20884 }
20885 arg1 = reinterpret_cast< wxWindow * >(argp1);
20886 {
20887 if (!wxPyCheckForApp()) SWIG_fail;
20888 PyThreadState* __tstate = wxPyBeginAllowThreads();
20889 result = (wxWindowDC *)new wxWindowDC(arg1);
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20894 return resultobj;
20895 fail:
20896 return NULL;
20897 }
20898
20899
20900 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20901 PyObject *obj;
20902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20903 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20904 return SWIG_Py_Void();
20905 }
20906
20907 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20908 return SWIG_Python_InitShadowInstance(args);
20909 }
20910
20911 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20912 PyObject *resultobj = 0;
20913 wxDC *arg1 = 0 ;
20914 bool arg2 ;
20915 wxMirrorDC *result = 0 ;
20916 void *argp1 = 0 ;
20917 int res1 = 0 ;
20918 bool val2 ;
20919 int ecode2 = 0 ;
20920 PyObject * obj0 = 0 ;
20921 PyObject * obj1 = 0 ;
20922 char * kwnames[] = {
20923 (char *) "dc",(char *) "mirror", NULL
20924 };
20925
20926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20927 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20928 if (!SWIG_IsOK(res1)) {
20929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20930 }
20931 if (!argp1) {
20932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20933 }
20934 arg1 = reinterpret_cast< wxDC * >(argp1);
20935 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20936 if (!SWIG_IsOK(ecode2)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20938 }
20939 arg2 = static_cast< bool >(val2);
20940 {
20941 if (!wxPyCheckForApp()) SWIG_fail;
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20948 return resultobj;
20949 fail:
20950 return NULL;
20951 }
20952
20953
20954 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20955 PyObject *obj;
20956 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20957 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20958 return SWIG_Py_Void();
20959 }
20960
20961 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20962 return SWIG_Python_InitShadowInstance(args);
20963 }
20964
20965 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20966 PyObject *resultobj = 0;
20967 wxPrintData *arg1 = 0 ;
20968 wxPostScriptDC *result = 0 ;
20969 void *argp1 = 0 ;
20970 int res1 = 0 ;
20971 PyObject * obj0 = 0 ;
20972 char * kwnames[] = {
20973 (char *) "printData", NULL
20974 };
20975
20976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20977 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20978 if (!SWIG_IsOK(res1)) {
20979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20980 }
20981 if (!argp1) {
20982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20983 }
20984 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20985 {
20986 if (!wxPyCheckForApp()) SWIG_fail;
20987 PyThreadState* __tstate = wxPyBeginAllowThreads();
20988 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20989 wxPyEndAllowThreads(__tstate);
20990 if (PyErr_Occurred()) SWIG_fail;
20991 }
20992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21000 PyObject *resultobj = 0;
21001 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21002 wxPrintData *result = 0 ;
21003 void *argp1 = 0 ;
21004 int res1 = 0 ;
21005 PyObject *swig_obj[1] ;
21006
21007 if (!args) SWIG_fail;
21008 swig_obj[0] = args;
21009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21010 if (!SWIG_IsOK(res1)) {
21011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21012 }
21013 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21014 {
21015 PyThreadState* __tstate = wxPyBeginAllowThreads();
21016 {
21017 wxPrintData &_result_ref = (arg1)->GetPrintData();
21018 result = (wxPrintData *) &_result_ref;
21019 }
21020 wxPyEndAllowThreads(__tstate);
21021 if (PyErr_Occurred()) SWIG_fail;
21022 }
21023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21024 return resultobj;
21025 fail:
21026 return NULL;
21027 }
21028
21029
21030 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21031 PyObject *resultobj = 0;
21032 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21033 wxPrintData *arg2 = 0 ;
21034 void *argp1 = 0 ;
21035 int res1 = 0 ;
21036 void *argp2 = 0 ;
21037 int res2 = 0 ;
21038 PyObject * obj0 = 0 ;
21039 PyObject * obj1 = 0 ;
21040 char * kwnames[] = {
21041 (char *) "self",(char *) "data", NULL
21042 };
21043
21044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21046 if (!SWIG_IsOK(res1)) {
21047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21048 }
21049 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21051 if (!SWIG_IsOK(res2)) {
21052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21053 }
21054 if (!argp2) {
21055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21056 }
21057 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21058 {
21059 PyThreadState* __tstate = wxPyBeginAllowThreads();
21060 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21061 wxPyEndAllowThreads(__tstate);
21062 if (PyErr_Occurred()) SWIG_fail;
21063 }
21064 resultobj = SWIG_Py_Void();
21065 return resultobj;
21066 fail:
21067 return NULL;
21068 }
21069
21070
21071 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21072 PyObject *resultobj = 0;
21073 int arg1 ;
21074 int val1 ;
21075 int ecode1 = 0 ;
21076 PyObject * obj0 = 0 ;
21077 char * kwnames[] = {
21078 (char *) "ppi", NULL
21079 };
21080
21081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21082 ecode1 = SWIG_AsVal_int(obj0, &val1);
21083 if (!SWIG_IsOK(ecode1)) {
21084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21085 }
21086 arg1 = static_cast< int >(val1);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 wxPostScriptDC::SetResolution(arg1);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_Py_Void();
21094 return resultobj;
21095 fail:
21096 return NULL;
21097 }
21098
21099
21100 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21101 PyObject *resultobj = 0;
21102 int result;
21103
21104 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21105 {
21106 PyThreadState* __tstate = wxPyBeginAllowThreads();
21107 result = (int)wxPostScriptDC::GetResolution();
21108 wxPyEndAllowThreads(__tstate);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 resultobj = SWIG_From_int(static_cast< int >(result));
21112 return resultobj;
21113 fail:
21114 return NULL;
21115 }
21116
21117
21118 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21119 PyObject *obj;
21120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21121 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21122 return SWIG_Py_Void();
21123 }
21124
21125 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21126 return SWIG_Python_InitShadowInstance(args);
21127 }
21128
21129 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21130 PyObject *resultobj = 0;
21131 wxString const &arg1_defvalue = wxPyEmptyString ;
21132 wxString *arg1 = (wxString *) &arg1_defvalue ;
21133 wxMetaFile *result = 0 ;
21134 bool temp1 = false ;
21135 PyObject * obj0 = 0 ;
21136 char * kwnames[] = {
21137 (char *) "filename", NULL
21138 };
21139
21140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21141 if (obj0) {
21142 {
21143 arg1 = wxString_in_helper(obj0);
21144 if (arg1 == NULL) SWIG_fail;
21145 temp1 = true;
21146 }
21147 }
21148 {
21149 if (!wxPyCheckForApp()) SWIG_fail;
21150 PyThreadState* __tstate = wxPyBeginAllowThreads();
21151 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21156 {
21157 if (temp1)
21158 delete arg1;
21159 }
21160 return resultobj;
21161 fail:
21162 {
21163 if (temp1)
21164 delete arg1;
21165 }
21166 return NULL;
21167 }
21168
21169
21170 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21171 PyObject *obj;
21172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21173 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21174 return SWIG_Py_Void();
21175 }
21176
21177 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21178 return SWIG_Python_InitShadowInstance(args);
21179 }
21180
21181 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21182 PyObject *resultobj = 0;
21183 wxString const &arg1_defvalue = wxPyEmptyString ;
21184 wxString *arg1 = (wxString *) &arg1_defvalue ;
21185 int arg2 = (int) 0 ;
21186 int arg3 = (int) 0 ;
21187 wxString const &arg4_defvalue = wxPyEmptyString ;
21188 wxString *arg4 = (wxString *) &arg4_defvalue ;
21189 wxMetaFileDC *result = 0 ;
21190 bool temp1 = false ;
21191 int val2 ;
21192 int ecode2 = 0 ;
21193 int val3 ;
21194 int ecode3 = 0 ;
21195 bool temp4 = false ;
21196 PyObject * obj0 = 0 ;
21197 PyObject * obj1 = 0 ;
21198 PyObject * obj2 = 0 ;
21199 PyObject * obj3 = 0 ;
21200 char * kwnames[] = {
21201 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21202 };
21203
21204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21205 if (obj0) {
21206 {
21207 arg1 = wxString_in_helper(obj0);
21208 if (arg1 == NULL) SWIG_fail;
21209 temp1 = true;
21210 }
21211 }
21212 if (obj1) {
21213 ecode2 = SWIG_AsVal_int(obj1, &val2);
21214 if (!SWIG_IsOK(ecode2)) {
21215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21216 }
21217 arg2 = static_cast< int >(val2);
21218 }
21219 if (obj2) {
21220 ecode3 = SWIG_AsVal_int(obj2, &val3);
21221 if (!SWIG_IsOK(ecode3)) {
21222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21223 }
21224 arg3 = static_cast< int >(val3);
21225 }
21226 if (obj3) {
21227 {
21228 arg4 = wxString_in_helper(obj3);
21229 if (arg4 == NULL) SWIG_fail;
21230 temp4 = true;
21231 }
21232 }
21233 {
21234 if (!wxPyCheckForApp()) SWIG_fail;
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21241 {
21242 if (temp1)
21243 delete arg1;
21244 }
21245 {
21246 if (temp4)
21247 delete arg4;
21248 }
21249 return resultobj;
21250 fail:
21251 {
21252 if (temp1)
21253 delete arg1;
21254 }
21255 {
21256 if (temp4)
21257 delete arg4;
21258 }
21259 return NULL;
21260 }
21261
21262
21263 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21264 PyObject *obj;
21265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21266 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21267 return SWIG_Py_Void();
21268 }
21269
21270 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21271 return SWIG_Python_InitShadowInstance(args);
21272 }
21273
21274 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21275 PyObject *resultobj = 0;
21276 wxPrintData *arg1 = 0 ;
21277 wxPrinterDC *result = 0 ;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 PyObject * obj0 = 0 ;
21281 char * kwnames[] = {
21282 (char *) "printData", NULL
21283 };
21284
21285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21286 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21287 if (!SWIG_IsOK(res1)) {
21288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21289 }
21290 if (!argp1) {
21291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21292 }
21293 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21294 {
21295 if (!wxPyCheckForApp()) SWIG_fail;
21296 PyThreadState* __tstate = wxPyBeginAllowThreads();
21297 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21298 wxPyEndAllowThreads(__tstate);
21299 if (PyErr_Occurred()) SWIG_fail;
21300 }
21301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21302 return resultobj;
21303 fail:
21304 return NULL;
21305 }
21306
21307
21308 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21309 PyObject *obj;
21310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21311 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21312 return SWIG_Py_Void();
21313 }
21314
21315 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21316 return SWIG_Python_InitShadowInstance(args);
21317 }
21318
21319 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21320 PyObject *resultobj = 0;
21321 int arg1 ;
21322 int arg2 ;
21323 int arg3 = (int) true ;
21324 int arg4 = (int) 1 ;
21325 wxImageList *result = 0 ;
21326 int val1 ;
21327 int ecode1 = 0 ;
21328 int val2 ;
21329 int ecode2 = 0 ;
21330 int val3 ;
21331 int ecode3 = 0 ;
21332 int val4 ;
21333 int ecode4 = 0 ;
21334 PyObject * obj0 = 0 ;
21335 PyObject * obj1 = 0 ;
21336 PyObject * obj2 = 0 ;
21337 PyObject * obj3 = 0 ;
21338 char * kwnames[] = {
21339 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21340 };
21341
21342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21343 ecode1 = SWIG_AsVal_int(obj0, &val1);
21344 if (!SWIG_IsOK(ecode1)) {
21345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21346 }
21347 arg1 = static_cast< int >(val1);
21348 ecode2 = SWIG_AsVal_int(obj1, &val2);
21349 if (!SWIG_IsOK(ecode2)) {
21350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21351 }
21352 arg2 = static_cast< int >(val2);
21353 if (obj2) {
21354 ecode3 = SWIG_AsVal_int(obj2, &val3);
21355 if (!SWIG_IsOK(ecode3)) {
21356 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21357 }
21358 arg3 = static_cast< int >(val3);
21359 }
21360 if (obj3) {
21361 ecode4 = SWIG_AsVal_int(obj3, &val4);
21362 if (!SWIG_IsOK(ecode4)) {
21363 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21364 }
21365 arg4 = static_cast< int >(val4);
21366 }
21367 {
21368 if (!wxPyCheckForApp()) SWIG_fail;
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 {
21375 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21376 }
21377 return resultobj;
21378 fail:
21379 return NULL;
21380 }
21381
21382
21383 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21384 PyObject *resultobj = 0;
21385 wxImageList *arg1 = (wxImageList *) 0 ;
21386 void *argp1 = 0 ;
21387 int res1 = 0 ;
21388 PyObject *swig_obj[1] ;
21389
21390 if (!args) SWIG_fail;
21391 swig_obj[0] = args;
21392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21393 if (!SWIG_IsOK(res1)) {
21394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21395 }
21396 arg1 = reinterpret_cast< wxImageList * >(argp1);
21397 {
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 delete arg1;
21400
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 resultobj = SWIG_Py_Void();
21405 return resultobj;
21406 fail:
21407 return NULL;
21408 }
21409
21410
21411 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21412 PyObject *resultobj = 0;
21413 wxImageList *arg1 = (wxImageList *) 0 ;
21414 wxBitmap *arg2 = 0 ;
21415 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21416 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21417 int result;
21418 void *argp1 = 0 ;
21419 int res1 = 0 ;
21420 void *argp2 = 0 ;
21421 int res2 = 0 ;
21422 void *argp3 = 0 ;
21423 int res3 = 0 ;
21424 PyObject * obj0 = 0 ;
21425 PyObject * obj1 = 0 ;
21426 PyObject * obj2 = 0 ;
21427 char * kwnames[] = {
21428 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21429 };
21430
21431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21433 if (!SWIG_IsOK(res1)) {
21434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21435 }
21436 arg1 = reinterpret_cast< wxImageList * >(argp1);
21437 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21438 if (!SWIG_IsOK(res2)) {
21439 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21440 }
21441 if (!argp2) {
21442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21443 }
21444 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21445 if (obj2) {
21446 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21447 if (!SWIG_IsOK(res3)) {
21448 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21449 }
21450 if (!argp3) {
21451 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21452 }
21453 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21454 }
21455 {
21456 PyThreadState* __tstate = wxPyBeginAllowThreads();
21457 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21458 wxPyEndAllowThreads(__tstate);
21459 if (PyErr_Occurred()) SWIG_fail;
21460 }
21461 resultobj = SWIG_From_int(static_cast< int >(result));
21462 return resultobj;
21463 fail:
21464 return NULL;
21465 }
21466
21467
21468 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21469 PyObject *resultobj = 0;
21470 wxImageList *arg1 = (wxImageList *) 0 ;
21471 wxBitmap *arg2 = 0 ;
21472 wxColour *arg3 = 0 ;
21473 int result;
21474 void *argp1 = 0 ;
21475 int res1 = 0 ;
21476 void *argp2 = 0 ;
21477 int res2 = 0 ;
21478 wxColour temp3 ;
21479 PyObject * obj0 = 0 ;
21480 PyObject * obj1 = 0 ;
21481 PyObject * obj2 = 0 ;
21482 char * kwnames[] = {
21483 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21484 };
21485
21486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21488 if (!SWIG_IsOK(res1)) {
21489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21490 }
21491 arg1 = reinterpret_cast< wxImageList * >(argp1);
21492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21493 if (!SWIG_IsOK(res2)) {
21494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21495 }
21496 if (!argp2) {
21497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21498 }
21499 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21500 {
21501 arg3 = &temp3;
21502 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21503 }
21504 {
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_From_int(static_cast< int >(result));
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21518 PyObject *resultobj = 0;
21519 wxImageList *arg1 = (wxImageList *) 0 ;
21520 wxIcon *arg2 = 0 ;
21521 int result;
21522 void *argp1 = 0 ;
21523 int res1 = 0 ;
21524 void *argp2 = 0 ;
21525 int res2 = 0 ;
21526 PyObject * obj0 = 0 ;
21527 PyObject * obj1 = 0 ;
21528 char * kwnames[] = {
21529 (char *) "self",(char *) "icon", NULL
21530 };
21531
21532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21536 }
21537 arg1 = reinterpret_cast< wxImageList * >(argp1);
21538 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21539 if (!SWIG_IsOK(res2)) {
21540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21541 }
21542 if (!argp2) {
21543 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21544 }
21545 arg2 = reinterpret_cast< wxIcon * >(argp2);
21546 {
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 resultobj = SWIG_From_int(static_cast< int >(result));
21553 return resultobj;
21554 fail:
21555 return NULL;
21556 }
21557
21558
21559 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21560 PyObject *resultobj = 0;
21561 wxImageList *arg1 = (wxImageList *) 0 ;
21562 int arg2 ;
21563 SwigValueWrapper<wxBitmap > result;
21564 void *argp1 = 0 ;
21565 int res1 = 0 ;
21566 int val2 ;
21567 int ecode2 = 0 ;
21568 PyObject * obj0 = 0 ;
21569 PyObject * obj1 = 0 ;
21570 char * kwnames[] = {
21571 (char *) "self",(char *) "index", NULL
21572 };
21573
21574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21576 if (!SWIG_IsOK(res1)) {
21577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21578 }
21579 arg1 = reinterpret_cast< wxImageList * >(argp1);
21580 ecode2 = SWIG_AsVal_int(obj1, &val2);
21581 if (!SWIG_IsOK(ecode2)) {
21582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21583 }
21584 arg2 = static_cast< int >(val2);
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21588 wxPyEndAllowThreads(__tstate);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 }
21591 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21592 return resultobj;
21593 fail:
21594 return NULL;
21595 }
21596
21597
21598 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21599 PyObject *resultobj = 0;
21600 wxImageList *arg1 = (wxImageList *) 0 ;
21601 int arg2 ;
21602 wxIcon result;
21603 void *argp1 = 0 ;
21604 int res1 = 0 ;
21605 int val2 ;
21606 int ecode2 = 0 ;
21607 PyObject * obj0 = 0 ;
21608 PyObject * obj1 = 0 ;
21609 char * kwnames[] = {
21610 (char *) "self",(char *) "index", NULL
21611 };
21612
21613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21615 if (!SWIG_IsOK(res1)) {
21616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21617 }
21618 arg1 = reinterpret_cast< wxImageList * >(argp1);
21619 ecode2 = SWIG_AsVal_int(obj1, &val2);
21620 if (!SWIG_IsOK(ecode2)) {
21621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21622 }
21623 arg2 = static_cast< int >(val2);
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21627 wxPyEndAllowThreads(__tstate);
21628 if (PyErr_Occurred()) SWIG_fail;
21629 }
21630 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21631 return resultobj;
21632 fail:
21633 return NULL;
21634 }
21635
21636
21637 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21638 PyObject *resultobj = 0;
21639 wxImageList *arg1 = (wxImageList *) 0 ;
21640 int arg2 ;
21641 wxBitmap *arg3 = 0 ;
21642 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21643 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21644 bool result;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 int val2 ;
21648 int ecode2 = 0 ;
21649 void *argp3 = 0 ;
21650 int res3 = 0 ;
21651 void *argp4 = 0 ;
21652 int res4 = 0 ;
21653 PyObject * obj0 = 0 ;
21654 PyObject * obj1 = 0 ;
21655 PyObject * obj2 = 0 ;
21656 PyObject * obj3 = 0 ;
21657 char * kwnames[] = {
21658 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21659 };
21660
21661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21663 if (!SWIG_IsOK(res1)) {
21664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21665 }
21666 arg1 = reinterpret_cast< wxImageList * >(argp1);
21667 ecode2 = SWIG_AsVal_int(obj1, &val2);
21668 if (!SWIG_IsOK(ecode2)) {
21669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21670 }
21671 arg2 = static_cast< int >(val2);
21672 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21673 if (!SWIG_IsOK(res3)) {
21674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21675 }
21676 if (!argp3) {
21677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21678 }
21679 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21680 if (obj3) {
21681 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21682 if (!SWIG_IsOK(res4)) {
21683 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21684 }
21685 if (!argp4) {
21686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21687 }
21688 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21689 }
21690 {
21691 PyThreadState* __tstate = wxPyBeginAllowThreads();
21692 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21693 wxPyEndAllowThreads(__tstate);
21694 if (PyErr_Occurred()) SWIG_fail;
21695 }
21696 {
21697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21698 }
21699 return resultobj;
21700 fail:
21701 return NULL;
21702 }
21703
21704
21705 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21706 PyObject *resultobj = 0;
21707 wxImageList *arg1 = (wxImageList *) 0 ;
21708 int arg2 ;
21709 wxDC *arg3 = 0 ;
21710 int arg4 ;
21711 int arg5 ;
21712 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21713 bool arg7 = (bool) (bool)false ;
21714 bool result;
21715 void *argp1 = 0 ;
21716 int res1 = 0 ;
21717 int val2 ;
21718 int ecode2 = 0 ;
21719 void *argp3 = 0 ;
21720 int res3 = 0 ;
21721 int val4 ;
21722 int ecode4 = 0 ;
21723 int val5 ;
21724 int ecode5 = 0 ;
21725 int val6 ;
21726 int ecode6 = 0 ;
21727 bool val7 ;
21728 int ecode7 = 0 ;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 PyObject * obj2 = 0 ;
21732 PyObject * obj3 = 0 ;
21733 PyObject * obj4 = 0 ;
21734 PyObject * obj5 = 0 ;
21735 PyObject * obj6 = 0 ;
21736 char * kwnames[] = {
21737 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21738 };
21739
21740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21742 if (!SWIG_IsOK(res1)) {
21743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21744 }
21745 arg1 = reinterpret_cast< wxImageList * >(argp1);
21746 ecode2 = SWIG_AsVal_int(obj1, &val2);
21747 if (!SWIG_IsOK(ecode2)) {
21748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21749 }
21750 arg2 = static_cast< int >(val2);
21751 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21752 if (!SWIG_IsOK(res3)) {
21753 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21754 }
21755 if (!argp3) {
21756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21757 }
21758 arg3 = reinterpret_cast< wxDC * >(argp3);
21759 ecode4 = SWIG_AsVal_int(obj3, &val4);
21760 if (!SWIG_IsOK(ecode4)) {
21761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21762 }
21763 arg4 = static_cast< int >(val4);
21764 ecode5 = SWIG_AsVal_int(obj4, &val5);
21765 if (!SWIG_IsOK(ecode5)) {
21766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21767 }
21768 arg5 = static_cast< int >(val5);
21769 if (obj5) {
21770 ecode6 = SWIG_AsVal_int(obj5, &val6);
21771 if (!SWIG_IsOK(ecode6)) {
21772 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21773 }
21774 arg6 = static_cast< int >(val6);
21775 }
21776 if (obj6) {
21777 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21778 if (!SWIG_IsOK(ecode7)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21780 }
21781 arg7 = static_cast< bool >(val7);
21782 }
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 {
21790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21791 }
21792 return resultobj;
21793 fail:
21794 return NULL;
21795 }
21796
21797
21798 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21799 PyObject *resultobj = 0;
21800 wxImageList *arg1 = (wxImageList *) 0 ;
21801 int result;
21802 void *argp1 = 0 ;
21803 int res1 = 0 ;
21804 PyObject *swig_obj[1] ;
21805
21806 if (!args) SWIG_fail;
21807 swig_obj[0] = args;
21808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21809 if (!SWIG_IsOK(res1)) {
21810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21811 }
21812 arg1 = reinterpret_cast< wxImageList * >(argp1);
21813 {
21814 PyThreadState* __tstate = wxPyBeginAllowThreads();
21815 result = (int)(arg1)->GetImageCount();
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 resultobj = SWIG_From_int(static_cast< int >(result));
21820 return resultobj;
21821 fail:
21822 return NULL;
21823 }
21824
21825
21826 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21827 PyObject *resultobj = 0;
21828 wxImageList *arg1 = (wxImageList *) 0 ;
21829 int arg2 ;
21830 bool result;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 int val2 ;
21834 int ecode2 = 0 ;
21835 PyObject * obj0 = 0 ;
21836 PyObject * obj1 = 0 ;
21837 char * kwnames[] = {
21838 (char *) "self",(char *) "index", NULL
21839 };
21840
21841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21843 if (!SWIG_IsOK(res1)) {
21844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21845 }
21846 arg1 = reinterpret_cast< wxImageList * >(argp1);
21847 ecode2 = SWIG_AsVal_int(obj1, &val2);
21848 if (!SWIG_IsOK(ecode2)) {
21849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21850 }
21851 arg2 = static_cast< int >(val2);
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = (bool)(arg1)->Remove(arg2);
21855 wxPyEndAllowThreads(__tstate);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 {
21859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21860 }
21861 return resultobj;
21862 fail:
21863 return NULL;
21864 }
21865
21866
21867 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21868 PyObject *resultobj = 0;
21869 wxImageList *arg1 = (wxImageList *) 0 ;
21870 bool result;
21871 void *argp1 = 0 ;
21872 int res1 = 0 ;
21873 PyObject *swig_obj[1] ;
21874
21875 if (!args) SWIG_fail;
21876 swig_obj[0] = args;
21877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21878 if (!SWIG_IsOK(res1)) {
21879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21880 }
21881 arg1 = reinterpret_cast< wxImageList * >(argp1);
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (bool)(arg1)->RemoveAll();
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 {
21889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21890 }
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxImageList *arg1 = (wxImageList *) 0 ;
21900 int arg2 ;
21901 int *arg3 = 0 ;
21902 int *arg4 = 0 ;
21903 void *argp1 = 0 ;
21904 int res1 = 0 ;
21905 int val2 ;
21906 int ecode2 = 0 ;
21907 int temp3 ;
21908 int res3 = SWIG_TMPOBJ ;
21909 int temp4 ;
21910 int res4 = SWIG_TMPOBJ ;
21911 PyObject * obj0 = 0 ;
21912 PyObject * obj1 = 0 ;
21913 char * kwnames[] = {
21914 (char *) "self",(char *) "index", NULL
21915 };
21916
21917 arg3 = &temp3;
21918 arg4 = &temp4;
21919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21921 if (!SWIG_IsOK(res1)) {
21922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21923 }
21924 arg1 = reinterpret_cast< wxImageList * >(argp1);
21925 ecode2 = SWIG_AsVal_int(obj1, &val2);
21926 if (!SWIG_IsOK(ecode2)) {
21927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21928 }
21929 arg2 = static_cast< int >(val2);
21930 {
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 (arg1)->GetSize(arg2,*arg3,*arg4);
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 resultobj = SWIG_Py_Void();
21937 if (SWIG_IsTmpObj(res3)) {
21938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21939 } else {
21940 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21942 }
21943 if (SWIG_IsTmpObj(res4)) {
21944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21945 } else {
21946 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21948 }
21949 return resultobj;
21950 fail:
21951 return NULL;
21952 }
21953
21954
21955 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21956 PyObject *obj;
21957 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21958 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21959 return SWIG_Py_Void();
21960 }
21961
21962 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21963 return SWIG_Python_InitShadowInstance(args);
21964 }
21965
21966 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21967 PyObject *resultobj = 0;
21968 wxStockGDI *result = 0 ;
21969
21970 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 result = (wxStockGDI *)new wxStockGDI();
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
21978 return resultobj;
21979 fail:
21980 return NULL;
21981 }
21982
21983
21984 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21985 PyObject *resultobj = 0;
21986 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
21987 void *argp1 = 0 ;
21988 int res1 = 0 ;
21989 PyObject *swig_obj[1] ;
21990
21991 if (!args) SWIG_fail;
21992 swig_obj[0] = args;
21993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
21994 if (!SWIG_IsOK(res1)) {
21995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
21996 }
21997 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 delete arg1;
22001
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 resultobj = SWIG_Py_Void();
22006 return resultobj;
22007 fail:
22008 return NULL;
22009 }
22010
22011
22012 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22013 PyObject *resultobj = 0;
22014
22015 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22016 {
22017 PyThreadState* __tstate = wxPyBeginAllowThreads();
22018 wxStockGDI::DeleteAll();
22019 wxPyEndAllowThreads(__tstate);
22020 if (PyErr_Occurred()) SWIG_fail;
22021 }
22022 resultobj = SWIG_Py_Void();
22023 return resultobj;
22024 fail:
22025 return NULL;
22026 }
22027
22028
22029 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22030 PyObject *resultobj = 0;
22031 wxStockGDI *result = 0 ;
22032
22033 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 {
22037 wxStockGDI &_result_ref = wxStockGDI::instance();
22038 result = (wxStockGDI *) &_result_ref;
22039 }
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22051 PyObject *resultobj = 0;
22052 wxStockGDI::Item arg1 ;
22053 wxBrush *result = 0 ;
22054 int val1 ;
22055 int ecode1 = 0 ;
22056 PyObject * obj0 = 0 ;
22057 char * kwnames[] = {
22058 (char *) "item", NULL
22059 };
22060
22061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22062 ecode1 = SWIG_AsVal_int(obj0, &val1);
22063 if (!SWIG_IsOK(ecode1)) {
22064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22065 }
22066 arg1 = static_cast< wxStockGDI::Item >(val1);
22067 {
22068 PyThreadState* __tstate = wxPyBeginAllowThreads();
22069 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22070 wxPyEndAllowThreads(__tstate);
22071 if (PyErr_Occurred()) SWIG_fail;
22072 }
22073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22074 return resultobj;
22075 fail:
22076 return NULL;
22077 }
22078
22079
22080 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22081 PyObject *resultobj = 0;
22082 wxStockGDI::Item arg1 ;
22083 wxColour *result = 0 ;
22084 int val1 ;
22085 int ecode1 = 0 ;
22086 PyObject * obj0 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "item", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22092 ecode1 = SWIG_AsVal_int(obj0, &val1);
22093 if (!SWIG_IsOK(ecode1)) {
22094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22095 }
22096 arg1 = static_cast< wxStockGDI::Item >(val1);
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = (wxColour *)wxStockGDI::GetColour(arg1);
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22104 return resultobj;
22105 fail:
22106 return NULL;
22107 }
22108
22109
22110 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22111 PyObject *resultobj = 0;
22112 wxStockGDI::Item arg1 ;
22113 wxCursor *result = 0 ;
22114 int val1 ;
22115 int ecode1 = 0 ;
22116 PyObject * obj0 = 0 ;
22117 char * kwnames[] = {
22118 (char *) "item", NULL
22119 };
22120
22121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22122 ecode1 = SWIG_AsVal_int(obj0, &val1);
22123 if (!SWIG_IsOK(ecode1)) {
22124 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22125 }
22126 arg1 = static_cast< wxStockGDI::Item >(val1);
22127 {
22128 PyThreadState* __tstate = wxPyBeginAllowThreads();
22129 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22134 return resultobj;
22135 fail:
22136 return NULL;
22137 }
22138
22139
22140 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22141 PyObject *resultobj = 0;
22142 wxStockGDI::Item arg1 ;
22143 wxPen *result = 0 ;
22144 int val1 ;
22145 int ecode1 = 0 ;
22146 PyObject * obj0 = 0 ;
22147 char * kwnames[] = {
22148 (char *) "item", NULL
22149 };
22150
22151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22152 ecode1 = SWIG_AsVal_int(obj0, &val1);
22153 if (!SWIG_IsOK(ecode1)) {
22154 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22155 }
22156 arg1 = static_cast< wxStockGDI::Item >(val1);
22157 {
22158 PyThreadState* __tstate = wxPyBeginAllowThreads();
22159 result = (wxPen *)wxStockGDI::GetPen(arg1);
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22164 return resultobj;
22165 fail:
22166 return NULL;
22167 }
22168
22169
22170 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj = 0;
22172 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22173 wxStockGDI::Item arg2 ;
22174 wxFont *result = 0 ;
22175 void *argp1 = 0 ;
22176 int res1 = 0 ;
22177 int val2 ;
22178 int ecode2 = 0 ;
22179 PyObject * obj0 = 0 ;
22180 PyObject * obj1 = 0 ;
22181 char * kwnames[] = {
22182 (char *) "self",(char *) "item", NULL
22183 };
22184
22185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22187 if (!SWIG_IsOK(res1)) {
22188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22189 }
22190 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22191 ecode2 = SWIG_AsVal_int(obj1, &val2);
22192 if (!SWIG_IsOK(ecode2)) {
22193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22194 }
22195 arg2 = static_cast< wxStockGDI::Item >(val2);
22196 {
22197 PyThreadState* __tstate = wxPyBeginAllowThreads();
22198 result = (wxFont *)(arg1)->GetFont(arg2);
22199 wxPyEndAllowThreads(__tstate);
22200 if (PyErr_Occurred()) SWIG_fail;
22201 }
22202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22203 return resultobj;
22204 fail:
22205 return NULL;
22206 }
22207
22208
22209 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22210 PyObject *obj;
22211 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22212 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22213 return SWIG_Py_Void();
22214 }
22215
22216 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22217 return SWIG_Python_InitShadowInstance(args);
22218 }
22219
22220 SWIGINTERN int NullBitmap_set(PyObject *) {
22221 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22222 return 1;
22223 }
22224
22225
22226 SWIGINTERN PyObject *NullBitmap_get(void) {
22227 PyObject *pyobj = 0;
22228
22229 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22230 return pyobj;
22231 }
22232
22233
22234 SWIGINTERN int NullIcon_set(PyObject *) {
22235 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22236 return 1;
22237 }
22238
22239
22240 SWIGINTERN PyObject *NullIcon_get(void) {
22241 PyObject *pyobj = 0;
22242
22243 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22244 return pyobj;
22245 }
22246
22247
22248 SWIGINTERN int NullCursor_set(PyObject *) {
22249 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22250 return 1;
22251 }
22252
22253
22254 SWIGINTERN PyObject *NullCursor_get(void) {
22255 PyObject *pyobj = 0;
22256
22257 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22258 return pyobj;
22259 }
22260
22261
22262 SWIGINTERN int NullPen_set(PyObject *) {
22263 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22264 return 1;
22265 }
22266
22267
22268 SWIGINTERN PyObject *NullPen_get(void) {
22269 PyObject *pyobj = 0;
22270
22271 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22272 return pyobj;
22273 }
22274
22275
22276 SWIGINTERN int NullBrush_set(PyObject *) {
22277 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22278 return 1;
22279 }
22280
22281
22282 SWIGINTERN PyObject *NullBrush_get(void) {
22283 PyObject *pyobj = 0;
22284
22285 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22286 return pyobj;
22287 }
22288
22289
22290 SWIGINTERN int NullPalette_set(PyObject *) {
22291 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22292 return 1;
22293 }
22294
22295
22296 SWIGINTERN PyObject *NullPalette_get(void) {
22297 PyObject *pyobj = 0;
22298
22299 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22300 return pyobj;
22301 }
22302
22303
22304 SWIGINTERN int NullFont_set(PyObject *) {
22305 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22306 return 1;
22307 }
22308
22309
22310 SWIGINTERN PyObject *NullFont_get(void) {
22311 PyObject *pyobj = 0;
22312
22313 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22314 return pyobj;
22315 }
22316
22317
22318 SWIGINTERN int NullColour_set(PyObject *) {
22319 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22320 return 1;
22321 }
22322
22323
22324 SWIGINTERN PyObject *NullColour_get(void) {
22325 PyObject *pyobj = 0;
22326
22327 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22328 return pyobj;
22329 }
22330
22331
22332 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22333 PyObject *resultobj = 0;
22334 wxGDIObjListBase *result = 0 ;
22335
22336 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22337 {
22338 PyThreadState* __tstate = wxPyBeginAllowThreads();
22339 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22344 return resultobj;
22345 fail:
22346 return NULL;
22347 }
22348
22349
22350 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22351 PyObject *resultobj = 0;
22352 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22353 void *argp1 = 0 ;
22354 int res1 = 0 ;
22355 PyObject *swig_obj[1] ;
22356
22357 if (!args) SWIG_fail;
22358 swig_obj[0] = args;
22359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22360 if (!SWIG_IsOK(res1)) {
22361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22362 }
22363 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 delete arg1;
22367
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 resultobj = SWIG_Py_Void();
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *obj;
22380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22381 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22382 return SWIG_Py_Void();
22383 }
22384
22385 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22386 return SWIG_Python_InitShadowInstance(args);
22387 }
22388
22389 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22390 PyObject *resultobj = 0;
22391 wxPenList *arg1 = (wxPenList *) 0 ;
22392 wxColour *arg2 = 0 ;
22393 int arg3 ;
22394 int arg4 ;
22395 wxPen *result = 0 ;
22396 void *argp1 = 0 ;
22397 int res1 = 0 ;
22398 wxColour temp2 ;
22399 int val3 ;
22400 int ecode3 = 0 ;
22401 int val4 ;
22402 int ecode4 = 0 ;
22403 PyObject * obj0 = 0 ;
22404 PyObject * obj1 = 0 ;
22405 PyObject * obj2 = 0 ;
22406 PyObject * obj3 = 0 ;
22407 char * kwnames[] = {
22408 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22409 };
22410
22411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22413 if (!SWIG_IsOK(res1)) {
22414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22415 }
22416 arg1 = reinterpret_cast< wxPenList * >(argp1);
22417 {
22418 arg2 = &temp2;
22419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22420 }
22421 ecode3 = SWIG_AsVal_int(obj2, &val3);
22422 if (!SWIG_IsOK(ecode3)) {
22423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22424 }
22425 arg3 = static_cast< int >(val3);
22426 ecode4 = SWIG_AsVal_int(obj3, &val4);
22427 if (!SWIG_IsOK(ecode4)) {
22428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22429 }
22430 arg4 = static_cast< int >(val4);
22431 {
22432 PyThreadState* __tstate = wxPyBeginAllowThreads();
22433 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22434 wxPyEndAllowThreads(__tstate);
22435 if (PyErr_Occurred()) SWIG_fail;
22436 }
22437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22438 return resultobj;
22439 fail:
22440 return NULL;
22441 }
22442
22443
22444 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22445 PyObject *resultobj = 0;
22446 wxPenList *arg1 = (wxPenList *) 0 ;
22447 wxPen *arg2 = (wxPen *) 0 ;
22448 void *argp1 = 0 ;
22449 int res1 = 0 ;
22450 void *argp2 = 0 ;
22451 int res2 = 0 ;
22452 PyObject * obj0 = 0 ;
22453 PyObject * obj1 = 0 ;
22454 char * kwnames[] = {
22455 (char *) "self",(char *) "pen", NULL
22456 };
22457
22458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22462 }
22463 arg1 = reinterpret_cast< wxPenList * >(argp1);
22464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22465 if (!SWIG_IsOK(res2)) {
22466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22467 }
22468 arg2 = reinterpret_cast< wxPen * >(argp2);
22469 {
22470 PyThreadState* __tstate = wxPyBeginAllowThreads();
22471 (arg1)->AddPen(arg2);
22472 wxPyEndAllowThreads(__tstate);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 }
22475 resultobj = SWIG_Py_Void();
22476 return resultobj;
22477 fail:
22478 return NULL;
22479 }
22480
22481
22482 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22483 PyObject *resultobj = 0;
22484 wxPenList *arg1 = (wxPenList *) 0 ;
22485 wxPen *arg2 = (wxPen *) 0 ;
22486 void *argp1 = 0 ;
22487 int res1 = 0 ;
22488 void *argp2 = 0 ;
22489 int res2 = 0 ;
22490 PyObject * obj0 = 0 ;
22491 PyObject * obj1 = 0 ;
22492 char * kwnames[] = {
22493 (char *) "self",(char *) "pen", NULL
22494 };
22495
22496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22498 if (!SWIG_IsOK(res1)) {
22499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22500 }
22501 arg1 = reinterpret_cast< wxPenList * >(argp1);
22502 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22503 if (!SWIG_IsOK(res2)) {
22504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22505 }
22506 arg2 = reinterpret_cast< wxPen * >(argp2);
22507 {
22508 PyThreadState* __tstate = wxPyBeginAllowThreads();
22509 (arg1)->RemovePen(arg2);
22510 wxPyEndAllowThreads(__tstate);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 resultobj = SWIG_Py_Void();
22514 return resultobj;
22515 fail:
22516 return NULL;
22517 }
22518
22519
22520 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22521 PyObject *obj;
22522 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22523 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22524 return SWIG_Py_Void();
22525 }
22526
22527 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22528 PyObject *resultobj = 0;
22529 wxBrushList *arg1 = (wxBrushList *) 0 ;
22530 wxColour *arg2 = 0 ;
22531 int arg3 = (int) wxSOLID ;
22532 wxBrush *result = 0 ;
22533 void *argp1 = 0 ;
22534 int res1 = 0 ;
22535 wxColour temp2 ;
22536 int val3 ;
22537 int ecode3 = 0 ;
22538 PyObject * obj0 = 0 ;
22539 PyObject * obj1 = 0 ;
22540 PyObject * obj2 = 0 ;
22541 char * kwnames[] = {
22542 (char *) "self",(char *) "colour",(char *) "style", NULL
22543 };
22544
22545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22547 if (!SWIG_IsOK(res1)) {
22548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22549 }
22550 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22551 {
22552 arg2 = &temp2;
22553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22554 }
22555 if (obj2) {
22556 ecode3 = SWIG_AsVal_int(obj2, &val3);
22557 if (!SWIG_IsOK(ecode3)) {
22558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22559 }
22560 arg3 = static_cast< int >(val3);
22561 }
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22565 wxPyEndAllowThreads(__tstate);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 }
22568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22569 return resultobj;
22570 fail:
22571 return NULL;
22572 }
22573
22574
22575 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22576 PyObject *resultobj = 0;
22577 wxBrushList *arg1 = (wxBrushList *) 0 ;
22578 wxBrush *arg2 = (wxBrush *) 0 ;
22579 void *argp1 = 0 ;
22580 int res1 = 0 ;
22581 void *argp2 = 0 ;
22582 int res2 = 0 ;
22583 PyObject * obj0 = 0 ;
22584 PyObject * obj1 = 0 ;
22585 char * kwnames[] = {
22586 (char *) "self",(char *) "brush", NULL
22587 };
22588
22589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22593 }
22594 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22596 if (!SWIG_IsOK(res2)) {
22597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22598 }
22599 arg2 = reinterpret_cast< wxBrush * >(argp2);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->AddBrush(arg2);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22614 PyObject *resultobj = 0;
22615 wxBrushList *arg1 = (wxBrushList *) 0 ;
22616 wxBrush *arg2 = (wxBrush *) 0 ;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 void *argp2 = 0 ;
22620 int res2 = 0 ;
22621 PyObject * obj0 = 0 ;
22622 PyObject * obj1 = 0 ;
22623 char * kwnames[] = {
22624 (char *) "self",(char *) "brush", NULL
22625 };
22626
22627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22629 if (!SWIG_IsOK(res1)) {
22630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22631 }
22632 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22634 if (!SWIG_IsOK(res2)) {
22635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22636 }
22637 arg2 = reinterpret_cast< wxBrush * >(argp2);
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 (arg1)->RemoveBrush(arg2);
22641 wxPyEndAllowThreads(__tstate);
22642 if (PyErr_Occurred()) SWIG_fail;
22643 }
22644 resultobj = SWIG_Py_Void();
22645 return resultobj;
22646 fail:
22647 return NULL;
22648 }
22649
22650
22651 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22652 PyObject *obj;
22653 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22654 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22655 return SWIG_Py_Void();
22656 }
22657
22658 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj = 0;
22660 wxFontList *arg1 = (wxFontList *) 0 ;
22661 int arg2 ;
22662 int arg3 ;
22663 int arg4 ;
22664 int arg5 ;
22665 bool arg6 = (bool) false ;
22666 wxString const &arg7_defvalue = wxPyEmptyString ;
22667 wxString *arg7 = (wxString *) &arg7_defvalue ;
22668 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22669 wxFont *result = 0 ;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 int val2 ;
22673 int ecode2 = 0 ;
22674 int val3 ;
22675 int ecode3 = 0 ;
22676 int val4 ;
22677 int ecode4 = 0 ;
22678 int val5 ;
22679 int ecode5 = 0 ;
22680 bool val6 ;
22681 int ecode6 = 0 ;
22682 bool temp7 = false ;
22683 int val8 ;
22684 int ecode8 = 0 ;
22685 PyObject * obj0 = 0 ;
22686 PyObject * obj1 = 0 ;
22687 PyObject * obj2 = 0 ;
22688 PyObject * obj3 = 0 ;
22689 PyObject * obj4 = 0 ;
22690 PyObject * obj5 = 0 ;
22691 PyObject * obj6 = 0 ;
22692 PyObject * obj7 = 0 ;
22693 char * kwnames[] = {
22694 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22695 };
22696
22697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22701 }
22702 arg1 = reinterpret_cast< wxFontList * >(argp1);
22703 ecode2 = SWIG_AsVal_int(obj1, &val2);
22704 if (!SWIG_IsOK(ecode2)) {
22705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22706 }
22707 arg2 = static_cast< int >(val2);
22708 ecode3 = SWIG_AsVal_int(obj2, &val3);
22709 if (!SWIG_IsOK(ecode3)) {
22710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22711 }
22712 arg3 = static_cast< int >(val3);
22713 ecode4 = SWIG_AsVal_int(obj3, &val4);
22714 if (!SWIG_IsOK(ecode4)) {
22715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22716 }
22717 arg4 = static_cast< int >(val4);
22718 ecode5 = SWIG_AsVal_int(obj4, &val5);
22719 if (!SWIG_IsOK(ecode5)) {
22720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22721 }
22722 arg5 = static_cast< int >(val5);
22723 if (obj5) {
22724 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22725 if (!SWIG_IsOK(ecode6)) {
22726 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22727 }
22728 arg6 = static_cast< bool >(val6);
22729 }
22730 if (obj6) {
22731 {
22732 arg7 = wxString_in_helper(obj6);
22733 if (arg7 == NULL) SWIG_fail;
22734 temp7 = true;
22735 }
22736 }
22737 if (obj7) {
22738 ecode8 = SWIG_AsVal_int(obj7, &val8);
22739 if (!SWIG_IsOK(ecode8)) {
22740 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22741 }
22742 arg8 = static_cast< wxFontEncoding >(val8);
22743 }
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22747 wxPyEndAllowThreads(__tstate);
22748 if (PyErr_Occurred()) SWIG_fail;
22749 }
22750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22751 {
22752 if (temp7)
22753 delete arg7;
22754 }
22755 return resultobj;
22756 fail:
22757 {
22758 if (temp7)
22759 delete arg7;
22760 }
22761 return NULL;
22762 }
22763
22764
22765 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22766 PyObject *resultobj = 0;
22767 wxFontList *arg1 = (wxFontList *) 0 ;
22768 wxFont *arg2 = (wxFont *) 0 ;
22769 void *argp1 = 0 ;
22770 int res1 = 0 ;
22771 void *argp2 = 0 ;
22772 int res2 = 0 ;
22773 PyObject * obj0 = 0 ;
22774 PyObject * obj1 = 0 ;
22775 char * kwnames[] = {
22776 (char *) "self",(char *) "font", NULL
22777 };
22778
22779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22781 if (!SWIG_IsOK(res1)) {
22782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22783 }
22784 arg1 = reinterpret_cast< wxFontList * >(argp1);
22785 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22786 if (!SWIG_IsOK(res2)) {
22787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22788 }
22789 arg2 = reinterpret_cast< wxFont * >(argp2);
22790 {
22791 PyThreadState* __tstate = wxPyBeginAllowThreads();
22792 (arg1)->AddFont(arg2);
22793 wxPyEndAllowThreads(__tstate);
22794 if (PyErr_Occurred()) SWIG_fail;
22795 }
22796 resultobj = SWIG_Py_Void();
22797 return resultobj;
22798 fail:
22799 return NULL;
22800 }
22801
22802
22803 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22804 PyObject *resultobj = 0;
22805 wxFontList *arg1 = (wxFontList *) 0 ;
22806 wxFont *arg2 = (wxFont *) 0 ;
22807 void *argp1 = 0 ;
22808 int res1 = 0 ;
22809 void *argp2 = 0 ;
22810 int res2 = 0 ;
22811 PyObject * obj0 = 0 ;
22812 PyObject * obj1 = 0 ;
22813 char * kwnames[] = {
22814 (char *) "self",(char *) "font", NULL
22815 };
22816
22817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22819 if (!SWIG_IsOK(res1)) {
22820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22821 }
22822 arg1 = reinterpret_cast< wxFontList * >(argp1);
22823 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22824 if (!SWIG_IsOK(res2)) {
22825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22826 }
22827 arg2 = reinterpret_cast< wxFont * >(argp2);
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
22830 (arg1)->RemoveFont(arg2);
22831 wxPyEndAllowThreads(__tstate);
22832 if (PyErr_Occurred()) SWIG_fail;
22833 }
22834 resultobj = SWIG_Py_Void();
22835 return resultobj;
22836 fail:
22837 return NULL;
22838 }
22839
22840
22841 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22842 PyObject *obj;
22843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22844 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
22845 return SWIG_Py_Void();
22846 }
22847
22848 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22849 PyObject *resultobj = 0;
22850 wxColourDatabase *result = 0 ;
22851
22852 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22853 {
22854 if (!wxPyCheckForApp()) SWIG_fail;
22855 PyThreadState* __tstate = wxPyBeginAllowThreads();
22856 result = (wxColourDatabase *)new wxColourDatabase();
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22861 return resultobj;
22862 fail:
22863 return NULL;
22864 }
22865
22866
22867 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22868 PyObject *resultobj = 0;
22869 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22870 void *argp1 = 0 ;
22871 int res1 = 0 ;
22872 PyObject *swig_obj[1] ;
22873
22874 if (!args) SWIG_fail;
22875 swig_obj[0] = args;
22876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22879 }
22880 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 delete arg1;
22884
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 resultobj = SWIG_Py_Void();
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj = 0;
22897 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22898 wxString *arg2 = 0 ;
22899 wxColour result;
22900 void *argp1 = 0 ;
22901 int res1 = 0 ;
22902 bool temp2 = false ;
22903 PyObject * obj0 = 0 ;
22904 PyObject * obj1 = 0 ;
22905 char * kwnames[] = {
22906 (char *) "self",(char *) "name", NULL
22907 };
22908
22909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22911 if (!SWIG_IsOK(res1)) {
22912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22913 }
22914 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22915 {
22916 arg2 = wxString_in_helper(obj1);
22917 if (arg2 == NULL) SWIG_fail;
22918 temp2 = true;
22919 }
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22927 {
22928 if (temp2)
22929 delete arg2;
22930 }
22931 return resultobj;
22932 fail:
22933 {
22934 if (temp2)
22935 delete arg2;
22936 }
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22942 PyObject *resultobj = 0;
22943 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22944 wxColour *arg2 = 0 ;
22945 wxString result;
22946 void *argp1 = 0 ;
22947 int res1 = 0 ;
22948 wxColour temp2 ;
22949 PyObject * obj0 = 0 ;
22950 PyObject * obj1 = 0 ;
22951 char * kwnames[] = {
22952 (char *) "self",(char *) "colour", NULL
22953 };
22954
22955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22957 if (!SWIG_IsOK(res1)) {
22958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22959 }
22960 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22961 {
22962 arg2 = &temp2;
22963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22964 }
22965 {
22966 PyThreadState* __tstate = wxPyBeginAllowThreads();
22967 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 {
22972 #if wxUSE_UNICODE
22973 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22974 #else
22975 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22976 #endif
22977 }
22978 return resultobj;
22979 fail:
22980 return NULL;
22981 }
22982
22983
22984 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22985 PyObject *resultobj = 0;
22986 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22987 wxString *arg2 = 0 ;
22988 wxColour *arg3 = 0 ;
22989 void *argp1 = 0 ;
22990 int res1 = 0 ;
22991 bool temp2 = false ;
22992 wxColour temp3 ;
22993 PyObject * obj0 = 0 ;
22994 PyObject * obj1 = 0 ;
22995 PyObject * obj2 = 0 ;
22996 char * kwnames[] = {
22997 (char *) "self",(char *) "name",(char *) "colour", NULL
22998 };
22999
23000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23002 if (!SWIG_IsOK(res1)) {
23003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23004 }
23005 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23006 {
23007 arg2 = wxString_in_helper(obj1);
23008 if (arg2 == NULL) SWIG_fail;
23009 temp2 = true;
23010 }
23011 {
23012 arg3 = &temp3;
23013 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23014 }
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 resultobj = SWIG_Py_Void();
23022 {
23023 if (temp2)
23024 delete arg2;
23025 }
23026 return resultobj;
23027 fail:
23028 {
23029 if (temp2)
23030 delete arg2;
23031 }
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23037 PyObject *resultobj = 0;
23038 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23039 wxString *arg2 = 0 ;
23040 int arg3 ;
23041 int arg4 ;
23042 int arg5 ;
23043 void *argp1 = 0 ;
23044 int res1 = 0 ;
23045 bool temp2 = false ;
23046 int val3 ;
23047 int ecode3 = 0 ;
23048 int val4 ;
23049 int ecode4 = 0 ;
23050 int val5 ;
23051 int ecode5 = 0 ;
23052 PyObject * obj0 = 0 ;
23053 PyObject * obj1 = 0 ;
23054 PyObject * obj2 = 0 ;
23055 PyObject * obj3 = 0 ;
23056 PyObject * obj4 = 0 ;
23057 char * kwnames[] = {
23058 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23059 };
23060
23061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23063 if (!SWIG_IsOK(res1)) {
23064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23065 }
23066 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23067 {
23068 arg2 = wxString_in_helper(obj1);
23069 if (arg2 == NULL) SWIG_fail;
23070 temp2 = true;
23071 }
23072 ecode3 = SWIG_AsVal_int(obj2, &val3);
23073 if (!SWIG_IsOK(ecode3)) {
23074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23075 }
23076 arg3 = static_cast< int >(val3);
23077 ecode4 = SWIG_AsVal_int(obj3, &val4);
23078 if (!SWIG_IsOK(ecode4)) {
23079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23080 }
23081 arg4 = static_cast< int >(val4);
23082 ecode5 = SWIG_AsVal_int(obj4, &val5);
23083 if (!SWIG_IsOK(ecode5)) {
23084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23085 }
23086 arg5 = static_cast< int >(val5);
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 resultobj = SWIG_Py_Void();
23094 {
23095 if (temp2)
23096 delete arg2;
23097 }
23098 return resultobj;
23099 fail:
23100 {
23101 if (temp2)
23102 delete arg2;
23103 }
23104 return NULL;
23105 }
23106
23107
23108 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23109 PyObject *obj;
23110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23111 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23112 return SWIG_Py_Void();
23113 }
23114
23115 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23116 return SWIG_Python_InitShadowInstance(args);
23117 }
23118
23119 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23120 PyObject *resultobj = 0;
23121 wxFontList *result = 0 ;
23122
23123 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (wxFontList *)_wxPyInitTheFontList();
23127 wxPyEndAllowThreads(__tstate);
23128 if (PyErr_Occurred()) SWIG_fail;
23129 }
23130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23131 return resultobj;
23132 fail:
23133 return NULL;
23134 }
23135
23136
23137 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *resultobj = 0;
23139 wxPenList *result = 0 ;
23140
23141 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (wxPenList *)_wxPyInitThePenList();
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23156 PyObject *resultobj = 0;
23157 wxBrushList *result = 0 ;
23158
23159 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23160 {
23161 PyThreadState* __tstate = wxPyBeginAllowThreads();
23162 result = (wxBrushList *)_wxPyInitTheBrushList();
23163 wxPyEndAllowThreads(__tstate);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 }
23166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23167 return resultobj;
23168 fail:
23169 return NULL;
23170 }
23171
23172
23173 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23174 PyObject *resultobj = 0;
23175 wxColourDatabase *result = 0 ;
23176
23177 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23185 return resultobj;
23186 fail:
23187 return NULL;
23188 }
23189
23190
23191 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23192 PyObject *resultobj = 0;
23193 wxEffects *result = 0 ;
23194
23195 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23196 {
23197 PyThreadState* __tstate = wxPyBeginAllowThreads();
23198 result = (wxEffects *)new wxEffects();
23199 wxPyEndAllowThreads(__tstate);
23200 if (PyErr_Occurred()) SWIG_fail;
23201 }
23202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23203 return resultobj;
23204 fail:
23205 return NULL;
23206 }
23207
23208
23209 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23210 PyObject *resultobj = 0;
23211 wxEffects *arg1 = (wxEffects *) 0 ;
23212 wxColour result;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 PyObject *swig_obj[1] ;
23216
23217 if (!args) SWIG_fail;
23218 swig_obj[0] = args;
23219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23220 if (!SWIG_IsOK(res1)) {
23221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23222 }
23223 arg1 = reinterpret_cast< wxEffects * >(argp1);
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 result = ((wxEffects const *)arg1)->GetHighlightColour();
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxEffects *arg1 = (wxEffects *) 0 ;
23240 wxColour result;
23241 void *argp1 = 0 ;
23242 int res1 = 0 ;
23243 PyObject *swig_obj[1] ;
23244
23245 if (!args) SWIG_fail;
23246 swig_obj[0] = args;
23247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23250 }
23251 arg1 = reinterpret_cast< wxEffects * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = ((wxEffects const *)arg1)->GetLightShadow();
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23259 return resultobj;
23260 fail:
23261 return NULL;
23262 }
23263
23264
23265 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23266 PyObject *resultobj = 0;
23267 wxEffects *arg1 = (wxEffects *) 0 ;
23268 wxColour result;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 PyObject *swig_obj[1] ;
23272
23273 if (!args) SWIG_fail;
23274 swig_obj[0] = args;
23275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23278 }
23279 arg1 = reinterpret_cast< wxEffects * >(argp1);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = ((wxEffects const *)arg1)->GetFaceColour();
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *resultobj = 0;
23295 wxEffects *arg1 = (wxEffects *) 0 ;
23296 wxColour result;
23297 void *argp1 = 0 ;
23298 int res1 = 0 ;
23299 PyObject *swig_obj[1] ;
23300
23301 if (!args) SWIG_fail;
23302 swig_obj[0] = args;
23303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23306 }
23307 arg1 = reinterpret_cast< wxEffects * >(argp1);
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = ((wxEffects const *)arg1)->GetMediumShadow();
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23315 return resultobj;
23316 fail:
23317 return NULL;
23318 }
23319
23320
23321 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23322 PyObject *resultobj = 0;
23323 wxEffects *arg1 = (wxEffects *) 0 ;
23324 wxColour result;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 PyObject *swig_obj[1] ;
23328
23329 if (!args) SWIG_fail;
23330 swig_obj[0] = args;
23331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23332 if (!SWIG_IsOK(res1)) {
23333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23334 }
23335 arg1 = reinterpret_cast< wxEffects * >(argp1);
23336 {
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 result = ((wxEffects const *)arg1)->GetDarkShadow();
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23343 return resultobj;
23344 fail:
23345 return NULL;
23346 }
23347
23348
23349 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23350 PyObject *resultobj = 0;
23351 wxEffects *arg1 = (wxEffects *) 0 ;
23352 wxColour *arg2 = 0 ;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 wxColour temp2 ;
23356 PyObject * obj0 = 0 ;
23357 PyObject * obj1 = 0 ;
23358 char * kwnames[] = {
23359 (char *) "self",(char *) "c", NULL
23360 };
23361
23362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23364 if (!SWIG_IsOK(res1)) {
23365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23366 }
23367 arg1 = reinterpret_cast< wxEffects * >(argp1);
23368 {
23369 arg2 = &temp2;
23370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23371 }
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_Py_Void();
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxEffects *arg1 = (wxEffects *) 0 ;
23388 wxColour *arg2 = 0 ;
23389 void *argp1 = 0 ;
23390 int res1 = 0 ;
23391 wxColour temp2 ;
23392 PyObject * obj0 = 0 ;
23393 PyObject * obj1 = 0 ;
23394 char * kwnames[] = {
23395 (char *) "self",(char *) "c", NULL
23396 };
23397
23398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23400 if (!SWIG_IsOK(res1)) {
23401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23402 }
23403 arg1 = reinterpret_cast< wxEffects * >(argp1);
23404 {
23405 arg2 = &temp2;
23406 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23407 }
23408 {
23409 PyThreadState* __tstate = wxPyBeginAllowThreads();
23410 (arg1)->SetLightShadow((wxColour const &)*arg2);
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 resultobj = SWIG_Py_Void();
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23422 PyObject *resultobj = 0;
23423 wxEffects *arg1 = (wxEffects *) 0 ;
23424 wxColour *arg2 = 0 ;
23425 void *argp1 = 0 ;
23426 int res1 = 0 ;
23427 wxColour temp2 ;
23428 PyObject * obj0 = 0 ;
23429 PyObject * obj1 = 0 ;
23430 char * kwnames[] = {
23431 (char *) "self",(char *) "c", NULL
23432 };
23433
23434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23436 if (!SWIG_IsOK(res1)) {
23437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23438 }
23439 arg1 = reinterpret_cast< wxEffects * >(argp1);
23440 {
23441 arg2 = &temp2;
23442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23443 }
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 (arg1)->SetFaceColour((wxColour const &)*arg2);
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = SWIG_Py_Void();
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23458 PyObject *resultobj = 0;
23459 wxEffects *arg1 = (wxEffects *) 0 ;
23460 wxColour *arg2 = 0 ;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 wxColour temp2 ;
23464 PyObject * obj0 = 0 ;
23465 PyObject * obj1 = 0 ;
23466 char * kwnames[] = {
23467 (char *) "self",(char *) "c", NULL
23468 };
23469
23470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23472 if (!SWIG_IsOK(res1)) {
23473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23474 }
23475 arg1 = reinterpret_cast< wxEffects * >(argp1);
23476 {
23477 arg2 = &temp2;
23478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23479 }
23480 {
23481 PyThreadState* __tstate = wxPyBeginAllowThreads();
23482 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 resultobj = SWIG_Py_Void();
23487 return resultobj;
23488 fail:
23489 return NULL;
23490 }
23491
23492
23493 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23494 PyObject *resultobj = 0;
23495 wxEffects *arg1 = (wxEffects *) 0 ;
23496 wxColour *arg2 = 0 ;
23497 void *argp1 = 0 ;
23498 int res1 = 0 ;
23499 wxColour temp2 ;
23500 PyObject * obj0 = 0 ;
23501 PyObject * obj1 = 0 ;
23502 char * kwnames[] = {
23503 (char *) "self",(char *) "c", NULL
23504 };
23505
23506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23508 if (!SWIG_IsOK(res1)) {
23509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23510 }
23511 arg1 = reinterpret_cast< wxEffects * >(argp1);
23512 {
23513 arg2 = &temp2;
23514 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23515 }
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_Py_Void();
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj = 0;
23531 wxEffects *arg1 = (wxEffects *) 0 ;
23532 wxColour *arg2 = 0 ;
23533 wxColour *arg3 = 0 ;
23534 wxColour *arg4 = 0 ;
23535 wxColour *arg5 = 0 ;
23536 wxColour *arg6 = 0 ;
23537 void *argp1 = 0 ;
23538 int res1 = 0 ;
23539 wxColour temp2 ;
23540 wxColour temp3 ;
23541 wxColour temp4 ;
23542 wxColour temp5 ;
23543 wxColour temp6 ;
23544 PyObject * obj0 = 0 ;
23545 PyObject * obj1 = 0 ;
23546 PyObject * obj2 = 0 ;
23547 PyObject * obj3 = 0 ;
23548 PyObject * obj4 = 0 ;
23549 PyObject * obj5 = 0 ;
23550 char * kwnames[] = {
23551 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23552 };
23553
23554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23556 if (!SWIG_IsOK(res1)) {
23557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23558 }
23559 arg1 = reinterpret_cast< wxEffects * >(argp1);
23560 {
23561 arg2 = &temp2;
23562 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23563 }
23564 {
23565 arg3 = &temp3;
23566 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23567 }
23568 {
23569 arg4 = &temp4;
23570 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23571 }
23572 {
23573 arg5 = &temp5;
23574 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23575 }
23576 {
23577 arg6 = &temp6;
23578 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23579 }
23580 {
23581 PyThreadState* __tstate = wxPyBeginAllowThreads();
23582 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23583 wxPyEndAllowThreads(__tstate);
23584 if (PyErr_Occurred()) SWIG_fail;
23585 }
23586 resultobj = SWIG_Py_Void();
23587 return resultobj;
23588 fail:
23589 return NULL;
23590 }
23591
23592
23593 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23594 PyObject *resultobj = 0;
23595 wxEffects *arg1 = (wxEffects *) 0 ;
23596 wxDC *arg2 = 0 ;
23597 wxRect *arg3 = 0 ;
23598 int arg4 = (int) 1 ;
23599 void *argp1 = 0 ;
23600 int res1 = 0 ;
23601 void *argp2 = 0 ;
23602 int res2 = 0 ;
23603 wxRect temp3 ;
23604 int val4 ;
23605 int ecode4 = 0 ;
23606 PyObject * obj0 = 0 ;
23607 PyObject * obj1 = 0 ;
23608 PyObject * obj2 = 0 ;
23609 PyObject * obj3 = 0 ;
23610 char * kwnames[] = {
23611 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23612 };
23613
23614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23618 }
23619 arg1 = reinterpret_cast< wxEffects * >(argp1);
23620 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23621 if (!SWIG_IsOK(res2)) {
23622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23623 }
23624 if (!argp2) {
23625 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23626 }
23627 arg2 = reinterpret_cast< wxDC * >(argp2);
23628 {
23629 arg3 = &temp3;
23630 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23631 }
23632 if (obj3) {
23633 ecode4 = SWIG_AsVal_int(obj3, &val4);
23634 if (!SWIG_IsOK(ecode4)) {
23635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23636 }
23637 arg4 = static_cast< int >(val4);
23638 }
23639 {
23640 PyThreadState* __tstate = wxPyBeginAllowThreads();
23641 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 resultobj = SWIG_Py_Void();
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj = 0;
23654 wxEffects *arg1 = (wxEffects *) 0 ;
23655 wxRect *arg2 = 0 ;
23656 wxDC *arg3 = 0 ;
23657 wxBitmap *arg4 = 0 ;
23658 bool result;
23659 void *argp1 = 0 ;
23660 int res1 = 0 ;
23661 wxRect temp2 ;
23662 void *argp3 = 0 ;
23663 int res3 = 0 ;
23664 void *argp4 = 0 ;
23665 int res4 = 0 ;
23666 PyObject * obj0 = 0 ;
23667 PyObject * obj1 = 0 ;
23668 PyObject * obj2 = 0 ;
23669 PyObject * obj3 = 0 ;
23670 char * kwnames[] = {
23671 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23672 };
23673
23674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23676 if (!SWIG_IsOK(res1)) {
23677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23678 }
23679 arg1 = reinterpret_cast< wxEffects * >(argp1);
23680 {
23681 arg2 = &temp2;
23682 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23683 }
23684 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23685 if (!SWIG_IsOK(res3)) {
23686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23687 }
23688 if (!argp3) {
23689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23690 }
23691 arg3 = reinterpret_cast< wxDC * >(argp3);
23692 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23693 if (!SWIG_IsOK(res4)) {
23694 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23695 }
23696 if (!argp4) {
23697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23698 }
23699 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23700 {
23701 PyThreadState* __tstate = wxPyBeginAllowThreads();
23702 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23703 wxPyEndAllowThreads(__tstate);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 }
23706 {
23707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23708 }
23709 return resultobj;
23710 fail:
23711 return NULL;
23712 }
23713
23714
23715 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23716 PyObject *obj;
23717 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23718 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23719 return SWIG_Py_Void();
23720 }
23721
23722 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23723 return SWIG_Python_InitShadowInstance(args);
23724 }
23725
23726 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23727 PyObject *resultobj = 0;
23728 int arg1 ;
23729 int arg2 ;
23730 bool arg3 ;
23731 wxSplitterRenderParams *result = 0 ;
23732 int val1 ;
23733 int ecode1 = 0 ;
23734 int val2 ;
23735 int ecode2 = 0 ;
23736 bool val3 ;
23737 int ecode3 = 0 ;
23738 PyObject * obj0 = 0 ;
23739 PyObject * obj1 = 0 ;
23740 PyObject * obj2 = 0 ;
23741 char * kwnames[] = {
23742 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23743 };
23744
23745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23746 ecode1 = SWIG_AsVal_int(obj0, &val1);
23747 if (!SWIG_IsOK(ecode1)) {
23748 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23749 }
23750 arg1 = static_cast< int >(val1);
23751 ecode2 = SWIG_AsVal_int(obj1, &val2);
23752 if (!SWIG_IsOK(ecode2)) {
23753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23754 }
23755 arg2 = static_cast< int >(val2);
23756 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23757 if (!SWIG_IsOK(ecode3)) {
23758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23759 }
23760 arg3 = static_cast< bool >(val3);
23761 {
23762 PyThreadState* __tstate = wxPyBeginAllowThreads();
23763 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23768 return resultobj;
23769 fail:
23770 return NULL;
23771 }
23772
23773
23774 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23775 PyObject *resultobj = 0;
23776 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23777 void *argp1 = 0 ;
23778 int res1 = 0 ;
23779 PyObject *swig_obj[1] ;
23780
23781 if (!args) SWIG_fail;
23782 swig_obj[0] = args;
23783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23784 if (!SWIG_IsOK(res1)) {
23785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23786 }
23787 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23788 {
23789 PyThreadState* __tstate = wxPyBeginAllowThreads();
23790 delete arg1;
23791
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23803 PyObject *resultobj = 0;
23804 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23805 int result;
23806 void *argp1 = 0 ;
23807 int res1 = 0 ;
23808 PyObject *swig_obj[1] ;
23809
23810 if (!args) SWIG_fail;
23811 swig_obj[0] = args;
23812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23813 if (!SWIG_IsOK(res1)) {
23814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23815 }
23816 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23817 result = (int)(int) ((arg1)->widthSash);
23818 resultobj = SWIG_From_int(static_cast< int >(result));
23819 return resultobj;
23820 fail:
23821 return NULL;
23822 }
23823
23824
23825 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23826 PyObject *resultobj = 0;
23827 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23828 int result;
23829 void *argp1 = 0 ;
23830 int res1 = 0 ;
23831 PyObject *swig_obj[1] ;
23832
23833 if (!args) SWIG_fail;
23834 swig_obj[0] = args;
23835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23836 if (!SWIG_IsOK(res1)) {
23837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23838 }
23839 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23840 result = (int)(int) ((arg1)->border);
23841 resultobj = SWIG_From_int(static_cast< int >(result));
23842 return resultobj;
23843 fail:
23844 return NULL;
23845 }
23846
23847
23848 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23849 PyObject *resultobj = 0;
23850 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23851 bool result;
23852 void *argp1 = 0 ;
23853 int res1 = 0 ;
23854 PyObject *swig_obj[1] ;
23855
23856 if (!args) SWIG_fail;
23857 swig_obj[0] = args;
23858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23861 }
23862 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23863 result = (bool)(bool) ((arg1)->isHotSensitive);
23864 resultobj = SWIG_From_bool(static_cast< bool >(result));
23865 return resultobj;
23866 fail:
23867 return NULL;
23868 }
23869
23870
23871 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23872 PyObject *obj;
23873 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23874 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
23875 return SWIG_Py_Void();
23876 }
23877
23878 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23879 return SWIG_Python_InitShadowInstance(args);
23880 }
23881
23882 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj = 0;
23884 int arg1 ;
23885 int arg2 ;
23886 wxRendererVersion *result = 0 ;
23887 int val1 ;
23888 int ecode1 = 0 ;
23889 int val2 ;
23890 int ecode2 = 0 ;
23891 PyObject * obj0 = 0 ;
23892 PyObject * obj1 = 0 ;
23893 char * kwnames[] = {
23894 (char *) "version_",(char *) "age_", NULL
23895 };
23896
23897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
23898 ecode1 = SWIG_AsVal_int(obj0, &val1);
23899 if (!SWIG_IsOK(ecode1)) {
23900 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
23901 }
23902 arg1 = static_cast< int >(val1);
23903 ecode2 = SWIG_AsVal_int(obj1, &val2);
23904 if (!SWIG_IsOK(ecode2)) {
23905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
23906 }
23907 arg2 = static_cast< int >(val2);
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
23911 wxPyEndAllowThreads(__tstate);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 }
23914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
23915 return resultobj;
23916 fail:
23917 return NULL;
23918 }
23919
23920
23921 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23922 PyObject *resultobj = 0;
23923 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23924 void *argp1 = 0 ;
23925 int res1 = 0 ;
23926 PyObject *swig_obj[1] ;
23927
23928 if (!args) SWIG_fail;
23929 swig_obj[0] = args;
23930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
23931 if (!SWIG_IsOK(res1)) {
23932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23933 }
23934 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 delete arg1;
23938
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 resultobj = SWIG_Py_Void();
23943 return resultobj;
23944 fail:
23945 return NULL;
23946 }
23947
23948
23949 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23950 PyObject *resultobj = 0;
23951 wxRendererVersion *arg1 = 0 ;
23952 bool result;
23953 void *argp1 = 0 ;
23954 int res1 = 0 ;
23955 PyObject * obj0 = 0 ;
23956 char * kwnames[] = {
23957 (char *) "ver", NULL
23958 };
23959
23960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
23961 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
23962 if (!SWIG_IsOK(res1)) {
23963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23964 }
23965 if (!argp1) {
23966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23967 }
23968 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23969 {
23970 PyThreadState* __tstate = wxPyBeginAllowThreads();
23971 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
23972 wxPyEndAllowThreads(__tstate);
23973 if (PyErr_Occurred()) SWIG_fail;
23974 }
23975 {
23976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23977 }
23978 return resultobj;
23979 fail:
23980 return NULL;
23981 }
23982
23983
23984 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23985 PyObject *resultobj = 0;
23986 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23987 int result;
23988 void *argp1 = 0 ;
23989 int res1 = 0 ;
23990 PyObject *swig_obj[1] ;
23991
23992 if (!args) SWIG_fail;
23993 swig_obj[0] = args;
23994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
23995 if (!SWIG_IsOK(res1)) {
23996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23997 }
23998 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23999 result = (int)(int) ((arg1)->version);
24000 resultobj = SWIG_From_int(static_cast< int >(result));
24001 return resultobj;
24002 fail:
24003 return NULL;
24004 }
24005
24006
24007 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24008 PyObject *resultobj = 0;
24009 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24010 int result;
24011 void *argp1 = 0 ;
24012 int res1 = 0 ;
24013 PyObject *swig_obj[1] ;
24014
24015 if (!args) SWIG_fail;
24016 swig_obj[0] = args;
24017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24018 if (!SWIG_IsOK(res1)) {
24019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24020 }
24021 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24022 result = (int)(int) ((arg1)->age);
24023 resultobj = SWIG_From_int(static_cast< int >(result));
24024 return resultobj;
24025 fail:
24026 return NULL;
24027 }
24028
24029
24030 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24031 PyObject *obj;
24032 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24033 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24034 return SWIG_Py_Void();
24035 }
24036
24037 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24038 return SWIG_Python_InitShadowInstance(args);
24039 }
24040
24041 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24042 PyObject *resultobj = 0;
24043 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24044 wxWindow *arg2 = (wxWindow *) 0 ;
24045 wxDC *arg3 = 0 ;
24046 wxRect *arg4 = 0 ;
24047 int arg5 = (int) 0 ;
24048 void *argp1 = 0 ;
24049 int res1 = 0 ;
24050 void *argp2 = 0 ;
24051 int res2 = 0 ;
24052 void *argp3 = 0 ;
24053 int res3 = 0 ;
24054 wxRect temp4 ;
24055 int val5 ;
24056 int ecode5 = 0 ;
24057 PyObject * obj0 = 0 ;
24058 PyObject * obj1 = 0 ;
24059 PyObject * obj2 = 0 ;
24060 PyObject * obj3 = 0 ;
24061 PyObject * obj4 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24070 }
24071 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24073 if (!SWIG_IsOK(res2)) {
24074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24075 }
24076 arg2 = reinterpret_cast< wxWindow * >(argp2);
24077 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24078 if (!SWIG_IsOK(res3)) {
24079 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24080 }
24081 if (!argp3) {
24082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24083 }
24084 arg3 = reinterpret_cast< wxDC * >(argp3);
24085 {
24086 arg4 = &temp4;
24087 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24088 }
24089 if (obj4) {
24090 ecode5 = SWIG_AsVal_int(obj4, &val5);
24091 if (!SWIG_IsOK(ecode5)) {
24092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24093 }
24094 arg5 = static_cast< int >(val5);
24095 }
24096 {
24097 PyThreadState* __tstate = wxPyBeginAllowThreads();
24098 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 resultobj = SWIG_Py_Void();
24103 return resultobj;
24104 fail:
24105 return NULL;
24106 }
24107
24108
24109 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24110 PyObject *resultobj = 0;
24111 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24112 wxWindow *arg2 = (wxWindow *) 0 ;
24113 wxDC *arg3 = 0 ;
24114 wxRect *arg4 = 0 ;
24115 int arg5 = (int) 0 ;
24116 void *argp1 = 0 ;
24117 int res1 = 0 ;
24118 void *argp2 = 0 ;
24119 int res2 = 0 ;
24120 void *argp3 = 0 ;
24121 int res3 = 0 ;
24122 wxRect temp4 ;
24123 int val5 ;
24124 int ecode5 = 0 ;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 PyObject * obj2 = 0 ;
24128 PyObject * obj3 = 0 ;
24129 PyObject * obj4 = 0 ;
24130 char * kwnames[] = {
24131 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24132 };
24133
24134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24136 if (!SWIG_IsOK(res1)) {
24137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24138 }
24139 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24141 if (!SWIG_IsOK(res2)) {
24142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24143 }
24144 arg2 = reinterpret_cast< wxWindow * >(argp2);
24145 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24146 if (!SWIG_IsOK(res3)) {
24147 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24148 }
24149 if (!argp3) {
24150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24151 }
24152 arg3 = reinterpret_cast< wxDC * >(argp3);
24153 {
24154 arg4 = &temp4;
24155 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24156 }
24157 if (obj4) {
24158 ecode5 = SWIG_AsVal_int(obj4, &val5);
24159 if (!SWIG_IsOK(ecode5)) {
24160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24161 }
24162 arg5 = static_cast< int >(val5);
24163 }
24164 {
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
24166 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24167 wxPyEndAllowThreads(__tstate);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 }
24170 resultobj = SWIG_Py_Void();
24171 return resultobj;
24172 fail:
24173 return NULL;
24174 }
24175
24176
24177 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24178 PyObject *resultobj = 0;
24179 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24180 wxWindow *arg2 = (wxWindow *) 0 ;
24181 wxDC *arg3 = 0 ;
24182 wxRect *arg4 = 0 ;
24183 int arg5 = (int) 0 ;
24184 void *argp1 = 0 ;
24185 int res1 = 0 ;
24186 void *argp2 = 0 ;
24187 int res2 = 0 ;
24188 void *argp3 = 0 ;
24189 int res3 = 0 ;
24190 wxRect temp4 ;
24191 int val5 ;
24192 int ecode5 = 0 ;
24193 PyObject * obj0 = 0 ;
24194 PyObject * obj1 = 0 ;
24195 PyObject * obj2 = 0 ;
24196 PyObject * obj3 = 0 ;
24197 PyObject * obj4 = 0 ;
24198 char * kwnames[] = {
24199 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24200 };
24201
24202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24206 }
24207 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24209 if (!SWIG_IsOK(res2)) {
24210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24211 }
24212 arg2 = reinterpret_cast< wxWindow * >(argp2);
24213 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24214 if (!SWIG_IsOK(res3)) {
24215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24216 }
24217 if (!argp3) {
24218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24219 }
24220 arg3 = reinterpret_cast< wxDC * >(argp3);
24221 {
24222 arg4 = &temp4;
24223 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24224 }
24225 if (obj4) {
24226 ecode5 = SWIG_AsVal_int(obj4, &val5);
24227 if (!SWIG_IsOK(ecode5)) {
24228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24229 }
24230 arg5 = static_cast< int >(val5);
24231 }
24232 {
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
24234 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24235 wxPyEndAllowThreads(__tstate);
24236 if (PyErr_Occurred()) SWIG_fail;
24237 }
24238 resultobj = SWIG_Py_Void();
24239 return resultobj;
24240 fail:
24241 return NULL;
24242 }
24243
24244
24245 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24246 PyObject *resultobj = 0;
24247 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24248 wxWindow *arg2 = (wxWindow *) 0 ;
24249 wxDC *arg3 = 0 ;
24250 wxSize *arg4 = 0 ;
24251 int arg5 ;
24252 wxOrientation arg6 ;
24253 int arg7 = (int) 0 ;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 void *argp2 = 0 ;
24257 int res2 = 0 ;
24258 void *argp3 = 0 ;
24259 int res3 = 0 ;
24260 wxSize temp4 ;
24261 int val5 ;
24262 int ecode5 = 0 ;
24263 int val6 ;
24264 int ecode6 = 0 ;
24265 int val7 ;
24266 int ecode7 = 0 ;
24267 PyObject * obj0 = 0 ;
24268 PyObject * obj1 = 0 ;
24269 PyObject * obj2 = 0 ;
24270 PyObject * obj3 = 0 ;
24271 PyObject * obj4 = 0 ;
24272 PyObject * obj5 = 0 ;
24273 PyObject * obj6 = 0 ;
24274 char * kwnames[] = {
24275 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24276 };
24277
24278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24280 if (!SWIG_IsOK(res1)) {
24281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24282 }
24283 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24284 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24285 if (!SWIG_IsOK(res2)) {
24286 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24287 }
24288 arg2 = reinterpret_cast< wxWindow * >(argp2);
24289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24290 if (!SWIG_IsOK(res3)) {
24291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24292 }
24293 if (!argp3) {
24294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24295 }
24296 arg3 = reinterpret_cast< wxDC * >(argp3);
24297 {
24298 arg4 = &temp4;
24299 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24300 }
24301 ecode5 = SWIG_AsVal_int(obj4, &val5);
24302 if (!SWIG_IsOK(ecode5)) {
24303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24304 }
24305 arg5 = static_cast< int >(val5);
24306 ecode6 = SWIG_AsVal_int(obj5, &val6);
24307 if (!SWIG_IsOK(ecode6)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24309 }
24310 arg6 = static_cast< wxOrientation >(val6);
24311 if (obj6) {
24312 ecode7 = SWIG_AsVal_int(obj6, &val7);
24313 if (!SWIG_IsOK(ecode7)) {
24314 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24315 }
24316 arg7 = static_cast< int >(val7);
24317 }
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 resultobj = SWIG_Py_Void();
24325 return resultobj;
24326 fail:
24327 return NULL;
24328 }
24329
24330
24331 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24332 PyObject *resultobj = 0;
24333 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24334 wxWindow *arg2 = (wxWindow *) 0 ;
24335 wxDC *arg3 = 0 ;
24336 wxRect *arg4 = 0 ;
24337 int arg5 = (int) 0 ;
24338 void *argp1 = 0 ;
24339 int res1 = 0 ;
24340 void *argp2 = 0 ;
24341 int res2 = 0 ;
24342 void *argp3 = 0 ;
24343 int res3 = 0 ;
24344 wxRect temp4 ;
24345 int val5 ;
24346 int ecode5 = 0 ;
24347 PyObject * obj0 = 0 ;
24348 PyObject * obj1 = 0 ;
24349 PyObject * obj2 = 0 ;
24350 PyObject * obj3 = 0 ;
24351 PyObject * obj4 = 0 ;
24352 char * kwnames[] = {
24353 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24354 };
24355
24356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24358 if (!SWIG_IsOK(res1)) {
24359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24360 }
24361 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24363 if (!SWIG_IsOK(res2)) {
24364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24365 }
24366 arg2 = reinterpret_cast< wxWindow * >(argp2);
24367 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24368 if (!SWIG_IsOK(res3)) {
24369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24370 }
24371 if (!argp3) {
24372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24373 }
24374 arg3 = reinterpret_cast< wxDC * >(argp3);
24375 {
24376 arg4 = &temp4;
24377 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24378 }
24379 if (obj4) {
24380 ecode5 = SWIG_AsVal_int(obj4, &val5);
24381 if (!SWIG_IsOK(ecode5)) {
24382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24383 }
24384 arg5 = static_cast< int >(val5);
24385 }
24386 {
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 resultobj = SWIG_Py_Void();
24393 return resultobj;
24394 fail:
24395 return NULL;
24396 }
24397
24398
24399 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24400 PyObject *resultobj = 0;
24401 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24402 wxWindow *arg2 = (wxWindow *) 0 ;
24403 wxDC *arg3 = 0 ;
24404 wxRect *arg4 = 0 ;
24405 int arg5 = (int) 0 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 void *argp2 = 0 ;
24409 int res2 = 0 ;
24410 void *argp3 = 0 ;
24411 int res3 = 0 ;
24412 wxRect temp4 ;
24413 int val5 ;
24414 int ecode5 = 0 ;
24415 PyObject * obj0 = 0 ;
24416 PyObject * obj1 = 0 ;
24417 PyObject * obj2 = 0 ;
24418 PyObject * obj3 = 0 ;
24419 PyObject * obj4 = 0 ;
24420 char * kwnames[] = {
24421 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24422 };
24423
24424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24426 if (!SWIG_IsOK(res1)) {
24427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24428 }
24429 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24430 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24431 if (!SWIG_IsOK(res2)) {
24432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24433 }
24434 arg2 = reinterpret_cast< wxWindow * >(argp2);
24435 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24436 if (!SWIG_IsOK(res3)) {
24437 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24438 }
24439 if (!argp3) {
24440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24441 }
24442 arg3 = reinterpret_cast< wxDC * >(argp3);
24443 {
24444 arg4 = &temp4;
24445 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24446 }
24447 if (obj4) {
24448 ecode5 = SWIG_AsVal_int(obj4, &val5);
24449 if (!SWIG_IsOK(ecode5)) {
24450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24451 }
24452 arg5 = static_cast< int >(val5);
24453 }
24454 {
24455 PyThreadState* __tstate = wxPyBeginAllowThreads();
24456 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24457 wxPyEndAllowThreads(__tstate);
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 resultobj = SWIG_Py_Void();
24461 return resultobj;
24462 fail:
24463 return NULL;
24464 }
24465
24466
24467 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24468 PyObject *resultobj = 0;
24469 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24470 wxWindow *arg2 = (wxWindow *) 0 ;
24471 wxDC *arg3 = 0 ;
24472 wxRect *arg4 = 0 ;
24473 int arg5 = (int) 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 void *argp2 = 0 ;
24477 int res2 = 0 ;
24478 void *argp3 = 0 ;
24479 int res3 = 0 ;
24480 wxRect temp4 ;
24481 int val5 ;
24482 int ecode5 = 0 ;
24483 PyObject * obj0 = 0 ;
24484 PyObject * obj1 = 0 ;
24485 PyObject * obj2 = 0 ;
24486 PyObject * obj3 = 0 ;
24487 PyObject * obj4 = 0 ;
24488 char * kwnames[] = {
24489 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24490 };
24491
24492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24496 }
24497 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24499 if (!SWIG_IsOK(res2)) {
24500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24501 }
24502 arg2 = reinterpret_cast< wxWindow * >(argp2);
24503 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24504 if (!SWIG_IsOK(res3)) {
24505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24506 }
24507 if (!argp3) {
24508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24509 }
24510 arg3 = reinterpret_cast< wxDC * >(argp3);
24511 {
24512 arg4 = &temp4;
24513 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24514 }
24515 if (obj4) {
24516 ecode5 = SWIG_AsVal_int(obj4, &val5);
24517 if (!SWIG_IsOK(ecode5)) {
24518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24519 }
24520 arg5 = static_cast< int >(val5);
24521 }
24522 {
24523 PyThreadState* __tstate = wxPyBeginAllowThreads();
24524 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24525 wxPyEndAllowThreads(__tstate);
24526 if (PyErr_Occurred()) SWIG_fail;
24527 }
24528 resultobj = SWIG_Py_Void();
24529 return resultobj;
24530 fail:
24531 return NULL;
24532 }
24533
24534
24535 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24536 PyObject *resultobj = 0;
24537 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24538 wxWindow *arg2 = (wxWindow *) 0 ;
24539 wxDC *arg3 = 0 ;
24540 wxRect *arg4 = 0 ;
24541 int arg5 = (int) 0 ;
24542 void *argp1 = 0 ;
24543 int res1 = 0 ;
24544 void *argp2 = 0 ;
24545 int res2 = 0 ;
24546 void *argp3 = 0 ;
24547 int res3 = 0 ;
24548 wxRect temp4 ;
24549 int val5 ;
24550 int ecode5 = 0 ;
24551 PyObject * obj0 = 0 ;
24552 PyObject * obj1 = 0 ;
24553 PyObject * obj2 = 0 ;
24554 PyObject * obj3 = 0 ;
24555 PyObject * obj4 = 0 ;
24556 char * kwnames[] = {
24557 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24558 };
24559
24560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24562 if (!SWIG_IsOK(res1)) {
24563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24564 }
24565 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24567 if (!SWIG_IsOK(res2)) {
24568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24569 }
24570 arg2 = reinterpret_cast< wxWindow * >(argp2);
24571 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24572 if (!SWIG_IsOK(res3)) {
24573 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24574 }
24575 if (!argp3) {
24576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24577 }
24578 arg3 = reinterpret_cast< wxDC * >(argp3);
24579 {
24580 arg4 = &temp4;
24581 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24582 }
24583 if (obj4) {
24584 ecode5 = SWIG_AsVal_int(obj4, &val5);
24585 if (!SWIG_IsOK(ecode5)) {
24586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24587 }
24588 arg5 = static_cast< int >(val5);
24589 }
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 resultobj = SWIG_Py_Void();
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24604 PyObject *resultobj = 0;
24605 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24606 wxWindow *arg2 = (wxWindow *) 0 ;
24607 wxDC *arg3 = 0 ;
24608 wxRect *arg4 = 0 ;
24609 int arg5 = (int) 0 ;
24610 void *argp1 = 0 ;
24611 int res1 = 0 ;
24612 void *argp2 = 0 ;
24613 int res2 = 0 ;
24614 void *argp3 = 0 ;
24615 int res3 = 0 ;
24616 wxRect temp4 ;
24617 int val5 ;
24618 int ecode5 = 0 ;
24619 PyObject * obj0 = 0 ;
24620 PyObject * obj1 = 0 ;
24621 PyObject * obj2 = 0 ;
24622 PyObject * obj3 = 0 ;
24623 PyObject * obj4 = 0 ;
24624 char * kwnames[] = {
24625 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24626 };
24627
24628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24630 if (!SWIG_IsOK(res1)) {
24631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24632 }
24633 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24635 if (!SWIG_IsOK(res2)) {
24636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24637 }
24638 arg2 = reinterpret_cast< wxWindow * >(argp2);
24639 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24640 if (!SWIG_IsOK(res3)) {
24641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24642 }
24643 if (!argp3) {
24644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24645 }
24646 arg3 = reinterpret_cast< wxDC * >(argp3);
24647 {
24648 arg4 = &temp4;
24649 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24650 }
24651 if (obj4) {
24652 ecode5 = SWIG_AsVal_int(obj4, &val5);
24653 if (!SWIG_IsOK(ecode5)) {
24654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24655 }
24656 arg5 = static_cast< int >(val5);
24657 }
24658 {
24659 PyThreadState* __tstate = wxPyBeginAllowThreads();
24660 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 resultobj = SWIG_Py_Void();
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24672 PyObject *resultobj = 0;
24673 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24674 wxWindow *arg2 = (wxWindow *) 0 ;
24675 SwigValueWrapper<wxSplitterRenderParams > result;
24676 void *argp1 = 0 ;
24677 int res1 = 0 ;
24678 void *argp2 = 0 ;
24679 int res2 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 PyObject * obj1 = 0 ;
24682 char * kwnames[] = {
24683 (char *) "self",(char *) "win", NULL
24684 };
24685
24686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24688 if (!SWIG_IsOK(res1)) {
24689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24690 }
24691 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24693 if (!SWIG_IsOK(res2)) {
24694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24695 }
24696 arg2 = reinterpret_cast< wxWindow * >(argp2);
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 PyObject *resultobj = 0;
24712 wxRendererNative *result = 0 ;
24713
24714 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24715 {
24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24717 {
24718 wxRendererNative &_result_ref = wxRendererNative::Get();
24719 result = (wxRendererNative *) &_result_ref;
24720 }
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24725 return resultobj;
24726 fail:
24727 return NULL;
24728 }
24729
24730
24731 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24732 PyObject *resultobj = 0;
24733 wxRendererNative *result = 0 ;
24734
24735 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24736 {
24737 PyThreadState* __tstate = wxPyBeginAllowThreads();
24738 {
24739 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24740 result = (wxRendererNative *) &_result_ref;
24741 }
24742 wxPyEndAllowThreads(__tstate);
24743 if (PyErr_Occurred()) SWIG_fail;
24744 }
24745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24746 return resultobj;
24747 fail:
24748 return NULL;
24749 }
24750
24751
24752 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24753 PyObject *resultobj = 0;
24754 wxRendererNative *result = 0 ;
24755
24756 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 {
24760 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24761 result = (wxRendererNative *) &_result_ref;
24762 }
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24776 wxRendererNative *result = 0 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 PyObject * obj0 = 0 ;
24780 char * kwnames[] = {
24781 (char *) "renderer", NULL
24782 };
24783
24784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24786 if (!SWIG_IsOK(res1)) {
24787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24788 }
24789 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24793 wxPyEndAllowThreads(__tstate);
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24797 return resultobj;
24798 fail:
24799 return NULL;
24800 }
24801
24802
24803 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24804 PyObject *resultobj = 0;
24805 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24806 SwigValueWrapper<wxRendererVersion > result;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 PyObject *swig_obj[1] ;
24810
24811 if (!args) SWIG_fail;
24812 swig_obj[0] = args;
24813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24814 if (!SWIG_IsOK(res1)) {
24815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24816 }
24817 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24818 {
24819 PyThreadState* __tstate = wxPyBeginAllowThreads();
24820 result = ((wxRendererNative const *)arg1)->GetVersion();
24821 wxPyEndAllowThreads(__tstate);
24822 if (PyErr_Occurred()) SWIG_fail;
24823 }
24824 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24825 return resultobj;
24826 fail:
24827 return NULL;
24828 }
24829
24830
24831 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24832 PyObject *obj;
24833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24834 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24835 return SWIG_Py_Void();
24836 }
24837
24838 static PyMethodDef SwigMethods[] = {
24839 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24840 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
24841 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24842 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24843 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24844 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24845 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24846 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24847 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24848 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24849 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24850 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24851 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24852 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24853 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24854 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24855 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
24856 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24857 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24858 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24859 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24860 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24861 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24862 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24863 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24864 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24865 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24866 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24867 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24868 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24869 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24870 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24871 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24872 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24873 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24874 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24875 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24876 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24877 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24878 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24879 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24880 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24881 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24882 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24883 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24884 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24885 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24886 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24887 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
24888 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24889 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24890 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24891 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24892 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24893 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24894 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24895 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24896 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24897 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24898 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24899 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24900 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24901 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24902 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24903 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24904 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24905 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24906 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24907 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24908 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24909 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24910 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24911 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24912 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24913 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24914 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24915 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24916 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24917 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24918 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24919 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24920 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24921 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24922 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24923 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24924 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24925 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24926 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24927 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24928 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24929 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24930 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24931 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24932 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24933 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24934 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24935 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24936 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24937 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24938 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24939 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24940 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24941 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24942 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24943 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24944 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24945 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24946 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24947 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24948 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24949 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24950 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24951 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24952 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24953 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24954 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24955 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24956 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24957 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24958 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24959 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24960 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24961 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24962 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24963 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24964 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24965 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24966 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24967 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
24968 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24969 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24970 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24971 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
24972 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
24973 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
24974 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
24975 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
24976 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24977 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
24978 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
24979 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
24980 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
24981 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24982 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
24983 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
24984 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
24985 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
24986 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
24987 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
24988 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24989 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
24990 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
24991 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
24992 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
24993 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
24994 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24995 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
24996 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
24997 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
24998 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24999 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25001 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25002 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25004 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25005 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25006 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25007 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25008 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25009 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25010 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25011 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25012 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25013 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25014 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25015 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25016 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25017 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25018 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25019 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25020 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25021 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25022 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25023 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25024 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25025 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25026 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25027 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25028 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25029 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25030 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25031 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25032 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25033 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25034 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25035 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25036 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25037 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25038 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25039 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25040 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25041 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25042 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25043 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25044 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25045 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25046 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25047 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25048 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25049 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25050 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25051 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25052 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25053 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25054 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25055 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25056 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25057 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25058 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25059 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25060 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25061 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25062 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25063 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25064 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25065 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25066 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25067 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25068 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25069 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25071 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25072 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25073 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25074 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25075 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25077 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25078 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25079 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25080 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25081 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25082 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25083 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25084 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25085 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25086 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25087 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25088 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25089 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25091 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25092 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25093 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25094 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25095 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25096 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25097 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25098 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25099 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25100 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25101 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25102 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25103 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25105 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25107 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25108 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25109 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25110 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25111 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25112 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25113 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25115 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25116 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25117 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25119 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25120 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25121 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25122 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25123 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25124 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25125 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25126 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25127 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25128 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25129 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25130 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25131 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25132 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25133 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25134 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25135 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25136 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25137 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25138 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25139 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25141 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25142 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25143 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25144 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25145 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25146 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25147 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25148 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25149 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25150 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25151 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25156 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25157 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25158 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25159 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25160 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25161 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25162 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25163 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25164 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25165 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25166 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25167 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25168 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25169 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25171 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25172 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25173 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25174 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25175 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25176 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25177 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25178 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25179 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25180 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25181 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25182 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25184 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25190 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25194 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25195 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25197 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25200 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25202 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25207 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25223 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25225 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25226 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25227 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25232 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25234 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25235 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25236 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25237 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25238 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25243 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25244 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25245 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25246 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25247 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25248 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25252 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25253 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25254 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25255 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25256 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25257 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25258 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25259 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25260 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25261 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25262 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25263 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25264 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25265 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25266 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25267 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25268 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25269 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25270 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25271 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25272 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25273 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25274 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25275 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25276 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25277 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25278 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25279 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25280 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25282 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25284 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25285 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25286 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25287 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25288 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25289 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25290 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25291 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25292 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25293 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25294 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25295 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25296 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25297 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25298 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25299 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25300 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25301 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25302 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25303 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25304 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25305 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25306 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25307 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25308 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25309 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25310 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25311 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25313 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25314 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25315 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25316 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25318 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25319 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25320 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25321 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25322 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25323 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25324 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25325 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25326 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25327 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25328 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25329 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25331 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25332 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25333 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25334 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25335 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25336 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25337 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25338 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25339 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25340 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25341 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25342 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25343 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25344 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25345 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25346 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25347 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25348 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25350 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25351 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25352 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25353 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25354 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25355 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25356 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25357 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25358 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25359 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25360 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25361 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25362 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25363 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25364 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25365 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25366 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25367 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25368 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25369 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25371 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25372 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25373 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25374 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25375 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25376 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25377 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25378 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25379 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25380 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25381 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25382 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25383 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25384 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25386 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25387 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25388 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25390 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25391 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25392 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25393 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25394 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25396 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25397 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25398 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25399 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25400 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25401 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25402 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25403 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25404 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25405 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25406 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25407 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25408 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25414 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25415 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25416 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25417 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25418 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25419 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25420 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25421 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25422 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25423 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25424 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25425 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25427 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25429 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25430 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25431 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25432 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25433 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25434 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25435 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25436 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25437 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25438 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
25439 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25441 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25443 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25444 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25445 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25446 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25447 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25448 { NULL, NULL, 0, NULL }
25449 };
25450
25451
25452 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25453
25454 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25455 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25456 }
25457 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25458 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25459 }
25460 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25461 return (void *)((wxGDIObject *) ((wxIcon *) x));
25462 }
25463 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25464 return (void *)((wxGDIObject *) ((wxPalette *) x));
25465 }
25466 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25467 return (void *)((wxGDIObject *) ((wxPen *) x));
25468 }
25469 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25470 return (void *)((wxGDIObject *) ((wxFont *) x));
25471 }
25472 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25473 return (void *)((wxGDIObject *) ((wxCursor *) x));
25474 }
25475 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25476 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25477 }
25478 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25479 return (void *)((wxGDIObject *) ((wxRegion *) x));
25480 }
25481 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25482 return (void *)((wxGDIObject *) ((wxBrush *) x));
25483 }
25484 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25485 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25486 }
25487 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25488 return (void *)((wxDC *) ((wxScreenDC *) x));
25489 }
25490 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25491 return (void *)((wxDC *) ((wxMirrorDC *) x));
25492 }
25493 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25494 return (void *)((wxDC *) ((wxMemoryDC *) x));
25495 }
25496 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25497 return (void *)((wxDC *) ((wxWindowDC *) x));
25498 }
25499 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25500 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25501 }
25502 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25503 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25504 }
25505 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25506 return (void *)((wxDC *) ((wxClientDC *) x));
25507 }
25508 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25509 return (void *)((wxDC *) ((wxPaintDC *) x));
25510 }
25511 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25512 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25513 }
25514 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25515 return (void *)((wxDC *) ((wxPrinterDC *) x));
25516 }
25517 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25518 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25519 }
25520 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25521 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25522 }
25523 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25524 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25525 }
25526 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25527 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25528 }
25529 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25530 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25531 }
25532 static void *_p_wxPenTo_p_wxObject(void *x) {
25533 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25534 }
25535 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25536 return (void *)((wxObject *) ((wxRegionIterator *) x));
25537 }
25538 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25539 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25540 }
25541 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25542 return (void *)((wxObject *) ((wxSizerItem *) x));
25543 }
25544 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25545 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25546 }
25547 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25548 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25549 }
25550 static void *_p_wxIconTo_p_wxObject(void *x) {
25551 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25552 }
25553 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25554 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25555 }
25556 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25557 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25558 }
25559 static void *_p_wxSizerTo_p_wxObject(void *x) {
25560 return (void *)((wxObject *) ((wxSizer *) x));
25561 }
25562 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25563 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25564 }
25565 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25567 }
25568 static void *_p_wxEventTo_p_wxObject(void *x) {
25569 return (void *)((wxObject *) ((wxEvent *) x));
25570 }
25571 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25572 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25573 }
25574 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25575 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25576 }
25577 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25578 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25579 }
25580 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
25581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
25582 }
25583 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25584 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25585 }
25586 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25587 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25588 }
25589 static void *_p_wxDCTo_p_wxObject(void *x) {
25590 return (void *)((wxObject *) ((wxDC *) x));
25591 }
25592 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25593 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25594 }
25595 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25596 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25597 }
25598 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25599 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25600 }
25601 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25602 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25603 }
25604 static void *_p_wxControlTo_p_wxObject(void *x) {
25605 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25606 }
25607 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25608 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25609 }
25610 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25611 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25612 }
25613 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25614 return (void *)((wxObject *) ((wxFSFile *) x));
25615 }
25616 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25617 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25618 }
25619 static void *_p_wxRegionTo_p_wxObject(void *x) {
25620 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25621 }
25622 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25623 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25624 }
25625 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25626 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25627 }
25628 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25629 return (void *)((wxObject *) ((wxGDIObject *) x));
25630 }
25631 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25632 return (void *)((wxObject *) ((wxEffects *) x));
25633 }
25634 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25635 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25636 }
25637 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25638 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25639 }
25640 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25641 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25642 }
25643 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25644 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25645 }
25646 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25647 return (void *)((wxObject *) ((wxMenuItem *) x));
25648 }
25649 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25650 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25651 }
25652 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25653 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25654 }
25655 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25656 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25657 }
25658 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25659 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25660 }
25661 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25662 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25663 }
25664 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25665 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25666 }
25667 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25668 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25669 }
25670 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25671 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25672 }
25673 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25674 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25675 }
25676 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25677 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25678 }
25679 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25680 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25681 }
25682 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25683 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25684 }
25685 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25686 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25687 }
25688 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25689 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25690 }
25691 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25692 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25693 }
25694 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25695 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25696 }
25697 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25698 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25699 }
25700 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25701 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25702 }
25703 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25704 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25705 }
25706 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25707 return (void *)((wxObject *) ((wxImageHandler *) x));
25708 }
25709 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25710 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25711 }
25712 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25713 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25714 }
25715 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25716 return (void *)((wxObject *) ((wxEvtHandler *) x));
25717 }
25718 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25719 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25720 }
25721 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25722 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25723 }
25724 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25725 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25726 }
25727 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25728 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25729 }
25730 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25731 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25732 }
25733 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25734 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25735 }
25736 static void *_p_wxImageTo_p_wxObject(void *x) {
25737 return (void *)((wxObject *) ((wxImage *) x));
25738 }
25739 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25740 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25741 }
25742 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25743 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25744 }
25745 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25746 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25747 }
25748 static void *_p_wxImageListTo_p_wxObject(void *x) {
25749 return (void *)((wxObject *) ((wxImageList *) x));
25750 }
25751 static void *_p_wxCursorTo_p_wxObject(void *x) {
25752 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25753 }
25754 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25755 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25756 }
25757 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25758 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25759 }
25760 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25761 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25762 }
25763 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25764 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25765 }
25766 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25767 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25768 }
25769 static void *_p_wxWindowTo_p_wxObject(void *x) {
25770 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25771 }
25772 static void *_p_wxMenuTo_p_wxObject(void *x) {
25773 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25774 }
25775 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25776 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25777 }
25778 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25779 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25780 }
25781 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25782 return (void *)((wxObject *) ((wxFileSystem *) x));
25783 }
25784 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25785 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25786 }
25787 static void *_p_wxMaskTo_p_wxObject(void *x) {
25788 return (void *)((wxObject *) ((wxMask *) x));
25789 }
25790 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25792 }
25793 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25794 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25795 }
25796 static void *_p_wxPyAppTo_p_wxObject(void *x) {
25797 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25798 }
25799 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25800 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25801 }
25802 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25803 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25804 }
25805 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25806 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25807 }
25808 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25809 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25810 }
25811 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25812 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25813 }
25814 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25815 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25816 }
25817 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25818 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25819 }
25820 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25821 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25822 }
25823 static void *_p_wxFontTo_p_wxObject(void *x) {
25824 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25825 }
25826 static void *_p_wxBrushTo_p_wxObject(void *x) {
25827 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25828 }
25829 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25830 return (void *)((wxObject *) ((wxMetaFile *) x));
25831 }
25832 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25833 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25834 }
25835 static void *_p_wxColourTo_p_wxObject(void *x) {
25836 return (void *)((wxObject *) ((wxColour *) x));
25837 }
25838 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25839 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25840 }
25841 static void *_p_wxValidatorTo_p_wxObject(void *x) {
25842 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25843 }
25844 static void *_p_wxControlTo_p_wxWindow(void *x) {
25845 return (void *)((wxWindow *) ((wxControl *) x));
25846 }
25847 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25848 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25849 }
25850 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25851 return (void *)((wxWindow *) ((wxMenuBar *) x));
25852 }
25853 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25854 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25855 static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
25856 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25857 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25858 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25859 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25860 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25861 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25862 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25863 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25864 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25865 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25866 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25867 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25868 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25869 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25870 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25871 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25872 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25873 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25874 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25875 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25876 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
25877 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
25878 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25879 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25880 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25881 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25882 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25883 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25884 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25885 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25886 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25887 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25888 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25889 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25890 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25891 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25892 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25893 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25894 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25895 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25896 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25897 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25898 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25899 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25900 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25901 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25902 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25903 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25904 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25905 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25906 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25907 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25908 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
25909 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
25910 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25911 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25912 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25913 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25914 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25915 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25916 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25917 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25918 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25919 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25920 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25921 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25922 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25923 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25924 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25925 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25926 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25927 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25928 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25929 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25930 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25931 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25932 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
25933 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
25934 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25935 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25936 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25937 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25938 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25939 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25940 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25941 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25942 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
25943 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
25944 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25945 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25946 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25947 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25948 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25949 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25950 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25951 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25952 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25953 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25954 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25955 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25956 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25957 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25958 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25959 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25960 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25961 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25962 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25963 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25964 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25965 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
25966 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
25967 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
25968 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
25969 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
25970 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
25971 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
25972 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
25973 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
25974 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
25975 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
25976 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
25977 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
25978 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
25979 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
25980 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
25981 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
25982 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
25983 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
25984 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
25985 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
25986 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
25987 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
25988 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
25989 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
25990 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
25991
25992 static swig_type_info *swig_type_initial[] = {
25993 &_swigt__p_char,
25994 &_swigt__p_double,
25995 &_swigt__p_form_ops_t,
25996 &_swigt__p_int,
25997 &_swigt__p_unsigned_char,
25998 &_swigt__p_unsigned_int,
25999 &_swigt__p_unsigned_long,
26000 &_swigt__p_wxANIHandler,
26001 &_swigt__p_wxAcceleratorTable,
26002 &_swigt__p_wxActivateEvent,
26003 &_swigt__p_wxBMPHandler,
26004 &_swigt__p_wxBitmap,
26005 &_swigt__p_wxBoxSizer,
26006 &_swigt__p_wxBrush,
26007 &_swigt__p_wxBrushList,
26008 &_swigt__p_wxBufferedDC,
26009 &_swigt__p_wxBufferedPaintDC,
26010 &_swigt__p_wxCURHandler,
26011 &_swigt__p_wxChildFocusEvent,
26012 &_swigt__p_wxClientDC,
26013 &_swigt__p_wxClipboardTextEvent,
26014 &_swigt__p_wxCloseEvent,
26015 &_swigt__p_wxColour,
26016 &_swigt__p_wxColourDatabase,
26017 &_swigt__p_wxCommandEvent,
26018 &_swigt__p_wxContextMenuEvent,
26019 &_swigt__p_wxControl,
26020 &_swigt__p_wxControlWithItems,
26021 &_swigt__p_wxCursor,
26022 &_swigt__p_wxDC,
26023 &_swigt__p_wxDash,
26024 &_swigt__p_wxDateEvent,
26025 &_swigt__p_wxDisplayChangedEvent,
26026 &_swigt__p_wxDropFilesEvent,
26027 &_swigt__p_wxDuplexMode,
26028 &_swigt__p_wxEffects,
26029 &_swigt__p_wxEncodingConverter,
26030 &_swigt__p_wxEraseEvent,
26031 &_swigt__p_wxEvent,
26032 &_swigt__p_wxEvtHandler,
26033 &_swigt__p_wxFSFile,
26034 &_swigt__p_wxFileSystem,
26035 &_swigt__p_wxFlexGridSizer,
26036 &_swigt__p_wxFocusEvent,
26037 &_swigt__p_wxFont,
26038 &_swigt__p_wxFontList,
26039 &_swigt__p_wxFontMapper,
26040 &_swigt__p_wxGBSizerItem,
26041 &_swigt__p_wxGDIObjListBase,
26042 &_swigt__p_wxGDIObject,
26043 &_swigt__p_wxGIFHandler,
26044 &_swigt__p_wxGridBagSizer,
26045 &_swigt__p_wxGridSizer,
26046 &_swigt__p_wxICOHandler,
26047 &_swigt__p_wxIcon,
26048 &_swigt__p_wxIconBundle,
26049 &_swigt__p_wxIconLocation,
26050 &_swigt__p_wxIconizeEvent,
26051 &_swigt__p_wxIdleEvent,
26052 &_swigt__p_wxImage,
26053 &_swigt__p_wxImageHandler,
26054 &_swigt__p_wxImageList,
26055 &_swigt__p_wxIndividualLayoutConstraint,
26056 &_swigt__p_wxInitDialogEvent,
26057 &_swigt__p_wxJPEGHandler,
26058 &_swigt__p_wxKeyEvent,
26059 &_swigt__p_wxLanguageInfo,
26060 &_swigt__p_wxLayoutConstraints,
26061 &_swigt__p_wxLocale,
26062 &_swigt__p_wxMask,
26063 &_swigt__p_wxMaximizeEvent,
26064 &_swigt__p_wxMemoryDC,
26065 &_swigt__p_wxMenu,
26066 &_swigt__p_wxMenuBar,
26067 &_swigt__p_wxMenuEvent,
26068 &_swigt__p_wxMenuItem,
26069 &_swigt__p_wxMetaFile,
26070 &_swigt__p_wxMetaFileDC,
26071 &_swigt__p_wxMirrorDC,
26072 &_swigt__p_wxMouseCaptureChangedEvent,
26073 &_swigt__p_wxMouseEvent,
26074 &_swigt__p_wxMoveEvent,
26075 &_swigt__p_wxNativeEncodingInfo,
26076 &_swigt__p_wxNativeFontInfo,
26077 &_swigt__p_wxNavigationKeyEvent,
26078 &_swigt__p_wxNcPaintEvent,
26079 &_swigt__p_wxNotifyEvent,
26080 &_swigt__p_wxObject,
26081 &_swigt__p_wxPCXHandler,
26082 &_swigt__p_wxPNGHandler,
26083 &_swigt__p_wxPNMHandler,
26084 &_swigt__p_wxPaintDC,
26085 &_swigt__p_wxPaintEvent,
26086 &_swigt__p_wxPalette,
26087 &_swigt__p_wxPaletteChangedEvent,
26088 &_swigt__p_wxPaperSize,
26089 &_swigt__p_wxPen,
26090 &_swigt__p_wxPenList,
26091 &_swigt__p_wxPoint,
26092 &_swigt__p_wxPostScriptDC,
26093 &_swigt__p_wxPrintData,
26094 &_swigt__p_wxPrinterDC,
26095 &_swigt__p_wxPyApp,
26096 &_swigt__p_wxPyCommandEvent,
26097 &_swigt__p_wxPyEvent,
26098 &_swigt__p_wxPyFontEnumerator,
26099 &_swigt__p_wxPyImageHandler,
26100 &_swigt__p_wxPySizer,
26101 &_swigt__p_wxPyValidator,
26102 &_swigt__p_wxQueryNewPaletteEvent,
26103 &_swigt__p_wxRect,
26104 &_swigt__p_wxRegion,
26105 &_swigt__p_wxRegionIterator,
26106 &_swigt__p_wxRendererNative,
26107 &_swigt__p_wxRendererVersion,
26108 &_swigt__p_wxScreenDC,
26109 &_swigt__p_wxScrollEvent,
26110 &_swigt__p_wxScrollWinEvent,
26111 &_swigt__p_wxSetCursorEvent,
26112 &_swigt__p_wxShowEvent,
26113 &_swigt__p_wxSize,
26114 &_swigt__p_wxSizeEvent,
26115 &_swigt__p_wxSizer,
26116 &_swigt__p_wxSizerItem,
26117 &_swigt__p_wxSplitterRenderParams,
26118 &_swigt__p_wxStaticBoxSizer,
26119 &_swigt__p_wxStdDialogButtonSizer,
26120 &_swigt__p_wxStockGDI,
26121 &_swigt__p_wxString,
26122 &_swigt__p_wxSysColourChangedEvent,
26123 &_swigt__p_wxTIFFHandler,
26124 &_swigt__p_wxUpdateUIEvent,
26125 &_swigt__p_wxValidator,
26126 &_swigt__p_wxWindow,
26127 &_swigt__p_wxWindowCreateEvent,
26128 &_swigt__p_wxWindowDC,
26129 &_swigt__p_wxWindowDestroyEvent,
26130 &_swigt__p_wxXPMHandler,
26131 };
26132
26133 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26134 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26135 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26136 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26137 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26138 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26139 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26140 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26141 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26142 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26143 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}};
26144 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26145 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26146 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26147 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26148 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26149 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}};
26150 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26151 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26152 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26153 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26154 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26155 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26156 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26157 static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
26158 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}};
26159 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26160 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26161 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26162 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26163 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26164 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26165 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26166 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26167 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}};
26168 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26169 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26170 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26171 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26172 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26173 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26174 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26175 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26176 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26177 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26178 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26179 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26180 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26181 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26182 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26183 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26184 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26185 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26186 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26187 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26188 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
26189 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26190 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26191 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26192 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26193 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26194 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26195 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26196 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26197 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26198 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26199 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26200 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26201 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26202 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26203 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26204 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26205 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26206 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26207 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26208 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26209 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26210 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26211 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26212 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26213 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26214 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26215 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26216 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26217 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26218 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26219 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26220 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26221 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26222 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26223 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26224 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26225 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26226 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26227 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26228 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26229 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26230 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26231 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26232 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26233 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26234 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26235 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26236 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26237 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26238 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26239 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26240 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26241 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26242 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26243 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26244 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26245 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26246 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26247 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26248 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_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_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_wxClipboardTextEvent, _p_wxClipboardTextEventTo_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_wxPNGHandler, _p_wxPNGHandlerTo_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_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_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_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
26249 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26250 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26251 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26252 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26253 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26254 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26255 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26256 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26257 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26258 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26259 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26260 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26261 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26262 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26263 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26264 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26265 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26266 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26267 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26268 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26269 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}};
26270 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26271
26272 static swig_cast_info *swig_cast_initial[] = {
26273 _swigc__p_char,
26274 _swigc__p_double,
26275 _swigc__p_form_ops_t,
26276 _swigc__p_int,
26277 _swigc__p_unsigned_char,
26278 _swigc__p_unsigned_int,
26279 _swigc__p_unsigned_long,
26280 _swigc__p_wxANIHandler,
26281 _swigc__p_wxAcceleratorTable,
26282 _swigc__p_wxActivateEvent,
26283 _swigc__p_wxBMPHandler,
26284 _swigc__p_wxBitmap,
26285 _swigc__p_wxBoxSizer,
26286 _swigc__p_wxBrush,
26287 _swigc__p_wxBrushList,
26288 _swigc__p_wxBufferedDC,
26289 _swigc__p_wxBufferedPaintDC,
26290 _swigc__p_wxCURHandler,
26291 _swigc__p_wxChildFocusEvent,
26292 _swigc__p_wxClientDC,
26293 _swigc__p_wxClipboardTextEvent,
26294 _swigc__p_wxCloseEvent,
26295 _swigc__p_wxColour,
26296 _swigc__p_wxColourDatabase,
26297 _swigc__p_wxCommandEvent,
26298 _swigc__p_wxContextMenuEvent,
26299 _swigc__p_wxControl,
26300 _swigc__p_wxControlWithItems,
26301 _swigc__p_wxCursor,
26302 _swigc__p_wxDC,
26303 _swigc__p_wxDash,
26304 _swigc__p_wxDateEvent,
26305 _swigc__p_wxDisplayChangedEvent,
26306 _swigc__p_wxDropFilesEvent,
26307 _swigc__p_wxDuplexMode,
26308 _swigc__p_wxEffects,
26309 _swigc__p_wxEncodingConverter,
26310 _swigc__p_wxEraseEvent,
26311 _swigc__p_wxEvent,
26312 _swigc__p_wxEvtHandler,
26313 _swigc__p_wxFSFile,
26314 _swigc__p_wxFileSystem,
26315 _swigc__p_wxFlexGridSizer,
26316 _swigc__p_wxFocusEvent,
26317 _swigc__p_wxFont,
26318 _swigc__p_wxFontList,
26319 _swigc__p_wxFontMapper,
26320 _swigc__p_wxGBSizerItem,
26321 _swigc__p_wxGDIObjListBase,
26322 _swigc__p_wxGDIObject,
26323 _swigc__p_wxGIFHandler,
26324 _swigc__p_wxGridBagSizer,
26325 _swigc__p_wxGridSizer,
26326 _swigc__p_wxICOHandler,
26327 _swigc__p_wxIcon,
26328 _swigc__p_wxIconBundle,
26329 _swigc__p_wxIconLocation,
26330 _swigc__p_wxIconizeEvent,
26331 _swigc__p_wxIdleEvent,
26332 _swigc__p_wxImage,
26333 _swigc__p_wxImageHandler,
26334 _swigc__p_wxImageList,
26335 _swigc__p_wxIndividualLayoutConstraint,
26336 _swigc__p_wxInitDialogEvent,
26337 _swigc__p_wxJPEGHandler,
26338 _swigc__p_wxKeyEvent,
26339 _swigc__p_wxLanguageInfo,
26340 _swigc__p_wxLayoutConstraints,
26341 _swigc__p_wxLocale,
26342 _swigc__p_wxMask,
26343 _swigc__p_wxMaximizeEvent,
26344 _swigc__p_wxMemoryDC,
26345 _swigc__p_wxMenu,
26346 _swigc__p_wxMenuBar,
26347 _swigc__p_wxMenuEvent,
26348 _swigc__p_wxMenuItem,
26349 _swigc__p_wxMetaFile,
26350 _swigc__p_wxMetaFileDC,
26351 _swigc__p_wxMirrorDC,
26352 _swigc__p_wxMouseCaptureChangedEvent,
26353 _swigc__p_wxMouseEvent,
26354 _swigc__p_wxMoveEvent,
26355 _swigc__p_wxNativeEncodingInfo,
26356 _swigc__p_wxNativeFontInfo,
26357 _swigc__p_wxNavigationKeyEvent,
26358 _swigc__p_wxNcPaintEvent,
26359 _swigc__p_wxNotifyEvent,
26360 _swigc__p_wxObject,
26361 _swigc__p_wxPCXHandler,
26362 _swigc__p_wxPNGHandler,
26363 _swigc__p_wxPNMHandler,
26364 _swigc__p_wxPaintDC,
26365 _swigc__p_wxPaintEvent,
26366 _swigc__p_wxPalette,
26367 _swigc__p_wxPaletteChangedEvent,
26368 _swigc__p_wxPaperSize,
26369 _swigc__p_wxPen,
26370 _swigc__p_wxPenList,
26371 _swigc__p_wxPoint,
26372 _swigc__p_wxPostScriptDC,
26373 _swigc__p_wxPrintData,
26374 _swigc__p_wxPrinterDC,
26375 _swigc__p_wxPyApp,
26376 _swigc__p_wxPyCommandEvent,
26377 _swigc__p_wxPyEvent,
26378 _swigc__p_wxPyFontEnumerator,
26379 _swigc__p_wxPyImageHandler,
26380 _swigc__p_wxPySizer,
26381 _swigc__p_wxPyValidator,
26382 _swigc__p_wxQueryNewPaletteEvent,
26383 _swigc__p_wxRect,
26384 _swigc__p_wxRegion,
26385 _swigc__p_wxRegionIterator,
26386 _swigc__p_wxRendererNative,
26387 _swigc__p_wxRendererVersion,
26388 _swigc__p_wxScreenDC,
26389 _swigc__p_wxScrollEvent,
26390 _swigc__p_wxScrollWinEvent,
26391 _swigc__p_wxSetCursorEvent,
26392 _swigc__p_wxShowEvent,
26393 _swigc__p_wxSize,
26394 _swigc__p_wxSizeEvent,
26395 _swigc__p_wxSizer,
26396 _swigc__p_wxSizerItem,
26397 _swigc__p_wxSplitterRenderParams,
26398 _swigc__p_wxStaticBoxSizer,
26399 _swigc__p_wxStdDialogButtonSizer,
26400 _swigc__p_wxStockGDI,
26401 _swigc__p_wxString,
26402 _swigc__p_wxSysColourChangedEvent,
26403 _swigc__p_wxTIFFHandler,
26404 _swigc__p_wxUpdateUIEvent,
26405 _swigc__p_wxValidator,
26406 _swigc__p_wxWindow,
26407 _swigc__p_wxWindowCreateEvent,
26408 _swigc__p_wxWindowDC,
26409 _swigc__p_wxWindowDestroyEvent,
26410 _swigc__p_wxXPMHandler,
26411 };
26412
26413
26414 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26415
26416 static swig_const_info swig_const_table[] = {
26417 {0, 0, 0, 0.0, 0, 0}};
26418
26419 #ifdef __cplusplus
26420 }
26421 #endif
26422 /* -----------------------------------------------------------------------------
26423 * Type initialization:
26424 * This problem is tough by the requirement that no dynamic
26425 * memory is used. Also, since swig_type_info structures store pointers to
26426 * swig_cast_info structures and swig_cast_info structures store pointers back
26427 * to swig_type_info structures, we need some lookup code at initialization.
26428 * The idea is that swig generates all the structures that are needed.
26429 * The runtime then collects these partially filled structures.
26430 * The SWIG_InitializeModule function takes these initial arrays out of
26431 * swig_module, and does all the lookup, filling in the swig_module.types
26432 * array with the correct data and linking the correct swig_cast_info
26433 * structures together.
26434 *
26435 * The generated swig_type_info structures are assigned staticly to an initial
26436 * array. We just loop though that array, and handle each type individually.
26437 * First we lookup if this type has been already loaded, and if so, use the
26438 * loaded structure instead of the generated one. Then we have to fill in the
26439 * cast linked list. The cast data is initially stored in something like a
26440 * two-dimensional array. Each row corresponds to a type (there are the same
26441 * number of rows as there are in the swig_type_initial array). Each entry in
26442 * a column is one of the swig_cast_info structures for that type.
26443 * The cast_initial array is actually an array of arrays, because each row has
26444 * a variable number of columns. So to actually build the cast linked list,
26445 * we find the array of casts associated with the type, and loop through it
26446 * adding the casts to the list. The one last trick we need to do is making
26447 * sure the type pointer in the swig_cast_info struct is correct.
26448 *
26449 * First off, we lookup the cast->type name to see if it is already loaded.
26450 * There are three cases to handle:
26451 * 1) If the cast->type has already been loaded AND the type we are adding
26452 * casting info to has not been loaded (it is in this module), THEN we
26453 * replace the cast->type pointer with the type pointer that has already
26454 * been loaded.
26455 * 2) If BOTH types (the one we are adding casting info to, and the
26456 * cast->type) are loaded, THEN the cast info has already been loaded by
26457 * the previous module so we just ignore it.
26458 * 3) Finally, if cast->type has not already been loaded, then we add that
26459 * swig_cast_info to the linked list (because the cast->type) pointer will
26460 * be correct.
26461 * ----------------------------------------------------------------------------- */
26462
26463 #ifdef __cplusplus
26464 extern "C" {
26465 #if 0
26466 } /* c-mode */
26467 #endif
26468 #endif
26469
26470 #if 0
26471 #define SWIGRUNTIME_DEBUG
26472 #endif
26473
26474 SWIGRUNTIME void
26475 SWIG_InitializeModule(void *clientdata) {
26476 size_t i;
26477 swig_module_info *module_head;
26478 static int init_run = 0;
26479
26480 clientdata = clientdata;
26481
26482 if (init_run) return;
26483 init_run = 1;
26484
26485 /* Initialize the swig_module */
26486 swig_module.type_initial = swig_type_initial;
26487 swig_module.cast_initial = swig_cast_initial;
26488
26489 /* Try and load any already created modules */
26490 module_head = SWIG_GetModule(clientdata);
26491 if (module_head) {
26492 swig_module.next = module_head->next;
26493 module_head->next = &swig_module;
26494 } else {
26495 /* This is the first module loaded */
26496 swig_module.next = &swig_module;
26497 SWIG_SetModule(clientdata, &swig_module);
26498 }
26499
26500 /* Now work on filling in swig_module.types */
26501 #ifdef SWIGRUNTIME_DEBUG
26502 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26503 #endif
26504 for (i = 0; i < swig_module.size; ++i) {
26505 swig_type_info *type = 0;
26506 swig_type_info *ret;
26507 swig_cast_info *cast;
26508
26509 #ifdef SWIGRUNTIME_DEBUG
26510 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26511 #endif
26512
26513 /* if there is another module already loaded */
26514 if (swig_module.next != &swig_module) {
26515 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26516 }
26517 if (type) {
26518 /* Overwrite clientdata field */
26519 #ifdef SWIGRUNTIME_DEBUG
26520 printf("SWIG_InitializeModule: found type %s\n", type->name);
26521 #endif
26522 if (swig_module.type_initial[i]->clientdata) {
26523 type->clientdata = swig_module.type_initial[i]->clientdata;
26524 #ifdef SWIGRUNTIME_DEBUG
26525 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26526 #endif
26527 }
26528 } else {
26529 type = swig_module.type_initial[i];
26530 }
26531
26532 /* Insert casting types */
26533 cast = swig_module.cast_initial[i];
26534 while (cast->type) {
26535 /* Don't need to add information already in the list */
26536 ret = 0;
26537 #ifdef SWIGRUNTIME_DEBUG
26538 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26539 #endif
26540 if (swig_module.next != &swig_module) {
26541 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26542 #ifdef SWIGRUNTIME_DEBUG
26543 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26544 #endif
26545 }
26546 if (ret) {
26547 if (type == swig_module.type_initial[i]) {
26548 #ifdef SWIGRUNTIME_DEBUG
26549 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26550 #endif
26551 cast->type = ret;
26552 ret = 0;
26553 } else {
26554 /* Check for casting already in the list */
26555 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26556 #ifdef SWIGRUNTIME_DEBUG
26557 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26558 #endif
26559 if (!ocast) ret = 0;
26560 }
26561 }
26562
26563 if (!ret) {
26564 #ifdef SWIGRUNTIME_DEBUG
26565 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26566 #endif
26567 if (type->cast) {
26568 type->cast->prev = cast;
26569 cast->next = type->cast;
26570 }
26571 type->cast = cast;
26572 }
26573 cast++;
26574 }
26575 /* Set entry in modules->types array equal to the type */
26576 swig_module.types[i] = type;
26577 }
26578 swig_module.types[i] = 0;
26579
26580 #ifdef SWIGRUNTIME_DEBUG
26581 printf("**** SWIG_InitializeModule: Cast List ******\n");
26582 for (i = 0; i < swig_module.size; ++i) {
26583 int j = 0;
26584 swig_cast_info *cast = swig_module.cast_initial[i];
26585 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26586 while (cast->type) {
26587 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26588 cast++;
26589 ++j;
26590 }
26591 printf("---- Total casts: %d\n",j);
26592 }
26593 printf("**** SWIG_InitializeModule: Cast List ******\n");
26594 #endif
26595 }
26596
26597 /* This function will propagate the clientdata field of type to
26598 * any new swig_type_info structures that have been added into the list
26599 * of equivalent types. It is like calling
26600 * SWIG_TypeClientData(type, clientdata) a second time.
26601 */
26602 SWIGRUNTIME void
26603 SWIG_PropagateClientData(void) {
26604 size_t i;
26605 swig_cast_info *equiv;
26606 static int init_run = 0;
26607
26608 if (init_run) return;
26609 init_run = 1;
26610
26611 for (i = 0; i < swig_module.size; i++) {
26612 if (swig_module.types[i]->clientdata) {
26613 equiv = swig_module.types[i]->cast;
26614 while (equiv) {
26615 if (!equiv->converter) {
26616 if (equiv->type && !equiv->type->clientdata)
26617 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26618 }
26619 equiv = equiv->next;
26620 }
26621 }
26622 }
26623 }
26624
26625 #ifdef __cplusplus
26626 #if 0
26627 {
26628 /* c-mode */
26629 #endif
26630 }
26631 #endif
26632
26633
26634
26635 #ifdef __cplusplus
26636 extern "C" {
26637 #endif
26638
26639 /* Python-specific SWIG API */
26640 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26641 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26642 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26643
26644 /* -----------------------------------------------------------------------------
26645 * global variable support code.
26646 * ----------------------------------------------------------------------------- */
26647
26648 typedef struct swig_globalvar {
26649 char *name; /* Name of global variable */
26650 PyObject *(*get_attr)(void); /* Return the current value */
26651 int (*set_attr)(PyObject *); /* Set the value */
26652 struct swig_globalvar *next;
26653 } swig_globalvar;
26654
26655 typedef struct swig_varlinkobject {
26656 PyObject_HEAD
26657 swig_globalvar *vars;
26658 } swig_varlinkobject;
26659
26660 SWIGINTERN PyObject *
26661 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26662 return PyString_FromString("<Swig global variables>");
26663 }
26664
26665 SWIGINTERN PyObject *
26666 swig_varlink_str(swig_varlinkobject *v) {
26667 PyObject *str = PyString_FromString("(");
26668 swig_globalvar *var;
26669 for (var = v->vars; var; var=var->next) {
26670 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26671 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26672 }
26673 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26674 return str;
26675 }
26676
26677 SWIGINTERN int
26678 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26679 PyObject *str = swig_varlink_str(v);
26680 fprintf(fp,"Swig global variables ");
26681 fprintf(fp,"%s\n", PyString_AsString(str));
26682 Py_DECREF(str);
26683 return 0;
26684 }
26685
26686 SWIGINTERN void
26687 swig_varlink_dealloc(swig_varlinkobject *v) {
26688 swig_globalvar *var = v->vars;
26689 while (var) {
26690 swig_globalvar *n = var->next;
26691 free(var->name);
26692 free(var);
26693 var = n;
26694 }
26695 }
26696
26697 SWIGINTERN PyObject *
26698 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26699 PyObject *res = NULL;
26700 swig_globalvar *var = v->vars;
26701 while (var) {
26702 if (strcmp(var->name,n) == 0) {
26703 res = (*var->get_attr)();
26704 break;
26705 }
26706 var = var->next;
26707 }
26708 if (res == NULL && !PyErr_Occurred()) {
26709 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26710 }
26711 return res;
26712 }
26713
26714 SWIGINTERN int
26715 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26716 int res = 1;
26717 swig_globalvar *var = v->vars;
26718 while (var) {
26719 if (strcmp(var->name,n) == 0) {
26720 res = (*var->set_attr)(p);
26721 break;
26722 }
26723 var = var->next;
26724 }
26725 if (res == 1 && !PyErr_Occurred()) {
26726 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26727 }
26728 return res;
26729 }
26730
26731 SWIGINTERN PyTypeObject*
26732 swig_varlink_type(void) {
26733 static char varlink__doc__[] = "Swig var link object";
26734 static PyTypeObject varlink_type;
26735 static int type_init = 0;
26736 if (!type_init) {
26737 const PyTypeObject tmp
26738 = {
26739 PyObject_HEAD_INIT(NULL)
26740 0, /* Number of items in variable part (ob_size) */
26741 (char *)"swigvarlink", /* Type name (tp_name) */
26742 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26743 0, /* Itemsize (tp_itemsize) */
26744 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26745 (printfunc) swig_varlink_print, /* Print (tp_print) */
26746 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26747 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26748 0, /* tp_compare */
26749 (reprfunc) swig_varlink_repr, /* tp_repr */
26750 0, /* tp_as_number */
26751 0, /* tp_as_sequence */
26752 0, /* tp_as_mapping */
26753 0, /* tp_hash */
26754 0, /* tp_call */
26755 (reprfunc)swig_varlink_str, /* tp_str */
26756 0, /* tp_getattro */
26757 0, /* tp_setattro */
26758 0, /* tp_as_buffer */
26759 0, /* tp_flags */
26760 varlink__doc__, /* tp_doc */
26761 0, /* tp_traverse */
26762 0, /* tp_clear */
26763 0, /* tp_richcompare */
26764 0, /* tp_weaklistoffset */
26765 #if PY_VERSION_HEX >= 0x02020000
26766 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26767 #endif
26768 #if PY_VERSION_HEX >= 0x02030000
26769 0, /* tp_del */
26770 #endif
26771 #ifdef COUNT_ALLOCS
26772 0,0,0,0 /* tp_alloc -> tp_next */
26773 #endif
26774 };
26775 varlink_type = tmp;
26776 varlink_type.ob_type = &PyType_Type;
26777 type_init = 1;
26778 }
26779 return &varlink_type;
26780 }
26781
26782 /* Create a variable linking object for use later */
26783 SWIGINTERN PyObject *
26784 SWIG_Python_newvarlink(void) {
26785 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26786 if (result) {
26787 result->vars = 0;
26788 }
26789 return ((PyObject*) result);
26790 }
26791
26792 SWIGINTERN void
26793 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26794 swig_varlinkobject *v = (swig_varlinkobject *) p;
26795 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26796 if (gv) {
26797 size_t size = strlen(name)+1;
26798 gv->name = (char *)malloc(size);
26799 if (gv->name) {
26800 strncpy(gv->name,name,size);
26801 gv->get_attr = get_attr;
26802 gv->set_attr = set_attr;
26803 gv->next = v->vars;
26804 }
26805 }
26806 v->vars = gv;
26807 }
26808
26809 SWIGINTERN PyObject *
26810 SWIG_globals() {
26811 static PyObject *_SWIG_globals = 0;
26812 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26813 return _SWIG_globals;
26814 }
26815
26816 /* -----------------------------------------------------------------------------
26817 * constants/methods manipulation
26818 * ----------------------------------------------------------------------------- */
26819
26820 /* Install Constants */
26821 SWIGINTERN void
26822 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26823 PyObject *obj = 0;
26824 size_t i;
26825 for (i = 0; constants[i].type; ++i) {
26826 switch(constants[i].type) {
26827 case SWIG_PY_POINTER:
26828 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26829 break;
26830 case SWIG_PY_BINARY:
26831 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26832 break;
26833 default:
26834 obj = 0;
26835 break;
26836 }
26837 if (obj) {
26838 PyDict_SetItemString(d, constants[i].name, obj);
26839 Py_DECREF(obj);
26840 }
26841 }
26842 }
26843
26844 /* -----------------------------------------------------------------------------*/
26845 /* Fix SwigMethods to carry the callback ptrs when needed */
26846 /* -----------------------------------------------------------------------------*/
26847
26848 SWIGINTERN void
26849 SWIG_Python_FixMethods(PyMethodDef *methods,
26850 swig_const_info *const_table,
26851 swig_type_info **types,
26852 swig_type_info **types_initial) {
26853 size_t i;
26854 for (i = 0; methods[i].ml_name; ++i) {
26855 char *c = methods[i].ml_doc;
26856 if (c && (c = strstr(c, "swig_ptr: "))) {
26857 int j;
26858 swig_const_info *ci = 0;
26859 char *name = c + 10;
26860 for (j = 0; const_table[j].type; ++j) {
26861 if (strncmp(const_table[j].name, name,
26862 strlen(const_table[j].name)) == 0) {
26863 ci = &(const_table[j]);
26864 break;
26865 }
26866 }
26867 if (ci) {
26868 size_t shift = (ci->ptype) - types;
26869 swig_type_info *ty = types_initial[shift];
26870 size_t ldoc = (c - methods[i].ml_doc);
26871 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26872 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26873 if (ndoc) {
26874 char *buff = ndoc;
26875 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26876 if (ptr) {
26877 strncpy(buff, methods[i].ml_doc, ldoc);
26878 buff += ldoc;
26879 strncpy(buff, "swig_ptr: ", 10);
26880 buff += 10;
26881 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26882 methods[i].ml_doc = ndoc;
26883 }
26884 }
26885 }
26886 }
26887 }
26888 }
26889
26890 #ifdef __cplusplus
26891 }
26892 #endif
26893
26894 /* -----------------------------------------------------------------------------*
26895 * Partial Init method
26896 * -----------------------------------------------------------------------------*/
26897
26898 #ifdef __cplusplus
26899 extern "C"
26900 #endif
26901 SWIGEXPORT void SWIG_init(void) {
26902 PyObject *m, *d;
26903
26904 /* Fix SwigMethods to carry the callback ptrs when needed */
26905 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26906
26907 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26908 d = PyModule_GetDict(m);
26909
26910 SWIG_InitializeModule(0);
26911 SWIG_InstallConstants(d,swig_const_table);
26912
26913
26914 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
26915 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
26916 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
26917 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26918 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26919 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26920 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26921 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26922 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26923 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26924 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26925 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26926 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26927 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26928 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26929 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26930 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26931 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26932 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26933 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26934 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26935 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26936 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26937 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26938 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26939 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26940 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26941 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26942 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26943 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26944 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26945 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26946 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26947 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26948 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26949 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26950 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26951 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26952 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26953 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26954 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26955 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26956 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26957 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26958 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26959 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26960 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26961 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26962 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26963 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26964 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26965 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
26966 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
26967 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
26968 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
26969 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
26970 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
26971 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
26972 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
26973 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
26974 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
26975 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
26976 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
26977 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
26978 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
26979 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
26980 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
26981 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
26982 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
26983 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
26984 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
26985 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
26986 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
26987 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
26988 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
26989 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
26990 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
26991 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
26992 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
26993 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
26994 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
26995 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
26996 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
26997 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
26998 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
26999 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27000 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27001 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27002 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27003 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27004 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27005 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27006 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27007 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27008 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27009 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27010 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27011 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27012 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27013 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27014 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27015 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27016 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27017 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27018 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27019 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27020 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27021 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27022 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27023 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27024 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27025 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27026 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27027 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27028 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27029 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27030 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27031 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27032 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27033 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27034 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27035 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27036 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27037 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27038 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27039 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27040 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27041 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27042 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27043 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27044
27045 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27046
27047 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27048 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27049 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27050 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27051 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27052 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27053 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27054 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27055 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27056 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27057 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27058 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27059 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27060 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27061 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27062 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27063 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27064 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27065 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27066 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27067 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27068 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27069 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27070 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27071 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27072 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27073 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27074 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27075 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27076 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27077 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27078 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27079 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27080 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27081 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27082 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27083 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27084 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27085 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27086 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27087 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27088 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27089 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27090 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27091 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27092 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27093 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27094 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27095 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27096 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27097 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27098 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27099 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27100 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27101 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27102 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27103 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27104 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27105 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27106 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27107 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27108 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27109 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27110 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27111 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27112 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27113 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27114 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27115 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27116 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27117 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27118 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27119 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27120 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27121 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27122 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27123 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27124 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27125 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27126 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27127 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27128 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27129 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27130 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27131 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27132 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27133 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27134 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27135 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27136 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27137 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27138 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27139 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27140 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27141 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27142 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27143 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27144 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27145 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27146 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27147 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27148 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27149 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27150 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27151 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27152 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27153 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27154 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27155 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27156 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27157 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27158 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27159 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27160 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27161 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27162 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27163 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27164 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27165 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27166 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27167 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27168 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27169 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27170 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27171 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27172 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27173 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27174 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27175 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27176 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27177 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27178 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27179 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27180 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27181 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27182 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27183 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27184 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27185 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27186 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27187 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27188 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27189 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27190 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27191 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27192 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27193 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27194 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27195 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27196 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27197 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27198 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27199 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27200 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27201 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27202 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27203 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27204 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27205 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27206 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27207 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27208 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27209 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27210 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27211 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27212 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27213 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27214 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27215 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27216 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27217 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27218 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27219 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27220 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27221 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27222 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27223 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27224 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27225 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27226 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27227 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27228 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27229 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27230 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27231 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27232 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27233 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27234 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27235 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27236 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27237 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27238 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27239 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27240 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27241 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27242 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27257 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27258 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27259 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27260 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27261 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27262 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27263 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27278 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27279 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27280 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27281 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27282 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27283 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27284 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27285 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27286 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27287 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27288 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27289 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27290 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27291 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27292 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27293 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27294 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27295 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27296 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27297 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27298 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27299 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27300 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27301 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27302 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27303 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27304 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27305 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27306 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27307 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27308 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27309 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27310 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27311 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27312 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27313 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27314 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27315 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27316 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27317 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27318 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27319 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27320 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27321 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27322 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27323 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27324 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27325 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27326 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27327 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27328 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27329 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27330 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27331 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27332 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27333 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27334 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27335 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27336 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27337 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27338 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27339 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27340 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27341 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27342 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27343 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27344 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27345 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27346 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27347 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27348 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27349 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27350 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27351 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27352 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27353 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27354 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27355 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27356 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27357 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27358 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27359 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27360 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27361
27362 // Work around a chicken/egg problem in drawlist.cpp
27363 wxPyDrawList_SetAPIPtr();
27364
27365 }
27366