]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.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_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObjListBase swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObject swig_types[48]
2511 #define SWIGTYPE_p_wxGIFHandler swig_types[49]
2512 #define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2513 #define SWIGTYPE_p_wxGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxICOHandler swig_types[52]
2515 #define SWIGTYPE_p_wxIcon swig_types[53]
2516 #define SWIGTYPE_p_wxIconBundle swig_types[54]
2517 #define SWIGTYPE_p_wxIconLocation swig_types[55]
2518 #define SWIGTYPE_p_wxIconizeEvent swig_types[56]
2519 #define SWIGTYPE_p_wxIdleEvent swig_types[57]
2520 #define SWIGTYPE_p_wxImage swig_types[58]
2521 #define SWIGTYPE_p_wxImageHandler swig_types[59]
2522 #define SWIGTYPE_p_wxImageList swig_types[60]
2523 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
2524 #define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
2525 #define SWIGTYPE_p_wxJPEGHandler swig_types[63]
2526 #define SWIGTYPE_p_wxKeyEvent swig_types[64]
2527 #define SWIGTYPE_p_wxLanguageInfo swig_types[65]
2528 #define SWIGTYPE_p_wxLayoutConstraints swig_types[66]
2529 #define SWIGTYPE_p_wxLocale swig_types[67]
2530 #define SWIGTYPE_p_wxMask swig_types[68]
2531 #define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
2532 #define SWIGTYPE_p_wxMemoryDC swig_types[70]
2533 #define SWIGTYPE_p_wxMenu swig_types[71]
2534 #define SWIGTYPE_p_wxMenuBar swig_types[72]
2535 #define SWIGTYPE_p_wxMenuEvent swig_types[73]
2536 #define SWIGTYPE_p_wxMenuItem swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFile swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFileDC swig_types[76]
2539 #define SWIGTYPE_p_wxMirrorDC swig_types[77]
2540 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMouseEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMoveEvent swig_types[80]
2543 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNativeFontInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNcPaintEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNotifyEvent swig_types[85]
2548 #define SWIGTYPE_p_wxObject swig_types[86]
2549 #define SWIGTYPE_p_wxPCXHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNGHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNMHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPaintDC swig_types[90]
2553 #define SWIGTYPE_p_wxPaintEvent swig_types[91]
2554 #define SWIGTYPE_p_wxPalette swig_types[92]
2555 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[93]
2556 #define SWIGTYPE_p_wxPaperSize swig_types[94]
2557 #define SWIGTYPE_p_wxPen swig_types[95]
2558 #define SWIGTYPE_p_wxPenList swig_types[96]
2559 #define SWIGTYPE_p_wxPoint swig_types[97]
2560 #define SWIGTYPE_p_wxPostScriptDC swig_types[98]
2561 #define SWIGTYPE_p_wxPrintData swig_types[99]
2562 #define SWIGTYPE_p_wxPrinterDC swig_types[100]
2563 #define SWIGTYPE_p_wxPyApp swig_types[101]
2564 #define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[104]
2567 #define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2568 #define SWIGTYPE_p_wxPySizer swig_types[106]
2569 #define SWIGTYPE_p_wxPyValidator swig_types[107]
2570 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[108]
2571 #define SWIGTYPE_p_wxRect swig_types[109]
2572 #define SWIGTYPE_p_wxRegion swig_types[110]
2573 #define SWIGTYPE_p_wxRegionIterator swig_types[111]
2574 #define SWIGTYPE_p_wxRendererNative swig_types[112]
2575 #define SWIGTYPE_p_wxRendererVersion swig_types[113]
2576 #define SWIGTYPE_p_wxScreenDC swig_types[114]
2577 #define SWIGTYPE_p_wxScrollEvent swig_types[115]
2578 #define SWIGTYPE_p_wxScrollWinEvent swig_types[116]
2579 #define SWIGTYPE_p_wxSetCursorEvent swig_types[117]
2580 #define SWIGTYPE_p_wxShowEvent swig_types[118]
2581 #define SWIGTYPE_p_wxSize swig_types[119]
2582 #define SWIGTYPE_p_wxSizeEvent swig_types[120]
2583 #define SWIGTYPE_p_wxSizer swig_types[121]
2584 #define SWIGTYPE_p_wxSizerItem swig_types[122]
2585 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[123]
2586 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[124]
2587 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStockGDI swig_types[126]
2589 #define SWIGTYPE_p_wxString swig_types[127]
2590 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[128]
2591 #define SWIGTYPE_p_wxTIFFHandler swig_types[129]
2592 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[130]
2593 #define SWIGTYPE_p_wxValidator swig_types[131]
2594 #define SWIGTYPE_p_wxWindow swig_types[132]
2595 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[133]
2596 #define SWIGTYPE_p_wxWindowDC swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[135]
2598 #define SWIGTYPE_p_wxXPMHandler swig_types[136]
2599 static swig_type_info *swig_types[138];
2600 static swig_module_info swig_module = {swig_types, 137, 0, 0, 0, 0};
2601 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2602 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2603
2604 /* -------- TYPES TABLE (END) -------- */
2605
2606 #if (PY_VERSION_HEX <= 0x02000000)
2607 # if !defined(SWIG_PYTHON_CLASSIC)
2608 # error "This python version requires to use swig with the '-classic' option"
2609 # endif
2610 #endif
2611 #if (PY_VERSION_HEX <= 0x02020000)
2612 # error "This python version requires to use swig with the '-nomodern' option"
2613 #endif
2614 #if (PY_VERSION_HEX <= 0x02020000)
2615 # error "This python version requires to use swig with the '-nomodernargs' option"
2616 #endif
2617 #ifndef METH_O
2618 # error "This python version requires to use swig with the '-nofastunpack' option"
2619 #endif
2620
2621 /*-----------------------------------------------
2622 @(target):= _gdi_.so
2623 ------------------------------------------------*/
2624 #define SWIG_init init_gdi_
2625
2626 #define SWIG_name "_gdi_"
2627
2628 #define SWIGVERSION 0x010329
2629
2630
2631 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2632 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2633
2634
2635 #include <stdexcept>
2636
2637
2638 namespace swig {
2639 class PyObject_ptr {
2640 protected:
2641 PyObject *_obj;
2642
2643 public:
2644 PyObject_ptr() :_obj(0)
2645 {
2646 }
2647
2648 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2649 {
2650 Py_XINCREF(_obj);
2651 }
2652
2653 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2654 {
2655 if (initial_ref) Py_XINCREF(_obj);
2656 }
2657
2658 PyObject_ptr & operator=(const PyObject_ptr& item)
2659 {
2660 Py_XINCREF(item._obj);
2661 Py_XDECREF(_obj);
2662 _obj = item._obj;
2663 return *this;
2664 }
2665
2666 ~PyObject_ptr()
2667 {
2668 Py_XDECREF(_obj);
2669 }
2670
2671 operator PyObject *() const
2672 {
2673 return _obj;
2674 }
2675
2676 PyObject *operator->() const
2677 {
2678 return _obj;
2679 }
2680 };
2681 }
2682
2683
2684 namespace swig {
2685 struct PyObject_var : PyObject_ptr {
2686 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2687
2688 PyObject_var & operator = (PyObject* obj)
2689 {
2690 Py_XDECREF(_obj);
2691 _obj = obj;
2692 return *this;
2693 }
2694 };
2695 }
2696
2697
2698 #include "wx/wxPython/wxPython.h"
2699 #include "wx/wxPython/pyclasses.h"
2700
2701
2702 static const wxString wxPyEmptyString(wxEmptyString);
2703
2704 #include <limits.h>
2705 #ifndef LLONG_MIN
2706 # define LLONG_MIN LONG_LONG_MIN
2707 #endif
2708 #ifndef LLONG_MAX
2709 # define LLONG_MAX LONG_LONG_MAX
2710 #endif
2711 #ifndef ULLONG_MAX
2712 # define ULLONG_MAX ULONG_LONG_MAX
2713 #endif
2714
2715
2716 SWIGINTERN int
2717 SWIG_AsVal_long (PyObject* obj, long* val)
2718 {
2719 if (PyNumber_Check(obj)) {
2720 if (val) *val = PyInt_AsLong(obj);
2721 return SWIG_OK;
2722 }
2723 return SWIG_TypeError;
2724 }
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2729 {
2730 long v = 0;
2731 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2732 return SWIG_TypeError;
2733 }
2734 else if (val)
2735 *val = (unsigned long)v;
2736 return SWIG_OK;
2737 }
2738
2739
2740 SWIGINTERN int
2741 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2742 {
2743 unsigned long v;
2744 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2745 if (SWIG_IsOK(res)) {
2746 if ((v > UCHAR_MAX)) {
2747 return SWIG_OverflowError;
2748 } else {
2749 if (val) *val = static_cast< unsigned char >(v);
2750 }
2751 }
2752 return res;
2753 }
2754
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject*
2760 SWIG_From_unsigned_SS_long (unsigned long value)
2761 {
2762 return (value > LONG_MAX) ?
2763 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject *
2768 SWIG_From_unsigned_SS_char (unsigned char value)
2769 {
2770 return SWIG_From_unsigned_SS_long (value);
2771 }
2772
2773 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2774 wxColour temp, *obj = &temp;
2775 if ( other == Py_None ) return false;
2776 if ( ! wxColour_helper(other, &obj) ) {
2777 PyErr_Clear();
2778 return false;
2779 }
2780 return self->operator==(*obj);
2781 }
2782 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2783 wxColour temp, *obj = &temp;
2784 if ( other == Py_None ) return true;
2785 if ( ! wxColour_helper(other, &obj)) {
2786 PyErr_Clear();
2787 return true;
2788 }
2789 return self->operator!=(*obj);
2790 }
2791 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2792 PyObject* rv = PyTuple_New(3);
2793 int red = -1;
2794 int green = -1;
2795 int blue = -1;
2796 if (self->Ok()) {
2797 red = self->Red();
2798 green = self->Green();
2799 blue = self->Blue();
2800 }
2801 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2802 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2803 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2804 return rv;
2805 }
2806 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2807 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2808 }
2809
2810 SWIGINTERN int
2811 SWIG_AsVal_int (PyObject * obj, int *val)
2812 {
2813 long v;
2814 int res = SWIG_AsVal_long (obj, &v);
2815 if (SWIG_IsOK(res)) {
2816 if ((v < INT_MIN || v > INT_MAX)) {
2817 return SWIG_OverflowError;
2818 } else {
2819 if (val) *val = static_cast< int >(v);
2820 }
2821 }
2822 return res;
2823 }
2824
2825
2826 SWIGINTERNINLINE PyObject *
2827 SWIG_From_int (int value)
2828 {
2829 return SWIG_From_long (value);
2830 }
2831
2832 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2833 wxDash* dashes;
2834 int count = self->GetDashes(&dashes);
2835 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2836 PyObject* retval = PyList_New(0);
2837 for (int x=0; x<count; x++) {
2838 PyObject* pyint = PyInt_FromLong(dashes[x]);
2839 PyList_Append(retval, pyint);
2840 Py_DECREF(pyint);
2841 }
2842 wxPyEndBlockThreads(blocked);
2843 return retval;
2844 }
2845 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2846 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2847 int size = PyList_Size(pyDashes);
2848 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2849
2850 // black magic warning! The array of wxDashes needs to exist as
2851 // long as the pen does because wxPen does not copy the array. So
2852 // stick a copy in a Python string object and attach it to _self,
2853 // and then call SetDashes with a pointer to that array. Then
2854 // when the Python pen object is destroyed the array will be
2855 // cleaned up too.
2856 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2857 PyObject_SetAttrString(_self, "_dashes", strDashes);
2858
2859 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2860 delete [] dashes;
2861 Py_DECREF(strDashes);
2862 wxPyEndBlockThreads(blocked);
2863 }
2864 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2865 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2866
2867 SWIGINTERNINLINE PyObject *
2868 SWIG_From_short (short value)
2869 {
2870 return SWIG_From_long (value);
2871 }
2872
2873
2874 SWIGINTERN int
2875 SWIG_AsVal_short (PyObject * obj, short *val)
2876 {
2877 long v;
2878 int res = SWIG_AsVal_long (obj, &v);
2879 if (SWIG_IsOK(res)) {
2880 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2881 return SWIG_OverflowError;
2882 } else {
2883 if (val) *val = static_cast< short >(v);
2884 }
2885 }
2886 return res;
2887 }
2888
2889
2890 #include <wx/image.h>
2891
2892 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2893 char** cArray = NULL;
2894 int count;
2895
2896 if (!PyList_Check(listOfStrings)) {
2897 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2898 return NULL;
2899 }
2900 count = PyList_Size(listOfStrings);
2901 cArray = new char*[count];
2902
2903 for(int x=0; x<count; x++) {
2904 // TODO: Need some validation and error checking here
2905 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2906 }
2907 return cArray;
2908 }
2909
2910
2911 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2912 char** cArray = NULL;
2913 wxBitmap* bmp;
2914
2915 cArray = ConvertListOfStrings(listOfStrings);
2916 if (! cArray)
2917 return NULL;
2918 bmp = new wxBitmap(cArray);
2919 delete [] cArray;
2920 return bmp;
2921 }
2922 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2923 char* buf;
2924 int length;
2925 PyString_AsStringAndSize(bits, &buf, &length);
2926 return new wxBitmap(buf, width, height, depth);
2927 }
2928 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2929 wxSize size(self->GetWidth(), self->GetHeight());
2930 return size;
2931 }
2932 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2933 wxMask *mask = new wxMask(*self, colour);
2934 self->SetMask(mask);
2935 }
2936 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2937 self->SetWidth(size.x);
2938 self->SetHeight(size.y);
2939 }
2940 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2941 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2942 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2943 if ( !colour.Ok() )
2944 return new wxMask(bitmap, *wxBLACK);
2945 else
2946 return new wxMask(bitmap, colour);
2947 }
2948
2949 #include <wx/iconbndl.h>
2950
2951 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2952 wxIcon* icon = new wxIcon();
2953 icon->CopyFromBitmap(bmp);
2954 return icon;
2955 }
2956 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2957 char** cArray = NULL;
2958 wxIcon* icon;
2959
2960 cArray = ConvertListOfStrings(listOfStrings);
2961 if (! cArray)
2962 return NULL;
2963 icon = new wxIcon(cArray);
2964 delete [] cArray;
2965 return icon;
2966 }
2967 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2968
2969
2970
2971 return new wxIconLocation(*filename);
2972
2973 }
2974 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2975
2976
2977
2978 // do nothing
2979
2980 }
2981 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2982
2983
2984
2985 return -1;
2986
2987 }
2988 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2989 #ifdef __WXGTK__
2990 wxImage img(cursorName, type);
2991 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2992 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2993 return new wxCursor(img);
2994 #else
2995 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2996 #endif
2997 }
2998
2999
3000 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3001 (*self) ++;
3002 }
3003 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3004 return self->operator bool();
3005 }
3006
3007 #include <wx/fontutil.h>
3008 #include <wx/fontmap.h>
3009 #include <wx/fontenum.h>
3010
3011
3012 SWIGINTERN int
3013 SWIG_AsVal_bool (PyObject *obj, bool *val)
3014 {
3015 if (obj == Py_True) {
3016 if (val) *val = true;
3017 return SWIG_OK;
3018 } else if (obj == Py_False) {
3019 if (val) *val = false;
3020 return SWIG_OK;
3021 } else {
3022 long v = 0;
3023 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3024 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3025 return res;
3026 }
3027 }
3028
3029 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3030 return self->ToString();
3031 }
3032
3033 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3034 static wxNativeEncodingInfo info;
3035 if ( wxGetNativeFontEncoding(encoding, &info) )
3036 return &info;
3037 else
3038 return NULL;
3039 }
3040
3041
3042 SWIGINTERNINLINE PyObject *
3043 SWIG_From_size_t (size_t value)
3044 {
3045 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3046 }
3047
3048
3049 SWIGINTERNINLINE int
3050 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3051 {
3052 unsigned long v;
3053 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3054 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3055 return res;
3056 }
3057
3058 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3059 wxFontEncoding alt_enc;
3060 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3061 return PyInt_FromLong(alt_enc);
3062 else {
3063 Py_INCREF(Py_None);
3064 return Py_None;
3065 }
3066 }
3067 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3068 wxNativeFontInfo nfi;
3069 nfi.FromString(info);
3070 return new wxFont(nfi);
3071 }
3072 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3073 return wxFont::New(pointSize, family, flags, face, encoding);
3074 }
3075 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3076 return wxFontBase::New(pixelSize, family,
3077 style, weight, underlined,
3078 face, encoding);
3079 }
3080 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3081 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3082 }
3083 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3084 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3085
3086 class wxPyFontEnumerator : public wxFontEnumerator {
3087 public:
3088 wxPyFontEnumerator() {}
3089 ~wxPyFontEnumerator() {}
3090
3091 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3092 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3093
3094 PYPRIVATE;
3095 };
3096
3097 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3098 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3099
3100
3101 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3102 PyObject* ret;
3103 wxArrayString* arr = self->GetEncodings();
3104 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3105 if (arr)
3106 ret = wxArrayString2PyList_helper(*arr);
3107 else
3108 ret = PyList_New(0);
3109 wxPyEndBlockThreads(blocked);
3110 return ret;
3111 }
3112 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3113 PyObject* ret;
3114 wxArrayString* arr = self->GetFacenames();
3115 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3116 if (arr)
3117 ret = wxArrayString2PyList_helper(*arr);
3118 else
3119 ret = PyList_New(0);
3120 wxPyEndBlockThreads(blocked);
3121 return ret;
3122 }
3123
3124 #include <locale.h>
3125
3126 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 wxLocale* loc;
3128 if (language == -1)
3129 loc = new wxLocale();
3130 else
3131 loc = new wxLocale(language, flags);
3132 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3133 // for the floating point conversions and such to work right.
3134 #if PY_VERSION_HEX < 0x02040000
3135 setlocale(LC_NUMERIC, "C");
3136 #endif
3137 return loc;
3138 }
3139 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3140 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3141 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3142 // for the floating point conversions and such to work right.
3143 #if PY_VERSION_HEX < 0x02040000
3144 setlocale(LC_NUMERIC, "C");
3145 #endif
3146 return rc;
3147 }
3148 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3149 bool rc = self->Init(language, flags);
3150 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3151 // for the floating point conversions and such to work right.
3152 #if PY_VERSION_HEX < 0x02040000
3153 setlocale(LC_NUMERIC, "C");
3154 #endif
3155 return rc;
3156 }
3157
3158 #include "wx/wxPython/pydrawxxx.h"
3159
3160 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3161 wxColour col;
3162 self->GetPixel(x, y, &col);
3163 return col;
3164 }
3165 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3166 wxColour col;
3167 self->GetPixel(pt, &col);
3168 return col;
3169 }
3170
3171 SWIGINTERN int
3172 SWIG_AsVal_double (PyObject *obj, double* val)
3173 {
3174 if (PyNumber_Check(obj)) {
3175 if (val) *val = PyFloat_AsDouble(obj);
3176 return SWIG_OK;
3177 }
3178 return SWIG_TypeError;
3179 }
3180
3181 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3182 wxRect rv;
3183 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3184 return rv;
3185 }
3186 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3187 wxRect rect;
3188 self->GetClippingBox(rect);
3189 return rect;
3190 }
3191 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3192 wxArrayInt widths;
3193 self->GetPartialTextExtents(text, widths);
3194 return widths;
3195 }
3196
3197 #define SWIG_From_double PyFloat_FromDouble
3198
3199 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3200 self->SetLogicalOrigin(point.x, point.y);
3201 }
3202 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3203 self->SetDeviceOrigin(point.x, point.y);
3204 }
3205 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3206 self->CalcBoundingBox(point.x, point.y);
3207 }
3208 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3209 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3210 }
3211 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3212 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3213 }
3214 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3215 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3216 }
3217 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3218 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3219 }
3220 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3221 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3222 }
3223 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3224 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3225 }
3226
3227 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3228 *x1 = dc->MinX();
3229 *y1 = dc->MinY();
3230 *x2 = dc->MaxX();
3231 *y2 = dc->MaxY();
3232 }
3233
3234
3235 #include <wx/dcbuffer.h>
3236
3237
3238 #include <wx/dcps.h>
3239
3240
3241 #include <wx/metafile.h>
3242
3243
3244
3245 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3246 self->AddColour(name, wxColour(red, green, blue));
3247 }
3248
3249 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3250 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3251 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3252 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3253
3254
3255 #include <wx/effects.h>
3256
3257
3258 #include "wx/renderer.h"
3259
3260
3261 SWIGINTERNINLINE PyObject*
3262 SWIG_From_bool (bool value)
3263 {
3264 return PyBool_FromLong(value ? 1 : 0);
3265 }
3266
3267 #ifdef __cplusplus
3268 extern "C" {
3269 #endif
3270 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3271 PyObject *resultobj = 0;
3272 wxGDIObject *result = 0 ;
3273
3274 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3275 {
3276 if (!wxPyCheckForApp()) SWIG_fail;
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 result = (wxGDIObject *)new wxGDIObject();
3279 wxPyEndAllowThreads(__tstate);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 }
3282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3283 return resultobj;
3284 fail:
3285 return NULL;
3286 }
3287
3288
3289 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3290 PyObject *resultobj = 0;
3291 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3292 void *argp1 = 0 ;
3293 int res1 = 0 ;
3294 PyObject *swig_obj[1] ;
3295
3296 if (!args) SWIG_fail;
3297 swig_obj[0] = args;
3298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3299 if (!SWIG_IsOK(res1)) {
3300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3301 }
3302 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3303 {
3304 PyThreadState* __tstate = wxPyBeginAllowThreads();
3305 delete arg1;
3306
3307 wxPyEndAllowThreads(__tstate);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 resultobj = SWIG_Py_Void();
3311 return resultobj;
3312 fail:
3313 return NULL;
3314 }
3315
3316
3317 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3318 PyObject *resultobj = 0;
3319 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3320 bool result;
3321 void *argp1 = 0 ;
3322 int res1 = 0 ;
3323 PyObject *swig_obj[1] ;
3324
3325 if (!args) SWIG_fail;
3326 swig_obj[0] = args;
3327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3328 if (!SWIG_IsOK(res1)) {
3329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3330 }
3331 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3332 {
3333 PyThreadState* __tstate = wxPyBeginAllowThreads();
3334 result = (bool)(arg1)->IsNull();
3335 wxPyEndAllowThreads(__tstate);
3336 if (PyErr_Occurred()) SWIG_fail;
3337 }
3338 {
3339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3340 }
3341 return resultobj;
3342 fail:
3343 return NULL;
3344 }
3345
3346
3347 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3348 PyObject *obj;
3349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3350 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3351 return SWIG_Py_Void();
3352 }
3353
3354 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3355 return SWIG_Python_InitShadowInstance(args);
3356 }
3357
3358 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj = 0;
3360 byte arg1 = (byte) 0 ;
3361 byte arg2 = (byte) 0 ;
3362 byte arg3 = (byte) 0 ;
3363 wxColour *result = 0 ;
3364 unsigned char val1 ;
3365 int ecode1 = 0 ;
3366 unsigned char val2 ;
3367 int ecode2 = 0 ;
3368 unsigned char val3 ;
3369 int ecode3 = 0 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 PyObject * obj2 = 0 ;
3373 char * kwnames[] = {
3374 (char *) "red",(char *) "green",(char *) "blue", NULL
3375 };
3376
3377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3378 if (obj0) {
3379 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3380 if (!SWIG_IsOK(ecode1)) {
3381 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3382 }
3383 arg1 = static_cast< byte >(val1);
3384 }
3385 if (obj1) {
3386 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3387 if (!SWIG_IsOK(ecode2)) {
3388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3389 }
3390 arg2 = static_cast< byte >(val2);
3391 }
3392 if (obj2) {
3393 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3394 if (!SWIG_IsOK(ecode3)) {
3395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3396 }
3397 arg3 = static_cast< byte >(val3);
3398 }
3399 {
3400 PyThreadState* __tstate = wxPyBeginAllowThreads();
3401 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3406 return resultobj;
3407 fail:
3408 return NULL;
3409 }
3410
3411
3412 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj = 0;
3414 wxString *arg1 = 0 ;
3415 wxColour *result = 0 ;
3416 bool temp1 = false ;
3417 PyObject * obj0 = 0 ;
3418 char * kwnames[] = {
3419 (char *) "colorName", NULL
3420 };
3421
3422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3423 {
3424 arg1 = wxString_in_helper(obj0);
3425 if (arg1 == NULL) SWIG_fail;
3426 temp1 = true;
3427 }
3428 {
3429 if (!wxPyCheckForApp()) SWIG_fail;
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (wxColour *)new wxColour((wxString const &)*arg1);
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3436 {
3437 if (temp1)
3438 delete arg1;
3439 }
3440 return resultobj;
3441 fail:
3442 {
3443 if (temp1)
3444 delete arg1;
3445 }
3446 return NULL;
3447 }
3448
3449
3450 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3451 PyObject *resultobj = 0;
3452 unsigned long arg1 ;
3453 wxColour *result = 0 ;
3454 unsigned long val1 ;
3455 int ecode1 = 0 ;
3456 PyObject * obj0 = 0 ;
3457 char * kwnames[] = {
3458 (char *) "colRGB", NULL
3459 };
3460
3461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3462 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3463 if (!SWIG_IsOK(ecode1)) {
3464 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3465 }
3466 arg1 = static_cast< unsigned long >(val1);
3467 {
3468 PyThreadState* __tstate = wxPyBeginAllowThreads();
3469 result = (wxColour *)new wxColour(arg1);
3470 wxPyEndAllowThreads(__tstate);
3471 if (PyErr_Occurred()) SWIG_fail;
3472 }
3473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3474 return resultobj;
3475 fail:
3476 return NULL;
3477 }
3478
3479
3480 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3481 PyObject *resultobj = 0;
3482 wxColour *arg1 = (wxColour *) 0 ;
3483 void *argp1 = 0 ;
3484 int res1 = 0 ;
3485 PyObject *swig_obj[1] ;
3486
3487 if (!args) SWIG_fail;
3488 swig_obj[0] = args;
3489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3490 if (!SWIG_IsOK(res1)) {
3491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3492 }
3493 arg1 = reinterpret_cast< wxColour * >(argp1);
3494 {
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 delete arg1;
3497
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 resultobj = SWIG_Py_Void();
3502 return resultobj;
3503 fail:
3504 return NULL;
3505 }
3506
3507
3508 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3509 PyObject *resultobj = 0;
3510 wxColour *arg1 = (wxColour *) 0 ;
3511 byte result;
3512 void *argp1 = 0 ;
3513 int res1 = 0 ;
3514 PyObject *swig_obj[1] ;
3515
3516 if (!args) SWIG_fail;
3517 swig_obj[0] = args;
3518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3519 if (!SWIG_IsOK(res1)) {
3520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3521 }
3522 arg1 = reinterpret_cast< wxColour * >(argp1);
3523 {
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
3525 result = (byte)(arg1)->Red();
3526 wxPyEndAllowThreads(__tstate);
3527 if (PyErr_Occurred()) SWIG_fail;
3528 }
3529 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3530 return resultobj;
3531 fail:
3532 return NULL;
3533 }
3534
3535
3536 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3537 PyObject *resultobj = 0;
3538 wxColour *arg1 = (wxColour *) 0 ;
3539 byte result;
3540 void *argp1 = 0 ;
3541 int res1 = 0 ;
3542 PyObject *swig_obj[1] ;
3543
3544 if (!args) SWIG_fail;
3545 swig_obj[0] = args;
3546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3547 if (!SWIG_IsOK(res1)) {
3548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3549 }
3550 arg1 = reinterpret_cast< wxColour * >(argp1);
3551 {
3552 PyThreadState* __tstate = wxPyBeginAllowThreads();
3553 result = (byte)(arg1)->Green();
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3558 return resultobj;
3559 fail:
3560 return NULL;
3561 }
3562
3563
3564 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3565 PyObject *resultobj = 0;
3566 wxColour *arg1 = (wxColour *) 0 ;
3567 byte result;
3568 void *argp1 = 0 ;
3569 int res1 = 0 ;
3570 PyObject *swig_obj[1] ;
3571
3572 if (!args) SWIG_fail;
3573 swig_obj[0] = args;
3574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3575 if (!SWIG_IsOK(res1)) {
3576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3577 }
3578 arg1 = reinterpret_cast< wxColour * >(argp1);
3579 {
3580 PyThreadState* __tstate = wxPyBeginAllowThreads();
3581 result = (byte)(arg1)->Blue();
3582 wxPyEndAllowThreads(__tstate);
3583 if (PyErr_Occurred()) SWIG_fail;
3584 }
3585 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3586 return resultobj;
3587 fail:
3588 return NULL;
3589 }
3590
3591
3592 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3593 PyObject *resultobj = 0;
3594 wxColour *arg1 = (wxColour *) 0 ;
3595 bool result;
3596 void *argp1 = 0 ;
3597 int res1 = 0 ;
3598 PyObject *swig_obj[1] ;
3599
3600 if (!args) SWIG_fail;
3601 swig_obj[0] = args;
3602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3603 if (!SWIG_IsOK(res1)) {
3604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3605 }
3606 arg1 = reinterpret_cast< wxColour * >(argp1);
3607 {
3608 PyThreadState* __tstate = wxPyBeginAllowThreads();
3609 result = (bool)(arg1)->Ok();
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 {
3614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3615 }
3616 return resultobj;
3617 fail:
3618 return NULL;
3619 }
3620
3621
3622 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3623 PyObject *resultobj = 0;
3624 wxColour *arg1 = (wxColour *) 0 ;
3625 byte arg2 ;
3626 byte arg3 ;
3627 byte arg4 ;
3628 void *argp1 = 0 ;
3629 int res1 = 0 ;
3630 unsigned char val2 ;
3631 int ecode2 = 0 ;
3632 unsigned char val3 ;
3633 int ecode3 = 0 ;
3634 unsigned char val4 ;
3635 int ecode4 = 0 ;
3636 PyObject * obj0 = 0 ;
3637 PyObject * obj1 = 0 ;
3638 PyObject * obj2 = 0 ;
3639 PyObject * obj3 = 0 ;
3640 char * kwnames[] = {
3641 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3642 };
3643
3644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3646 if (!SWIG_IsOK(res1)) {
3647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3648 }
3649 arg1 = reinterpret_cast< wxColour * >(argp1);
3650 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3651 if (!SWIG_IsOK(ecode2)) {
3652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3653 }
3654 arg2 = static_cast< byte >(val2);
3655 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3656 if (!SWIG_IsOK(ecode3)) {
3657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3658 }
3659 arg3 = static_cast< byte >(val3);
3660 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3661 if (!SWIG_IsOK(ecode4)) {
3662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3663 }
3664 arg4 = static_cast< byte >(val4);
3665 {
3666 PyThreadState* __tstate = wxPyBeginAllowThreads();
3667 (arg1)->Set(arg2,arg3,arg4);
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 resultobj = SWIG_Py_Void();
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj = 0;
3680 wxColour *arg1 = (wxColour *) 0 ;
3681 unsigned long arg2 ;
3682 void *argp1 = 0 ;
3683 int res1 = 0 ;
3684 unsigned long val2 ;
3685 int ecode2 = 0 ;
3686 PyObject * obj0 = 0 ;
3687 PyObject * obj1 = 0 ;
3688 char * kwnames[] = {
3689 (char *) "self",(char *) "colRGB", NULL
3690 };
3691
3692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3694 if (!SWIG_IsOK(res1)) {
3695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3696 }
3697 arg1 = reinterpret_cast< wxColour * >(argp1);
3698 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3699 if (!SWIG_IsOK(ecode2)) {
3700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3701 }
3702 arg2 = static_cast< unsigned long >(val2);
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 (arg1)->Set(arg2);
3706 wxPyEndAllowThreads(__tstate);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
3709 resultobj = SWIG_Py_Void();
3710 return resultobj;
3711 fail:
3712 return NULL;
3713 }
3714
3715
3716 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3717 PyObject *resultobj = 0;
3718 wxColour *arg1 = (wxColour *) 0 ;
3719 wxString *arg2 = 0 ;
3720 void *argp1 = 0 ;
3721 int res1 = 0 ;
3722 bool temp2 = false ;
3723 PyObject * obj0 = 0 ;
3724 PyObject * obj1 = 0 ;
3725 char * kwnames[] = {
3726 (char *) "self",(char *) "colourName", NULL
3727 };
3728
3729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3731 if (!SWIG_IsOK(res1)) {
3732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3733 }
3734 arg1 = reinterpret_cast< wxColour * >(argp1);
3735 {
3736 arg2 = wxString_in_helper(obj1);
3737 if (arg2 == NULL) SWIG_fail;
3738 temp2 = true;
3739 }
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 (arg1)->InitFromName((wxString const &)*arg2);
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_Py_Void();
3747 {
3748 if (temp2)
3749 delete arg2;
3750 }
3751 return resultobj;
3752 fail:
3753 {
3754 if (temp2)
3755 delete arg2;
3756 }
3757 return NULL;
3758 }
3759
3760
3761 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3762 PyObject *resultobj = 0;
3763 wxColour *arg1 = (wxColour *) 0 ;
3764 long result;
3765 void *argp1 = 0 ;
3766 int res1 = 0 ;
3767 PyObject *swig_obj[1] ;
3768
3769 if (!args) SWIG_fail;
3770 swig_obj[0] = args;
3771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3772 if (!SWIG_IsOK(res1)) {
3773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3774 }
3775 arg1 = reinterpret_cast< wxColour * >(argp1);
3776 {
3777 PyThreadState* __tstate = wxPyBeginAllowThreads();
3778 result = (long)((wxColour const *)arg1)->GetPixel();
3779 wxPyEndAllowThreads(__tstate);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 resultobj = SWIG_From_long(static_cast< long >(result));
3783 return resultobj;
3784 fail:
3785 return NULL;
3786 }
3787
3788
3789 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3790 PyObject *resultobj = 0;
3791 wxColour *arg1 = (wxColour *) 0 ;
3792 PyObject *arg2 = (PyObject *) 0 ;
3793 bool result;
3794 void *argp1 = 0 ;
3795 int res1 = 0 ;
3796 PyObject * obj0 = 0 ;
3797 PyObject * obj1 = 0 ;
3798 char * kwnames[] = {
3799 (char *) "self",(char *) "other", NULL
3800 };
3801
3802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3804 if (!SWIG_IsOK(res1)) {
3805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3806 }
3807 arg1 = reinterpret_cast< wxColour * >(argp1);
3808 arg2 = obj1;
3809 {
3810 result = (bool)wxColour___eq__(arg1,arg2);
3811 if (PyErr_Occurred()) SWIG_fail;
3812 }
3813 {
3814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3815 }
3816 return resultobj;
3817 fail:
3818 return NULL;
3819 }
3820
3821
3822 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj = 0;
3824 wxColour *arg1 = (wxColour *) 0 ;
3825 PyObject *arg2 = (PyObject *) 0 ;
3826 bool result;
3827 void *argp1 = 0 ;
3828 int res1 = 0 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 char * kwnames[] = {
3832 (char *) "self",(char *) "other", NULL
3833 };
3834
3835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3837 if (!SWIG_IsOK(res1)) {
3838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3839 }
3840 arg1 = reinterpret_cast< wxColour * >(argp1);
3841 arg2 = obj1;
3842 {
3843 result = (bool)wxColour___ne__(arg1,arg2);
3844 if (PyErr_Occurred()) SWIG_fail;
3845 }
3846 {
3847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3848 }
3849 return resultobj;
3850 fail:
3851 return NULL;
3852 }
3853
3854
3855 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3856 PyObject *resultobj = 0;
3857 wxColour *arg1 = (wxColour *) 0 ;
3858 PyObject *result = 0 ;
3859 void *argp1 = 0 ;
3860 int res1 = 0 ;
3861 PyObject *swig_obj[1] ;
3862
3863 if (!args) SWIG_fail;
3864 swig_obj[0] = args;
3865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3866 if (!SWIG_IsOK(res1)) {
3867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3868 }
3869 arg1 = reinterpret_cast< wxColour * >(argp1);
3870 {
3871 PyThreadState* __tstate = wxPyBeginAllowThreads();
3872 result = (PyObject *)wxColour_Get(arg1);
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 resultobj = result;
3877 return resultobj;
3878 fail:
3879 return NULL;
3880 }
3881
3882
3883 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3884 PyObject *resultobj = 0;
3885 wxColour *arg1 = (wxColour *) 0 ;
3886 unsigned long result;
3887 void *argp1 = 0 ;
3888 int res1 = 0 ;
3889 PyObject *swig_obj[1] ;
3890
3891 if (!args) SWIG_fail;
3892 swig_obj[0] = args;
3893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3894 if (!SWIG_IsOK(res1)) {
3895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3896 }
3897 arg1 = reinterpret_cast< wxColour * >(argp1);
3898 {
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = (unsigned long)wxColour_GetRGB(arg1);
3901 wxPyEndAllowThreads(__tstate);
3902 if (PyErr_Occurred()) SWIG_fail;
3903 }
3904 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3905 return resultobj;
3906 fail:
3907 return NULL;
3908 }
3909
3910
3911 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3912 PyObject *obj;
3913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3914 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3915 return SWIG_Py_Void();
3916 }
3917
3918 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3919 return SWIG_Python_InitShadowInstance(args);
3920 }
3921
3922 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3923 PyObject *resultobj = 0;
3924 int arg1 ;
3925 unsigned char *arg2 = (unsigned char *) 0 ;
3926 unsigned char *arg3 = (unsigned char *) 0 ;
3927 unsigned char *arg4 = (unsigned char *) 0 ;
3928 wxPalette *result = 0 ;
3929 int val1 ;
3930 int ecode1 = 0 ;
3931 void *argp2 = 0 ;
3932 int res2 = 0 ;
3933 void *argp3 = 0 ;
3934 int res3 = 0 ;
3935 void *argp4 = 0 ;
3936 int res4 = 0 ;
3937 PyObject * obj0 = 0 ;
3938 PyObject * obj1 = 0 ;
3939 PyObject * obj2 = 0 ;
3940 PyObject * obj3 = 0 ;
3941 char * kwnames[] = {
3942 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3943 };
3944
3945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3946 ecode1 = SWIG_AsVal_int(obj0, &val1);
3947 if (!SWIG_IsOK(ecode1)) {
3948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3949 }
3950 arg1 = static_cast< int >(val1);
3951 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3952 if (!SWIG_IsOK(res2)) {
3953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3954 }
3955 arg2 = reinterpret_cast< unsigned char * >(argp2);
3956 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3957 if (!SWIG_IsOK(res3)) {
3958 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3959 }
3960 arg3 = reinterpret_cast< unsigned char * >(argp3);
3961 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3962 if (!SWIG_IsOK(res4)) {
3963 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3964 }
3965 arg4 = reinterpret_cast< unsigned char * >(argp4);
3966 {
3967 if (!wxPyCheckForApp()) SWIG_fail;
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3970 wxPyEndAllowThreads(__tstate);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3974 return resultobj;
3975 fail:
3976 return NULL;
3977 }
3978
3979
3980 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3981 PyObject *resultobj = 0;
3982 wxPalette *arg1 = (wxPalette *) 0 ;
3983 void *argp1 = 0 ;
3984 int res1 = 0 ;
3985 PyObject *swig_obj[1] ;
3986
3987 if (!args) SWIG_fail;
3988 swig_obj[0] = args;
3989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
3990 if (!SWIG_IsOK(res1)) {
3991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
3992 }
3993 arg1 = reinterpret_cast< wxPalette * >(argp1);
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 delete arg1;
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 resultobj = SWIG_Py_Void();
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj = 0;
4010 wxPalette *arg1 = (wxPalette *) 0 ;
4011 byte arg2 ;
4012 byte arg3 ;
4013 byte arg4 ;
4014 int result;
4015 void *argp1 = 0 ;
4016 int res1 = 0 ;
4017 unsigned char val2 ;
4018 int ecode2 = 0 ;
4019 unsigned char val3 ;
4020 int ecode3 = 0 ;
4021 unsigned char val4 ;
4022 int ecode4 = 0 ;
4023 PyObject * obj0 = 0 ;
4024 PyObject * obj1 = 0 ;
4025 PyObject * obj2 = 0 ;
4026 PyObject * obj3 = 0 ;
4027 char * kwnames[] = {
4028 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4029 };
4030
4031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4033 if (!SWIG_IsOK(res1)) {
4034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4035 }
4036 arg1 = reinterpret_cast< wxPalette * >(argp1);
4037 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4038 if (!SWIG_IsOK(ecode2)) {
4039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4040 }
4041 arg2 = static_cast< byte >(val2);
4042 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4043 if (!SWIG_IsOK(ecode3)) {
4044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4045 }
4046 arg3 = static_cast< byte >(val3);
4047 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4048 if (!SWIG_IsOK(ecode4)) {
4049 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4050 }
4051 arg4 = static_cast< byte >(val4);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_From_int(static_cast< int >(result));
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4066 PyObject *resultobj = 0;
4067 wxPalette *arg1 = (wxPalette *) 0 ;
4068 int arg2 ;
4069 byte *arg3 = (byte *) 0 ;
4070 byte *arg4 = (byte *) 0 ;
4071 byte *arg5 = (byte *) 0 ;
4072 bool result;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 int val2 ;
4076 int ecode2 = 0 ;
4077 byte temp3 ;
4078 int res3 = SWIG_TMPOBJ ;
4079 byte temp4 ;
4080 int res4 = SWIG_TMPOBJ ;
4081 byte temp5 ;
4082 int res5 = SWIG_TMPOBJ ;
4083 PyObject * obj0 = 0 ;
4084 PyObject * obj1 = 0 ;
4085 char * kwnames[] = {
4086 (char *) "self",(char *) "pixel", NULL
4087 };
4088
4089 arg3 = &temp3;
4090 arg4 = &temp4;
4091 arg5 = &temp5;
4092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4094 if (!SWIG_IsOK(res1)) {
4095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4096 }
4097 arg1 = reinterpret_cast< wxPalette * >(argp1);
4098 ecode2 = SWIG_AsVal_int(obj1, &val2);
4099 if (!SWIG_IsOK(ecode2)) {
4100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4101 }
4102 arg2 = static_cast< int >(val2);
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 {
4110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4111 }
4112 if (SWIG_IsTmpObj(res3)) {
4113 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4114 } else {
4115 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4116 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4117 }
4118 if (SWIG_IsTmpObj(res4)) {
4119 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4120 } else {
4121 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4122 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4123 }
4124 if (SWIG_IsTmpObj(res5)) {
4125 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4126 } else {
4127 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4129 }
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4137 PyObject *resultobj = 0;
4138 wxPalette *arg1 = (wxPalette *) 0 ;
4139 int result;
4140 void *argp1 = 0 ;
4141 int res1 = 0 ;
4142 PyObject *swig_obj[1] ;
4143
4144 if (!args) SWIG_fail;
4145 swig_obj[0] = args;
4146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4147 if (!SWIG_IsOK(res1)) {
4148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4149 }
4150 arg1 = reinterpret_cast< wxPalette * >(argp1);
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 resultobj = SWIG_From_int(static_cast< int >(result));
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4165 PyObject *resultobj = 0;
4166 wxPalette *arg1 = (wxPalette *) 0 ;
4167 bool result;
4168 void *argp1 = 0 ;
4169 int res1 = 0 ;
4170 PyObject *swig_obj[1] ;
4171
4172 if (!args) SWIG_fail;
4173 swig_obj[0] = args;
4174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4175 if (!SWIG_IsOK(res1)) {
4176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4177 }
4178 arg1 = reinterpret_cast< wxPalette * >(argp1);
4179 {
4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
4181 result = (bool)(arg1)->Ok();
4182 wxPyEndAllowThreads(__tstate);
4183 if (PyErr_Occurred()) SWIG_fail;
4184 }
4185 {
4186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4187 }
4188 return resultobj;
4189 fail:
4190 return NULL;
4191 }
4192
4193
4194 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4195 PyObject *obj;
4196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4197 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4198 return SWIG_Py_Void();
4199 }
4200
4201 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4202 return SWIG_Python_InitShadowInstance(args);
4203 }
4204
4205 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj = 0;
4207 wxColour *arg1 = 0 ;
4208 int arg2 = (int) 1 ;
4209 int arg3 = (int) wxSOLID ;
4210 wxPen *result = 0 ;
4211 wxColour temp1 ;
4212 int val2 ;
4213 int ecode2 = 0 ;
4214 int val3 ;
4215 int ecode3 = 0 ;
4216 PyObject * obj0 = 0 ;
4217 PyObject * obj1 = 0 ;
4218 PyObject * obj2 = 0 ;
4219 char * kwnames[] = {
4220 (char *) "colour",(char *) "width",(char *) "style", NULL
4221 };
4222
4223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4224 {
4225 arg1 = &temp1;
4226 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4227 }
4228 if (obj1) {
4229 ecode2 = SWIG_AsVal_int(obj1, &val2);
4230 if (!SWIG_IsOK(ecode2)) {
4231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4232 }
4233 arg2 = static_cast< int >(val2);
4234 }
4235 if (obj2) {
4236 ecode3 = SWIG_AsVal_int(obj2, &val3);
4237 if (!SWIG_IsOK(ecode3)) {
4238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4239 }
4240 arg3 = static_cast< int >(val3);
4241 }
4242 {
4243 if (!wxPyCheckForApp()) SWIG_fail;
4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
4245 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4250 return resultobj;
4251 fail:
4252 return NULL;
4253 }
4254
4255
4256 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4257 PyObject *resultobj = 0;
4258 wxPen *arg1 = (wxPen *) 0 ;
4259 void *argp1 = 0 ;
4260 int res1 = 0 ;
4261 PyObject *swig_obj[1] ;
4262
4263 if (!args) SWIG_fail;
4264 swig_obj[0] = args;
4265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4266 if (!SWIG_IsOK(res1)) {
4267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4268 }
4269 arg1 = reinterpret_cast< wxPen * >(argp1);
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 delete arg1;
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_Py_Void();
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4285 PyObject *resultobj = 0;
4286 wxPen *arg1 = (wxPen *) 0 ;
4287 int result;
4288 void *argp1 = 0 ;
4289 int res1 = 0 ;
4290 PyObject *swig_obj[1] ;
4291
4292 if (!args) SWIG_fail;
4293 swig_obj[0] = args;
4294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4295 if (!SWIG_IsOK(res1)) {
4296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4297 }
4298 arg1 = reinterpret_cast< wxPen * >(argp1);
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (int)(arg1)->GetCap();
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 resultobj = SWIG_From_int(static_cast< int >(result));
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxPen *arg1 = (wxPen *) 0 ;
4315 wxColour result;
4316 void *argp1 = 0 ;
4317 int res1 = 0 ;
4318 PyObject *swig_obj[1] ;
4319
4320 if (!args) SWIG_fail;
4321 swig_obj[0] = args;
4322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4325 }
4326 arg1 = reinterpret_cast< wxPen * >(argp1);
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (arg1)->GetColour();
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4341 PyObject *resultobj = 0;
4342 wxPen *arg1 = (wxPen *) 0 ;
4343 int result;
4344 void *argp1 = 0 ;
4345 int res1 = 0 ;
4346 PyObject *swig_obj[1] ;
4347
4348 if (!args) SWIG_fail;
4349 swig_obj[0] = args;
4350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4351 if (!SWIG_IsOK(res1)) {
4352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4353 }
4354 arg1 = reinterpret_cast< wxPen * >(argp1);
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 result = (int)(arg1)->GetJoin();
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 resultobj = SWIG_From_int(static_cast< int >(result));
4362 return resultobj;
4363 fail:
4364 return NULL;
4365 }
4366
4367
4368 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4369 PyObject *resultobj = 0;
4370 wxPen *arg1 = (wxPen *) 0 ;
4371 int result;
4372 void *argp1 = 0 ;
4373 int res1 = 0 ;
4374 PyObject *swig_obj[1] ;
4375
4376 if (!args) SWIG_fail;
4377 swig_obj[0] = args;
4378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4379 if (!SWIG_IsOK(res1)) {
4380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4381 }
4382 arg1 = reinterpret_cast< wxPen * >(argp1);
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (int)(arg1)->GetStyle();
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 resultobj = SWIG_From_int(static_cast< int >(result));
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4397 PyObject *resultobj = 0;
4398 wxPen *arg1 = (wxPen *) 0 ;
4399 int result;
4400 void *argp1 = 0 ;
4401 int res1 = 0 ;
4402 PyObject *swig_obj[1] ;
4403
4404 if (!args) SWIG_fail;
4405 swig_obj[0] = args;
4406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4407 if (!SWIG_IsOK(res1)) {
4408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4409 }
4410 arg1 = reinterpret_cast< wxPen * >(argp1);
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (int)(arg1)->GetWidth();
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 resultobj = SWIG_From_int(static_cast< int >(result));
4418 return resultobj;
4419 fail:
4420 return NULL;
4421 }
4422
4423
4424 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4425 PyObject *resultobj = 0;
4426 wxPen *arg1 = (wxPen *) 0 ;
4427 bool result;
4428 void *argp1 = 0 ;
4429 int res1 = 0 ;
4430 PyObject *swig_obj[1] ;
4431
4432 if (!args) SWIG_fail;
4433 swig_obj[0] = args;
4434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4435 if (!SWIG_IsOK(res1)) {
4436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4437 }
4438 arg1 = reinterpret_cast< wxPen * >(argp1);
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 result = (bool)(arg1)->Ok();
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 {
4446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4447 }
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj = 0;
4456 wxPen *arg1 = (wxPen *) 0 ;
4457 int arg2 ;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 int val2 ;
4461 int ecode2 = 0 ;
4462 PyObject * obj0 = 0 ;
4463 PyObject * obj1 = 0 ;
4464 char * kwnames[] = {
4465 (char *) "self",(char *) "cap_style", NULL
4466 };
4467
4468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4470 if (!SWIG_IsOK(res1)) {
4471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4472 }
4473 arg1 = reinterpret_cast< wxPen * >(argp1);
4474 ecode2 = SWIG_AsVal_int(obj1, &val2);
4475 if (!SWIG_IsOK(ecode2)) {
4476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4477 }
4478 arg2 = static_cast< int >(val2);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 (arg1)->SetCap(arg2);
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_Py_Void();
4486 return resultobj;
4487 fail:
4488 return NULL;
4489 }
4490
4491
4492 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4493 PyObject *resultobj = 0;
4494 wxPen *arg1 = (wxPen *) 0 ;
4495 wxColour *arg2 = 0 ;
4496 void *argp1 = 0 ;
4497 int res1 = 0 ;
4498 wxColour temp2 ;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 char * kwnames[] = {
4502 (char *) "self",(char *) "colour", NULL
4503 };
4504
4505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4507 if (!SWIG_IsOK(res1)) {
4508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4509 }
4510 arg1 = reinterpret_cast< wxPen * >(argp1);
4511 {
4512 arg2 = &temp2;
4513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4514 }
4515 {
4516 PyThreadState* __tstate = wxPyBeginAllowThreads();
4517 (arg1)->SetColour(*arg2);
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 resultobj = SWIG_Py_Void();
4522 return resultobj;
4523 fail:
4524 return NULL;
4525 }
4526
4527
4528 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4529 PyObject *resultobj = 0;
4530 wxPen *arg1 = (wxPen *) 0 ;
4531 int arg2 ;
4532 void *argp1 = 0 ;
4533 int res1 = 0 ;
4534 int val2 ;
4535 int ecode2 = 0 ;
4536 PyObject * obj0 = 0 ;
4537 PyObject * obj1 = 0 ;
4538 char * kwnames[] = {
4539 (char *) "self",(char *) "join_style", NULL
4540 };
4541
4542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4544 if (!SWIG_IsOK(res1)) {
4545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4546 }
4547 arg1 = reinterpret_cast< wxPen * >(argp1);
4548 ecode2 = SWIG_AsVal_int(obj1, &val2);
4549 if (!SWIG_IsOK(ecode2)) {
4550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4551 }
4552 arg2 = static_cast< int >(val2);
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 (arg1)->SetJoin(arg2);
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 resultobj = SWIG_Py_Void();
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj = 0;
4568 wxPen *arg1 = (wxPen *) 0 ;
4569 int arg2 ;
4570 void *argp1 = 0 ;
4571 int res1 = 0 ;
4572 int val2 ;
4573 int ecode2 = 0 ;
4574 PyObject * obj0 = 0 ;
4575 PyObject * obj1 = 0 ;
4576 char * kwnames[] = {
4577 (char *) "self",(char *) "style", NULL
4578 };
4579
4580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4582 if (!SWIG_IsOK(res1)) {
4583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4584 }
4585 arg1 = reinterpret_cast< wxPen * >(argp1);
4586 ecode2 = SWIG_AsVal_int(obj1, &val2);
4587 if (!SWIG_IsOK(ecode2)) {
4588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4589 }
4590 arg2 = static_cast< int >(val2);
4591 {
4592 PyThreadState* __tstate = wxPyBeginAllowThreads();
4593 (arg1)->SetStyle(arg2);
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 resultobj = SWIG_Py_Void();
4598 return resultobj;
4599 fail:
4600 return NULL;
4601 }
4602
4603
4604 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4605 PyObject *resultobj = 0;
4606 wxPen *arg1 = (wxPen *) 0 ;
4607 int arg2 ;
4608 void *argp1 = 0 ;
4609 int res1 = 0 ;
4610 int val2 ;
4611 int ecode2 = 0 ;
4612 PyObject * obj0 = 0 ;
4613 PyObject * obj1 = 0 ;
4614 char * kwnames[] = {
4615 (char *) "self",(char *) "width", NULL
4616 };
4617
4618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4620 if (!SWIG_IsOK(res1)) {
4621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4622 }
4623 arg1 = reinterpret_cast< wxPen * >(argp1);
4624 ecode2 = SWIG_AsVal_int(obj1, &val2);
4625 if (!SWIG_IsOK(ecode2)) {
4626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4627 }
4628 arg2 = static_cast< int >(val2);
4629 {
4630 PyThreadState* __tstate = wxPyBeginAllowThreads();
4631 (arg1)->SetWidth(arg2);
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_Py_Void();
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj = 0;
4644 wxPen *arg1 = (wxPen *) 0 ;
4645 int arg2 ;
4646 wxDash *arg3 = (wxDash *) 0 ;
4647 void *argp1 = 0 ;
4648 int res1 = 0 ;
4649 PyObject * obj0 = 0 ;
4650 PyObject * obj1 = 0 ;
4651 char * kwnames[] = {
4652 (char *) "self",(char *) "dashes", NULL
4653 };
4654
4655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4657 if (!SWIG_IsOK(res1)) {
4658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4659 }
4660 arg1 = reinterpret_cast< wxPen * >(argp1);
4661 {
4662 arg2 = PyList_Size(obj1);
4663 arg3 = (wxDash*)byte_LIST_helper(obj1);
4664 if (arg3 == NULL) SWIG_fail;
4665 }
4666 {
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 (arg1)->SetDashes(arg2,arg3);
4669 wxPyEndAllowThreads(__tstate);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 resultobj = SWIG_Py_Void();
4673 {
4674 if (arg3) delete [] arg3;
4675 }
4676 return resultobj;
4677 fail:
4678 {
4679 if (arg3) delete [] arg3;
4680 }
4681 return NULL;
4682 }
4683
4684
4685 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4686 PyObject *resultobj = 0;
4687 wxPen *arg1 = (wxPen *) 0 ;
4688 PyObject *result = 0 ;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 PyObject *swig_obj[1] ;
4692
4693 if (!args) SWIG_fail;
4694 swig_obj[0] = args;
4695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4696 if (!SWIG_IsOK(res1)) {
4697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4698 }
4699 arg1 = reinterpret_cast< wxPen * >(argp1);
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (PyObject *)wxPen_GetDashes(arg1);
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = result;
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj = 0;
4715 wxPen *arg1 = (wxPen *) 0 ;
4716 PyObject *arg2 = (PyObject *) 0 ;
4717 PyObject *arg3 = (PyObject *) 0 ;
4718 void *argp1 = 0 ;
4719 int res1 = 0 ;
4720 PyObject * obj0 = 0 ;
4721 PyObject * obj1 = 0 ;
4722 PyObject * obj2 = 0 ;
4723 char * kwnames[] = {
4724 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4725 };
4726
4727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4729 if (!SWIG_IsOK(res1)) {
4730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4731 }
4732 arg1 = reinterpret_cast< wxPen * >(argp1);
4733 arg2 = obj1;
4734 arg3 = obj2;
4735 {
4736 PyThreadState* __tstate = wxPyBeginAllowThreads();
4737 wxPen__SetDashes(arg1,arg2,arg3);
4738 wxPyEndAllowThreads(__tstate);
4739 if (PyErr_Occurred()) SWIG_fail;
4740 }
4741 resultobj = SWIG_Py_Void();
4742 return resultobj;
4743 fail:
4744 return NULL;
4745 }
4746
4747
4748 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4749 PyObject *resultobj = 0;
4750 wxPen *arg1 = (wxPen *) 0 ;
4751 wxPen *arg2 = (wxPen *) 0 ;
4752 bool result;
4753 void *argp1 = 0 ;
4754 int res1 = 0 ;
4755 void *argp2 = 0 ;
4756 int res2 = 0 ;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 char * kwnames[] = {
4760 (char *) "self",(char *) "other", NULL
4761 };
4762
4763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4765 if (!SWIG_IsOK(res1)) {
4766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4767 }
4768 arg1 = reinterpret_cast< wxPen * >(argp1);
4769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4770 if (!SWIG_IsOK(res2)) {
4771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4772 }
4773 arg2 = reinterpret_cast< wxPen * >(argp2);
4774 {
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 {
4781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4782 }
4783 return resultobj;
4784 fail:
4785 return NULL;
4786 }
4787
4788
4789 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4790 PyObject *resultobj = 0;
4791 wxPen *arg1 = (wxPen *) 0 ;
4792 wxPen *arg2 = (wxPen *) 0 ;
4793 bool result;
4794 void *argp1 = 0 ;
4795 int res1 = 0 ;
4796 void *argp2 = 0 ;
4797 int res2 = 0 ;
4798 PyObject * obj0 = 0 ;
4799 PyObject * obj1 = 0 ;
4800 char * kwnames[] = {
4801 (char *) "self",(char *) "other", NULL
4802 };
4803
4804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4806 if (!SWIG_IsOK(res1)) {
4807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4808 }
4809 arg1 = reinterpret_cast< wxPen * >(argp1);
4810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4811 if (!SWIG_IsOK(res2)) {
4812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4813 }
4814 arg2 = reinterpret_cast< wxPen * >(argp2);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4831 PyObject *obj;
4832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4833 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4834 return SWIG_Py_Void();
4835 }
4836
4837 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4838 return SWIG_Python_InitShadowInstance(args);
4839 }
4840
4841 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4842 PyObject *resultobj = 0;
4843 wxColour *arg1 = 0 ;
4844 int arg2 = (int) wxSOLID ;
4845 wxBrush *result = 0 ;
4846 wxColour temp1 ;
4847 int val2 ;
4848 int ecode2 = 0 ;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char * kwnames[] = {
4852 (char *) "colour",(char *) "style", NULL
4853 };
4854
4855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4856 {
4857 arg1 = &temp1;
4858 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4859 }
4860 if (obj1) {
4861 ecode2 = SWIG_AsVal_int(obj1, &val2);
4862 if (!SWIG_IsOK(ecode2)) {
4863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4864 }
4865 arg2 = static_cast< int >(val2);
4866 }
4867 {
4868 if (!wxPyCheckForApp()) SWIG_fail;
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj = 0;
4883 wxBitmap *arg1 = 0 ;
4884 wxBrush *result = 0 ;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 PyObject * obj0 = 0 ;
4888 char * kwnames[] = {
4889 (char *) "stippleBitmap", NULL
4890 };
4891
4892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4894 if (!SWIG_IsOK(res1)) {
4895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4896 }
4897 if (!argp1) {
4898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4899 }
4900 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4901 {
4902 if (!wxPyCheckForApp()) SWIG_fail;
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4916 PyObject *resultobj = 0;
4917 wxBrush *arg1 = (wxBrush *) 0 ;
4918 void *argp1 = 0 ;
4919 int res1 = 0 ;
4920 PyObject *swig_obj[1] ;
4921
4922 if (!args) SWIG_fail;
4923 swig_obj[0] = args;
4924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4925 if (!SWIG_IsOK(res1)) {
4926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4927 }
4928 arg1 = reinterpret_cast< wxBrush * >(argp1);
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 delete arg1;
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 resultobj = SWIG_Py_Void();
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj = 0;
4945 wxBrush *arg1 = (wxBrush *) 0 ;
4946 wxColour *arg2 = 0 ;
4947 void *argp1 = 0 ;
4948 int res1 = 0 ;
4949 wxColour temp2 ;
4950 PyObject * obj0 = 0 ;
4951 PyObject * obj1 = 0 ;
4952 char * kwnames[] = {
4953 (char *) "self",(char *) "col", NULL
4954 };
4955
4956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
4958 if (!SWIG_IsOK(res1)) {
4959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
4960 }
4961 arg1 = reinterpret_cast< wxBrush * >(argp1);
4962 {
4963 arg2 = &temp2;
4964 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4965 }
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 (arg1)->SetColour((wxColour const &)*arg2);
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_Py_Void();
4973 return resultobj;
4974 fail:
4975 return NULL;
4976 }
4977
4978
4979 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4980 PyObject *resultobj = 0;
4981 wxBrush *arg1 = (wxBrush *) 0 ;
4982 int arg2 ;
4983 void *argp1 = 0 ;
4984 int res1 = 0 ;
4985 int val2 ;
4986 int ecode2 = 0 ;
4987 PyObject * obj0 = 0 ;
4988 PyObject * obj1 = 0 ;
4989 char * kwnames[] = {
4990 (char *) "self",(char *) "style", NULL
4991 };
4992
4993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
4997 }
4998 arg1 = reinterpret_cast< wxBrush * >(argp1);
4999 ecode2 = SWIG_AsVal_int(obj1, &val2);
5000 if (!SWIG_IsOK(ecode2)) {
5001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5002 }
5003 arg2 = static_cast< int >(val2);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 (arg1)->SetStyle(arg2);
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 resultobj = SWIG_Py_Void();
5011 return resultobj;
5012 fail:
5013 return NULL;
5014 }
5015
5016
5017 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5018 PyObject *resultobj = 0;
5019 wxBrush *arg1 = (wxBrush *) 0 ;
5020 wxBitmap *arg2 = 0 ;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 void *argp2 = 0 ;
5024 int res2 = 0 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 char * kwnames[] = {
5028 (char *) "self",(char *) "stipple", NULL
5029 };
5030
5031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5033 if (!SWIG_IsOK(res1)) {
5034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5035 }
5036 arg1 = reinterpret_cast< wxBrush * >(argp1);
5037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5038 if (!SWIG_IsOK(res2)) {
5039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5040 }
5041 if (!argp2) {
5042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5043 }
5044 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 (arg1)->SetStipple((wxBitmap const &)*arg2);
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 resultobj = SWIG_Py_Void();
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5059 PyObject *resultobj = 0;
5060 wxBrush *arg1 = (wxBrush *) 0 ;
5061 wxColour result;
5062 void *argp1 = 0 ;
5063 int res1 = 0 ;
5064 PyObject *swig_obj[1] ;
5065
5066 if (!args) SWIG_fail;
5067 swig_obj[0] = args;
5068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5069 if (!SWIG_IsOK(res1)) {
5070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5071 }
5072 arg1 = reinterpret_cast< wxBrush * >(argp1);
5073 {
5074 PyThreadState* __tstate = wxPyBeginAllowThreads();
5075 result = ((wxBrush const *)arg1)->GetColour();
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5080 return resultobj;
5081 fail:
5082 return NULL;
5083 }
5084
5085
5086 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5087 PyObject *resultobj = 0;
5088 wxBrush *arg1 = (wxBrush *) 0 ;
5089 int result;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 PyObject *swig_obj[1] ;
5093
5094 if (!args) SWIG_fail;
5095 swig_obj[0] = args;
5096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5097 if (!SWIG_IsOK(res1)) {
5098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5099 }
5100 arg1 = reinterpret_cast< wxBrush * >(argp1);
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 result = (int)((wxBrush const *)arg1)->GetStyle();
5104 wxPyEndAllowThreads(__tstate);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 resultobj = SWIG_From_int(static_cast< int >(result));
5108 return resultobj;
5109 fail:
5110 return NULL;
5111 }
5112
5113
5114 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5115 PyObject *resultobj = 0;
5116 wxBrush *arg1 = (wxBrush *) 0 ;
5117 wxBitmap *result = 0 ;
5118 void *argp1 = 0 ;
5119 int res1 = 0 ;
5120 PyObject *swig_obj[1] ;
5121
5122 if (!args) SWIG_fail;
5123 swig_obj[0] = args;
5124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5125 if (!SWIG_IsOK(res1)) {
5126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5127 }
5128 arg1 = reinterpret_cast< wxBrush * >(argp1);
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5136 return resultobj;
5137 fail:
5138 return NULL;
5139 }
5140
5141
5142 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5143 PyObject *resultobj = 0;
5144 wxBrush *arg1 = (wxBrush *) 0 ;
5145 bool result;
5146 void *argp1 = 0 ;
5147 int res1 = 0 ;
5148 PyObject *swig_obj[1] ;
5149
5150 if (!args) SWIG_fail;
5151 swig_obj[0] = args;
5152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5153 if (!SWIG_IsOK(res1)) {
5154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5155 }
5156 arg1 = reinterpret_cast< wxBrush * >(argp1);
5157 {
5158 PyThreadState* __tstate = wxPyBeginAllowThreads();
5159 result = (bool)((wxBrush const *)arg1)->IsHatch();
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) SWIG_fail;
5162 }
5163 {
5164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5165 }
5166 return resultobj;
5167 fail:
5168 return NULL;
5169 }
5170
5171
5172 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5173 PyObject *resultobj = 0;
5174 wxBrush *arg1 = (wxBrush *) 0 ;
5175 bool result;
5176 void *argp1 = 0 ;
5177 int res1 = 0 ;
5178 PyObject *swig_obj[1] ;
5179
5180 if (!args) SWIG_fail;
5181 swig_obj[0] = args;
5182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5183 if (!SWIG_IsOK(res1)) {
5184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5185 }
5186 arg1 = reinterpret_cast< wxBrush * >(argp1);
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 result = (bool)(arg1)->Ok();
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 {
5194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5195 }
5196 return resultobj;
5197 fail:
5198 return NULL;
5199 }
5200
5201
5202 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5203 PyObject *resultobj = 0;
5204 wxBrush *arg1 = (wxBrush *) 0 ;
5205 short result;
5206 void *argp1 = 0 ;
5207 int res1 = 0 ;
5208 PyObject *swig_obj[1] ;
5209
5210 if (!args) SWIG_fail;
5211 swig_obj[0] = args;
5212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5213 if (!SWIG_IsOK(res1)) {
5214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5215 }
5216 arg1 = reinterpret_cast< wxBrush * >(argp1);
5217 {
5218 PyThreadState* __tstate = wxPyBeginAllowThreads();
5219 result = (short)(arg1)->MacGetTheme();
5220 wxPyEndAllowThreads(__tstate);
5221 if (PyErr_Occurred()) SWIG_fail;
5222 }
5223 resultobj = SWIG_From_short(static_cast< short >(result));
5224 return resultobj;
5225 fail:
5226 return NULL;
5227 }
5228
5229
5230 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5231 PyObject *resultobj = 0;
5232 wxBrush *arg1 = (wxBrush *) 0 ;
5233 short arg2 ;
5234 void *argp1 = 0 ;
5235 int res1 = 0 ;
5236 short val2 ;
5237 int ecode2 = 0 ;
5238 PyObject * obj0 = 0 ;
5239 PyObject * obj1 = 0 ;
5240 char * kwnames[] = {
5241 (char *) "self",(char *) "macThemeBrush", NULL
5242 };
5243
5244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5246 if (!SWIG_IsOK(res1)) {
5247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5248 }
5249 arg1 = reinterpret_cast< wxBrush * >(argp1);
5250 ecode2 = SWIG_AsVal_short(obj1, &val2);
5251 if (!SWIG_IsOK(ecode2)) {
5252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5253 }
5254 arg2 = static_cast< short >(val2);
5255 {
5256 PyThreadState* __tstate = wxPyBeginAllowThreads();
5257 (arg1)->MacSetTheme(arg2);
5258 wxPyEndAllowThreads(__tstate);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 resultobj = SWIG_Py_Void();
5262 return resultobj;
5263 fail:
5264 return NULL;
5265 }
5266
5267
5268 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5269 PyObject *obj;
5270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5271 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5272 return SWIG_Py_Void();
5273 }
5274
5275 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5276 return SWIG_Python_InitShadowInstance(args);
5277 }
5278
5279 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj = 0;
5281 wxString *arg1 = 0 ;
5282 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5283 wxBitmap *result = 0 ;
5284 bool temp1 = false ;
5285 int val2 ;
5286 int ecode2 = 0 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char * kwnames[] = {
5290 (char *) "name",(char *) "type", NULL
5291 };
5292
5293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5294 {
5295 arg1 = wxString_in_helper(obj0);
5296 if (arg1 == NULL) SWIG_fail;
5297 temp1 = true;
5298 }
5299 if (obj1) {
5300 ecode2 = SWIG_AsVal_int(obj1, &val2);
5301 if (!SWIG_IsOK(ecode2)) {
5302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5303 }
5304 arg2 = static_cast< wxBitmapType >(val2);
5305 }
5306 {
5307 if (!wxPyCheckForApp()) SWIG_fail;
5308 PyThreadState* __tstate = wxPyBeginAllowThreads();
5309 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5314 {
5315 if (temp1)
5316 delete arg1;
5317 }
5318 return resultobj;
5319 fail:
5320 {
5321 if (temp1)
5322 delete arg1;
5323 }
5324 return NULL;
5325 }
5326
5327
5328 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5329 PyObject *resultobj = 0;
5330 wxBitmap *arg1 = (wxBitmap *) 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 PyObject *swig_obj[1] ;
5334
5335 if (!args) SWIG_fail;
5336 swig_obj[0] = args;
5337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5340 }
5341 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 delete arg1;
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 resultobj = SWIG_Py_Void();
5350 return resultobj;
5351 fail:
5352 return NULL;
5353 }
5354
5355
5356 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj = 0;
5358 int arg1 ;
5359 int arg2 ;
5360 int arg3 = (int) -1 ;
5361 wxBitmap *result = 0 ;
5362 int val1 ;
5363 int ecode1 = 0 ;
5364 int val2 ;
5365 int ecode2 = 0 ;
5366 int val3 ;
5367 int ecode3 = 0 ;
5368 PyObject * obj0 = 0 ;
5369 PyObject * obj1 = 0 ;
5370 PyObject * obj2 = 0 ;
5371 char * kwnames[] = {
5372 (char *) "width",(char *) "height",(char *) "depth", NULL
5373 };
5374
5375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5376 ecode1 = SWIG_AsVal_int(obj0, &val1);
5377 if (!SWIG_IsOK(ecode1)) {
5378 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5379 }
5380 arg1 = static_cast< int >(val1);
5381 ecode2 = SWIG_AsVal_int(obj1, &val2);
5382 if (!SWIG_IsOK(ecode2)) {
5383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5384 }
5385 arg2 = static_cast< int >(val2);
5386 if (obj2) {
5387 ecode3 = SWIG_AsVal_int(obj2, &val3);
5388 if (!SWIG_IsOK(ecode3)) {
5389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5390 }
5391 arg3 = static_cast< int >(val3);
5392 }
5393 {
5394 if (!wxPyCheckForApp()) SWIG_fail;
5395 PyThreadState* __tstate = wxPyBeginAllowThreads();
5396 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj = 0;
5409 wxIcon *arg1 = 0 ;
5410 wxBitmap *result = 0 ;
5411 void *argp1 = 0 ;
5412 int res1 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 char * kwnames[] = {
5415 (char *) "icon", NULL
5416 };
5417
5418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5419 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5420 if (!SWIG_IsOK(res1)) {
5421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5422 }
5423 if (!argp1) {
5424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5425 }
5426 arg1 = reinterpret_cast< wxIcon * >(argp1);
5427 {
5428 if (!wxPyCheckForApp()) SWIG_fail;
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5435 return resultobj;
5436 fail:
5437 return NULL;
5438 }
5439
5440
5441 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj = 0;
5443 wxImage *arg1 = 0 ;
5444 int arg2 = (int) -1 ;
5445 wxBitmap *result = 0 ;
5446 void *argp1 = 0 ;
5447 int res1 = 0 ;
5448 int val2 ;
5449 int ecode2 = 0 ;
5450 PyObject * obj0 = 0 ;
5451 PyObject * obj1 = 0 ;
5452 char * kwnames[] = {
5453 (char *) "image",(char *) "depth", NULL
5454 };
5455
5456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5458 if (!SWIG_IsOK(res1)) {
5459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5460 }
5461 if (!argp1) {
5462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5463 }
5464 arg1 = reinterpret_cast< wxImage * >(argp1);
5465 if (obj1) {
5466 ecode2 = SWIG_AsVal_int(obj1, &val2);
5467 if (!SWIG_IsOK(ecode2)) {
5468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5469 }
5470 arg2 = static_cast< int >(val2);
5471 }
5472 {
5473 if (!wxPyCheckForApp()) SWIG_fail;
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5476 wxPyEndAllowThreads(__tstate);
5477 if (PyErr_Occurred()) SWIG_fail;
5478 }
5479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj = 0;
5488 PyObject *arg1 = (PyObject *) 0 ;
5489 wxBitmap *result = 0 ;
5490 PyObject * obj0 = 0 ;
5491 char * kwnames[] = {
5492 (char *) "listOfStrings", NULL
5493 };
5494
5495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5496 arg1 = obj0;
5497 {
5498 if (!wxPyCheckForApp()) SWIG_fail;
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 result = (wxBitmap *)new_wxBitmap(arg1);
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5505 return resultobj;
5506 fail:
5507 return NULL;
5508 }
5509
5510
5511 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5512 PyObject *resultobj = 0;
5513 PyObject *arg1 = (PyObject *) 0 ;
5514 int arg2 ;
5515 int arg3 ;
5516 int arg4 = (int) 1 ;
5517 wxBitmap *result = 0 ;
5518 int val2 ;
5519 int ecode2 = 0 ;
5520 int val3 ;
5521 int ecode3 = 0 ;
5522 int val4 ;
5523 int ecode4 = 0 ;
5524 PyObject * obj0 = 0 ;
5525 PyObject * obj1 = 0 ;
5526 PyObject * obj2 = 0 ;
5527 PyObject * obj3 = 0 ;
5528 char * kwnames[] = {
5529 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5530 };
5531
5532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5533 arg1 = obj0;
5534 ecode2 = SWIG_AsVal_int(obj1, &val2);
5535 if (!SWIG_IsOK(ecode2)) {
5536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5537 }
5538 arg2 = static_cast< int >(val2);
5539 ecode3 = SWIG_AsVal_int(obj2, &val3);
5540 if (!SWIG_IsOK(ecode3)) {
5541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5542 }
5543 arg3 = static_cast< int >(val3);
5544 if (obj3) {
5545 ecode4 = SWIG_AsVal_int(obj3, &val4);
5546 if (!SWIG_IsOK(ecode4)) {
5547 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5548 }
5549 arg4 = static_cast< int >(val4);
5550 }
5551 {
5552 if (!wxPyCheckForApp()) SWIG_fail;
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5566 PyObject *resultobj = 0;
5567 wxBitmap *arg1 = (wxBitmap *) 0 ;
5568 bool result;
5569 void *argp1 = 0 ;
5570 int res1 = 0 ;
5571 PyObject *swig_obj[1] ;
5572
5573 if (!args) SWIG_fail;
5574 swig_obj[0] = args;
5575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5576 if (!SWIG_IsOK(res1)) {
5577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5578 }
5579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (bool)(arg1)->Ok();
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 {
5587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5588 }
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5596 PyObject *resultobj = 0;
5597 wxBitmap *arg1 = (wxBitmap *) 0 ;
5598 int result;
5599 void *argp1 = 0 ;
5600 int res1 = 0 ;
5601 PyObject *swig_obj[1] ;
5602
5603 if (!args) SWIG_fail;
5604 swig_obj[0] = args;
5605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5606 if (!SWIG_IsOK(res1)) {
5607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5608 }
5609 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (int)(arg1)->GetWidth();
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_From_int(static_cast< int >(result));
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5624 PyObject *resultobj = 0;
5625 wxBitmap *arg1 = (wxBitmap *) 0 ;
5626 int result;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 PyObject *swig_obj[1] ;
5630
5631 if (!args) SWIG_fail;
5632 swig_obj[0] = args;
5633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5634 if (!SWIG_IsOK(res1)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5636 }
5637 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 result = (int)(arg1)->GetHeight();
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_From_int(static_cast< int >(result));
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxBitmap *arg1 = (wxBitmap *) 0 ;
5654 int result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5664 }
5665 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)(arg1)->GetDepth();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_From_int(static_cast< int >(result));
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *resultobj = 0;
5681 wxBitmap *arg1 = (wxBitmap *) 0 ;
5682 wxSize result;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 PyObject *swig_obj[1] ;
5686
5687 if (!args) SWIG_fail;
5688 swig_obj[0] = args;
5689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5690 if (!SWIG_IsOK(res1)) {
5691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5692 }
5693 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 result = wxBitmap_GetSize(arg1);
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxBitmap *arg1 = (wxBitmap *) 0 ;
5710 SwigValueWrapper<wxImage > result;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = ((wxBitmap const *)arg1)->ConvertToImage();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5729 return resultobj;
5730 fail:
5731 return NULL;
5732 }
5733
5734
5735 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5736 PyObject *resultobj = 0;
5737 wxBitmap *arg1 = (wxBitmap *) 0 ;
5738 wxMask *result = 0 ;
5739 void *argp1 = 0 ;
5740 int res1 = 0 ;
5741 PyObject *swig_obj[1] ;
5742
5743 if (!args) SWIG_fail;
5744 swig_obj[0] = args;
5745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5746 if (!SWIG_IsOK(res1)) {
5747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5748 }
5749 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj = 0;
5765 wxBitmap *arg1 = (wxBitmap *) 0 ;
5766 wxMask *arg2 = (wxMask *) 0 ;
5767 void *argp1 = 0 ;
5768 int res1 = 0 ;
5769 int res2 = 0 ;
5770 PyObject * obj0 = 0 ;
5771 PyObject * obj1 = 0 ;
5772 char * kwnames[] = {
5773 (char *) "self",(char *) "mask", NULL
5774 };
5775
5776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5780 }
5781 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5782 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5783 if (!SWIG_IsOK(res2)) {
5784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5785 }
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 (arg1)->SetMask(arg2);
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_Py_Void();
5793 return resultobj;
5794 fail:
5795 return NULL;
5796 }
5797
5798
5799 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj = 0;
5801 wxBitmap *arg1 = (wxBitmap *) 0 ;
5802 wxColour *arg2 = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 wxColour temp2 ;
5806 PyObject * obj0 = 0 ;
5807 PyObject * obj1 = 0 ;
5808 char * kwnames[] = {
5809 (char *) "self",(char *) "colour", NULL
5810 };
5811
5812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5814 if (!SWIG_IsOK(res1)) {
5815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5816 }
5817 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5818 {
5819 arg2 = &temp2;
5820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5821 }
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_Py_Void();
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj = 0;
5837 wxBitmap *arg1 = (wxBitmap *) 0 ;
5838 wxRect *arg2 = 0 ;
5839 SwigValueWrapper<wxBitmap > result;
5840 void *argp1 = 0 ;
5841 int res1 = 0 ;
5842 wxRect temp2 ;
5843 PyObject * obj0 = 0 ;
5844 PyObject * obj1 = 0 ;
5845 char * kwnames[] = {
5846 (char *) "self",(char *) "rect", NULL
5847 };
5848
5849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5851 if (!SWIG_IsOK(res1)) {
5852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5853 }
5854 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5855 {
5856 arg2 = &temp2;
5857 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj = 0;
5874 wxBitmap *arg1 = (wxBitmap *) 0 ;
5875 wxString *arg2 = 0 ;
5876 wxBitmapType arg3 ;
5877 wxPalette *arg4 = (wxPalette *) NULL ;
5878 bool result;
5879 void *argp1 = 0 ;
5880 int res1 = 0 ;
5881 bool temp2 = false ;
5882 int val3 ;
5883 int ecode3 = 0 ;
5884 void *argp4 = 0 ;
5885 int res4 = 0 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 PyObject * obj2 = 0 ;
5889 PyObject * obj3 = 0 ;
5890 char * kwnames[] = {
5891 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5892 };
5893
5894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5896 if (!SWIG_IsOK(res1)) {
5897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5898 }
5899 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5900 {
5901 arg2 = wxString_in_helper(obj1);
5902 if (arg2 == NULL) SWIG_fail;
5903 temp2 = true;
5904 }
5905 ecode3 = SWIG_AsVal_int(obj2, &val3);
5906 if (!SWIG_IsOK(ecode3)) {
5907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5908 }
5909 arg3 = static_cast< wxBitmapType >(val3);
5910 if (obj3) {
5911 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5912 if (!SWIG_IsOK(res4)) {
5913 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5914 }
5915 arg4 = reinterpret_cast< wxPalette * >(argp4);
5916 }
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 {
5924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5925 }
5926 {
5927 if (temp2)
5928 delete arg2;
5929 }
5930 return resultobj;
5931 fail:
5932 {
5933 if (temp2)
5934 delete arg2;
5935 }
5936 return NULL;
5937 }
5938
5939
5940 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj = 0;
5942 wxBitmap *arg1 = (wxBitmap *) 0 ;
5943 wxString *arg2 = 0 ;
5944 wxBitmapType arg3 ;
5945 bool result;
5946 void *argp1 = 0 ;
5947 int res1 = 0 ;
5948 bool temp2 = false ;
5949 int val3 ;
5950 int ecode3 = 0 ;
5951 PyObject * obj0 = 0 ;
5952 PyObject * obj1 = 0 ;
5953 PyObject * obj2 = 0 ;
5954 char * kwnames[] = {
5955 (char *) "self",(char *) "name",(char *) "type", NULL
5956 };
5957
5958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5960 if (!SWIG_IsOK(res1)) {
5961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5962 }
5963 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5964 {
5965 arg2 = wxString_in_helper(obj1);
5966 if (arg2 == NULL) SWIG_fail;
5967 temp2 = true;
5968 }
5969 ecode3 = SWIG_AsVal_int(obj2, &val3);
5970 if (!SWIG_IsOK(ecode3)) {
5971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5972 }
5973 arg3 = static_cast< wxBitmapType >(val3);
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 {
5981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5982 }
5983 {
5984 if (temp2)
5985 delete arg2;
5986 }
5987 return resultobj;
5988 fail:
5989 {
5990 if (temp2)
5991 delete arg2;
5992 }
5993 return NULL;
5994 }
5995
5996
5997 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBitmap *arg1 = (wxBitmap *) 0 ;
6000 wxPalette *result = 0 ;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj = 0;
6027 wxBitmap *arg1 = (wxBitmap *) 0 ;
6028 wxIcon *arg2 = 0 ;
6029 bool result;
6030 void *argp1 = 0 ;
6031 int res1 = 0 ;
6032 void *argp2 = 0 ;
6033 int res2 = 0 ;
6034 PyObject * obj0 = 0 ;
6035 PyObject * obj1 = 0 ;
6036 char * kwnames[] = {
6037 (char *) "self",(char *) "icon", NULL
6038 };
6039
6040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6042 if (!SWIG_IsOK(res1)) {
6043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6044 }
6045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6047 if (!SWIG_IsOK(res2)) {
6048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6049 }
6050 if (!argp2) {
6051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6052 }
6053 arg2 = reinterpret_cast< wxIcon * >(argp2);
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6057 wxPyEndAllowThreads(__tstate);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 {
6061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066 }
6067
6068
6069 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj = 0;
6071 wxBitmap *arg1 = (wxBitmap *) 0 ;
6072 int arg2 ;
6073 void *argp1 = 0 ;
6074 int res1 = 0 ;
6075 int val2 ;
6076 int ecode2 = 0 ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 char * kwnames[] = {
6080 (char *) "self",(char *) "height", NULL
6081 };
6082
6083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6085 if (!SWIG_IsOK(res1)) {
6086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6087 }
6088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6089 ecode2 = SWIG_AsVal_int(obj1, &val2);
6090 if (!SWIG_IsOK(ecode2)) {
6091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6092 }
6093 arg2 = static_cast< int >(val2);
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 (arg1)->SetHeight(arg2);
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 resultobj = SWIG_Py_Void();
6101 return resultobj;
6102 fail:
6103 return NULL;
6104 }
6105
6106
6107 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6108 PyObject *resultobj = 0;
6109 wxBitmap *arg1 = (wxBitmap *) 0 ;
6110 int arg2 ;
6111 void *argp1 = 0 ;
6112 int res1 = 0 ;
6113 int val2 ;
6114 int ecode2 = 0 ;
6115 PyObject * obj0 = 0 ;
6116 PyObject * obj1 = 0 ;
6117 char * kwnames[] = {
6118 (char *) "self",(char *) "width", NULL
6119 };
6120
6121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6123 if (!SWIG_IsOK(res1)) {
6124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6125 }
6126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6127 ecode2 = SWIG_AsVal_int(obj1, &val2);
6128 if (!SWIG_IsOK(ecode2)) {
6129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6130 }
6131 arg2 = static_cast< int >(val2);
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 (arg1)->SetWidth(arg2);
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 resultobj = SWIG_Py_Void();
6139 return resultobj;
6140 fail:
6141 return NULL;
6142 }
6143
6144
6145 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6146 PyObject *resultobj = 0;
6147 wxBitmap *arg1 = (wxBitmap *) 0 ;
6148 int arg2 ;
6149 void *argp1 = 0 ;
6150 int res1 = 0 ;
6151 int val2 ;
6152 int ecode2 = 0 ;
6153 PyObject * obj0 = 0 ;
6154 PyObject * obj1 = 0 ;
6155 char * kwnames[] = {
6156 (char *) "self",(char *) "depth", NULL
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6163 }
6164 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6165 ecode2 = SWIG_AsVal_int(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6168 }
6169 arg2 = static_cast< int >(val2);
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 (arg1)->SetDepth(arg2);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_Py_Void();
6177 return resultobj;
6178 fail:
6179 return NULL;
6180 }
6181
6182
6183 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6184 PyObject *resultobj = 0;
6185 wxBitmap *arg1 = (wxBitmap *) 0 ;
6186 wxSize *arg2 = 0 ;
6187 void *argp1 = 0 ;
6188 int res1 = 0 ;
6189 wxSize temp2 ;
6190 PyObject * obj0 = 0 ;
6191 PyObject * obj1 = 0 ;
6192 char * kwnames[] = {
6193 (char *) "self",(char *) "size", NULL
6194 };
6195
6196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6198 if (!SWIG_IsOK(res1)) {
6199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6200 }
6201 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6202 {
6203 arg2 = &temp2;
6204 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6205 }
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_Py_Void();
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj = 0;
6221 wxBitmap *arg1 = (wxBitmap *) 0 ;
6222 wxBitmap *arg2 = (wxBitmap *) 0 ;
6223 bool result;
6224 void *argp1 = 0 ;
6225 int res1 = 0 ;
6226 void *argp2 = 0 ;
6227 int res2 = 0 ;
6228 PyObject * obj0 = 0 ;
6229 PyObject * obj1 = 0 ;
6230 char * kwnames[] = {
6231 (char *) "self",(char *) "other", NULL
6232 };
6233
6234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6236 if (!SWIG_IsOK(res1)) {
6237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6238 }
6239 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6241 if (!SWIG_IsOK(res2)) {
6242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6243 }
6244 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6248 wxPyEndAllowThreads(__tstate);
6249 if (PyErr_Occurred()) SWIG_fail;
6250 }
6251 {
6252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6253 }
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxBitmap *arg1 = (wxBitmap *) 0 ;
6263 wxBitmap *arg2 = (wxBitmap *) 0 ;
6264 bool result;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 void *argp2 = 0 ;
6268 int res2 = 0 ;
6269 PyObject * obj0 = 0 ;
6270 PyObject * obj1 = 0 ;
6271 char * kwnames[] = {
6272 (char *) "self",(char *) "other", NULL
6273 };
6274
6275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6277 if (!SWIG_IsOK(res1)) {
6278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6279 }
6280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6282 if (!SWIG_IsOK(res2)) {
6283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6284 }
6285 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6286 {
6287 PyThreadState* __tstate = wxPyBeginAllowThreads();
6288 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 {
6293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6294 }
6295 return resultobj;
6296 fail:
6297 return NULL;
6298 }
6299
6300
6301 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6302 PyObject *obj;
6303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6304 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6305 return SWIG_Py_Void();
6306 }
6307
6308 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6309 return SWIG_Python_InitShadowInstance(args);
6310 }
6311
6312 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj = 0;
6314 wxBitmap *arg1 = 0 ;
6315 wxColour const &arg2_defvalue = wxNullColour ;
6316 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6317 wxMask *result = 0 ;
6318 void *argp1 = 0 ;
6319 int res1 = 0 ;
6320 wxColour temp2 ;
6321 PyObject * obj0 = 0 ;
6322 PyObject * obj1 = 0 ;
6323 char * kwnames[] = {
6324 (char *) "bitmap",(char *) "colour", NULL
6325 };
6326
6327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6328 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6329 if (!SWIG_IsOK(res1)) {
6330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6331 }
6332 if (!argp1) {
6333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6334 }
6335 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6336 if (obj1) {
6337 {
6338 arg2 = &temp2;
6339 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6340 }
6341 }
6342 {
6343 if (!wxPyCheckForApp()) SWIG_fail;
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxMask *arg1 = (wxMask *) 0 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 PyObject *swig_obj[1] ;
6362
6363 if (!args) SWIG_fail;
6364 swig_obj[0] = args;
6365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6366 if (!SWIG_IsOK(res1)) {
6367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6368 }
6369 arg1 = reinterpret_cast< wxMask * >(argp1);
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 delete arg1;
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = SWIG_Py_Void();
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6385 PyObject *obj;
6386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6387 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6388 return SWIG_Py_Void();
6389 }
6390
6391 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6392 return SWIG_Python_InitShadowInstance(args);
6393 }
6394
6395 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj = 0;
6397 wxString *arg1 = 0 ;
6398 wxBitmapType arg2 ;
6399 int arg3 = (int) -1 ;
6400 int arg4 = (int) -1 ;
6401 wxIcon *result = 0 ;
6402 bool temp1 = false ;
6403 int val2 ;
6404 int ecode2 = 0 ;
6405 int val3 ;
6406 int ecode3 = 0 ;
6407 int val4 ;
6408 int ecode4 = 0 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 PyObject * obj2 = 0 ;
6412 PyObject * obj3 = 0 ;
6413 char * kwnames[] = {
6414 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6415 };
6416
6417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6418 {
6419 arg1 = wxString_in_helper(obj0);
6420 if (arg1 == NULL) SWIG_fail;
6421 temp1 = true;
6422 }
6423 ecode2 = SWIG_AsVal_int(obj1, &val2);
6424 if (!SWIG_IsOK(ecode2)) {
6425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6426 }
6427 arg2 = static_cast< wxBitmapType >(val2);
6428 if (obj2) {
6429 ecode3 = SWIG_AsVal_int(obj2, &val3);
6430 if (!SWIG_IsOK(ecode3)) {
6431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6432 }
6433 arg3 = static_cast< int >(val3);
6434 }
6435 if (obj3) {
6436 ecode4 = SWIG_AsVal_int(obj3, &val4);
6437 if (!SWIG_IsOK(ecode4)) {
6438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6439 }
6440 arg4 = static_cast< int >(val4);
6441 }
6442 {
6443 if (!wxPyCheckForApp()) SWIG_fail;
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6450 {
6451 if (temp1)
6452 delete arg1;
6453 }
6454 return resultobj;
6455 fail:
6456 {
6457 if (temp1)
6458 delete arg1;
6459 }
6460 return NULL;
6461 }
6462
6463
6464 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6465 PyObject *resultobj = 0;
6466 wxIcon *arg1 = (wxIcon *) 0 ;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 PyObject *swig_obj[1] ;
6470
6471 if (!args) SWIG_fail;
6472 swig_obj[0] = args;
6473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6474 if (!SWIG_IsOK(res1)) {
6475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6476 }
6477 arg1 = reinterpret_cast< wxIcon * >(argp1);
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 delete arg1;
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 resultobj = SWIG_Py_Void();
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6493 PyObject *resultobj = 0;
6494 wxIcon *result = 0 ;
6495
6496 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6497 {
6498 if (!wxPyCheckForApp()) SWIG_fail;
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (wxIcon *)new wxIcon();
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6512 PyObject *resultobj = 0;
6513 wxIconLocation *arg1 = 0 ;
6514 wxIcon *result = 0 ;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject * obj0 = 0 ;
6518 char * kwnames[] = {
6519 (char *) "loc", NULL
6520 };
6521
6522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6523 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6524 if (!SWIG_IsOK(res1)) {
6525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6526 }
6527 if (!argp1) {
6528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6529 }
6530 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6531 {
6532 if (!wxPyCheckForApp()) SWIG_fail;
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj = 0;
6547 wxBitmap *arg1 = 0 ;
6548 wxIcon *result = 0 ;
6549 void *argp1 = 0 ;
6550 int res1 = 0 ;
6551 PyObject * obj0 = 0 ;
6552 char * kwnames[] = {
6553 (char *) "bmp", NULL
6554 };
6555
6556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6560 }
6561 if (!argp1) {
6562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6563 }
6564 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6565 {
6566 if (!wxPyCheckForApp()) SWIG_fail;
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6569 wxPyEndAllowThreads(__tstate);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6573 return resultobj;
6574 fail:
6575 return NULL;
6576 }
6577
6578
6579 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6580 PyObject *resultobj = 0;
6581 PyObject *arg1 = (PyObject *) 0 ;
6582 wxIcon *result = 0 ;
6583 PyObject * obj0 = 0 ;
6584 char * kwnames[] = {
6585 (char *) "listOfStrings", NULL
6586 };
6587
6588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6589 arg1 = obj0;
6590 {
6591 if (!wxPyCheckForApp()) SWIG_fail;
6592 PyThreadState* __tstate = wxPyBeginAllowThreads();
6593 result = (wxIcon *)new_wxIcon(arg1);
6594 wxPyEndAllowThreads(__tstate);
6595 if (PyErr_Occurred()) SWIG_fail;
6596 }
6597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6605 PyObject *resultobj = 0;
6606 wxIcon *arg1 = (wxIcon *) 0 ;
6607 bool result;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 PyObject *swig_obj[1] ;
6611
6612 if (!args) SWIG_fail;
6613 swig_obj[0] = args;
6614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6615 if (!SWIG_IsOK(res1)) {
6616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6617 }
6618 arg1 = reinterpret_cast< wxIcon * >(argp1);
6619 {
6620 PyThreadState* __tstate = wxPyBeginAllowThreads();
6621 result = (bool)(arg1)->Ok();
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 {
6626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6627 }
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6635 PyObject *resultobj = 0;
6636 wxIcon *arg1 = (wxIcon *) 0 ;
6637 int result;
6638 void *argp1 = 0 ;
6639 int res1 = 0 ;
6640 PyObject *swig_obj[1] ;
6641
6642 if (!args) SWIG_fail;
6643 swig_obj[0] = args;
6644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6645 if (!SWIG_IsOK(res1)) {
6646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6647 }
6648 arg1 = reinterpret_cast< wxIcon * >(argp1);
6649 {
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = (int)(arg1)->GetWidth();
6652 wxPyEndAllowThreads(__tstate);
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 resultobj = SWIG_From_int(static_cast< int >(result));
6656 return resultobj;
6657 fail:
6658 return NULL;
6659 }
6660
6661
6662 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6663 PyObject *resultobj = 0;
6664 wxIcon *arg1 = (wxIcon *) 0 ;
6665 int result;
6666 void *argp1 = 0 ;
6667 int res1 = 0 ;
6668 PyObject *swig_obj[1] ;
6669
6670 if (!args) SWIG_fail;
6671 swig_obj[0] = args;
6672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6673 if (!SWIG_IsOK(res1)) {
6674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6675 }
6676 arg1 = reinterpret_cast< wxIcon * >(argp1);
6677 {
6678 PyThreadState* __tstate = wxPyBeginAllowThreads();
6679 result = (int)(arg1)->GetHeight();
6680 wxPyEndAllowThreads(__tstate);
6681 if (PyErr_Occurred()) SWIG_fail;
6682 }
6683 resultobj = SWIG_From_int(static_cast< int >(result));
6684 return resultobj;
6685 fail:
6686 return NULL;
6687 }
6688
6689
6690 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6691 PyObject *resultobj = 0;
6692 wxIcon *arg1 = (wxIcon *) 0 ;
6693 int result;
6694 void *argp1 = 0 ;
6695 int res1 = 0 ;
6696 PyObject *swig_obj[1] ;
6697
6698 if (!args) SWIG_fail;
6699 swig_obj[0] = args;
6700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6701 if (!SWIG_IsOK(res1)) {
6702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6703 }
6704 arg1 = reinterpret_cast< wxIcon * >(argp1);
6705 {
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 result = (int)(arg1)->GetDepth();
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_From_int(static_cast< int >(result));
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj = 0;
6720 wxIcon *arg1 = (wxIcon *) 0 ;
6721 int arg2 ;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 int val2 ;
6725 int ecode2 = 0 ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char * kwnames[] = {
6729 (char *) "self",(char *) "w", NULL
6730 };
6731
6732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6736 }
6737 arg1 = reinterpret_cast< wxIcon * >(argp1);
6738 ecode2 = SWIG_AsVal_int(obj1, &val2);
6739 if (!SWIG_IsOK(ecode2)) {
6740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6741 }
6742 arg2 = static_cast< int >(val2);
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 (arg1)->SetWidth(arg2);
6746 wxPyEndAllowThreads(__tstate);
6747 if (PyErr_Occurred()) SWIG_fail;
6748 }
6749 resultobj = SWIG_Py_Void();
6750 return resultobj;
6751 fail:
6752 return NULL;
6753 }
6754
6755
6756 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj = 0;
6758 wxIcon *arg1 = (wxIcon *) 0 ;
6759 int arg2 ;
6760 void *argp1 = 0 ;
6761 int res1 = 0 ;
6762 int val2 ;
6763 int ecode2 = 0 ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char * kwnames[] = {
6767 (char *) "self",(char *) "h", NULL
6768 };
6769
6770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6772 if (!SWIG_IsOK(res1)) {
6773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6774 }
6775 arg1 = reinterpret_cast< wxIcon * >(argp1);
6776 ecode2 = SWIG_AsVal_int(obj1, &val2);
6777 if (!SWIG_IsOK(ecode2)) {
6778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6779 }
6780 arg2 = static_cast< int >(val2);
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 (arg1)->SetHeight(arg2);
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 resultobj = SWIG_Py_Void();
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj = 0;
6796 wxIcon *arg1 = (wxIcon *) 0 ;
6797 int arg2 ;
6798 void *argp1 = 0 ;
6799 int res1 = 0 ;
6800 int val2 ;
6801 int ecode2 = 0 ;
6802 PyObject * obj0 = 0 ;
6803 PyObject * obj1 = 0 ;
6804 char * kwnames[] = {
6805 (char *) "self",(char *) "d", NULL
6806 };
6807
6808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6810 if (!SWIG_IsOK(res1)) {
6811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6812 }
6813 arg1 = reinterpret_cast< wxIcon * >(argp1);
6814 ecode2 = SWIG_AsVal_int(obj1, &val2);
6815 if (!SWIG_IsOK(ecode2)) {
6816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6817 }
6818 arg2 = static_cast< int >(val2);
6819 {
6820 PyThreadState* __tstate = wxPyBeginAllowThreads();
6821 (arg1)->SetDepth(arg2);
6822 wxPyEndAllowThreads(__tstate);
6823 if (PyErr_Occurred()) SWIG_fail;
6824 }
6825 resultobj = SWIG_Py_Void();
6826 return resultobj;
6827 fail:
6828 return NULL;
6829 }
6830
6831
6832 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6833 PyObject *resultobj = 0;
6834 wxIcon *arg1 = (wxIcon *) 0 ;
6835 wxBitmap *arg2 = 0 ;
6836 void *argp1 = 0 ;
6837 int res1 = 0 ;
6838 void *argp2 = 0 ;
6839 int res2 = 0 ;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 char * kwnames[] = {
6843 (char *) "self",(char *) "bmp", NULL
6844 };
6845
6846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6848 if (!SWIG_IsOK(res1)) {
6849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6850 }
6851 arg1 = reinterpret_cast< wxIcon * >(argp1);
6852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6853 if (!SWIG_IsOK(res2)) {
6854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6855 }
6856 if (!argp2) {
6857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6858 }
6859 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6860 {
6861 PyThreadState* __tstate = wxPyBeginAllowThreads();
6862 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 resultobj = SWIG_Py_Void();
6867 return resultobj;
6868 fail:
6869 return NULL;
6870 }
6871
6872
6873 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6874 PyObject *obj;
6875 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6876 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6877 return SWIG_Py_Void();
6878 }
6879
6880 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6881 return SWIG_Python_InitShadowInstance(args);
6882 }
6883
6884 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6885 PyObject *resultobj = 0;
6886 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6887 int arg2 = (int) 0 ;
6888 wxIconLocation *result = 0 ;
6889 bool temp1 = false ;
6890 int val2 ;
6891 int ecode2 = 0 ;
6892 PyObject * obj0 = 0 ;
6893 PyObject * obj1 = 0 ;
6894 char * kwnames[] = {
6895 (char *) "filename",(char *) "num", NULL
6896 };
6897
6898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6899 if (obj0) {
6900 {
6901 arg1 = wxString_in_helper(obj0);
6902 if (arg1 == NULL) SWIG_fail;
6903 temp1 = true;
6904 }
6905 }
6906 if (obj1) {
6907 ecode2 = SWIG_AsVal_int(obj1, &val2);
6908 if (!SWIG_IsOK(ecode2)) {
6909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6910 }
6911 arg2 = static_cast< int >(val2);
6912 }
6913 {
6914 PyThreadState* __tstate = wxPyBeginAllowThreads();
6915 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6916 wxPyEndAllowThreads(__tstate);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6920 {
6921 if (temp1)
6922 delete arg1;
6923 }
6924 return resultobj;
6925 fail:
6926 {
6927 if (temp1)
6928 delete arg1;
6929 }
6930 return NULL;
6931 }
6932
6933
6934 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6935 PyObject *resultobj = 0;
6936 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6937 void *argp1 = 0 ;
6938 int res1 = 0 ;
6939 PyObject *swig_obj[1] ;
6940
6941 if (!args) SWIG_fail;
6942 swig_obj[0] = args;
6943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
6946 }
6947 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 delete arg1;
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_Py_Void();
6956 return resultobj;
6957 fail:
6958 return NULL;
6959 }
6960
6961
6962 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6963 PyObject *resultobj = 0;
6964 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6965 bool result;
6966 void *argp1 = 0 ;
6967 int res1 = 0 ;
6968 PyObject *swig_obj[1] ;
6969
6970 if (!args) SWIG_fail;
6971 swig_obj[0] = args;
6972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
6973 if (!SWIG_IsOK(res1)) {
6974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
6975 }
6976 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6977 {
6978 PyThreadState* __tstate = wxPyBeginAllowThreads();
6979 result = (bool)((wxIconLocation const *)arg1)->IsOk();
6980 wxPyEndAllowThreads(__tstate);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 {
6984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6985 }
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj = 0;
6994 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6995 wxString *arg2 = 0 ;
6996 void *argp1 = 0 ;
6997 int res1 = 0 ;
6998 bool temp2 = false ;
6999 PyObject * obj0 = 0 ;
7000 PyObject * obj1 = 0 ;
7001 char * kwnames[] = {
7002 (char *) "self",(char *) "filename", NULL
7003 };
7004
7005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7007 if (!SWIG_IsOK(res1)) {
7008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7009 }
7010 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7011 {
7012 arg2 = wxString_in_helper(obj1);
7013 if (arg2 == NULL) SWIG_fail;
7014 temp2 = true;
7015 }
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 (arg1)->SetFileName((wxString const &)*arg2);
7019 wxPyEndAllowThreads(__tstate);
7020 if (PyErr_Occurred()) SWIG_fail;
7021 }
7022 resultobj = SWIG_Py_Void();
7023 {
7024 if (temp2)
7025 delete arg2;
7026 }
7027 return resultobj;
7028 fail:
7029 {
7030 if (temp2)
7031 delete arg2;
7032 }
7033 return NULL;
7034 }
7035
7036
7037 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7038 PyObject *resultobj = 0;
7039 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7040 wxString *result = 0 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 PyObject *swig_obj[1] ;
7044
7045 if (!args) SWIG_fail;
7046 swig_obj[0] = args;
7047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7050 }
7051 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 {
7055 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7056 result = (wxString *) &_result_ref;
7057 }
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 {
7062 #if wxUSE_UNICODE
7063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7064 #else
7065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7066 #endif
7067 }
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj = 0;
7076 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7077 int arg2 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 int val2 ;
7081 int ecode2 = 0 ;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7084 char * kwnames[] = {
7085 (char *) "self",(char *) "num", NULL
7086 };
7087
7088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7092 }
7093 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7094 ecode2 = SWIG_AsVal_int(obj1, &val2);
7095 if (!SWIG_IsOK(ecode2)) {
7096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7097 }
7098 arg2 = static_cast< int >(val2);
7099 {
7100 PyThreadState* __tstate = wxPyBeginAllowThreads();
7101 wxIconLocation_SetIndex(arg1,arg2);
7102 wxPyEndAllowThreads(__tstate);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_Py_Void();
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7113 PyObject *resultobj = 0;
7114 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7115 int result;
7116 void *argp1 = 0 ;
7117 int res1 = 0 ;
7118 PyObject *swig_obj[1] ;
7119
7120 if (!args) SWIG_fail;
7121 swig_obj[0] = args;
7122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7125 }
7126 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7127 {
7128 PyThreadState* __tstate = wxPyBeginAllowThreads();
7129 result = (int)wxIconLocation_GetIndex(arg1);
7130 wxPyEndAllowThreads(__tstate);
7131 if (PyErr_Occurred()) SWIG_fail;
7132 }
7133 resultobj = SWIG_From_int(static_cast< int >(result));
7134 return resultobj;
7135 fail:
7136 return NULL;
7137 }
7138
7139
7140 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7141 PyObject *obj;
7142 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7143 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7144 return SWIG_Py_Void();
7145 }
7146
7147 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7148 return SWIG_Python_InitShadowInstance(args);
7149 }
7150
7151 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 PyObject *resultobj = 0;
7153 wxIconBundle *result = 0 ;
7154
7155 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 result = (wxIconBundle *)new wxIconBundle();
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7163 return resultobj;
7164 fail:
7165 return NULL;
7166 }
7167
7168
7169 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj = 0;
7171 wxString *arg1 = 0 ;
7172 long arg2 ;
7173 wxIconBundle *result = 0 ;
7174 bool temp1 = false ;
7175 long val2 ;
7176 int ecode2 = 0 ;
7177 PyObject * obj0 = 0 ;
7178 PyObject * obj1 = 0 ;
7179 char * kwnames[] = {
7180 (char *) "file",(char *) "type", NULL
7181 };
7182
7183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7184 {
7185 arg1 = wxString_in_helper(obj0);
7186 if (arg1 == NULL) SWIG_fail;
7187 temp1 = true;
7188 }
7189 ecode2 = SWIG_AsVal_long(obj1, &val2);
7190 if (!SWIG_IsOK(ecode2)) {
7191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7192 }
7193 arg2 = static_cast< long >(val2);
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7201 {
7202 if (temp1)
7203 delete arg1;
7204 }
7205 return resultobj;
7206 fail:
7207 {
7208 if (temp1)
7209 delete arg1;
7210 }
7211 return NULL;
7212 }
7213
7214
7215 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7216 PyObject *resultobj = 0;
7217 wxIcon *arg1 = 0 ;
7218 wxIconBundle *result = 0 ;
7219 void *argp1 = 0 ;
7220 int res1 = 0 ;
7221 PyObject * obj0 = 0 ;
7222 char * kwnames[] = {
7223 (char *) "icon", NULL
7224 };
7225
7226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7228 if (!SWIG_IsOK(res1)) {
7229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7230 }
7231 if (!argp1) {
7232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7233 }
7234 arg1 = reinterpret_cast< wxIcon * >(argp1);
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *resultobj = 0;
7250 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7251 void *argp1 = 0 ;
7252 int res1 = 0 ;
7253 PyObject *swig_obj[1] ;
7254
7255 if (!args) SWIG_fail;
7256 swig_obj[0] = args;
7257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7258 if (!SWIG_IsOK(res1)) {
7259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7260 }
7261 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7262 {
7263 PyThreadState* __tstate = wxPyBeginAllowThreads();
7264 delete arg1;
7265
7266 wxPyEndAllowThreads(__tstate);
7267 if (PyErr_Occurred()) SWIG_fail;
7268 }
7269 resultobj = SWIG_Py_Void();
7270 return resultobj;
7271 fail:
7272 return NULL;
7273 }
7274
7275
7276 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj = 0;
7278 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7279 wxIcon *arg2 = 0 ;
7280 void *argp1 = 0 ;
7281 int res1 = 0 ;
7282 void *argp2 = 0 ;
7283 int res2 = 0 ;
7284 PyObject * obj0 = 0 ;
7285 PyObject * obj1 = 0 ;
7286 char * kwnames[] = {
7287 (char *) "self",(char *) "icon", NULL
7288 };
7289
7290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7292 if (!SWIG_IsOK(res1)) {
7293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7294 }
7295 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7297 if (!SWIG_IsOK(res2)) {
7298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7299 }
7300 if (!argp2) {
7301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7302 }
7303 arg2 = reinterpret_cast< wxIcon * >(argp2);
7304 {
7305 PyThreadState* __tstate = wxPyBeginAllowThreads();
7306 (arg1)->AddIcon((wxIcon const &)*arg2);
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_Py_Void();
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj = 0;
7319 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7320 wxString *arg2 = 0 ;
7321 long arg3 ;
7322 void *argp1 = 0 ;
7323 int res1 = 0 ;
7324 bool temp2 = false ;
7325 long val3 ;
7326 int ecode3 = 0 ;
7327 PyObject * obj0 = 0 ;
7328 PyObject * obj1 = 0 ;
7329 PyObject * obj2 = 0 ;
7330 char * kwnames[] = {
7331 (char *) "self",(char *) "file",(char *) "type", NULL
7332 };
7333
7334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7336 if (!SWIG_IsOK(res1)) {
7337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7338 }
7339 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7340 {
7341 arg2 = wxString_in_helper(obj1);
7342 if (arg2 == NULL) SWIG_fail;
7343 temp2 = true;
7344 }
7345 ecode3 = SWIG_AsVal_long(obj2, &val3);
7346 if (!SWIG_IsOK(ecode3)) {
7347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7348 }
7349 arg3 = static_cast< long >(val3);
7350 {
7351 PyThreadState* __tstate = wxPyBeginAllowThreads();
7352 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 resultobj = SWIG_Py_Void();
7357 {
7358 if (temp2)
7359 delete arg2;
7360 }
7361 return resultobj;
7362 fail:
7363 {
7364 if (temp2)
7365 delete arg2;
7366 }
7367 return NULL;
7368 }
7369
7370
7371 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7372 PyObject *resultobj = 0;
7373 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7374 wxSize *arg2 = 0 ;
7375 wxIcon *result = 0 ;
7376 void *argp1 = 0 ;
7377 int res1 = 0 ;
7378 wxSize temp2 ;
7379 PyObject * obj0 = 0 ;
7380 PyObject * obj1 = 0 ;
7381 char * kwnames[] = {
7382 (char *) "self",(char *) "size", NULL
7383 };
7384
7385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7387 if (!SWIG_IsOK(res1)) {
7388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7389 }
7390 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7391 {
7392 arg2 = &temp2;
7393 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7394 }
7395 {
7396 PyThreadState* __tstate = wxPyBeginAllowThreads();
7397 {
7398 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7399 result = (wxIcon *) &_result_ref;
7400 }
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 {
7405 wxIcon* resultptr = new wxIcon(*result);
7406 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7407 }
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *obj;
7416 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7417 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7418 return SWIG_Py_Void();
7419 }
7420
7421 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7422 return SWIG_Python_InitShadowInstance(args);
7423 }
7424
7425 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj = 0;
7427 wxString *arg1 = 0 ;
7428 long arg2 ;
7429 int arg3 = (int) 0 ;
7430 int arg4 = (int) 0 ;
7431 wxCursor *result = 0 ;
7432 bool temp1 = false ;
7433 long val2 ;
7434 int ecode2 = 0 ;
7435 int val3 ;
7436 int ecode3 = 0 ;
7437 int val4 ;
7438 int ecode4 = 0 ;
7439 PyObject * obj0 = 0 ;
7440 PyObject * obj1 = 0 ;
7441 PyObject * obj2 = 0 ;
7442 PyObject * obj3 = 0 ;
7443 char * kwnames[] = {
7444 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7445 };
7446
7447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7448 {
7449 arg1 = wxString_in_helper(obj0);
7450 if (arg1 == NULL) SWIG_fail;
7451 temp1 = true;
7452 }
7453 ecode2 = SWIG_AsVal_long(obj1, &val2);
7454 if (!SWIG_IsOK(ecode2)) {
7455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7456 }
7457 arg2 = static_cast< long >(val2);
7458 if (obj2) {
7459 ecode3 = SWIG_AsVal_int(obj2, &val3);
7460 if (!SWIG_IsOK(ecode3)) {
7461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7462 }
7463 arg3 = static_cast< int >(val3);
7464 }
7465 if (obj3) {
7466 ecode4 = SWIG_AsVal_int(obj3, &val4);
7467 if (!SWIG_IsOK(ecode4)) {
7468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7469 }
7470 arg4 = static_cast< int >(val4);
7471 }
7472 {
7473 if (!wxPyCheckForApp()) SWIG_fail;
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7480 {
7481 if (temp1)
7482 delete arg1;
7483 }
7484 return resultobj;
7485 fail:
7486 {
7487 if (temp1)
7488 delete arg1;
7489 }
7490 return NULL;
7491 }
7492
7493
7494 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *resultobj = 0;
7496 wxCursor *arg1 = (wxCursor *) 0 ;
7497 void *argp1 = 0 ;
7498 int res1 = 0 ;
7499 PyObject *swig_obj[1] ;
7500
7501 if (!args) SWIG_fail;
7502 swig_obj[0] = args;
7503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7504 if (!SWIG_IsOK(res1)) {
7505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7506 }
7507 arg1 = reinterpret_cast< wxCursor * >(argp1);
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 delete arg1;
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 resultobj = SWIG_Py_Void();
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj = 0;
7524 int arg1 ;
7525 wxCursor *result = 0 ;
7526 int val1 ;
7527 int ecode1 = 0 ;
7528 PyObject * obj0 = 0 ;
7529 char * kwnames[] = {
7530 (char *) "id", NULL
7531 };
7532
7533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7534 ecode1 = SWIG_AsVal_int(obj0, &val1);
7535 if (!SWIG_IsOK(ecode1)) {
7536 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7537 }
7538 arg1 = static_cast< int >(val1);
7539 {
7540 if (!wxPyCheckForApp()) SWIG_fail;
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (wxCursor *)new wxCursor(arg1);
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7547 return resultobj;
7548 fail:
7549 return NULL;
7550 }
7551
7552
7553 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj = 0;
7555 wxImage *arg1 = 0 ;
7556 wxCursor *result = 0 ;
7557 void *argp1 = 0 ;
7558 int res1 = 0 ;
7559 PyObject * obj0 = 0 ;
7560 char * kwnames[] = {
7561 (char *) "image", NULL
7562 };
7563
7564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7565 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7566 if (!SWIG_IsOK(res1)) {
7567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7568 }
7569 if (!argp1) {
7570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7571 }
7572 arg1 = reinterpret_cast< wxImage * >(argp1);
7573 {
7574 if (!wxPyCheckForApp()) SWIG_fail;
7575 PyThreadState* __tstate = wxPyBeginAllowThreads();
7576 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7581 return resultobj;
7582 fail:
7583 return NULL;
7584 }
7585
7586
7587 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7588 PyObject *resultobj = 0;
7589 wxCursor *arg1 = (wxCursor *) 0 ;
7590 bool result;
7591 void *argp1 = 0 ;
7592 int res1 = 0 ;
7593 PyObject *swig_obj[1] ;
7594
7595 if (!args) SWIG_fail;
7596 swig_obj[0] = args;
7597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7598 if (!SWIG_IsOK(res1)) {
7599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7600 }
7601 arg1 = reinterpret_cast< wxCursor * >(argp1);
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = (bool)(arg1)->Ok();
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 {
7609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7610 }
7611 return resultobj;
7612 fail:
7613 return NULL;
7614 }
7615
7616
7617 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7618 PyObject *obj;
7619 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7620 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7621 return SWIG_Py_Void();
7622 }
7623
7624 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7625 return SWIG_Python_InitShadowInstance(args);
7626 }
7627
7628 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7629 PyObject *resultobj = 0;
7630 int arg1 = (int) 0 ;
7631 int arg2 = (int) 0 ;
7632 int arg3 = (int) 0 ;
7633 int arg4 = (int) 0 ;
7634 wxRegion *result = 0 ;
7635 int val1 ;
7636 int ecode1 = 0 ;
7637 int val2 ;
7638 int ecode2 = 0 ;
7639 int val3 ;
7640 int ecode3 = 0 ;
7641 int val4 ;
7642 int ecode4 = 0 ;
7643 PyObject * obj0 = 0 ;
7644 PyObject * obj1 = 0 ;
7645 PyObject * obj2 = 0 ;
7646 PyObject * obj3 = 0 ;
7647 char * kwnames[] = {
7648 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7649 };
7650
7651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7652 if (obj0) {
7653 ecode1 = SWIG_AsVal_int(obj0, &val1);
7654 if (!SWIG_IsOK(ecode1)) {
7655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7656 }
7657 arg1 = static_cast< int >(val1);
7658 }
7659 if (obj1) {
7660 ecode2 = SWIG_AsVal_int(obj1, &val2);
7661 if (!SWIG_IsOK(ecode2)) {
7662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7663 }
7664 arg2 = static_cast< int >(val2);
7665 }
7666 if (obj2) {
7667 ecode3 = SWIG_AsVal_int(obj2, &val3);
7668 if (!SWIG_IsOK(ecode3)) {
7669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7670 }
7671 arg3 = static_cast< int >(val3);
7672 }
7673 if (obj3) {
7674 ecode4 = SWIG_AsVal_int(obj3, &val4);
7675 if (!SWIG_IsOK(ecode4)) {
7676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7677 }
7678 arg4 = static_cast< int >(val4);
7679 }
7680 {
7681 if (!wxPyCheckForApp()) SWIG_fail;
7682 PyThreadState* __tstate = wxPyBeginAllowThreads();
7683 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7684 wxPyEndAllowThreads(__tstate);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7688 return resultobj;
7689 fail:
7690 return NULL;
7691 }
7692
7693
7694 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7695 PyObject *resultobj = 0;
7696 wxBitmap *arg1 = 0 ;
7697 wxRegion *result = 0 ;
7698 void *argp1 = 0 ;
7699 int res1 = 0 ;
7700 PyObject * obj0 = 0 ;
7701 char * kwnames[] = {
7702 (char *) "bmp", NULL
7703 };
7704
7705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7706 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7707 if (!SWIG_IsOK(res1)) {
7708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7709 }
7710 if (!argp1) {
7711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7712 }
7713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7714 {
7715 if (!wxPyCheckForApp()) SWIG_fail;
7716 PyThreadState* __tstate = wxPyBeginAllowThreads();
7717 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7722 return resultobj;
7723 fail:
7724 return NULL;
7725 }
7726
7727
7728 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7729 PyObject *resultobj = 0;
7730 wxBitmap *arg1 = 0 ;
7731 wxColour *arg2 = 0 ;
7732 int arg3 = (int) 0 ;
7733 wxRegion *result = 0 ;
7734 void *argp1 = 0 ;
7735 int res1 = 0 ;
7736 wxColour temp2 ;
7737 int val3 ;
7738 int ecode3 = 0 ;
7739 PyObject * obj0 = 0 ;
7740 PyObject * obj1 = 0 ;
7741 PyObject * obj2 = 0 ;
7742 char * kwnames[] = {
7743 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7744 };
7745
7746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7747 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7748 if (!SWIG_IsOK(res1)) {
7749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7750 }
7751 if (!argp1) {
7752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7753 }
7754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7755 {
7756 arg2 = &temp2;
7757 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7758 }
7759 if (obj2) {
7760 ecode3 = SWIG_AsVal_int(obj2, &val3);
7761 if (!SWIG_IsOK(ecode3)) {
7762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7763 }
7764 arg3 = static_cast< int >(val3);
7765 }
7766 {
7767 if (!wxPyCheckForApp()) SWIG_fail;
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7770 wxPyEndAllowThreads(__tstate);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7774 return resultobj;
7775 fail:
7776 return NULL;
7777 }
7778
7779
7780 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7781 PyObject *resultobj = 0;
7782 int arg1 ;
7783 wxPoint *arg2 = (wxPoint *) 0 ;
7784 int arg3 = (int) wxWINDING_RULE ;
7785 wxRegion *result = 0 ;
7786 int val3 ;
7787 int ecode3 = 0 ;
7788 PyObject * obj0 = 0 ;
7789 PyObject * obj1 = 0 ;
7790 char * kwnames[] = {
7791 (char *) "points",(char *) "fillStyle", NULL
7792 };
7793
7794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7795 {
7796 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7797 if (arg2 == NULL) SWIG_fail;
7798 }
7799 if (obj1) {
7800 ecode3 = SWIG_AsVal_int(obj1, &val3);
7801 if (!SWIG_IsOK(ecode3)) {
7802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7803 }
7804 arg3 = static_cast< int >(val3);
7805 }
7806 {
7807 if (!wxPyCheckForApp()) SWIG_fail;
7808 PyThreadState* __tstate = wxPyBeginAllowThreads();
7809 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7814 {
7815 if (arg2) delete [] arg2;
7816 }
7817 return resultobj;
7818 fail:
7819 {
7820 if (arg2) delete [] arg2;
7821 }
7822 return NULL;
7823 }
7824
7825
7826 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7827 PyObject *resultobj = 0;
7828 wxRegion *arg1 = (wxRegion *) 0 ;
7829 void *argp1 = 0 ;
7830 int res1 = 0 ;
7831 PyObject *swig_obj[1] ;
7832
7833 if (!args) SWIG_fail;
7834 swig_obj[0] = args;
7835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7838 }
7839 arg1 = reinterpret_cast< wxRegion * >(argp1);
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 delete arg1;
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 resultobj = SWIG_Py_Void();
7848 return resultobj;
7849 fail:
7850 return NULL;
7851 }
7852
7853
7854 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7855 PyObject *resultobj = 0;
7856 wxRegion *arg1 = (wxRegion *) 0 ;
7857 void *argp1 = 0 ;
7858 int res1 = 0 ;
7859 PyObject *swig_obj[1] ;
7860
7861 if (!args) SWIG_fail;
7862 swig_obj[0] = args;
7863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7864 if (!SWIG_IsOK(res1)) {
7865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7866 }
7867 arg1 = reinterpret_cast< wxRegion * >(argp1);
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 (arg1)->Clear();
7871 wxPyEndAllowThreads(__tstate);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_Py_Void();
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7882 PyObject *resultobj = 0;
7883 wxRegion *arg1 = (wxRegion *) 0 ;
7884 int arg2 ;
7885 int arg3 ;
7886 bool result;
7887 void *argp1 = 0 ;
7888 int res1 = 0 ;
7889 int val2 ;
7890 int ecode2 = 0 ;
7891 int val3 ;
7892 int ecode3 = 0 ;
7893 PyObject * obj0 = 0 ;
7894 PyObject * obj1 = 0 ;
7895 PyObject * obj2 = 0 ;
7896 char * kwnames[] = {
7897 (char *) "self",(char *) "x",(char *) "y", NULL
7898 };
7899
7900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7902 if (!SWIG_IsOK(res1)) {
7903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7904 }
7905 arg1 = reinterpret_cast< wxRegion * >(argp1);
7906 ecode2 = SWIG_AsVal_int(obj1, &val2);
7907 if (!SWIG_IsOK(ecode2)) {
7908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7909 }
7910 arg2 = static_cast< int >(val2);
7911 ecode3 = SWIG_AsVal_int(obj2, &val3);
7912 if (!SWIG_IsOK(ecode3)) {
7913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7914 }
7915 arg3 = static_cast< int >(val3);
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (bool)(arg1)->Offset(arg2,arg3);
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 {
7923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7924 }
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj = 0;
7933 wxRegion *arg1 = (wxRegion *) 0 ;
7934 int arg2 ;
7935 int arg3 ;
7936 wxRegionContain result;
7937 void *argp1 = 0 ;
7938 int res1 = 0 ;
7939 int val2 ;
7940 int ecode2 = 0 ;
7941 int val3 ;
7942 int ecode3 = 0 ;
7943 PyObject * obj0 = 0 ;
7944 PyObject * obj1 = 0 ;
7945 PyObject * obj2 = 0 ;
7946 char * kwnames[] = {
7947 (char *) "self",(char *) "x",(char *) "y", NULL
7948 };
7949
7950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7952 if (!SWIG_IsOK(res1)) {
7953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
7954 }
7955 arg1 = reinterpret_cast< wxRegion * >(argp1);
7956 ecode2 = SWIG_AsVal_int(obj1, &val2);
7957 if (!SWIG_IsOK(ecode2)) {
7958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
7959 }
7960 arg2 = static_cast< int >(val2);
7961 ecode3 = SWIG_AsVal_int(obj2, &val3);
7962 if (!SWIG_IsOK(ecode3)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
7964 }
7965 arg3 = static_cast< int >(val3);
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_From_int(static_cast< int >(result));
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj = 0;
7981 wxRegion *arg1 = (wxRegion *) 0 ;
7982 wxPoint *arg2 = 0 ;
7983 wxRegionContain result;
7984 void *argp1 = 0 ;
7985 int res1 = 0 ;
7986 wxPoint temp2 ;
7987 PyObject * obj0 = 0 ;
7988 PyObject * obj1 = 0 ;
7989 char * kwnames[] = {
7990 (char *) "self",(char *) "pt", NULL
7991 };
7992
7993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
7994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7995 if (!SWIG_IsOK(res1)) {
7996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
7997 }
7998 arg1 = reinterpret_cast< wxRegion * >(argp1);
7999 {
8000 arg2 = &temp2;
8001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8002 }
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8006 wxPyEndAllowThreads(__tstate);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = SWIG_From_int(static_cast< int >(result));
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8017 PyObject *resultobj = 0;
8018 wxRegion *arg1 = (wxRegion *) 0 ;
8019 wxRect *arg2 = 0 ;
8020 wxRegionContain result;
8021 void *argp1 = 0 ;
8022 int res1 = 0 ;
8023 wxRect temp2 ;
8024 PyObject * obj0 = 0 ;
8025 PyObject * obj1 = 0 ;
8026 char * kwnames[] = {
8027 (char *) "self",(char *) "rect", NULL
8028 };
8029
8030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8032 if (!SWIG_IsOK(res1)) {
8033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8034 }
8035 arg1 = reinterpret_cast< wxRegion * >(argp1);
8036 {
8037 arg2 = &temp2;
8038 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8039 }
8040 {
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 resultobj = SWIG_From_int(static_cast< int >(result));
8047 return resultobj;
8048 fail:
8049 return NULL;
8050 }
8051
8052
8053 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8054 PyObject *resultobj = 0;
8055 wxRegion *arg1 = (wxRegion *) 0 ;
8056 int arg2 ;
8057 int arg3 ;
8058 int arg4 ;
8059 int arg5 ;
8060 wxRegionContain result;
8061 void *argp1 = 0 ;
8062 int res1 = 0 ;
8063 int val2 ;
8064 int ecode2 = 0 ;
8065 int val3 ;
8066 int ecode3 = 0 ;
8067 int val4 ;
8068 int ecode4 = 0 ;
8069 int val5 ;
8070 int ecode5 = 0 ;
8071 PyObject * obj0 = 0 ;
8072 PyObject * obj1 = 0 ;
8073 PyObject * obj2 = 0 ;
8074 PyObject * obj3 = 0 ;
8075 PyObject * obj4 = 0 ;
8076 char * kwnames[] = {
8077 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8078 };
8079
8080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8082 if (!SWIG_IsOK(res1)) {
8083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8084 }
8085 arg1 = reinterpret_cast< wxRegion * >(argp1);
8086 ecode2 = SWIG_AsVal_int(obj1, &val2);
8087 if (!SWIG_IsOK(ecode2)) {
8088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8089 }
8090 arg2 = static_cast< int >(val2);
8091 ecode3 = SWIG_AsVal_int(obj2, &val3);
8092 if (!SWIG_IsOK(ecode3)) {
8093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8094 }
8095 arg3 = static_cast< int >(val3);
8096 ecode4 = SWIG_AsVal_int(obj3, &val4);
8097 if (!SWIG_IsOK(ecode4)) {
8098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8099 }
8100 arg4 = static_cast< int >(val4);
8101 ecode5 = SWIG_AsVal_int(obj4, &val5);
8102 if (!SWIG_IsOK(ecode5)) {
8103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8104 }
8105 arg5 = static_cast< int >(val5);
8106 {
8107 PyThreadState* __tstate = wxPyBeginAllowThreads();
8108 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 resultobj = SWIG_From_int(static_cast< int >(result));
8113 return resultobj;
8114 fail:
8115 return NULL;
8116 }
8117
8118
8119 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8120 PyObject *resultobj = 0;
8121 wxRegion *arg1 = (wxRegion *) 0 ;
8122 wxRect result;
8123 void *argp1 = 0 ;
8124 int res1 = 0 ;
8125 PyObject *swig_obj[1] ;
8126
8127 if (!args) SWIG_fail;
8128 swig_obj[0] = args;
8129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8130 if (!SWIG_IsOK(res1)) {
8131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8132 }
8133 arg1 = reinterpret_cast< wxRegion * >(argp1);
8134 {
8135 PyThreadState* __tstate = wxPyBeginAllowThreads();
8136 result = (arg1)->GetBox();
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8141 return resultobj;
8142 fail:
8143 return NULL;
8144 }
8145
8146
8147 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8148 PyObject *resultobj = 0;
8149 wxRegion *arg1 = (wxRegion *) 0 ;
8150 int arg2 ;
8151 int arg3 ;
8152 int arg4 ;
8153 int arg5 ;
8154 bool result;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 int val2 ;
8158 int ecode2 = 0 ;
8159 int val3 ;
8160 int ecode3 = 0 ;
8161 int val4 ;
8162 int ecode4 = 0 ;
8163 int val5 ;
8164 int ecode5 = 0 ;
8165 PyObject * obj0 = 0 ;
8166 PyObject * obj1 = 0 ;
8167 PyObject * obj2 = 0 ;
8168 PyObject * obj3 = 0 ;
8169 PyObject * obj4 = 0 ;
8170 char * kwnames[] = {
8171 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8172 };
8173
8174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8176 if (!SWIG_IsOK(res1)) {
8177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8178 }
8179 arg1 = reinterpret_cast< wxRegion * >(argp1);
8180 ecode2 = SWIG_AsVal_int(obj1, &val2);
8181 if (!SWIG_IsOK(ecode2)) {
8182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8183 }
8184 arg2 = static_cast< int >(val2);
8185 ecode3 = SWIG_AsVal_int(obj2, &val3);
8186 if (!SWIG_IsOK(ecode3)) {
8187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8188 }
8189 arg3 = static_cast< int >(val3);
8190 ecode4 = SWIG_AsVal_int(obj3, &val4);
8191 if (!SWIG_IsOK(ecode4)) {
8192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8193 }
8194 arg4 = static_cast< int >(val4);
8195 ecode5 = SWIG_AsVal_int(obj4, &val5);
8196 if (!SWIG_IsOK(ecode5)) {
8197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8198 }
8199 arg5 = static_cast< int >(val5);
8200 {
8201 PyThreadState* __tstate = wxPyBeginAllowThreads();
8202 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8203 wxPyEndAllowThreads(__tstate);
8204 if (PyErr_Occurred()) SWIG_fail;
8205 }
8206 {
8207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8208 }
8209 return resultobj;
8210 fail:
8211 return NULL;
8212 }
8213
8214
8215 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8216 PyObject *resultobj = 0;
8217 wxRegion *arg1 = (wxRegion *) 0 ;
8218 wxRect *arg2 = 0 ;
8219 bool result;
8220 void *argp1 = 0 ;
8221 int res1 = 0 ;
8222 wxRect temp2 ;
8223 PyObject * obj0 = 0 ;
8224 PyObject * obj1 = 0 ;
8225 char * kwnames[] = {
8226 (char *) "self",(char *) "rect", NULL
8227 };
8228
8229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8231 if (!SWIG_IsOK(res1)) {
8232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8233 }
8234 arg1 = reinterpret_cast< wxRegion * >(argp1);
8235 {
8236 arg2 = &temp2;
8237 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8238 }
8239 {
8240 PyThreadState* __tstate = wxPyBeginAllowThreads();
8241 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8242 wxPyEndAllowThreads(__tstate);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 {
8246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8247 }
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj = 0;
8256 wxRegion *arg1 = (wxRegion *) 0 ;
8257 wxRegion *arg2 = 0 ;
8258 bool result;
8259 void *argp1 = 0 ;
8260 int res1 = 0 ;
8261 void *argp2 = 0 ;
8262 int res2 = 0 ;
8263 PyObject * obj0 = 0 ;
8264 PyObject * obj1 = 0 ;
8265 char * kwnames[] = {
8266 (char *) "self",(char *) "region", NULL
8267 };
8268
8269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8271 if (!SWIG_IsOK(res1)) {
8272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8273 }
8274 arg1 = reinterpret_cast< wxRegion * >(argp1);
8275 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8276 if (!SWIG_IsOK(res2)) {
8277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8278 }
8279 if (!argp2) {
8280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8281 }
8282 arg2 = reinterpret_cast< wxRegion * >(argp2);
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
8285 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 {
8290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8291 }
8292 return resultobj;
8293 fail:
8294 return NULL;
8295 }
8296
8297
8298 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8299 PyObject *resultobj = 0;
8300 wxRegion *arg1 = (wxRegion *) 0 ;
8301 bool result;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 PyObject *swig_obj[1] ;
8305
8306 if (!args) SWIG_fail;
8307 swig_obj[0] = args;
8308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8311 }
8312 arg1 = reinterpret_cast< wxRegion * >(argp1);
8313 {
8314 PyThreadState* __tstate = wxPyBeginAllowThreads();
8315 result = (bool)(arg1)->IsEmpty();
8316 wxPyEndAllowThreads(__tstate);
8317 if (PyErr_Occurred()) SWIG_fail;
8318 }
8319 {
8320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8321 }
8322 return resultobj;
8323 fail:
8324 return NULL;
8325 }
8326
8327
8328 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj = 0;
8330 wxRegion *arg1 = (wxRegion *) 0 ;
8331 int arg2 ;
8332 int arg3 ;
8333 int arg4 ;
8334 int arg5 ;
8335 bool result;
8336 void *argp1 = 0 ;
8337 int res1 = 0 ;
8338 int val2 ;
8339 int ecode2 = 0 ;
8340 int val3 ;
8341 int ecode3 = 0 ;
8342 int val4 ;
8343 int ecode4 = 0 ;
8344 int val5 ;
8345 int ecode5 = 0 ;
8346 PyObject * obj0 = 0 ;
8347 PyObject * obj1 = 0 ;
8348 PyObject * obj2 = 0 ;
8349 PyObject * obj3 = 0 ;
8350 PyObject * obj4 = 0 ;
8351 char * kwnames[] = {
8352 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8353 };
8354
8355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8357 if (!SWIG_IsOK(res1)) {
8358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8359 }
8360 arg1 = reinterpret_cast< wxRegion * >(argp1);
8361 ecode2 = SWIG_AsVal_int(obj1, &val2);
8362 if (!SWIG_IsOK(ecode2)) {
8363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8364 }
8365 arg2 = static_cast< int >(val2);
8366 ecode3 = SWIG_AsVal_int(obj2, &val3);
8367 if (!SWIG_IsOK(ecode3)) {
8368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8369 }
8370 arg3 = static_cast< int >(val3);
8371 ecode4 = SWIG_AsVal_int(obj3, &val4);
8372 if (!SWIG_IsOK(ecode4)) {
8373 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8374 }
8375 arg4 = static_cast< int >(val4);
8376 ecode5 = SWIG_AsVal_int(obj4, &val5);
8377 if (!SWIG_IsOK(ecode5)) {
8378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8379 }
8380 arg5 = static_cast< int >(val5);
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 {
8388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8389 }
8390 return resultobj;
8391 fail:
8392 return NULL;
8393 }
8394
8395
8396 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8397 PyObject *resultobj = 0;
8398 wxRegion *arg1 = (wxRegion *) 0 ;
8399 wxRect *arg2 = 0 ;
8400 bool result;
8401 void *argp1 = 0 ;
8402 int res1 = 0 ;
8403 wxRect temp2 ;
8404 PyObject * obj0 = 0 ;
8405 PyObject * obj1 = 0 ;
8406 char * kwnames[] = {
8407 (char *) "self",(char *) "rect", NULL
8408 };
8409
8410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8412 if (!SWIG_IsOK(res1)) {
8413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8414 }
8415 arg1 = reinterpret_cast< wxRegion * >(argp1);
8416 {
8417 arg2 = &temp2;
8418 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8419 }
8420 {
8421 PyThreadState* __tstate = wxPyBeginAllowThreads();
8422 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8423 wxPyEndAllowThreads(__tstate);
8424 if (PyErr_Occurred()) SWIG_fail;
8425 }
8426 {
8427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8428 }
8429 return resultobj;
8430 fail:
8431 return NULL;
8432 }
8433
8434
8435 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj = 0;
8437 wxRegion *arg1 = (wxRegion *) 0 ;
8438 wxRegion *arg2 = 0 ;
8439 bool result;
8440 void *argp1 = 0 ;
8441 int res1 = 0 ;
8442 void *argp2 = 0 ;
8443 int res2 = 0 ;
8444 PyObject * obj0 = 0 ;
8445 PyObject * obj1 = 0 ;
8446 char * kwnames[] = {
8447 (char *) "self",(char *) "region", NULL
8448 };
8449
8450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8452 if (!SWIG_IsOK(res1)) {
8453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8454 }
8455 arg1 = reinterpret_cast< wxRegion * >(argp1);
8456 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8457 if (!SWIG_IsOK(res2)) {
8458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8459 }
8460 if (!argp2) {
8461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8462 }
8463 arg2 = reinterpret_cast< wxRegion * >(argp2);
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
8471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8472 }
8473 return resultobj;
8474 fail:
8475 return NULL;
8476 }
8477
8478
8479 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8480 PyObject *resultobj = 0;
8481 wxRegion *arg1 = (wxRegion *) 0 ;
8482 int arg2 ;
8483 int arg3 ;
8484 int arg4 ;
8485 int arg5 ;
8486 bool result;
8487 void *argp1 = 0 ;
8488 int res1 = 0 ;
8489 int val2 ;
8490 int ecode2 = 0 ;
8491 int val3 ;
8492 int ecode3 = 0 ;
8493 int val4 ;
8494 int ecode4 = 0 ;
8495 int val5 ;
8496 int ecode5 = 0 ;
8497 PyObject * obj0 = 0 ;
8498 PyObject * obj1 = 0 ;
8499 PyObject * obj2 = 0 ;
8500 PyObject * obj3 = 0 ;
8501 PyObject * obj4 = 0 ;
8502 char * kwnames[] = {
8503 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8504 };
8505
8506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8508 if (!SWIG_IsOK(res1)) {
8509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8510 }
8511 arg1 = reinterpret_cast< wxRegion * >(argp1);
8512 ecode2 = SWIG_AsVal_int(obj1, &val2);
8513 if (!SWIG_IsOK(ecode2)) {
8514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8515 }
8516 arg2 = static_cast< int >(val2);
8517 ecode3 = SWIG_AsVal_int(obj2, &val3);
8518 if (!SWIG_IsOK(ecode3)) {
8519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8520 }
8521 arg3 = static_cast< int >(val3);
8522 ecode4 = SWIG_AsVal_int(obj3, &val4);
8523 if (!SWIG_IsOK(ecode4)) {
8524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8525 }
8526 arg4 = static_cast< int >(val4);
8527 ecode5 = SWIG_AsVal_int(obj4, &val5);
8528 if (!SWIG_IsOK(ecode5)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8530 }
8531 arg5 = static_cast< int >(val5);
8532 {
8533 PyThreadState* __tstate = wxPyBeginAllowThreads();
8534 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8535 wxPyEndAllowThreads(__tstate);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 }
8538 {
8539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8540 }
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj = 0;
8549 wxRegion *arg1 = (wxRegion *) 0 ;
8550 wxRect *arg2 = 0 ;
8551 bool result;
8552 void *argp1 = 0 ;
8553 int res1 = 0 ;
8554 wxRect temp2 ;
8555 PyObject * obj0 = 0 ;
8556 PyObject * obj1 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "rect", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8563 if (!SWIG_IsOK(res1)) {
8564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8565 }
8566 arg1 = reinterpret_cast< wxRegion * >(argp1);
8567 {
8568 arg2 = &temp2;
8569 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8570 }
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 {
8578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8579 }
8580 return resultobj;
8581 fail:
8582 return NULL;
8583 }
8584
8585
8586 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8587 PyObject *resultobj = 0;
8588 wxRegion *arg1 = (wxRegion *) 0 ;
8589 wxRegion *arg2 = 0 ;
8590 bool result;
8591 void *argp1 = 0 ;
8592 int res1 = 0 ;
8593 void *argp2 = 0 ;
8594 int res2 = 0 ;
8595 PyObject * obj0 = 0 ;
8596 PyObject * obj1 = 0 ;
8597 char * kwnames[] = {
8598 (char *) "self",(char *) "region", NULL
8599 };
8600
8601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8603 if (!SWIG_IsOK(res1)) {
8604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8605 }
8606 arg1 = reinterpret_cast< wxRegion * >(argp1);
8607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8608 if (!SWIG_IsOK(res2)) {
8609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8610 }
8611 if (!argp2) {
8612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8613 }
8614 arg2 = reinterpret_cast< wxRegion * >(argp2);
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8618 wxPyEndAllowThreads(__tstate);
8619 if (PyErr_Occurred()) SWIG_fail;
8620 }
8621 {
8622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8623 }
8624 return resultobj;
8625 fail:
8626 return NULL;
8627 }
8628
8629
8630 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj = 0;
8632 wxRegion *arg1 = (wxRegion *) 0 ;
8633 int arg2 ;
8634 int arg3 ;
8635 int arg4 ;
8636 int arg5 ;
8637 bool result;
8638 void *argp1 = 0 ;
8639 int res1 = 0 ;
8640 int val2 ;
8641 int ecode2 = 0 ;
8642 int val3 ;
8643 int ecode3 = 0 ;
8644 int val4 ;
8645 int ecode4 = 0 ;
8646 int val5 ;
8647 int ecode5 = 0 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 PyObject * obj2 = 0 ;
8651 PyObject * obj3 = 0 ;
8652 PyObject * obj4 = 0 ;
8653 char * kwnames[] = {
8654 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8655 };
8656
8657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8661 }
8662 arg1 = reinterpret_cast< wxRegion * >(argp1);
8663 ecode2 = SWIG_AsVal_int(obj1, &val2);
8664 if (!SWIG_IsOK(ecode2)) {
8665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8666 }
8667 arg2 = static_cast< int >(val2);
8668 ecode3 = SWIG_AsVal_int(obj2, &val3);
8669 if (!SWIG_IsOK(ecode3)) {
8670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8671 }
8672 arg3 = static_cast< int >(val3);
8673 ecode4 = SWIG_AsVal_int(obj3, &val4);
8674 if (!SWIG_IsOK(ecode4)) {
8675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8676 }
8677 arg4 = static_cast< int >(val4);
8678 ecode5 = SWIG_AsVal_int(obj4, &val5);
8679 if (!SWIG_IsOK(ecode5)) {
8680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8681 }
8682 arg5 = static_cast< int >(val5);
8683 {
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8686 wxPyEndAllowThreads(__tstate);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 {
8690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8691 }
8692 return resultobj;
8693 fail:
8694 return NULL;
8695 }
8696
8697
8698 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8699 PyObject *resultobj = 0;
8700 wxRegion *arg1 = (wxRegion *) 0 ;
8701 wxRect *arg2 = 0 ;
8702 bool result;
8703 void *argp1 = 0 ;
8704 int res1 = 0 ;
8705 wxRect temp2 ;
8706 PyObject * obj0 = 0 ;
8707 PyObject * obj1 = 0 ;
8708 char * kwnames[] = {
8709 (char *) "self",(char *) "rect", NULL
8710 };
8711
8712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8714 if (!SWIG_IsOK(res1)) {
8715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8716 }
8717 arg1 = reinterpret_cast< wxRegion * >(argp1);
8718 {
8719 arg2 = &temp2;
8720 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8721 }
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 {
8729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8730 }
8731 return resultobj;
8732 fail:
8733 return NULL;
8734 }
8735
8736
8737 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj = 0;
8739 wxRegion *arg1 = (wxRegion *) 0 ;
8740 wxRegion *arg2 = 0 ;
8741 bool result;
8742 void *argp1 = 0 ;
8743 int res1 = 0 ;
8744 void *argp2 = 0 ;
8745 int res2 = 0 ;
8746 PyObject * obj0 = 0 ;
8747 PyObject * obj1 = 0 ;
8748 char * kwnames[] = {
8749 (char *) "self",(char *) "region", NULL
8750 };
8751
8752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8754 if (!SWIG_IsOK(res1)) {
8755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8756 }
8757 arg1 = reinterpret_cast< wxRegion * >(argp1);
8758 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8759 if (!SWIG_IsOK(res2)) {
8760 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8761 }
8762 if (!argp2) {
8763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8764 }
8765 arg2 = reinterpret_cast< wxRegion * >(argp2);
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 {
8773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8774 }
8775 return resultobj;
8776 fail:
8777 return NULL;
8778 }
8779
8780
8781 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *resultobj = 0;
8783 wxRegion *arg1 = (wxRegion *) 0 ;
8784 SwigValueWrapper<wxBitmap > result;
8785 void *argp1 = 0 ;
8786 int res1 = 0 ;
8787 PyObject *swig_obj[1] ;
8788
8789 if (!args) SWIG_fail;
8790 swig_obj[0] = args;
8791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8792 if (!SWIG_IsOK(res1)) {
8793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8794 }
8795 arg1 = reinterpret_cast< wxRegion * >(argp1);
8796 {
8797 PyThreadState* __tstate = wxPyBeginAllowThreads();
8798 result = (arg1)->ConvertToBitmap();
8799 wxPyEndAllowThreads(__tstate);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8803 return resultobj;
8804 fail:
8805 return NULL;
8806 }
8807
8808
8809 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8810 PyObject *resultobj = 0;
8811 wxRegion *arg1 = (wxRegion *) 0 ;
8812 wxBitmap *arg2 = 0 ;
8813 bool result;
8814 void *argp1 = 0 ;
8815 int res1 = 0 ;
8816 void *argp2 = 0 ;
8817 int res2 = 0 ;
8818 PyObject * obj0 = 0 ;
8819 PyObject * obj1 = 0 ;
8820 char * kwnames[] = {
8821 (char *) "self",(char *) "bmp", NULL
8822 };
8823
8824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8826 if (!SWIG_IsOK(res1)) {
8827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8828 }
8829 arg1 = reinterpret_cast< wxRegion * >(argp1);
8830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8831 if (!SWIG_IsOK(res2)) {
8832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8833 }
8834 if (!argp2) {
8835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8836 }
8837 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8838 {
8839 PyThreadState* __tstate = wxPyBeginAllowThreads();
8840 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 {
8845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8846 }
8847 return resultobj;
8848 fail:
8849 return NULL;
8850 }
8851
8852
8853 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8854 PyObject *resultobj = 0;
8855 wxRegion *arg1 = (wxRegion *) 0 ;
8856 wxBitmap *arg2 = 0 ;
8857 wxColour *arg3 = 0 ;
8858 int arg4 = (int) 0 ;
8859 bool result;
8860 void *argp1 = 0 ;
8861 int res1 = 0 ;
8862 void *argp2 = 0 ;
8863 int res2 = 0 ;
8864 wxColour temp3 ;
8865 int val4 ;
8866 int ecode4 = 0 ;
8867 PyObject * obj0 = 0 ;
8868 PyObject * obj1 = 0 ;
8869 PyObject * obj2 = 0 ;
8870 PyObject * obj3 = 0 ;
8871 char * kwnames[] = {
8872 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8873 };
8874
8875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8877 if (!SWIG_IsOK(res1)) {
8878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8879 }
8880 arg1 = reinterpret_cast< wxRegion * >(argp1);
8881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8882 if (!SWIG_IsOK(res2)) {
8883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8884 }
8885 if (!argp2) {
8886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8887 }
8888 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8889 {
8890 arg3 = &temp3;
8891 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8892 }
8893 if (obj3) {
8894 ecode4 = SWIG_AsVal_int(obj3, &val4);
8895 if (!SWIG_IsOK(ecode4)) {
8896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8897 }
8898 arg4 = static_cast< int >(val4);
8899 }
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 {
8907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8908 }
8909 return resultobj;
8910 fail:
8911 return NULL;
8912 }
8913
8914
8915 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8916 PyObject *obj;
8917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8918 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8919 return SWIG_Py_Void();
8920 }
8921
8922 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8923 return SWIG_Python_InitShadowInstance(args);
8924 }
8925
8926 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8927 PyObject *resultobj = 0;
8928 wxRegion *arg1 = 0 ;
8929 wxRegionIterator *result = 0 ;
8930 void *argp1 = 0 ;
8931 int res1 = 0 ;
8932 PyObject * obj0 = 0 ;
8933 char * kwnames[] = {
8934 (char *) "region", NULL
8935 };
8936
8937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8938 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8939 if (!SWIG_IsOK(res1)) {
8940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8941 }
8942 if (!argp1) {
8943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8944 }
8945 arg1 = reinterpret_cast< wxRegion * >(argp1);
8946 {
8947 if (!wxPyCheckForApp()) SWIG_fail;
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8961 PyObject *resultobj = 0;
8962 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 PyObject *swig_obj[1] ;
8966
8967 if (!args) SWIG_fail;
8968 swig_obj[0] = args;
8969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
8970 if (!SWIG_IsOK(res1)) {
8971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
8972 }
8973 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
8974 {
8975 PyThreadState* __tstate = wxPyBeginAllowThreads();
8976 delete arg1;
8977
8978 wxPyEndAllowThreads(__tstate);
8979 if (PyErr_Occurred()) SWIG_fail;
8980 }
8981 resultobj = SWIG_Py_Void();
8982 return resultobj;
8983 fail:
8984 return NULL;
8985 }
8986
8987
8988 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8989 PyObject *resultobj = 0;
8990 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8991 int result;
8992 void *argp1 = 0 ;
8993 int res1 = 0 ;
8994 PyObject *swig_obj[1] ;
8995
8996 if (!args) SWIG_fail;
8997 swig_obj[0] = args;
8998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
8999 if (!SWIG_IsOK(res1)) {
9000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9001 }
9002 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9003 {
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 result = (int)(arg1)->GetX();
9006 wxPyEndAllowThreads(__tstate);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 }
9009 resultobj = SWIG_From_int(static_cast< int >(result));
9010 return resultobj;
9011 fail:
9012 return NULL;
9013 }
9014
9015
9016 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9017 PyObject *resultobj = 0;
9018 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9019 int result;
9020 void *argp1 = 0 ;
9021 int res1 = 0 ;
9022 PyObject *swig_obj[1] ;
9023
9024 if (!args) SWIG_fail;
9025 swig_obj[0] = args;
9026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9027 if (!SWIG_IsOK(res1)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9029 }
9030 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9031 {
9032 PyThreadState* __tstate = wxPyBeginAllowThreads();
9033 result = (int)(arg1)->GetY();
9034 wxPyEndAllowThreads(__tstate);
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 resultobj = SWIG_From_int(static_cast< int >(result));
9038 return resultobj;
9039 fail:
9040 return NULL;
9041 }
9042
9043
9044 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9045 PyObject *resultobj = 0;
9046 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9047 int result;
9048 void *argp1 = 0 ;
9049 int res1 = 0 ;
9050 PyObject *swig_obj[1] ;
9051
9052 if (!args) SWIG_fail;
9053 swig_obj[0] = args;
9054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9055 if (!SWIG_IsOK(res1)) {
9056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9057 }
9058 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9059 {
9060 PyThreadState* __tstate = wxPyBeginAllowThreads();
9061 result = (int)(arg1)->GetW();
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 resultobj = SWIG_From_int(static_cast< int >(result));
9066 return resultobj;
9067 fail:
9068 return NULL;
9069 }
9070
9071
9072 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9073 PyObject *resultobj = 0;
9074 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9075 int result;
9076 void *argp1 = 0 ;
9077 int res1 = 0 ;
9078 PyObject *swig_obj[1] ;
9079
9080 if (!args) SWIG_fail;
9081 swig_obj[0] = args;
9082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9083 if (!SWIG_IsOK(res1)) {
9084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9085 }
9086 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = (int)(arg1)->GetWidth();
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_From_int(static_cast< int >(result));
9094 return resultobj;
9095 fail:
9096 return NULL;
9097 }
9098
9099
9100 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9101 PyObject *resultobj = 0;
9102 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9103 int result;
9104 void *argp1 = 0 ;
9105 int res1 = 0 ;
9106 PyObject *swig_obj[1] ;
9107
9108 if (!args) SWIG_fail;
9109 swig_obj[0] = args;
9110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9111 if (!SWIG_IsOK(res1)) {
9112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9113 }
9114 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (int)(arg1)->GetH();
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_From_int(static_cast< int >(result));
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9129 PyObject *resultobj = 0;
9130 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9131 int result;
9132 void *argp1 = 0 ;
9133 int res1 = 0 ;
9134 PyObject *swig_obj[1] ;
9135
9136 if (!args) SWIG_fail;
9137 swig_obj[0] = args;
9138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9139 if (!SWIG_IsOK(res1)) {
9140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9141 }
9142 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 result = (int)(arg1)->GetHeight();
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 resultobj = SWIG_From_int(static_cast< int >(result));
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9159 wxRect result;
9160 void *argp1 = 0 ;
9161 int res1 = 0 ;
9162 PyObject *swig_obj[1] ;
9163
9164 if (!args) SWIG_fail;
9165 swig_obj[0] = args;
9166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9169 }
9170 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (arg1)->GetRect();
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9185 PyObject *resultobj = 0;
9186 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9187 bool result;
9188 void *argp1 = 0 ;
9189 int res1 = 0 ;
9190 PyObject *swig_obj[1] ;
9191
9192 if (!args) SWIG_fail;
9193 swig_obj[0] = args;
9194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9195 if (!SWIG_IsOK(res1)) {
9196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9197 }
9198 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (bool)(arg1)->HaveRects();
9202 wxPyEndAllowThreads(__tstate);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 {
9206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9207 }
9208 return resultobj;
9209 fail:
9210 return NULL;
9211 }
9212
9213
9214 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9215 PyObject *resultobj = 0;
9216 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 PyObject *swig_obj[1] ;
9220
9221 if (!args) SWIG_fail;
9222 swig_obj[0] = args;
9223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9226 }
9227 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 (arg1)->Reset();
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 resultobj = SWIG_Py_Void();
9235 return resultobj;
9236 fail:
9237 return NULL;
9238 }
9239
9240
9241 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9242 PyObject *resultobj = 0;
9243 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9244 void *argp1 = 0 ;
9245 int res1 = 0 ;
9246 PyObject *swig_obj[1] ;
9247
9248 if (!args) SWIG_fail;
9249 swig_obj[0] = args;
9250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9251 if (!SWIG_IsOK(res1)) {
9252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9253 }
9254 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 wxRegionIterator_Next(arg1);
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 resultobj = SWIG_Py_Void();
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9269 PyObject *resultobj = 0;
9270 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9271 bool result;
9272 void *argp1 = 0 ;
9273 int res1 = 0 ;
9274 PyObject *swig_obj[1] ;
9275
9276 if (!args) SWIG_fail;
9277 swig_obj[0] = args;
9278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9279 if (!SWIG_IsOK(res1)) {
9280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9281 }
9282 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (bool)wxRegionIterator___nonzero__(arg1);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 {
9290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9291 }
9292 return resultobj;
9293 fail:
9294 return NULL;
9295 }
9296
9297
9298 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9299 PyObject *obj;
9300 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9301 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9302 return SWIG_Py_Void();
9303 }
9304
9305 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9306 return SWIG_Python_InitShadowInstance(args);
9307 }
9308
9309 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9310 PyObject *resultobj = 0;
9311 wxNativeFontInfo *result = 0 ;
9312
9313 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9321 return resultobj;
9322 fail:
9323 return NULL;
9324 }
9325
9326
9327 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9328 PyObject *resultobj = 0;
9329 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 PyObject *swig_obj[1] ;
9333
9334 if (!args) SWIG_fail;
9335 swig_obj[0] = args;
9336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9339 }
9340 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 delete arg1;
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) SWIG_fail;
9347 }
9348 resultobj = SWIG_Py_Void();
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9356 PyObject *resultobj = 0;
9357 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9358 void *argp1 = 0 ;
9359 int res1 = 0 ;
9360 PyObject *swig_obj[1] ;
9361
9362 if (!args) SWIG_fail;
9363 swig_obj[0] = args;
9364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9365 if (!SWIG_IsOK(res1)) {
9366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9367 }
9368 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 (arg1)->Init();
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_Py_Void();
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj = 0;
9384 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9385 wxFont *arg2 = 0 ;
9386 void *argp1 = 0 ;
9387 int res1 = 0 ;
9388 void *argp2 = 0 ;
9389 int res2 = 0 ;
9390 PyObject * obj0 = 0 ;
9391 PyObject * obj1 = 0 ;
9392 char * kwnames[] = {
9393 (char *) "self",(char *) "font", NULL
9394 };
9395
9396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9398 if (!SWIG_IsOK(res1)) {
9399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9400 }
9401 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9403 if (!SWIG_IsOK(res2)) {
9404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9405 }
9406 if (!argp2) {
9407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9408 }
9409 arg2 = reinterpret_cast< wxFont * >(argp2);
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 (arg1)->InitFromFont((wxFont const &)*arg2);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_Py_Void();
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9424 PyObject *resultobj = 0;
9425 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9426 int result;
9427 void *argp1 = 0 ;
9428 int res1 = 0 ;
9429 PyObject *swig_obj[1] ;
9430
9431 if (!args) SWIG_fail;
9432 swig_obj[0] = args;
9433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9436 }
9437 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9441 wxPyEndAllowThreads(__tstate);
9442 if (PyErr_Occurred()) SWIG_fail;
9443 }
9444 resultobj = SWIG_From_int(static_cast< int >(result));
9445 return resultobj;
9446 fail:
9447 return NULL;
9448 }
9449
9450
9451 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9452 PyObject *resultobj = 0;
9453 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9454 wxFontStyle result;
9455 void *argp1 = 0 ;
9456 int res1 = 0 ;
9457 PyObject *swig_obj[1] ;
9458
9459 if (!args) SWIG_fail;
9460 swig_obj[0] = args;
9461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9462 if (!SWIG_IsOK(res1)) {
9463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9464 }
9465 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 resultobj = SWIG_From_int(static_cast< int >(result));
9473 return resultobj;
9474 fail:
9475 return NULL;
9476 }
9477
9478
9479 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9480 PyObject *resultobj = 0;
9481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9482 wxFontWeight result;
9483 void *argp1 = 0 ;
9484 int res1 = 0 ;
9485 PyObject *swig_obj[1] ;
9486
9487 if (!args) SWIG_fail;
9488 swig_obj[0] = args;
9489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9490 if (!SWIG_IsOK(res1)) {
9491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9492 }
9493 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9494 {
9495 PyThreadState* __tstate = wxPyBeginAllowThreads();
9496 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 resultobj = SWIG_From_int(static_cast< int >(result));
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9508 PyObject *resultobj = 0;
9509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9510 bool result;
9511 void *argp1 = 0 ;
9512 int res1 = 0 ;
9513 PyObject *swig_obj[1] ;
9514
9515 if (!args) SWIG_fail;
9516 swig_obj[0] = args;
9517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9518 if (!SWIG_IsOK(res1)) {
9519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9520 }
9521 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9522 {
9523 PyThreadState* __tstate = wxPyBeginAllowThreads();
9524 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 {
9529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9530 }
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9538 PyObject *resultobj = 0;
9539 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9540 wxString result;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 PyObject *swig_obj[1] ;
9544
9545 if (!args) SWIG_fail;
9546 swig_obj[0] = args;
9547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9548 if (!SWIG_IsOK(res1)) {
9549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9550 }
9551 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9552 {
9553 PyThreadState* __tstate = wxPyBeginAllowThreads();
9554 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9555 wxPyEndAllowThreads(__tstate);
9556 if (PyErr_Occurred()) SWIG_fail;
9557 }
9558 {
9559 #if wxUSE_UNICODE
9560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9561 #else
9562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9563 #endif
9564 }
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9572 PyObject *resultobj = 0;
9573 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9574 wxFontFamily result;
9575 void *argp1 = 0 ;
9576 int res1 = 0 ;
9577 PyObject *swig_obj[1] ;
9578
9579 if (!args) SWIG_fail;
9580 swig_obj[0] = args;
9581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9582 if (!SWIG_IsOK(res1)) {
9583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9584 }
9585 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9586 {
9587 PyThreadState* __tstate = wxPyBeginAllowThreads();
9588 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) SWIG_fail;
9591 }
9592 resultobj = SWIG_From_int(static_cast< int >(result));
9593 return resultobj;
9594 fail:
9595 return NULL;
9596 }
9597
9598
9599 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9600 PyObject *resultobj = 0;
9601 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9602 wxFontEncoding result;
9603 void *argp1 = 0 ;
9604 int res1 = 0 ;
9605 PyObject *swig_obj[1] ;
9606
9607 if (!args) SWIG_fail;
9608 swig_obj[0] = args;
9609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9610 if (!SWIG_IsOK(res1)) {
9611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9612 }
9613 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9617 wxPyEndAllowThreads(__tstate);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 resultobj = SWIG_From_int(static_cast< int >(result));
9621 return resultobj;
9622 fail:
9623 return NULL;
9624 }
9625
9626
9627 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9628 PyObject *resultobj = 0;
9629 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9630 int arg2 ;
9631 void *argp1 = 0 ;
9632 int res1 = 0 ;
9633 int val2 ;
9634 int ecode2 = 0 ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "self",(char *) "pointsize", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9645 }
9646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9647 ecode2 = SWIG_AsVal_int(obj1, &val2);
9648 if (!SWIG_IsOK(ecode2)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9650 }
9651 arg2 = static_cast< int >(val2);
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->SetPointSize(arg2);
9655 wxPyEndAllowThreads(__tstate);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 resultobj = SWIG_Py_Void();
9659 return resultobj;
9660 fail:
9661 return NULL;
9662 }
9663
9664
9665 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj = 0;
9667 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9668 wxFontStyle arg2 ;
9669 void *argp1 = 0 ;
9670 int res1 = 0 ;
9671 int val2 ;
9672 int ecode2 = 0 ;
9673 PyObject * obj0 = 0 ;
9674 PyObject * obj1 = 0 ;
9675 char * kwnames[] = {
9676 (char *) "self",(char *) "style", NULL
9677 };
9678
9679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9681 if (!SWIG_IsOK(res1)) {
9682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9683 }
9684 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9685 ecode2 = SWIG_AsVal_int(obj1, &val2);
9686 if (!SWIG_IsOK(ecode2)) {
9687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9688 }
9689 arg2 = static_cast< wxFontStyle >(val2);
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 (arg1)->SetStyle(arg2);
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 resultobj = SWIG_Py_Void();
9697 return resultobj;
9698 fail:
9699 return NULL;
9700 }
9701
9702
9703 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj = 0;
9705 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9706 wxFontWeight arg2 ;
9707 void *argp1 = 0 ;
9708 int res1 = 0 ;
9709 int val2 ;
9710 int ecode2 = 0 ;
9711 PyObject * obj0 = 0 ;
9712 PyObject * obj1 = 0 ;
9713 char * kwnames[] = {
9714 (char *) "self",(char *) "weight", NULL
9715 };
9716
9717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9719 if (!SWIG_IsOK(res1)) {
9720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9721 }
9722 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9723 ecode2 = SWIG_AsVal_int(obj1, &val2);
9724 if (!SWIG_IsOK(ecode2)) {
9725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9726 }
9727 arg2 = static_cast< wxFontWeight >(val2);
9728 {
9729 PyThreadState* __tstate = wxPyBeginAllowThreads();
9730 (arg1)->SetWeight(arg2);
9731 wxPyEndAllowThreads(__tstate);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 resultobj = SWIG_Py_Void();
9735 return resultobj;
9736 fail:
9737 return NULL;
9738 }
9739
9740
9741 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9742 PyObject *resultobj = 0;
9743 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9744 bool arg2 ;
9745 void *argp1 = 0 ;
9746 int res1 = 0 ;
9747 bool val2 ;
9748 int ecode2 = 0 ;
9749 PyObject * obj0 = 0 ;
9750 PyObject * obj1 = 0 ;
9751 char * kwnames[] = {
9752 (char *) "self",(char *) "underlined", NULL
9753 };
9754
9755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9759 }
9760 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9761 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9762 if (!SWIG_IsOK(ecode2)) {
9763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9764 }
9765 arg2 = static_cast< bool >(val2);
9766 {
9767 PyThreadState* __tstate = wxPyBeginAllowThreads();
9768 (arg1)->SetUnderlined(arg2);
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 resultobj = SWIG_Py_Void();
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj = 0;
9781 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9782 wxString arg2 ;
9783 void *argp1 = 0 ;
9784 int res1 = 0 ;
9785 PyObject * obj0 = 0 ;
9786 PyObject * obj1 = 0 ;
9787 char * kwnames[] = {
9788 (char *) "self",(char *) "facename", NULL
9789 };
9790
9791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9793 if (!SWIG_IsOK(res1)) {
9794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9795 }
9796 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9797 {
9798 wxString* sptr = wxString_in_helper(obj1);
9799 if (sptr == NULL) SWIG_fail;
9800 arg2 = *sptr;
9801 delete sptr;
9802 }
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 (arg1)->SetFaceName(arg2);
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_Py_Void();
9810 return resultobj;
9811 fail:
9812 return NULL;
9813 }
9814
9815
9816 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9817 PyObject *resultobj = 0;
9818 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9819 wxFontFamily arg2 ;
9820 void *argp1 = 0 ;
9821 int res1 = 0 ;
9822 int val2 ;
9823 int ecode2 = 0 ;
9824 PyObject * obj0 = 0 ;
9825 PyObject * obj1 = 0 ;
9826 char * kwnames[] = {
9827 (char *) "self",(char *) "family", NULL
9828 };
9829
9830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9832 if (!SWIG_IsOK(res1)) {
9833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9834 }
9835 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9836 ecode2 = SWIG_AsVal_int(obj1, &val2);
9837 if (!SWIG_IsOK(ecode2)) {
9838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9839 }
9840 arg2 = static_cast< wxFontFamily >(val2);
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 (arg1)->SetFamily(arg2);
9844 wxPyEndAllowThreads(__tstate);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 }
9847 resultobj = SWIG_Py_Void();
9848 return resultobj;
9849 fail:
9850 return NULL;
9851 }
9852
9853
9854 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9855 PyObject *resultobj = 0;
9856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9857 wxFontEncoding arg2 ;
9858 void *argp1 = 0 ;
9859 int res1 = 0 ;
9860 int val2 ;
9861 int ecode2 = 0 ;
9862 PyObject * obj0 = 0 ;
9863 PyObject * obj1 = 0 ;
9864 char * kwnames[] = {
9865 (char *) "self",(char *) "encoding", NULL
9866 };
9867
9868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9870 if (!SWIG_IsOK(res1)) {
9871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9872 }
9873 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9874 ecode2 = SWIG_AsVal_int(obj1, &val2);
9875 if (!SWIG_IsOK(ecode2)) {
9876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9877 }
9878 arg2 = static_cast< wxFontEncoding >(val2);
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 (arg1)->SetEncoding(arg2);
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 resultobj = SWIG_Py_Void();
9886 return resultobj;
9887 fail:
9888 return NULL;
9889 }
9890
9891
9892 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9893 PyObject *resultobj = 0;
9894 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9895 wxString *arg2 = 0 ;
9896 bool result;
9897 void *argp1 = 0 ;
9898 int res1 = 0 ;
9899 bool temp2 = false ;
9900 PyObject * obj0 = 0 ;
9901 PyObject * obj1 = 0 ;
9902 char * kwnames[] = {
9903 (char *) "self",(char *) "s", NULL
9904 };
9905
9906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9908 if (!SWIG_IsOK(res1)) {
9909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9910 }
9911 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9912 {
9913 arg2 = wxString_in_helper(obj1);
9914 if (arg2 == NULL) SWIG_fail;
9915 temp2 = true;
9916 }
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 {
9924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9925 }
9926 {
9927 if (temp2)
9928 delete arg2;
9929 }
9930 return resultobj;
9931 fail:
9932 {
9933 if (temp2)
9934 delete arg2;
9935 }
9936 return NULL;
9937 }
9938
9939
9940 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9941 PyObject *resultobj = 0;
9942 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9943 wxString result;
9944 void *argp1 = 0 ;
9945 int res1 = 0 ;
9946 PyObject *swig_obj[1] ;
9947
9948 if (!args) SWIG_fail;
9949 swig_obj[0] = args;
9950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9951 if (!SWIG_IsOK(res1)) {
9952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9953 }
9954 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = ((wxNativeFontInfo const *)arg1)->ToString();
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 {
9962 #if wxUSE_UNICODE
9963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9964 #else
9965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9966 #endif
9967 }
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9975 PyObject *resultobj = 0;
9976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9977 wxString result;
9978 void *argp1 = 0 ;
9979 int res1 = 0 ;
9980 PyObject *swig_obj[1] ;
9981
9982 if (!args) SWIG_fail;
9983 swig_obj[0] = args;
9984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9985 if (!SWIG_IsOK(res1)) {
9986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9987 }
9988 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = wxNativeFontInfo___str__(arg1);
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
9995 {
9996 #if wxUSE_UNICODE
9997 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9998 #else
9999 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10000 #endif
10001 }
10002 return resultobj;
10003 fail:
10004 return NULL;
10005 }
10006
10007
10008 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj = 0;
10010 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10011 wxString *arg2 = 0 ;
10012 bool result;
10013 void *argp1 = 0 ;
10014 int res1 = 0 ;
10015 bool temp2 = false ;
10016 PyObject * obj0 = 0 ;
10017 PyObject * obj1 = 0 ;
10018 char * kwnames[] = {
10019 (char *) "self",(char *) "s", NULL
10020 };
10021
10022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10024 if (!SWIG_IsOK(res1)) {
10025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10026 }
10027 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10028 {
10029 arg2 = wxString_in_helper(obj1);
10030 if (arg2 == NULL) SWIG_fail;
10031 temp2 = true;
10032 }
10033 {
10034 PyThreadState* __tstate = wxPyBeginAllowThreads();
10035 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10036 wxPyEndAllowThreads(__tstate);
10037 if (PyErr_Occurred()) SWIG_fail;
10038 }
10039 {
10040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10041 }
10042 {
10043 if (temp2)
10044 delete arg2;
10045 }
10046 return resultobj;
10047 fail:
10048 {
10049 if (temp2)
10050 delete arg2;
10051 }
10052 return NULL;
10053 }
10054
10055
10056 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10057 PyObject *resultobj = 0;
10058 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10059 wxString result;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 PyObject *swig_obj[1] ;
10063
10064 if (!args) SWIG_fail;
10065 swig_obj[0] = args;
10066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10067 if (!SWIG_IsOK(res1)) {
10068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10069 }
10070 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 {
10078 #if wxUSE_UNICODE
10079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10080 #else
10081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10082 #endif
10083 }
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10091 PyObject *obj;
10092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10093 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10094 return SWIG_Py_Void();
10095 }
10096
10097 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10098 return SWIG_Python_InitShadowInstance(args);
10099 }
10100
10101 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10102 PyObject *resultobj = 0;
10103 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10104 wxString *arg2 = (wxString *) 0 ;
10105 void *argp1 = 0 ;
10106 int res1 = 0 ;
10107 bool temp2 = false ;
10108 PyObject *swig_obj[2] ;
10109
10110 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10112 if (!SWIG_IsOK(res1)) {
10113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10114 }
10115 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10116 {
10117 arg2 = wxString_in_helper(swig_obj[1]);
10118 if (arg2 == NULL) SWIG_fail;
10119 temp2 = true;
10120 }
10121 if (arg1) (arg1)->facename = *arg2;
10122
10123 resultobj = SWIG_Py_Void();
10124 {
10125 if (temp2)
10126 delete arg2;
10127 }
10128 return resultobj;
10129 fail:
10130 {
10131 if (temp2)
10132 delete arg2;
10133 }
10134 return NULL;
10135 }
10136
10137
10138 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10139 PyObject *resultobj = 0;
10140 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10141 wxString *result = 0 ;
10142 void *argp1 = 0 ;
10143 int res1 = 0 ;
10144 PyObject *swig_obj[1] ;
10145
10146 if (!args) SWIG_fail;
10147 swig_obj[0] = args;
10148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10149 if (!SWIG_IsOK(res1)) {
10150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10151 }
10152 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10153 result = (wxString *)& ((arg1)->facename);
10154 {
10155 #if wxUSE_UNICODE
10156 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10157 #else
10158 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10159 #endif
10160 }
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10168 PyObject *resultobj = 0;
10169 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10170 wxFontEncoding arg2 ;
10171 void *argp1 = 0 ;
10172 int res1 = 0 ;
10173 int val2 ;
10174 int ecode2 = 0 ;
10175 PyObject *swig_obj[2] ;
10176
10177 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10181 }
10182 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10183 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10184 if (!SWIG_IsOK(ecode2)) {
10185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10186 }
10187 arg2 = static_cast< wxFontEncoding >(val2);
10188 if (arg1) (arg1)->encoding = arg2;
10189
10190 resultobj = SWIG_Py_Void();
10191 return resultobj;
10192 fail:
10193 return NULL;
10194 }
10195
10196
10197 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10198 PyObject *resultobj = 0;
10199 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10200 wxFontEncoding result;
10201 void *argp1 = 0 ;
10202 int res1 = 0 ;
10203 PyObject *swig_obj[1] ;
10204
10205 if (!args) SWIG_fail;
10206 swig_obj[0] = args;
10207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10210 }
10211 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10212 result = (wxFontEncoding) ((arg1)->encoding);
10213 resultobj = SWIG_From_int(static_cast< int >(result));
10214 return resultobj;
10215 fail:
10216 return NULL;
10217 }
10218
10219
10220 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10221 PyObject *resultobj = 0;
10222 wxNativeEncodingInfo *result = 0 ;
10223
10224 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10239 PyObject *resultobj = 0;
10240 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10241 void *argp1 = 0 ;
10242 int res1 = 0 ;
10243 PyObject *swig_obj[1] ;
10244
10245 if (!args) SWIG_fail;
10246 swig_obj[0] = args;
10247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10250 }
10251 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10252 {
10253 PyThreadState* __tstate = wxPyBeginAllowThreads();
10254 delete arg1;
10255
10256 wxPyEndAllowThreads(__tstate);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 resultobj = SWIG_Py_Void();
10260 return resultobj;
10261 fail:
10262 return NULL;
10263 }
10264
10265
10266 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10267 PyObject *resultobj = 0;
10268 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10269 wxString *arg2 = 0 ;
10270 bool result;
10271 void *argp1 = 0 ;
10272 int res1 = 0 ;
10273 bool temp2 = false ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 char * kwnames[] = {
10277 (char *) "self",(char *) "s", NULL
10278 };
10279
10280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10282 if (!SWIG_IsOK(res1)) {
10283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10284 }
10285 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10286 {
10287 arg2 = wxString_in_helper(obj1);
10288 if (arg2 == NULL) SWIG_fail;
10289 temp2 = true;
10290 }
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 {
10298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10299 }
10300 {
10301 if (temp2)
10302 delete arg2;
10303 }
10304 return resultobj;
10305 fail:
10306 {
10307 if (temp2)
10308 delete arg2;
10309 }
10310 return NULL;
10311 }
10312
10313
10314 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10315 PyObject *resultobj = 0;
10316 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10317 wxString result;
10318 void *argp1 = 0 ;
10319 int res1 = 0 ;
10320 PyObject *swig_obj[1] ;
10321
10322 if (!args) SWIG_fail;
10323 swig_obj[0] = args;
10324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10325 if (!SWIG_IsOK(res1)) {
10326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10327 }
10328 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 {
10336 #if wxUSE_UNICODE
10337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10338 #else
10339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10340 #endif
10341 }
10342 return resultobj;
10343 fail:
10344 return NULL;
10345 }
10346
10347
10348 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10349 PyObject *obj;
10350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10351 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10352 return SWIG_Py_Void();
10353 }
10354
10355 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10356 return SWIG_Python_InitShadowInstance(args);
10357 }
10358
10359 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj = 0;
10361 wxFontEncoding arg1 ;
10362 wxNativeEncodingInfo *result = 0 ;
10363 int val1 ;
10364 int ecode1 = 0 ;
10365 PyObject * obj0 = 0 ;
10366 char * kwnames[] = {
10367 (char *) "encoding", NULL
10368 };
10369
10370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10371 ecode1 = SWIG_AsVal_int(obj0, &val1);
10372 if (!SWIG_IsOK(ecode1)) {
10373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10374 }
10375 arg1 = static_cast< wxFontEncoding >(val1);
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10390 PyObject *resultobj = 0;
10391 wxNativeEncodingInfo *arg1 = 0 ;
10392 bool result;
10393 void *argp1 = 0 ;
10394 int res1 = 0 ;
10395 PyObject * obj0 = 0 ;
10396 char * kwnames[] = {
10397 (char *) "info", NULL
10398 };
10399
10400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10401 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10402 if (!SWIG_IsOK(res1)) {
10403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10404 }
10405 if (!argp1) {
10406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10407 }
10408 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10409 {
10410 PyThreadState* __tstate = wxPyBeginAllowThreads();
10411 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10412 wxPyEndAllowThreads(__tstate);
10413 if (PyErr_Occurred()) SWIG_fail;
10414 }
10415 {
10416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10417 }
10418 return resultobj;
10419 fail:
10420 return NULL;
10421 }
10422
10423
10424 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10425 PyObject *resultobj = 0;
10426 wxFontMapper *result = 0 ;
10427
10428 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10429 {
10430 PyThreadState* __tstate = wxPyBeginAllowThreads();
10431 result = (wxFontMapper *)new wxFontMapper();
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10443 PyObject *resultobj = 0;
10444 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10445 void *argp1 = 0 ;
10446 int res1 = 0 ;
10447 PyObject *swig_obj[1] ;
10448
10449 if (!args) SWIG_fail;
10450 swig_obj[0] = args;
10451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10452 if (!SWIG_IsOK(res1)) {
10453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10454 }
10455 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 delete arg1;
10459
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_Py_Void();
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxFontMapper *result = 0 ;
10473
10474 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (wxFontMapper *)wxFontMapper::Get();
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = 0;
10490 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10491 wxFontMapper *result = 0 ;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 PyObject * obj0 = 0 ;
10495 char * kwnames[] = {
10496 (char *) "mapper", NULL
10497 };
10498
10499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10501 if (!SWIG_IsOK(res1)) {
10502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10503 }
10504 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj = 0;
10520 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10521 wxString *arg2 = 0 ;
10522 bool arg3 = (bool) true ;
10523 wxFontEncoding result;
10524 void *argp1 = 0 ;
10525 int res1 = 0 ;
10526 bool temp2 = false ;
10527 bool val3 ;
10528 int ecode3 = 0 ;
10529 PyObject * obj0 = 0 ;
10530 PyObject * obj1 = 0 ;
10531 PyObject * obj2 = 0 ;
10532 char * kwnames[] = {
10533 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10534 };
10535
10536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10538 if (!SWIG_IsOK(res1)) {
10539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10540 }
10541 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10542 {
10543 arg2 = wxString_in_helper(obj1);
10544 if (arg2 == NULL) SWIG_fail;
10545 temp2 = true;
10546 }
10547 if (obj2) {
10548 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10549 if (!SWIG_IsOK(ecode3)) {
10550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10551 }
10552 arg3 = static_cast< bool >(val3);
10553 }
10554 {
10555 PyThreadState* __tstate = wxPyBeginAllowThreads();
10556 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10557 wxPyEndAllowThreads(__tstate);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 resultobj = SWIG_From_int(static_cast< int >(result));
10561 {
10562 if (temp2)
10563 delete arg2;
10564 }
10565 return resultobj;
10566 fail:
10567 {
10568 if (temp2)
10569 delete arg2;
10570 }
10571 return NULL;
10572 }
10573
10574
10575 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10576 PyObject *resultobj = 0;
10577 size_t result;
10578
10579 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10580 {
10581 PyThreadState* __tstate = wxPyBeginAllowThreads();
10582 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10587 return resultobj;
10588 fail:
10589 return NULL;
10590 }
10591
10592
10593 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj = 0;
10595 size_t arg1 ;
10596 wxFontEncoding result;
10597 size_t val1 ;
10598 int ecode1 = 0 ;
10599 PyObject * obj0 = 0 ;
10600 char * kwnames[] = {
10601 (char *) "n", NULL
10602 };
10603
10604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10605 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10606 if (!SWIG_IsOK(ecode1)) {
10607 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10608 }
10609 arg1 = static_cast< size_t >(val1);
10610 {
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 }
10616 resultobj = SWIG_From_int(static_cast< int >(result));
10617 return resultobj;
10618 fail:
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10624 PyObject *resultobj = 0;
10625 wxFontEncoding arg1 ;
10626 wxString result;
10627 int val1 ;
10628 int ecode1 = 0 ;
10629 PyObject * obj0 = 0 ;
10630 char * kwnames[] = {
10631 (char *) "encoding", NULL
10632 };
10633
10634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10635 ecode1 = SWIG_AsVal_int(obj0, &val1);
10636 if (!SWIG_IsOK(ecode1)) {
10637 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10638 }
10639 arg1 = static_cast< wxFontEncoding >(val1);
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = wxFontMapper::GetEncodingName(arg1);
10643 wxPyEndAllowThreads(__tstate);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 {
10647 #if wxUSE_UNICODE
10648 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10649 #else
10650 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10651 #endif
10652 }
10653 return resultobj;
10654 fail:
10655 return NULL;
10656 }
10657
10658
10659 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10660 PyObject *resultobj = 0;
10661 wxFontEncoding arg1 ;
10662 wxString result;
10663 int val1 ;
10664 int ecode1 = 0 ;
10665 PyObject * obj0 = 0 ;
10666 char * kwnames[] = {
10667 (char *) "encoding", NULL
10668 };
10669
10670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10671 ecode1 = SWIG_AsVal_int(obj0, &val1);
10672 if (!SWIG_IsOK(ecode1)) {
10673 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10674 }
10675 arg1 = static_cast< wxFontEncoding >(val1);
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 result = wxFontMapper::GetEncodingDescription(arg1);
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 {
10683 #if wxUSE_UNICODE
10684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10685 #else
10686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10687 #endif
10688 }
10689 return resultobj;
10690 fail:
10691 return NULL;
10692 }
10693
10694
10695 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10696 PyObject *resultobj = 0;
10697 wxString *arg1 = 0 ;
10698 wxFontEncoding result;
10699 bool temp1 = false ;
10700 PyObject * obj0 = 0 ;
10701 char * kwnames[] = {
10702 (char *) "name", NULL
10703 };
10704
10705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10706 {
10707 arg1 = wxString_in_helper(obj0);
10708 if (arg1 == NULL) SWIG_fail;
10709 temp1 = true;
10710 }
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 resultobj = SWIG_From_int(static_cast< int >(result));
10718 {
10719 if (temp1)
10720 delete arg1;
10721 }
10722 return resultobj;
10723 fail:
10724 {
10725 if (temp1)
10726 delete arg1;
10727 }
10728 return NULL;
10729 }
10730
10731
10732 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj = 0;
10734 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10735 wxString *arg2 = 0 ;
10736 void *argp1 = 0 ;
10737 int res1 = 0 ;
10738 bool temp2 = false ;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 char * kwnames[] = {
10742 (char *) "self",(char *) "prefix", NULL
10743 };
10744
10745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10747 if (!SWIG_IsOK(res1)) {
10748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10749 }
10750 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10751 {
10752 arg2 = wxString_in_helper(obj1);
10753 if (arg2 == NULL) SWIG_fail;
10754 temp2 = true;
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->SetConfigPath((wxString const &)*arg2);
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_Py_Void();
10763 {
10764 if (temp2)
10765 delete arg2;
10766 }
10767 return resultobj;
10768 fail:
10769 {
10770 if (temp2)
10771 delete arg2;
10772 }
10773 return NULL;
10774 }
10775
10776
10777 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10778 PyObject *resultobj = 0;
10779 wxString result;
10780
10781 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10782 {
10783 PyThreadState* __tstate = wxPyBeginAllowThreads();
10784 result = wxFontMapper::GetDefaultConfigPath();
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 {
10789 #if wxUSE_UNICODE
10790 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10791 #else
10792 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10793 #endif
10794 }
10795 return resultobj;
10796 fail:
10797 return NULL;
10798 }
10799
10800
10801 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10802 PyObject *resultobj = 0;
10803 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10804 wxFontEncoding arg2 ;
10805 wxString const &arg3_defvalue = wxPyEmptyString ;
10806 wxString *arg3 = (wxString *) &arg3_defvalue ;
10807 bool arg4 = (bool) true ;
10808 PyObject *result = 0 ;
10809 void *argp1 = 0 ;
10810 int res1 = 0 ;
10811 int val2 ;
10812 int ecode2 = 0 ;
10813 bool temp3 = false ;
10814 bool val4 ;
10815 int ecode4 = 0 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 PyObject * obj2 = 0 ;
10819 PyObject * obj3 = 0 ;
10820 char * kwnames[] = {
10821 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10822 };
10823
10824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10826 if (!SWIG_IsOK(res1)) {
10827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10828 }
10829 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10830 ecode2 = SWIG_AsVal_int(obj1, &val2);
10831 if (!SWIG_IsOK(ecode2)) {
10832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10833 }
10834 arg2 = static_cast< wxFontEncoding >(val2);
10835 if (obj2) {
10836 {
10837 arg3 = wxString_in_helper(obj2);
10838 if (arg3 == NULL) SWIG_fail;
10839 temp3 = true;
10840 }
10841 }
10842 if (obj3) {
10843 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10844 if (!SWIG_IsOK(ecode4)) {
10845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10846 }
10847 arg4 = static_cast< bool >(val4);
10848 }
10849 {
10850 PyThreadState* __tstate = wxPyBeginAllowThreads();
10851 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10852 wxPyEndAllowThreads(__tstate);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 }
10855 resultobj = result;
10856 {
10857 if (temp3)
10858 delete arg3;
10859 }
10860 return resultobj;
10861 fail:
10862 {
10863 if (temp3)
10864 delete arg3;
10865 }
10866 return NULL;
10867 }
10868
10869
10870 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj = 0;
10872 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10873 wxFontEncoding arg2 ;
10874 wxString const &arg3_defvalue = wxPyEmptyString ;
10875 wxString *arg3 = (wxString *) &arg3_defvalue ;
10876 bool result;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 int val2 ;
10880 int ecode2 = 0 ;
10881 bool temp3 = false ;
10882 PyObject * obj0 = 0 ;
10883 PyObject * obj1 = 0 ;
10884 PyObject * obj2 = 0 ;
10885 char * kwnames[] = {
10886 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10887 };
10888
10889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10893 }
10894 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10895 ecode2 = SWIG_AsVal_int(obj1, &val2);
10896 if (!SWIG_IsOK(ecode2)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10898 }
10899 arg2 = static_cast< wxFontEncoding >(val2);
10900 if (obj2) {
10901 {
10902 arg3 = wxString_in_helper(obj2);
10903 if (arg3 == NULL) SWIG_fail;
10904 temp3 = true;
10905 }
10906 }
10907 {
10908 PyThreadState* __tstate = wxPyBeginAllowThreads();
10909 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10915 }
10916 {
10917 if (temp3)
10918 delete arg3;
10919 }
10920 return resultobj;
10921 fail:
10922 {
10923 if (temp3)
10924 delete arg3;
10925 }
10926 return NULL;
10927 }
10928
10929
10930 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10931 PyObject *resultobj = 0;
10932 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10933 wxWindow *arg2 = (wxWindow *) 0 ;
10934 void *argp1 = 0 ;
10935 int res1 = 0 ;
10936 void *argp2 = 0 ;
10937 int res2 = 0 ;
10938 PyObject * obj0 = 0 ;
10939 PyObject * obj1 = 0 ;
10940 char * kwnames[] = {
10941 (char *) "self",(char *) "parent", NULL
10942 };
10943
10944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
10945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10946 if (!SWIG_IsOK(res1)) {
10947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10948 }
10949 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10951 if (!SWIG_IsOK(res2)) {
10952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
10953 }
10954 arg2 = reinterpret_cast< wxWindow * >(argp2);
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 (arg1)->SetDialogParent(arg2);
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 resultobj = SWIG_Py_Void();
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj = 0;
10970 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10971 wxString *arg2 = 0 ;
10972 void *argp1 = 0 ;
10973 int res1 = 0 ;
10974 bool temp2 = false ;
10975 PyObject * obj0 = 0 ;
10976 PyObject * obj1 = 0 ;
10977 char * kwnames[] = {
10978 (char *) "self",(char *) "title", NULL
10979 };
10980
10981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
10982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10983 if (!SWIG_IsOK(res1)) {
10984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10985 }
10986 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10987 {
10988 arg2 = wxString_in_helper(obj1);
10989 if (arg2 == NULL) SWIG_fail;
10990 temp2 = true;
10991 }
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 (arg1)->SetDialogTitle((wxString const &)*arg2);
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 resultobj = SWIG_Py_Void();
10999 {
11000 if (temp2)
11001 delete arg2;
11002 }
11003 return resultobj;
11004 fail:
11005 {
11006 if (temp2)
11007 delete arg2;
11008 }
11009 return NULL;
11010 }
11011
11012
11013 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11014 PyObject *obj;
11015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11016 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11017 return SWIG_Py_Void();
11018 }
11019
11020 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11021 return SWIG_Python_InitShadowInstance(args);
11022 }
11023
11024 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11025 PyObject *resultobj = 0;
11026 int arg1 ;
11027 int arg2 ;
11028 int arg3 ;
11029 int arg4 ;
11030 bool arg5 = (bool) false ;
11031 wxString const &arg6_defvalue = wxPyEmptyString ;
11032 wxString *arg6 = (wxString *) &arg6_defvalue ;
11033 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11034 wxFont *result = 0 ;
11035 int val1 ;
11036 int ecode1 = 0 ;
11037 int val2 ;
11038 int ecode2 = 0 ;
11039 int val3 ;
11040 int ecode3 = 0 ;
11041 int val4 ;
11042 int ecode4 = 0 ;
11043 bool val5 ;
11044 int ecode5 = 0 ;
11045 bool temp6 = false ;
11046 int val7 ;
11047 int ecode7 = 0 ;
11048 PyObject * obj0 = 0 ;
11049 PyObject * obj1 = 0 ;
11050 PyObject * obj2 = 0 ;
11051 PyObject * obj3 = 0 ;
11052 PyObject * obj4 = 0 ;
11053 PyObject * obj5 = 0 ;
11054 PyObject * obj6 = 0 ;
11055 char * kwnames[] = {
11056 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11057 };
11058
11059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11060 ecode1 = SWIG_AsVal_int(obj0, &val1);
11061 if (!SWIG_IsOK(ecode1)) {
11062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11063 }
11064 arg1 = static_cast< int >(val1);
11065 ecode2 = SWIG_AsVal_int(obj1, &val2);
11066 if (!SWIG_IsOK(ecode2)) {
11067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11068 }
11069 arg2 = static_cast< int >(val2);
11070 ecode3 = SWIG_AsVal_int(obj2, &val3);
11071 if (!SWIG_IsOK(ecode3)) {
11072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11073 }
11074 arg3 = static_cast< int >(val3);
11075 ecode4 = SWIG_AsVal_int(obj3, &val4);
11076 if (!SWIG_IsOK(ecode4)) {
11077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11078 }
11079 arg4 = static_cast< int >(val4);
11080 if (obj4) {
11081 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11082 if (!SWIG_IsOK(ecode5)) {
11083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11084 }
11085 arg5 = static_cast< bool >(val5);
11086 }
11087 if (obj5) {
11088 {
11089 arg6 = wxString_in_helper(obj5);
11090 if (arg6 == NULL) SWIG_fail;
11091 temp6 = true;
11092 }
11093 }
11094 if (obj6) {
11095 ecode7 = SWIG_AsVal_int(obj6, &val7);
11096 if (!SWIG_IsOK(ecode7)) {
11097 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11098 }
11099 arg7 = static_cast< wxFontEncoding >(val7);
11100 }
11101 {
11102 if (!wxPyCheckForApp()) SWIG_fail;
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11105 wxPyEndAllowThreads(__tstate);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 }
11108 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11109 {
11110 if (temp6)
11111 delete arg6;
11112 }
11113 return resultobj;
11114 fail:
11115 {
11116 if (temp6)
11117 delete arg6;
11118 }
11119 return NULL;
11120 }
11121
11122
11123 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11124 PyObject *resultobj = 0;
11125 wxFont *arg1 = (wxFont *) 0 ;
11126 void *argp1 = 0 ;
11127 int res1 = 0 ;
11128 PyObject *swig_obj[1] ;
11129
11130 if (!args) SWIG_fail;
11131 swig_obj[0] = args;
11132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11133 if (!SWIG_IsOK(res1)) {
11134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11135 }
11136 arg1 = reinterpret_cast< wxFont * >(argp1);
11137 {
11138 PyThreadState* __tstate = wxPyBeginAllowThreads();
11139 delete arg1;
11140
11141 wxPyEndAllowThreads(__tstate);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 }
11144 resultobj = SWIG_Py_Void();
11145 return resultobj;
11146 fail:
11147 return NULL;
11148 }
11149
11150
11151 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj = 0;
11153 wxNativeFontInfo *arg1 = 0 ;
11154 wxFont *result = 0 ;
11155 void *argp1 = 0 ;
11156 int res1 = 0 ;
11157 PyObject * obj0 = 0 ;
11158 char * kwnames[] = {
11159 (char *) "info", NULL
11160 };
11161
11162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11163 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11166 }
11167 if (!argp1) {
11168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11169 }
11170 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11171 {
11172 if (!wxPyCheckForApp()) SWIG_fail;
11173 PyThreadState* __tstate = wxPyBeginAllowThreads();
11174 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11179 return resultobj;
11180 fail:
11181 return NULL;
11182 }
11183
11184
11185 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj = 0;
11187 wxString *arg1 = 0 ;
11188 wxFont *result = 0 ;
11189 bool temp1 = false ;
11190 PyObject * obj0 = 0 ;
11191 char * kwnames[] = {
11192 (char *) "info", NULL
11193 };
11194
11195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11196 {
11197 arg1 = wxString_in_helper(obj0);
11198 if (arg1 == NULL) SWIG_fail;
11199 temp1 = true;
11200 }
11201 {
11202 if (!wxPyCheckForApp()) SWIG_fail;
11203 PyThreadState* __tstate = wxPyBeginAllowThreads();
11204 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11209 {
11210 if (temp1)
11211 delete arg1;
11212 }
11213 return resultobj;
11214 fail:
11215 {
11216 if (temp1)
11217 delete arg1;
11218 }
11219 return NULL;
11220 }
11221
11222
11223 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11224 PyObject *resultobj = 0;
11225 int arg1 ;
11226 wxFontFamily arg2 ;
11227 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11228 wxString const &arg4_defvalue = wxPyEmptyString ;
11229 wxString *arg4 = (wxString *) &arg4_defvalue ;
11230 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11231 wxFont *result = 0 ;
11232 int val1 ;
11233 int ecode1 = 0 ;
11234 int val2 ;
11235 int ecode2 = 0 ;
11236 int val3 ;
11237 int ecode3 = 0 ;
11238 bool temp4 = false ;
11239 int val5 ;
11240 int ecode5 = 0 ;
11241 PyObject * obj0 = 0 ;
11242 PyObject * obj1 = 0 ;
11243 PyObject * obj2 = 0 ;
11244 PyObject * obj3 = 0 ;
11245 PyObject * obj4 = 0 ;
11246 char * kwnames[] = {
11247 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11248 };
11249
11250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11251 ecode1 = SWIG_AsVal_int(obj0, &val1);
11252 if (!SWIG_IsOK(ecode1)) {
11253 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11254 }
11255 arg1 = static_cast< int >(val1);
11256 ecode2 = SWIG_AsVal_int(obj1, &val2);
11257 if (!SWIG_IsOK(ecode2)) {
11258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11259 }
11260 arg2 = static_cast< wxFontFamily >(val2);
11261 if (obj2) {
11262 ecode3 = SWIG_AsVal_int(obj2, &val3);
11263 if (!SWIG_IsOK(ecode3)) {
11264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11265 }
11266 arg3 = static_cast< int >(val3);
11267 }
11268 if (obj3) {
11269 {
11270 arg4 = wxString_in_helper(obj3);
11271 if (arg4 == NULL) SWIG_fail;
11272 temp4 = true;
11273 }
11274 }
11275 if (obj4) {
11276 ecode5 = SWIG_AsVal_int(obj4, &val5);
11277 if (!SWIG_IsOK(ecode5)) {
11278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11279 }
11280 arg5 = static_cast< wxFontEncoding >(val5);
11281 }
11282 {
11283 if (!wxPyCheckForApp()) SWIG_fail;
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11290 {
11291 if (temp4)
11292 delete arg4;
11293 }
11294 return resultobj;
11295 fail:
11296 {
11297 if (temp4)
11298 delete arg4;
11299 }
11300 return NULL;
11301 }
11302
11303
11304 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj = 0;
11306 wxSize *arg1 = 0 ;
11307 int arg2 ;
11308 int arg3 ;
11309 int arg4 ;
11310 bool arg5 = (bool) false ;
11311 wxString const &arg6_defvalue = wxEmptyString ;
11312 wxString *arg6 = (wxString *) &arg6_defvalue ;
11313 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11314 wxFont *result = 0 ;
11315 wxSize temp1 ;
11316 int val2 ;
11317 int ecode2 = 0 ;
11318 int val3 ;
11319 int ecode3 = 0 ;
11320 int val4 ;
11321 int ecode4 = 0 ;
11322 bool val5 ;
11323 int ecode5 = 0 ;
11324 bool temp6 = false ;
11325 int val7 ;
11326 int ecode7 = 0 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 PyObject * obj2 = 0 ;
11330 PyObject * obj3 = 0 ;
11331 PyObject * obj4 = 0 ;
11332 PyObject * obj5 = 0 ;
11333 PyObject * obj6 = 0 ;
11334 char * kwnames[] = {
11335 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11336 };
11337
11338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11339 {
11340 arg1 = &temp1;
11341 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11342 }
11343 ecode2 = SWIG_AsVal_int(obj1, &val2);
11344 if (!SWIG_IsOK(ecode2)) {
11345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11346 }
11347 arg2 = static_cast< int >(val2);
11348 ecode3 = SWIG_AsVal_int(obj2, &val3);
11349 if (!SWIG_IsOK(ecode3)) {
11350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11351 }
11352 arg3 = static_cast< int >(val3);
11353 ecode4 = SWIG_AsVal_int(obj3, &val4);
11354 if (!SWIG_IsOK(ecode4)) {
11355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11356 }
11357 arg4 = static_cast< int >(val4);
11358 if (obj4) {
11359 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11360 if (!SWIG_IsOK(ecode5)) {
11361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11362 }
11363 arg5 = static_cast< bool >(val5);
11364 }
11365 if (obj5) {
11366 {
11367 arg6 = wxString_in_helper(obj5);
11368 if (arg6 == NULL) SWIG_fail;
11369 temp6 = true;
11370 }
11371 }
11372 if (obj6) {
11373 ecode7 = SWIG_AsVal_int(obj6, &val7);
11374 if (!SWIG_IsOK(ecode7)) {
11375 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11376 }
11377 arg7 = static_cast< wxFontEncoding >(val7);
11378 }
11379 {
11380 if (!wxPyCheckForApp()) SWIG_fail;
11381 PyThreadState* __tstate = wxPyBeginAllowThreads();
11382 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11383 wxPyEndAllowThreads(__tstate);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 }
11386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11387 {
11388 if (temp6)
11389 delete arg6;
11390 }
11391 return resultobj;
11392 fail:
11393 {
11394 if (temp6)
11395 delete arg6;
11396 }
11397 return NULL;
11398 }
11399
11400
11401 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11402 PyObject *resultobj = 0;
11403 wxSize *arg1 = 0 ;
11404 wxFontFamily arg2 ;
11405 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11406 wxString const &arg4_defvalue = wxEmptyString ;
11407 wxString *arg4 = (wxString *) &arg4_defvalue ;
11408 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11409 wxFont *result = 0 ;
11410 wxSize temp1 ;
11411 int val2 ;
11412 int ecode2 = 0 ;
11413 int val3 ;
11414 int ecode3 = 0 ;
11415 bool temp4 = false ;
11416 int val5 ;
11417 int ecode5 = 0 ;
11418 PyObject * obj0 = 0 ;
11419 PyObject * obj1 = 0 ;
11420 PyObject * obj2 = 0 ;
11421 PyObject * obj3 = 0 ;
11422 PyObject * obj4 = 0 ;
11423 char * kwnames[] = {
11424 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11425 };
11426
11427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11428 {
11429 arg1 = &temp1;
11430 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11431 }
11432 ecode2 = SWIG_AsVal_int(obj1, &val2);
11433 if (!SWIG_IsOK(ecode2)) {
11434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11435 }
11436 arg2 = static_cast< wxFontFamily >(val2);
11437 if (obj2) {
11438 ecode3 = SWIG_AsVal_int(obj2, &val3);
11439 if (!SWIG_IsOK(ecode3)) {
11440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11441 }
11442 arg3 = static_cast< int >(val3);
11443 }
11444 if (obj3) {
11445 {
11446 arg4 = wxString_in_helper(obj3);
11447 if (arg4 == NULL) SWIG_fail;
11448 temp4 = true;
11449 }
11450 }
11451 if (obj4) {
11452 ecode5 = SWIG_AsVal_int(obj4, &val5);
11453 if (!SWIG_IsOK(ecode5)) {
11454 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11455 }
11456 arg5 = static_cast< wxFontEncoding >(val5);
11457 }
11458 {
11459 if (!wxPyCheckForApp()) SWIG_fail;
11460 PyThreadState* __tstate = wxPyBeginAllowThreads();
11461 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11462 wxPyEndAllowThreads(__tstate);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11466 {
11467 if (temp4)
11468 delete arg4;
11469 }
11470 return resultobj;
11471 fail:
11472 {
11473 if (temp4)
11474 delete arg4;
11475 }
11476 return NULL;
11477 }
11478
11479
11480 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11481 PyObject *resultobj = 0;
11482 wxFont *arg1 = (wxFont *) 0 ;
11483 bool result;
11484 void *argp1 = 0 ;
11485 int res1 = 0 ;
11486 PyObject *swig_obj[1] ;
11487
11488 if (!args) SWIG_fail;
11489 swig_obj[0] = args;
11490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11491 if (!SWIG_IsOK(res1)) {
11492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11493 }
11494 arg1 = reinterpret_cast< wxFont * >(argp1);
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 result = (bool)((wxFont const *)arg1)->Ok();
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 {
11502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11503 }
11504 return resultobj;
11505 fail:
11506 return NULL;
11507 }
11508
11509
11510 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11511 PyObject *resultobj = 0;
11512 wxFont *arg1 = (wxFont *) 0 ;
11513 wxFont *arg2 = (wxFont *) 0 ;
11514 bool result;
11515 void *argp1 = 0 ;
11516 int res1 = 0 ;
11517 void *argp2 = 0 ;
11518 int res2 = 0 ;
11519 PyObject * obj0 = 0 ;
11520 PyObject * obj1 = 0 ;
11521 char * kwnames[] = {
11522 (char *) "self",(char *) "other", NULL
11523 };
11524
11525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11529 }
11530 arg1 = reinterpret_cast< wxFont * >(argp1);
11531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11532 if (!SWIG_IsOK(res2)) {
11533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11534 }
11535 arg2 = reinterpret_cast< wxFont * >(argp2);
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 {
11543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11544 }
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj = 0;
11553 wxFont *arg1 = (wxFont *) 0 ;
11554 wxFont *arg2 = (wxFont *) 0 ;
11555 bool result;
11556 void *argp1 = 0 ;
11557 int res1 = 0 ;
11558 void *argp2 = 0 ;
11559 int res2 = 0 ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 char * kwnames[] = {
11563 (char *) "self",(char *) "other", NULL
11564 };
11565
11566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11570 }
11571 arg1 = reinterpret_cast< wxFont * >(argp1);
11572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11573 if (!SWIG_IsOK(res2)) {
11574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11575 }
11576 arg2 = reinterpret_cast< wxFont * >(argp2);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 {
11584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11585 }
11586 return resultobj;
11587 fail:
11588 return NULL;
11589 }
11590
11591
11592 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11593 PyObject *resultobj = 0;
11594 wxFont *arg1 = (wxFont *) 0 ;
11595 int result;
11596 void *argp1 = 0 ;
11597 int res1 = 0 ;
11598 PyObject *swig_obj[1] ;
11599
11600 if (!args) SWIG_fail;
11601 swig_obj[0] = args;
11602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11603 if (!SWIG_IsOK(res1)) {
11604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11605 }
11606 arg1 = reinterpret_cast< wxFont * >(argp1);
11607 {
11608 PyThreadState* __tstate = wxPyBeginAllowThreads();
11609 result = (int)((wxFont const *)arg1)->GetPointSize();
11610 wxPyEndAllowThreads(__tstate);
11611 if (PyErr_Occurred()) SWIG_fail;
11612 }
11613 resultobj = SWIG_From_int(static_cast< int >(result));
11614 return resultobj;
11615 fail:
11616 return NULL;
11617 }
11618
11619
11620 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11621 PyObject *resultobj = 0;
11622 wxFont *arg1 = (wxFont *) 0 ;
11623 wxSize result;
11624 void *argp1 = 0 ;
11625 int res1 = 0 ;
11626 PyObject *swig_obj[1] ;
11627
11628 if (!args) SWIG_fail;
11629 swig_obj[0] = args;
11630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11631 if (!SWIG_IsOK(res1)) {
11632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11633 }
11634 arg1 = reinterpret_cast< wxFont * >(argp1);
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = ((wxFont const *)arg1)->GetPixelSize();
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11642 return resultobj;
11643 fail:
11644 return NULL;
11645 }
11646
11647
11648 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11649 PyObject *resultobj = 0;
11650 wxFont *arg1 = (wxFont *) 0 ;
11651 bool result;
11652 void *argp1 = 0 ;
11653 int res1 = 0 ;
11654 PyObject *swig_obj[1] ;
11655
11656 if (!args) SWIG_fail;
11657 swig_obj[0] = args;
11658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11659 if (!SWIG_IsOK(res1)) {
11660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11661 }
11662 arg1 = reinterpret_cast< wxFont * >(argp1);
11663 {
11664 PyThreadState* __tstate = wxPyBeginAllowThreads();
11665 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 {
11670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11671 }
11672 return resultobj;
11673 fail:
11674 return NULL;
11675 }
11676
11677
11678 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11679 PyObject *resultobj = 0;
11680 wxFont *arg1 = (wxFont *) 0 ;
11681 int result;
11682 void *argp1 = 0 ;
11683 int res1 = 0 ;
11684 PyObject *swig_obj[1] ;
11685
11686 if (!args) SWIG_fail;
11687 swig_obj[0] = args;
11688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11689 if (!SWIG_IsOK(res1)) {
11690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11691 }
11692 arg1 = reinterpret_cast< wxFont * >(argp1);
11693 {
11694 PyThreadState* __tstate = wxPyBeginAllowThreads();
11695 result = (int)((wxFont const *)arg1)->GetFamily();
11696 wxPyEndAllowThreads(__tstate);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 resultobj = SWIG_From_int(static_cast< int >(result));
11700 return resultobj;
11701 fail:
11702 return NULL;
11703 }
11704
11705
11706 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11707 PyObject *resultobj = 0;
11708 wxFont *arg1 = (wxFont *) 0 ;
11709 int result;
11710 void *argp1 = 0 ;
11711 int res1 = 0 ;
11712 PyObject *swig_obj[1] ;
11713
11714 if (!args) SWIG_fail;
11715 swig_obj[0] = args;
11716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11717 if (!SWIG_IsOK(res1)) {
11718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11719 }
11720 arg1 = reinterpret_cast< wxFont * >(argp1);
11721 {
11722 PyThreadState* __tstate = wxPyBeginAllowThreads();
11723 result = (int)((wxFont const *)arg1)->GetStyle();
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = SWIG_From_int(static_cast< int >(result));
11728 return resultobj;
11729 fail:
11730 return NULL;
11731 }
11732
11733
11734 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11735 PyObject *resultobj = 0;
11736 wxFont *arg1 = (wxFont *) 0 ;
11737 int result;
11738 void *argp1 = 0 ;
11739 int res1 = 0 ;
11740 PyObject *swig_obj[1] ;
11741
11742 if (!args) SWIG_fail;
11743 swig_obj[0] = args;
11744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11745 if (!SWIG_IsOK(res1)) {
11746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11747 }
11748 arg1 = reinterpret_cast< wxFont * >(argp1);
11749 {
11750 PyThreadState* __tstate = wxPyBeginAllowThreads();
11751 result = (int)((wxFont const *)arg1)->GetWeight();
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 resultobj = SWIG_From_int(static_cast< int >(result));
11756 return resultobj;
11757 fail:
11758 return NULL;
11759 }
11760
11761
11762 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11763 PyObject *resultobj = 0;
11764 wxFont *arg1 = (wxFont *) 0 ;
11765 bool result;
11766 void *argp1 = 0 ;
11767 int res1 = 0 ;
11768 PyObject *swig_obj[1] ;
11769
11770 if (!args) SWIG_fail;
11771 swig_obj[0] = args;
11772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11773 if (!SWIG_IsOK(res1)) {
11774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11775 }
11776 arg1 = reinterpret_cast< wxFont * >(argp1);
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 {
11784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11785 }
11786 return resultobj;
11787 fail:
11788 return NULL;
11789 }
11790
11791
11792 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11793 PyObject *resultobj = 0;
11794 wxFont *arg1 = (wxFont *) 0 ;
11795 wxString result;
11796 void *argp1 = 0 ;
11797 int res1 = 0 ;
11798 PyObject *swig_obj[1] ;
11799
11800 if (!args) SWIG_fail;
11801 swig_obj[0] = args;
11802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11805 }
11806 arg1 = reinterpret_cast< wxFont * >(argp1);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = ((wxFont const *)arg1)->GetFaceName();
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 #if wxUSE_UNICODE
11815 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11816 #else
11817 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11818 #endif
11819 }
11820 return resultobj;
11821 fail:
11822 return NULL;
11823 }
11824
11825
11826 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11827 PyObject *resultobj = 0;
11828 wxFont *arg1 = (wxFont *) 0 ;
11829 wxFontEncoding result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 PyObject *swig_obj[1] ;
11833
11834 if (!args) SWIG_fail;
11835 swig_obj[0] = args;
11836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11837 if (!SWIG_IsOK(res1)) {
11838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11839 }
11840 arg1 = reinterpret_cast< wxFont * >(argp1);
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 resultobj = SWIG_From_int(static_cast< int >(result));
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11855 PyObject *resultobj = 0;
11856 wxFont *arg1 = (wxFont *) 0 ;
11857 wxNativeFontInfo *result = 0 ;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 PyObject *swig_obj[1] ;
11861
11862 if (!args) SWIG_fail;
11863 swig_obj[0] = args;
11864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11865 if (!SWIG_IsOK(res1)) {
11866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11867 }
11868 arg1 = reinterpret_cast< wxFont * >(argp1);
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11876 return resultobj;
11877 fail:
11878 return NULL;
11879 }
11880
11881
11882 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11883 PyObject *resultobj = 0;
11884 wxFont *arg1 = (wxFont *) 0 ;
11885 bool result;
11886 void *argp1 = 0 ;
11887 int res1 = 0 ;
11888 PyObject *swig_obj[1] ;
11889
11890 if (!args) SWIG_fail;
11891 swig_obj[0] = args;
11892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11893 if (!SWIG_IsOK(res1)) {
11894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11895 }
11896 arg1 = reinterpret_cast< wxFont * >(argp1);
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 {
11904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11905 }
11906 return resultobj;
11907 fail:
11908 return NULL;
11909 }
11910
11911
11912 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11913 PyObject *resultobj = 0;
11914 wxFont *arg1 = (wxFont *) 0 ;
11915 wxString result;
11916 void *argp1 = 0 ;
11917 int res1 = 0 ;
11918 PyObject *swig_obj[1] ;
11919
11920 if (!args) SWIG_fail;
11921 swig_obj[0] = args;
11922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11925 }
11926 arg1 = reinterpret_cast< wxFont * >(argp1);
11927 {
11928 PyThreadState* __tstate = wxPyBeginAllowThreads();
11929 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 #if wxUSE_UNICODE
11935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11936 #else
11937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11938 #endif
11939 }
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11947 PyObject *resultobj = 0;
11948 wxFont *arg1 = (wxFont *) 0 ;
11949 wxString result;
11950 void *argp1 = 0 ;
11951 int res1 = 0 ;
11952 PyObject *swig_obj[1] ;
11953
11954 if (!args) SWIG_fail;
11955 swig_obj[0] = args;
11956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11959 }
11960 arg1 = reinterpret_cast< wxFont * >(argp1);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 #if wxUSE_UNICODE
11969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11970 #else
11971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11972 #endif
11973 }
11974 return resultobj;
11975 fail:
11976 return NULL;
11977 }
11978
11979
11980 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11981 PyObject *resultobj = 0;
11982 wxFont *arg1 = (wxFont *) 0 ;
11983 int arg2 ;
11984 void *argp1 = 0 ;
11985 int res1 = 0 ;
11986 int val2 ;
11987 int ecode2 = 0 ;
11988 PyObject * obj0 = 0 ;
11989 PyObject * obj1 = 0 ;
11990 char * kwnames[] = {
11991 (char *) "self",(char *) "pointSize", NULL
11992 };
11993
11994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11996 if (!SWIG_IsOK(res1)) {
11997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
11998 }
11999 arg1 = reinterpret_cast< wxFont * >(argp1);
12000 ecode2 = SWIG_AsVal_int(obj1, &val2);
12001 if (!SWIG_IsOK(ecode2)) {
12002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12003 }
12004 arg2 = static_cast< int >(val2);
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 (arg1)->SetPointSize(arg2);
12008 wxPyEndAllowThreads(__tstate);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 }
12011 resultobj = SWIG_Py_Void();
12012 return resultobj;
12013 fail:
12014 return NULL;
12015 }
12016
12017
12018 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12019 PyObject *resultobj = 0;
12020 wxFont *arg1 = (wxFont *) 0 ;
12021 wxSize *arg2 = 0 ;
12022 void *argp1 = 0 ;
12023 int res1 = 0 ;
12024 wxSize temp2 ;
12025 PyObject * obj0 = 0 ;
12026 PyObject * obj1 = 0 ;
12027 char * kwnames[] = {
12028 (char *) "self",(char *) "pixelSize", NULL
12029 };
12030
12031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12033 if (!SWIG_IsOK(res1)) {
12034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12035 }
12036 arg1 = reinterpret_cast< wxFont * >(argp1);
12037 {
12038 arg2 = &temp2;
12039 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->SetPixelSize((wxSize const &)*arg2);
12044 wxPyEndAllowThreads(__tstate);
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 resultobj = SWIG_Py_Void();
12048 return resultobj;
12049 fail:
12050 return NULL;
12051 }
12052
12053
12054 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj = 0;
12056 wxFont *arg1 = (wxFont *) 0 ;
12057 int arg2 ;
12058 void *argp1 = 0 ;
12059 int res1 = 0 ;
12060 int val2 ;
12061 int ecode2 = 0 ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 char * kwnames[] = {
12065 (char *) "self",(char *) "family", NULL
12066 };
12067
12068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12070 if (!SWIG_IsOK(res1)) {
12071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12072 }
12073 arg1 = reinterpret_cast< wxFont * >(argp1);
12074 ecode2 = SWIG_AsVal_int(obj1, &val2);
12075 if (!SWIG_IsOK(ecode2)) {
12076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12077 }
12078 arg2 = static_cast< int >(val2);
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetFamily(arg2);
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_Py_Void();
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj = 0;
12094 wxFont *arg1 = (wxFont *) 0 ;
12095 int arg2 ;
12096 void *argp1 = 0 ;
12097 int res1 = 0 ;
12098 int val2 ;
12099 int ecode2 = 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 char * kwnames[] = {
12103 (char *) "self",(char *) "style", NULL
12104 };
12105
12106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12108 if (!SWIG_IsOK(res1)) {
12109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12110 }
12111 arg1 = reinterpret_cast< wxFont * >(argp1);
12112 ecode2 = SWIG_AsVal_int(obj1, &val2);
12113 if (!SWIG_IsOK(ecode2)) {
12114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12115 }
12116 arg2 = static_cast< int >(val2);
12117 {
12118 PyThreadState* __tstate = wxPyBeginAllowThreads();
12119 (arg1)->SetStyle(arg2);
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 resultobj = SWIG_Py_Void();
12124 return resultobj;
12125 fail:
12126 return NULL;
12127 }
12128
12129
12130 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12131 PyObject *resultobj = 0;
12132 wxFont *arg1 = (wxFont *) 0 ;
12133 int arg2 ;
12134 void *argp1 = 0 ;
12135 int res1 = 0 ;
12136 int val2 ;
12137 int ecode2 = 0 ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char * kwnames[] = {
12141 (char *) "self",(char *) "weight", NULL
12142 };
12143
12144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12146 if (!SWIG_IsOK(res1)) {
12147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12148 }
12149 arg1 = reinterpret_cast< wxFont * >(argp1);
12150 ecode2 = SWIG_AsVal_int(obj1, &val2);
12151 if (!SWIG_IsOK(ecode2)) {
12152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12153 }
12154 arg2 = static_cast< int >(val2);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 (arg1)->SetWeight(arg2);
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_Py_Void();
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12169 PyObject *resultobj = 0;
12170 wxFont *arg1 = (wxFont *) 0 ;
12171 wxString *arg2 = 0 ;
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 bool temp2 = false ;
12175 PyObject * obj0 = 0 ;
12176 PyObject * obj1 = 0 ;
12177 char * kwnames[] = {
12178 (char *) "self",(char *) "faceName", NULL
12179 };
12180
12181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12185 }
12186 arg1 = reinterpret_cast< wxFont * >(argp1);
12187 {
12188 arg2 = wxString_in_helper(obj1);
12189 if (arg2 == NULL) SWIG_fail;
12190 temp2 = true;
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 (arg1)->SetFaceName((wxString const &)*arg2);
12195 wxPyEndAllowThreads(__tstate);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
12198 resultobj = SWIG_Py_Void();
12199 {
12200 if (temp2)
12201 delete arg2;
12202 }
12203 return resultobj;
12204 fail:
12205 {
12206 if (temp2)
12207 delete arg2;
12208 }
12209 return NULL;
12210 }
12211
12212
12213 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj = 0;
12215 wxFont *arg1 = (wxFont *) 0 ;
12216 bool arg2 ;
12217 void *argp1 = 0 ;
12218 int res1 = 0 ;
12219 bool val2 ;
12220 int ecode2 = 0 ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 char * kwnames[] = {
12224 (char *) "self",(char *) "underlined", NULL
12225 };
12226
12227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12229 if (!SWIG_IsOK(res1)) {
12230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12231 }
12232 arg1 = reinterpret_cast< wxFont * >(argp1);
12233 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12234 if (!SWIG_IsOK(ecode2)) {
12235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12236 }
12237 arg2 = static_cast< bool >(val2);
12238 {
12239 PyThreadState* __tstate = wxPyBeginAllowThreads();
12240 (arg1)->SetUnderlined(arg2);
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 resultobj = SWIG_Py_Void();
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj = 0;
12253 wxFont *arg1 = (wxFont *) 0 ;
12254 wxFontEncoding arg2 ;
12255 void *argp1 = 0 ;
12256 int res1 = 0 ;
12257 int val2 ;
12258 int ecode2 = 0 ;
12259 PyObject * obj0 = 0 ;
12260 PyObject * obj1 = 0 ;
12261 char * kwnames[] = {
12262 (char *) "self",(char *) "encoding", NULL
12263 };
12264
12265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12267 if (!SWIG_IsOK(res1)) {
12268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12269 }
12270 arg1 = reinterpret_cast< wxFont * >(argp1);
12271 ecode2 = SWIG_AsVal_int(obj1, &val2);
12272 if (!SWIG_IsOK(ecode2)) {
12273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12274 }
12275 arg2 = static_cast< wxFontEncoding >(val2);
12276 {
12277 PyThreadState* __tstate = wxPyBeginAllowThreads();
12278 (arg1)->SetEncoding(arg2);
12279 wxPyEndAllowThreads(__tstate);
12280 if (PyErr_Occurred()) SWIG_fail;
12281 }
12282 resultobj = SWIG_Py_Void();
12283 return resultobj;
12284 fail:
12285 return NULL;
12286 }
12287
12288
12289 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12290 PyObject *resultobj = 0;
12291 wxFont *arg1 = (wxFont *) 0 ;
12292 wxNativeFontInfo *arg2 = 0 ;
12293 void *argp1 = 0 ;
12294 int res1 = 0 ;
12295 void *argp2 = 0 ;
12296 int res2 = 0 ;
12297 PyObject * obj0 = 0 ;
12298 PyObject * obj1 = 0 ;
12299 char * kwnames[] = {
12300 (char *) "self",(char *) "info", NULL
12301 };
12302
12303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12305 if (!SWIG_IsOK(res1)) {
12306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12307 }
12308 arg1 = reinterpret_cast< wxFont * >(argp1);
12309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12310 if (!SWIG_IsOK(res2)) {
12311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12312 }
12313 if (!argp2) {
12314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12315 }
12316 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 resultobj = SWIG_Py_Void();
12324 return resultobj;
12325 fail:
12326 return NULL;
12327 }
12328
12329
12330 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12331 PyObject *resultobj = 0;
12332 wxFont *arg1 = (wxFont *) 0 ;
12333 wxString *arg2 = 0 ;
12334 void *argp1 = 0 ;
12335 int res1 = 0 ;
12336 bool temp2 = false ;
12337 PyObject * obj0 = 0 ;
12338 PyObject * obj1 = 0 ;
12339 char * kwnames[] = {
12340 (char *) "self",(char *) "info", NULL
12341 };
12342
12343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12347 }
12348 arg1 = reinterpret_cast< wxFont * >(argp1);
12349 {
12350 arg2 = wxString_in_helper(obj1);
12351 if (arg2 == NULL) SWIG_fail;
12352 temp2 = true;
12353 }
12354 {
12355 PyThreadState* __tstate = wxPyBeginAllowThreads();
12356 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 resultobj = SWIG_Py_Void();
12361 {
12362 if (temp2)
12363 delete arg2;
12364 }
12365 return resultobj;
12366 fail:
12367 {
12368 if (temp2)
12369 delete arg2;
12370 }
12371 return NULL;
12372 }
12373
12374
12375 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12376 PyObject *resultobj = 0;
12377 wxFont *arg1 = (wxFont *) 0 ;
12378 wxString *arg2 = 0 ;
12379 void *argp1 = 0 ;
12380 int res1 = 0 ;
12381 bool temp2 = false ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 char * kwnames[] = {
12385 (char *) "self",(char *) "info", NULL
12386 };
12387
12388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12390 if (!SWIG_IsOK(res1)) {
12391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12392 }
12393 arg1 = reinterpret_cast< wxFont * >(argp1);
12394 {
12395 arg2 = wxString_in_helper(obj1);
12396 if (arg2 == NULL) SWIG_fail;
12397 temp2 = true;
12398 }
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_Py_Void();
12406 {
12407 if (temp2)
12408 delete arg2;
12409 }
12410 return resultobj;
12411 fail:
12412 {
12413 if (temp2)
12414 delete arg2;
12415 }
12416 return NULL;
12417 }
12418
12419
12420 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12421 PyObject *resultobj = 0;
12422 wxFont *arg1 = (wxFont *) 0 ;
12423 wxString result;
12424 void *argp1 = 0 ;
12425 int res1 = 0 ;
12426 PyObject *swig_obj[1] ;
12427
12428 if (!args) SWIG_fail;
12429 swig_obj[0] = args;
12430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12431 if (!SWIG_IsOK(res1)) {
12432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12433 }
12434 arg1 = reinterpret_cast< wxFont * >(argp1);
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 result = ((wxFont const *)arg1)->GetFamilyString();
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 {
12442 #if wxUSE_UNICODE
12443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12444 #else
12445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12446 #endif
12447 }
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12455 PyObject *resultobj = 0;
12456 wxFont *arg1 = (wxFont *) 0 ;
12457 wxString result;
12458 void *argp1 = 0 ;
12459 int res1 = 0 ;
12460 PyObject *swig_obj[1] ;
12461
12462 if (!args) SWIG_fail;
12463 swig_obj[0] = args;
12464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12465 if (!SWIG_IsOK(res1)) {
12466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12467 }
12468 arg1 = reinterpret_cast< wxFont * >(argp1);
12469 {
12470 PyThreadState* __tstate = wxPyBeginAllowThreads();
12471 result = ((wxFont const *)arg1)->GetStyleString();
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 {
12476 #if wxUSE_UNICODE
12477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12478 #else
12479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12480 #endif
12481 }
12482 return resultobj;
12483 fail:
12484 return NULL;
12485 }
12486
12487
12488 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 PyObject *resultobj = 0;
12490 wxFont *arg1 = (wxFont *) 0 ;
12491 wxString result;
12492 void *argp1 = 0 ;
12493 int res1 = 0 ;
12494 PyObject *swig_obj[1] ;
12495
12496 if (!args) SWIG_fail;
12497 swig_obj[0] = args;
12498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12499 if (!SWIG_IsOK(res1)) {
12500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12501 }
12502 arg1 = reinterpret_cast< wxFont * >(argp1);
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = ((wxFont const *)arg1)->GetWeightString();
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 {
12510 #if wxUSE_UNICODE
12511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12512 #else
12513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12514 #endif
12515 }
12516 return resultobj;
12517 fail:
12518 return NULL;
12519 }
12520
12521
12522 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj = 0;
12524 wxFont *arg1 = (wxFont *) 0 ;
12525 bool arg2 = (bool) true ;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 bool val2 ;
12529 int ecode2 = 0 ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 char * kwnames[] = {
12533 (char *) "self",(char *) "no", NULL
12534 };
12535
12536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12540 }
12541 arg1 = reinterpret_cast< wxFont * >(argp1);
12542 if (obj1) {
12543 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12544 if (!SWIG_IsOK(ecode2)) {
12545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12546 }
12547 arg2 = static_cast< bool >(val2);
12548 }
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 (arg1)->SetNoAntiAliasing(arg2);
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 resultobj = SWIG_Py_Void();
12556 return resultobj;
12557 fail:
12558 return NULL;
12559 }
12560
12561
12562 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12563 PyObject *resultobj = 0;
12564 wxFont *arg1 = (wxFont *) 0 ;
12565 bool result;
12566 void *argp1 = 0 ;
12567 int res1 = 0 ;
12568 PyObject *swig_obj[1] ;
12569
12570 if (!args) SWIG_fail;
12571 swig_obj[0] = args;
12572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12573 if (!SWIG_IsOK(res1)) {
12574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12575 }
12576 arg1 = reinterpret_cast< wxFont * >(argp1);
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 {
12584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12585 }
12586 return resultobj;
12587 fail:
12588 return NULL;
12589 }
12590
12591
12592 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12593 PyObject *resultobj = 0;
12594 wxFontEncoding result;
12595
12596 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12597 {
12598 if (!wxPyCheckForApp()) SWIG_fail;
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12612 PyObject *resultobj = 0;
12613 wxFontEncoding arg1 ;
12614 int val1 ;
12615 int ecode1 = 0 ;
12616 PyObject * obj0 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "encoding", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12622 ecode1 = SWIG_AsVal_int(obj0, &val1);
12623 if (!SWIG_IsOK(ecode1)) {
12624 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12625 }
12626 arg1 = static_cast< wxFontEncoding >(val1);
12627 {
12628 if (!wxPyCheckForApp()) SWIG_fail;
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 wxFont::SetDefaultEncoding(arg1);
12631 wxPyEndAllowThreads(__tstate);
12632 if (PyErr_Occurred()) SWIG_fail;
12633 }
12634 resultobj = SWIG_Py_Void();
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12642 PyObject *obj;
12643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12644 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12645 return SWIG_Py_Void();
12646 }
12647
12648 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12649 return SWIG_Python_InitShadowInstance(args);
12650 }
12651
12652 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653 PyObject *resultobj = 0;
12654 wxPyFontEnumerator *result = 0 ;
12655
12656 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12657 {
12658 if (!wxPyCheckForApp()) SWIG_fail;
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12674 void *argp1 = 0 ;
12675 int res1 = 0 ;
12676 PyObject *swig_obj[1] ;
12677
12678 if (!args) SWIG_fail;
12679 swig_obj[0] = args;
12680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12681 if (!SWIG_IsOK(res1)) {
12682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12683 }
12684 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 delete arg1;
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 resultobj = SWIG_Py_Void();
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12700 PyObject *resultobj = 0;
12701 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12702 PyObject *arg2 = (PyObject *) 0 ;
12703 PyObject *arg3 = (PyObject *) 0 ;
12704 bool arg4 ;
12705 void *argp1 = 0 ;
12706 int res1 = 0 ;
12707 bool val4 ;
12708 int ecode4 = 0 ;
12709 PyObject * obj0 = 0 ;
12710 PyObject * obj1 = 0 ;
12711 PyObject * obj2 = 0 ;
12712 PyObject * obj3 = 0 ;
12713 char * kwnames[] = {
12714 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12715 };
12716
12717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12719 if (!SWIG_IsOK(res1)) {
12720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12721 }
12722 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12723 arg2 = obj1;
12724 arg3 = obj2;
12725 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12726 if (!SWIG_IsOK(ecode4)) {
12727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12728 }
12729 arg4 = static_cast< bool >(val4);
12730 {
12731 PyThreadState* __tstate = wxPyBeginAllowThreads();
12732 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12733 wxPyEndAllowThreads(__tstate);
12734 if (PyErr_Occurred()) SWIG_fail;
12735 }
12736 resultobj = SWIG_Py_Void();
12737 return resultobj;
12738 fail:
12739 return NULL;
12740 }
12741
12742
12743 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj = 0;
12745 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12746 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12747 bool arg3 = (bool) false ;
12748 bool result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 int val2 ;
12752 int ecode2 = 0 ;
12753 bool val3 ;
12754 int ecode3 = 0 ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 PyObject * obj2 = 0 ;
12758 char * kwnames[] = {
12759 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12760 };
12761
12762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12764 if (!SWIG_IsOK(res1)) {
12765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12766 }
12767 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12768 if (obj1) {
12769 ecode2 = SWIG_AsVal_int(obj1, &val2);
12770 if (!SWIG_IsOK(ecode2)) {
12771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12772 }
12773 arg2 = static_cast< wxFontEncoding >(val2);
12774 }
12775 if (obj2) {
12776 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12777 if (!SWIG_IsOK(ecode3)) {
12778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12779 }
12780 arg3 = static_cast< bool >(val3);
12781 }
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 {
12789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12790 }
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj = 0;
12799 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12800 wxString const &arg2_defvalue = wxPyEmptyString ;
12801 wxString *arg2 = (wxString *) &arg2_defvalue ;
12802 bool result;
12803 void *argp1 = 0 ;
12804 int res1 = 0 ;
12805 bool temp2 = false ;
12806 PyObject * obj0 = 0 ;
12807 PyObject * obj1 = 0 ;
12808 char * kwnames[] = {
12809 (char *) "self",(char *) "facename", NULL
12810 };
12811
12812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12814 if (!SWIG_IsOK(res1)) {
12815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12816 }
12817 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12818 if (obj1) {
12819 {
12820 arg2 = wxString_in_helper(obj1);
12821 if (arg2 == NULL) SWIG_fail;
12822 temp2 = true;
12823 }
12824 }
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 {
12832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12833 }
12834 {
12835 if (temp2)
12836 delete arg2;
12837 }
12838 return resultobj;
12839 fail:
12840 {
12841 if (temp2)
12842 delete arg2;
12843 }
12844 return NULL;
12845 }
12846
12847
12848 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12849 PyObject *resultobj = 0;
12850 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12851 PyObject *result = 0 ;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 PyObject *swig_obj[1] ;
12855
12856 if (!args) SWIG_fail;
12857 swig_obj[0] = args;
12858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12859 if (!SWIG_IsOK(res1)) {
12860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12861 }
12862 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12863 {
12864 PyThreadState* __tstate = wxPyBeginAllowThreads();
12865 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12866 wxPyEndAllowThreads(__tstate);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 resultobj = result;
12870 return resultobj;
12871 fail:
12872 return NULL;
12873 }
12874
12875
12876 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12877 PyObject *resultobj = 0;
12878 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12879 PyObject *result = 0 ;
12880 void *argp1 = 0 ;
12881 int res1 = 0 ;
12882 PyObject *swig_obj[1] ;
12883
12884 if (!args) SWIG_fail;
12885 swig_obj[0] = args;
12886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12887 if (!SWIG_IsOK(res1)) {
12888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12889 }
12890 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12891 {
12892 PyThreadState* __tstate = wxPyBeginAllowThreads();
12893 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 resultobj = result;
12898 return resultobj;
12899 fail:
12900 return NULL;
12901 }
12902
12903
12904 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12905 PyObject *obj;
12906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12907 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12908 return SWIG_Py_Void();
12909 }
12910
12911 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12912 return SWIG_Python_InitShadowInstance(args);
12913 }
12914
12915 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12916 PyObject *resultobj = 0;
12917 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12918 int arg2 ;
12919 void *argp1 = 0 ;
12920 int res1 = 0 ;
12921 int val2 ;
12922 int ecode2 = 0 ;
12923 PyObject *swig_obj[2] ;
12924
12925 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12927 if (!SWIG_IsOK(res1)) {
12928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12929 }
12930 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12931 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12932 if (!SWIG_IsOK(ecode2)) {
12933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12934 }
12935 arg2 = static_cast< int >(val2);
12936 if (arg1) (arg1)->Language = arg2;
12937
12938 resultobj = SWIG_Py_Void();
12939 return resultobj;
12940 fail:
12941 return NULL;
12942 }
12943
12944
12945 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12946 PyObject *resultobj = 0;
12947 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12948 int result;
12949 void *argp1 = 0 ;
12950 int res1 = 0 ;
12951 PyObject *swig_obj[1] ;
12952
12953 if (!args) SWIG_fail;
12954 swig_obj[0] = args;
12955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12956 if (!SWIG_IsOK(res1)) {
12957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12958 }
12959 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12960 result = (int) ((arg1)->Language);
12961 resultobj = SWIG_From_int(static_cast< int >(result));
12962 return resultobj;
12963 fail:
12964 return NULL;
12965 }
12966
12967
12968 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12969 PyObject *resultobj = 0;
12970 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12971 wxString *arg2 = (wxString *) 0 ;
12972 void *argp1 = 0 ;
12973 int res1 = 0 ;
12974 bool temp2 = false ;
12975 PyObject *swig_obj[2] ;
12976
12977 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
12978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12979 if (!SWIG_IsOK(res1)) {
12980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12981 }
12982 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12983 {
12984 arg2 = wxString_in_helper(swig_obj[1]);
12985 if (arg2 == NULL) SWIG_fail;
12986 temp2 = true;
12987 }
12988 if (arg1) (arg1)->CanonicalName = *arg2;
12989
12990 resultobj = SWIG_Py_Void();
12991 {
12992 if (temp2)
12993 delete arg2;
12994 }
12995 return resultobj;
12996 fail:
12997 {
12998 if (temp2)
12999 delete arg2;
13000 }
13001 return NULL;
13002 }
13003
13004
13005 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13006 PyObject *resultobj = 0;
13007 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13008 wxString *result = 0 ;
13009 void *argp1 = 0 ;
13010 int res1 = 0 ;
13011 PyObject *swig_obj[1] ;
13012
13013 if (!args) SWIG_fail;
13014 swig_obj[0] = args;
13015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13016 if (!SWIG_IsOK(res1)) {
13017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13018 }
13019 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13020 result = (wxString *)& ((arg1)->CanonicalName);
13021 {
13022 #if wxUSE_UNICODE
13023 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13024 #else
13025 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13026 #endif
13027 }
13028 return resultobj;
13029 fail:
13030 return NULL;
13031 }
13032
13033
13034 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13035 PyObject *resultobj = 0;
13036 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13037 wxString *arg2 = (wxString *) 0 ;
13038 void *argp1 = 0 ;
13039 int res1 = 0 ;
13040 bool temp2 = false ;
13041 PyObject *swig_obj[2] ;
13042
13043 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13045 if (!SWIG_IsOK(res1)) {
13046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13047 }
13048 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13049 {
13050 arg2 = wxString_in_helper(swig_obj[1]);
13051 if (arg2 == NULL) SWIG_fail;
13052 temp2 = true;
13053 }
13054 if (arg1) (arg1)->Description = *arg2;
13055
13056 resultobj = SWIG_Py_Void();
13057 {
13058 if (temp2)
13059 delete arg2;
13060 }
13061 return resultobj;
13062 fail:
13063 {
13064 if (temp2)
13065 delete arg2;
13066 }
13067 return NULL;
13068 }
13069
13070
13071 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13072 PyObject *resultobj = 0;
13073 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13074 wxString *result = 0 ;
13075 void *argp1 = 0 ;
13076 int res1 = 0 ;
13077 PyObject *swig_obj[1] ;
13078
13079 if (!args) SWIG_fail;
13080 swig_obj[0] = args;
13081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13082 if (!SWIG_IsOK(res1)) {
13083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13084 }
13085 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13086 result = (wxString *)& ((arg1)->Description);
13087 {
13088 #if wxUSE_UNICODE
13089 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13090 #else
13091 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13092 #endif
13093 }
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13101 PyObject *obj;
13102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13103 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13104 return SWIG_Py_Void();
13105 }
13106
13107 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj = 0;
13109 int arg1 = (int) -1 ;
13110 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13111 wxLocale *result = 0 ;
13112 int val1 ;
13113 int ecode1 = 0 ;
13114 int val2 ;
13115 int ecode2 = 0 ;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 char * kwnames[] = {
13119 (char *) "language",(char *) "flags", NULL
13120 };
13121
13122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13123 if (obj0) {
13124 ecode1 = SWIG_AsVal_int(obj0, &val1);
13125 if (!SWIG_IsOK(ecode1)) {
13126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13127 }
13128 arg1 = static_cast< int >(val1);
13129 }
13130 if (obj1) {
13131 ecode2 = SWIG_AsVal_int(obj1, &val2);
13132 if (!SWIG_IsOK(ecode2)) {
13133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13134 }
13135 arg2 = static_cast< int >(val2);
13136 }
13137 {
13138 PyThreadState* __tstate = wxPyBeginAllowThreads();
13139 result = (wxLocale *)new_wxLocale(arg1,arg2);
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13151 PyObject *resultobj = 0;
13152 wxLocale *arg1 = (wxLocale *) 0 ;
13153 void *argp1 = 0 ;
13154 int res1 = 0 ;
13155 PyObject *swig_obj[1] ;
13156
13157 if (!args) SWIG_fail;
13158 swig_obj[0] = args;
13159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13160 if (!SWIG_IsOK(res1)) {
13161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13162 }
13163 arg1 = reinterpret_cast< wxLocale * >(argp1);
13164 {
13165 PyThreadState* __tstate = wxPyBeginAllowThreads();
13166 delete arg1;
13167
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 resultobj = SWIG_Py_Void();
13172 return resultobj;
13173 fail:
13174 return NULL;
13175 }
13176
13177
13178 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj = 0;
13180 wxLocale *arg1 = (wxLocale *) 0 ;
13181 wxString *arg2 = 0 ;
13182 wxString const &arg3_defvalue = wxPyEmptyString ;
13183 wxString *arg3 = (wxString *) &arg3_defvalue ;
13184 wxString const &arg4_defvalue = wxPyEmptyString ;
13185 wxString *arg4 = (wxString *) &arg4_defvalue ;
13186 bool arg5 = (bool) true ;
13187 bool arg6 = (bool) false ;
13188 bool result;
13189 void *argp1 = 0 ;
13190 int res1 = 0 ;
13191 bool temp2 = false ;
13192 bool temp3 = false ;
13193 bool temp4 = false ;
13194 bool val5 ;
13195 int ecode5 = 0 ;
13196 bool val6 ;
13197 int ecode6 = 0 ;
13198 PyObject * obj0 = 0 ;
13199 PyObject * obj1 = 0 ;
13200 PyObject * obj2 = 0 ;
13201 PyObject * obj3 = 0 ;
13202 PyObject * obj4 = 0 ;
13203 PyObject * obj5 = 0 ;
13204 char * kwnames[] = {
13205 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13206 };
13207
13208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13210 if (!SWIG_IsOK(res1)) {
13211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13212 }
13213 arg1 = reinterpret_cast< wxLocale * >(argp1);
13214 {
13215 arg2 = wxString_in_helper(obj1);
13216 if (arg2 == NULL) SWIG_fail;
13217 temp2 = true;
13218 }
13219 if (obj2) {
13220 {
13221 arg3 = wxString_in_helper(obj2);
13222 if (arg3 == NULL) SWIG_fail;
13223 temp3 = true;
13224 }
13225 }
13226 if (obj3) {
13227 {
13228 arg4 = wxString_in_helper(obj3);
13229 if (arg4 == NULL) SWIG_fail;
13230 temp4 = true;
13231 }
13232 }
13233 if (obj4) {
13234 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13235 if (!SWIG_IsOK(ecode5)) {
13236 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13237 }
13238 arg5 = static_cast< bool >(val5);
13239 }
13240 if (obj5) {
13241 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13242 if (!SWIG_IsOK(ecode6)) {
13243 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13244 }
13245 arg6 = static_cast< bool >(val6);
13246 }
13247 {
13248 PyThreadState* __tstate = wxPyBeginAllowThreads();
13249 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 {
13254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13255 }
13256 {
13257 if (temp2)
13258 delete arg2;
13259 }
13260 {
13261 if (temp3)
13262 delete arg3;
13263 }
13264 {
13265 if (temp4)
13266 delete arg4;
13267 }
13268 return resultobj;
13269 fail:
13270 {
13271 if (temp2)
13272 delete arg2;
13273 }
13274 {
13275 if (temp3)
13276 delete arg3;
13277 }
13278 {
13279 if (temp4)
13280 delete arg4;
13281 }
13282 return NULL;
13283 }
13284
13285
13286 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13287 PyObject *resultobj = 0;
13288 wxLocale *arg1 = (wxLocale *) 0 ;
13289 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13290 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13291 bool result;
13292 void *argp1 = 0 ;
13293 int res1 = 0 ;
13294 int val2 ;
13295 int ecode2 = 0 ;
13296 int val3 ;
13297 int ecode3 = 0 ;
13298 PyObject * obj0 = 0 ;
13299 PyObject * obj1 = 0 ;
13300 PyObject * obj2 = 0 ;
13301 char * kwnames[] = {
13302 (char *) "self",(char *) "language",(char *) "flags", NULL
13303 };
13304
13305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13307 if (!SWIG_IsOK(res1)) {
13308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13309 }
13310 arg1 = reinterpret_cast< wxLocale * >(argp1);
13311 if (obj1) {
13312 ecode2 = SWIG_AsVal_int(obj1, &val2);
13313 if (!SWIG_IsOK(ecode2)) {
13314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13315 }
13316 arg2 = static_cast< int >(val2);
13317 }
13318 if (obj2) {
13319 ecode3 = SWIG_AsVal_int(obj2, &val3);
13320 if (!SWIG_IsOK(ecode3)) {
13321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13322 }
13323 arg3 = static_cast< int >(val3);
13324 }
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 {
13332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13333 }
13334 return resultobj;
13335 fail:
13336 return NULL;
13337 }
13338
13339
13340 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13341 PyObject *resultobj = 0;
13342 int result;
13343
13344 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 result = (int)wxLocale::GetSystemLanguage();
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 resultobj = SWIG_From_int(static_cast< int >(result));
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13359 PyObject *resultobj = 0;
13360 wxFontEncoding result;
13361
13362 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13366 wxPyEndAllowThreads(__tstate);
13367 if (PyErr_Occurred()) SWIG_fail;
13368 }
13369 resultobj = SWIG_From_int(static_cast< int >(result));
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13377 PyObject *resultobj = 0;
13378 wxString result;
13379
13380 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 result = wxLocale::GetSystemEncodingName();
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 {
13388 #if wxUSE_UNICODE
13389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13390 #else
13391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13392 #endif
13393 }
13394 return resultobj;
13395 fail:
13396 return NULL;
13397 }
13398
13399
13400 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13401 PyObject *resultobj = 0;
13402 wxLocale *arg1 = (wxLocale *) 0 ;
13403 bool result;
13404 void *argp1 = 0 ;
13405 int res1 = 0 ;
13406 PyObject *swig_obj[1] ;
13407
13408 if (!args) SWIG_fail;
13409 swig_obj[0] = args;
13410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13411 if (!SWIG_IsOK(res1)) {
13412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13413 }
13414 arg1 = reinterpret_cast< wxLocale * >(argp1);
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 result = (bool)((wxLocale const *)arg1)->IsOk();
13418 wxPyEndAllowThreads(__tstate);
13419 if (PyErr_Occurred()) SWIG_fail;
13420 }
13421 {
13422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13423 }
13424 return resultobj;
13425 fail:
13426 return NULL;
13427 }
13428
13429
13430 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13431 PyObject *resultobj = 0;
13432 wxLocale *arg1 = (wxLocale *) 0 ;
13433 wxString result;
13434 void *argp1 = 0 ;
13435 int res1 = 0 ;
13436 PyObject *swig_obj[1] ;
13437
13438 if (!args) SWIG_fail;
13439 swig_obj[0] = args;
13440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13441 if (!SWIG_IsOK(res1)) {
13442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13443 }
13444 arg1 = reinterpret_cast< wxLocale * >(argp1);
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = ((wxLocale const *)arg1)->GetLocale();
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 {
13452 #if wxUSE_UNICODE
13453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13454 #else
13455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13456 #endif
13457 }
13458 return resultobj;
13459 fail:
13460 return NULL;
13461 }
13462
13463
13464 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13465 PyObject *resultobj = 0;
13466 wxLocale *arg1 = (wxLocale *) 0 ;
13467 int result;
13468 void *argp1 = 0 ;
13469 int res1 = 0 ;
13470 PyObject *swig_obj[1] ;
13471
13472 if (!args) SWIG_fail;
13473 swig_obj[0] = args;
13474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13475 if (!SWIG_IsOK(res1)) {
13476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13477 }
13478 arg1 = reinterpret_cast< wxLocale * >(argp1);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (int)((wxLocale const *)arg1)->GetLanguage();
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 resultobj = SWIG_From_int(static_cast< int >(result));
13486 return resultobj;
13487 fail:
13488 return NULL;
13489 }
13490
13491
13492 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxLocale *arg1 = (wxLocale *) 0 ;
13495 wxString result;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13505 }
13506 arg1 = reinterpret_cast< wxLocale * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 result = ((wxLocale const *)arg1)->GetSysName();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 {
13514 #if wxUSE_UNICODE
13515 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13516 #else
13517 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13518 #endif
13519 }
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13527 PyObject *resultobj = 0;
13528 wxLocale *arg1 = (wxLocale *) 0 ;
13529 wxString result;
13530 void *argp1 = 0 ;
13531 int res1 = 0 ;
13532 PyObject *swig_obj[1] ;
13533
13534 if (!args) SWIG_fail;
13535 swig_obj[0] = args;
13536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13537 if (!SWIG_IsOK(res1)) {
13538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13539 }
13540 arg1 = reinterpret_cast< wxLocale * >(argp1);
13541 {
13542 PyThreadState* __tstate = wxPyBeginAllowThreads();
13543 result = ((wxLocale const *)arg1)->GetCanonicalName();
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 {
13548 #if wxUSE_UNICODE
13549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13550 #else
13551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13552 #endif
13553 }
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj = 0;
13562 wxString *arg1 = 0 ;
13563 bool temp1 = false ;
13564 PyObject * obj0 = 0 ;
13565 char * kwnames[] = {
13566 (char *) "prefix", NULL
13567 };
13568
13569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13570 {
13571 arg1 = wxString_in_helper(obj0);
13572 if (arg1 == NULL) SWIG_fail;
13573 temp1 = true;
13574 }
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 resultobj = SWIG_Py_Void();
13582 {
13583 if (temp1)
13584 delete arg1;
13585 }
13586 return resultobj;
13587 fail:
13588 {
13589 if (temp1)
13590 delete arg1;
13591 }
13592 return NULL;
13593 }
13594
13595
13596 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13597 PyObject *resultobj = 0;
13598 wxLocale *arg1 = (wxLocale *) 0 ;
13599 wxString *arg2 = 0 ;
13600 bool result;
13601 void *argp1 = 0 ;
13602 int res1 = 0 ;
13603 bool temp2 = false ;
13604 PyObject * obj0 = 0 ;
13605 PyObject * obj1 = 0 ;
13606 char * kwnames[] = {
13607 (char *) "self",(char *) "szDomain", NULL
13608 };
13609
13610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13612 if (!SWIG_IsOK(res1)) {
13613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13614 }
13615 arg1 = reinterpret_cast< wxLocale * >(argp1);
13616 {
13617 arg2 = wxString_in_helper(obj1);
13618 if (arg2 == NULL) SWIG_fail;
13619 temp2 = true;
13620 }
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 {
13628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13629 }
13630 {
13631 if (temp2)
13632 delete arg2;
13633 }
13634 return resultobj;
13635 fail:
13636 {
13637 if (temp2)
13638 delete arg2;
13639 }
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj = 0;
13646 wxLocale *arg1 = (wxLocale *) 0 ;
13647 wxString *arg2 = 0 ;
13648 bool result;
13649 void *argp1 = 0 ;
13650 int res1 = 0 ;
13651 bool temp2 = false ;
13652 PyObject * obj0 = 0 ;
13653 PyObject * obj1 = 0 ;
13654 char * kwnames[] = {
13655 (char *) "self",(char *) "szDomain", NULL
13656 };
13657
13658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13660 if (!SWIG_IsOK(res1)) {
13661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13662 }
13663 arg1 = reinterpret_cast< wxLocale * >(argp1);
13664 {
13665 arg2 = wxString_in_helper(obj1);
13666 if (arg2 == NULL) SWIG_fail;
13667 temp2 = true;
13668 }
13669 {
13670 PyThreadState* __tstate = wxPyBeginAllowThreads();
13671 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13672 wxPyEndAllowThreads(__tstate);
13673 if (PyErr_Occurred()) SWIG_fail;
13674 }
13675 {
13676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13677 }
13678 {
13679 if (temp2)
13680 delete arg2;
13681 }
13682 return resultobj;
13683 fail:
13684 {
13685 if (temp2)
13686 delete arg2;
13687 }
13688 return NULL;
13689 }
13690
13691
13692 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13693 PyObject *resultobj = 0;
13694 int arg1 ;
13695 wxLanguageInfo *result = 0 ;
13696 int val1 ;
13697 int ecode1 = 0 ;
13698 PyObject * obj0 = 0 ;
13699 char * kwnames[] = {
13700 (char *) "lang", NULL
13701 };
13702
13703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13704 ecode1 = SWIG_AsVal_int(obj0, &val1);
13705 if (!SWIG_IsOK(ecode1)) {
13706 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13707 }
13708 arg1 = static_cast< int >(val1);
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj = 0;
13724 int arg1 ;
13725 wxString result;
13726 int val1 ;
13727 int ecode1 = 0 ;
13728 PyObject * obj0 = 0 ;
13729 char * kwnames[] = {
13730 (char *) "lang", NULL
13731 };
13732
13733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13734 ecode1 = SWIG_AsVal_int(obj0, &val1);
13735 if (!SWIG_IsOK(ecode1)) {
13736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13737 }
13738 arg1 = static_cast< int >(val1);
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 result = wxLocale::GetLanguageName(arg1);
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 #if wxUSE_UNICODE
13747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13748 #else
13749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13750 #endif
13751 }
13752 return resultobj;
13753 fail:
13754 return NULL;
13755 }
13756
13757
13758 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13759 PyObject *resultobj = 0;
13760 wxString *arg1 = 0 ;
13761 wxLanguageInfo *result = 0 ;
13762 bool temp1 = false ;
13763 PyObject * obj0 = 0 ;
13764 char * kwnames[] = {
13765 (char *) "locale", NULL
13766 };
13767
13768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13769 {
13770 arg1 = wxString_in_helper(obj0);
13771 if (arg1 == NULL) SWIG_fail;
13772 temp1 = true;
13773 }
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
13780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13781 {
13782 if (temp1)
13783 delete arg1;
13784 }
13785 return resultobj;
13786 fail:
13787 {
13788 if (temp1)
13789 delete arg1;
13790 }
13791 return NULL;
13792 }
13793
13794
13795 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13796 PyObject *resultobj = 0;
13797 wxLanguageInfo *arg1 = 0 ;
13798 void *argp1 = 0 ;
13799 int res1 = 0 ;
13800 PyObject * obj0 = 0 ;
13801 char * kwnames[] = {
13802 (char *) "info", NULL
13803 };
13804
13805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13806 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13807 if (!SWIG_IsOK(res1)) {
13808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13809 }
13810 if (!argp1) {
13811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13812 }
13813 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13814 {
13815 PyThreadState* __tstate = wxPyBeginAllowThreads();
13816 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 resultobj = SWIG_Py_Void();
13821 return resultobj;
13822 fail:
13823 return NULL;
13824 }
13825
13826
13827 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13828 PyObject *resultobj = 0;
13829 wxLocale *arg1 = (wxLocale *) 0 ;
13830 wxString *arg2 = 0 ;
13831 wxString const &arg3_defvalue = wxPyEmptyString ;
13832 wxString *arg3 = (wxString *) &arg3_defvalue ;
13833 wxString result;
13834 void *argp1 = 0 ;
13835 int res1 = 0 ;
13836 bool temp2 = false ;
13837 bool temp3 = false ;
13838 PyObject * obj0 = 0 ;
13839 PyObject * obj1 = 0 ;
13840 PyObject * obj2 = 0 ;
13841 char * kwnames[] = {
13842 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13843 };
13844
13845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13847 if (!SWIG_IsOK(res1)) {
13848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13849 }
13850 arg1 = reinterpret_cast< wxLocale * >(argp1);
13851 {
13852 arg2 = wxString_in_helper(obj1);
13853 if (arg2 == NULL) SWIG_fail;
13854 temp2 = true;
13855 }
13856 if (obj2) {
13857 {
13858 arg3 = wxString_in_helper(obj2);
13859 if (arg3 == NULL) SWIG_fail;
13860 temp3 = true;
13861 }
13862 }
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13866 wxPyEndAllowThreads(__tstate);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 {
13870 #if wxUSE_UNICODE
13871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13872 #else
13873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13874 #endif
13875 }
13876 {
13877 if (temp2)
13878 delete arg2;
13879 }
13880 {
13881 if (temp3)
13882 delete arg3;
13883 }
13884 return resultobj;
13885 fail:
13886 {
13887 if (temp2)
13888 delete arg2;
13889 }
13890 {
13891 if (temp3)
13892 delete arg3;
13893 }
13894 return NULL;
13895 }
13896
13897
13898 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13899 PyObject *resultobj = 0;
13900 wxLocale *arg1 = (wxLocale *) 0 ;
13901 wxString *result = 0 ;
13902 void *argp1 = 0 ;
13903 int res1 = 0 ;
13904 PyObject *swig_obj[1] ;
13905
13906 if (!args) SWIG_fail;
13907 swig_obj[0] = args;
13908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13909 if (!SWIG_IsOK(res1)) {
13910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13911 }
13912 arg1 = reinterpret_cast< wxLocale * >(argp1);
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 {
13916 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13917 result = (wxString *) &_result_ref;
13918 }
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 {
13923 #if wxUSE_UNICODE
13924 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13925 #else
13926 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13927 #endif
13928 }
13929 return resultobj;
13930 fail:
13931 return NULL;
13932 }
13933
13934
13935 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13936 PyObject *obj;
13937 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13938 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
13939 return SWIG_Py_Void();
13940 }
13941
13942 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13943 return SWIG_Python_InitShadowInstance(args);
13944 }
13945
13946 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13947 PyObject *resultobj = 0;
13948 wxLocale *result = 0 ;
13949
13950 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
13951 {
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = (wxLocale *)wxGetLocale();
13954 wxPyEndAllowThreads(__tstate);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 }
13957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
13958 return resultobj;
13959 fail:
13960 return NULL;
13961 }
13962
13963
13964 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13965 PyObject *resultobj = 0;
13966 wxString *arg1 = 0 ;
13967 wxString result;
13968 bool temp1 = false ;
13969
13970 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13971 {
13972 arg1 = wxString_in_helper(swig_obj[0]);
13973 if (arg1 == NULL) SWIG_fail;
13974 temp1 = true;
13975 }
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 result = wxGetTranslation((wxString const &)*arg1);
13979 wxPyEndAllowThreads(__tstate);
13980 if (PyErr_Occurred()) SWIG_fail;
13981 }
13982 {
13983 #if wxUSE_UNICODE
13984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13985 #else
13986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13987 #endif
13988 }
13989 {
13990 if (temp1)
13991 delete arg1;
13992 }
13993 return resultobj;
13994 fail:
13995 {
13996 if (temp1)
13997 delete arg1;
13998 }
13999 return NULL;
14000 }
14001
14002
14003 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14004 PyObject *resultobj = 0;
14005 wxString *arg1 = 0 ;
14006 wxString *arg2 = 0 ;
14007 size_t arg3 ;
14008 wxString result;
14009 bool temp1 = false ;
14010 bool temp2 = false ;
14011 size_t val3 ;
14012 int ecode3 = 0 ;
14013
14014 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14015 {
14016 arg1 = wxString_in_helper(swig_obj[0]);
14017 if (arg1 == NULL) SWIG_fail;
14018 temp1 = true;
14019 }
14020 {
14021 arg2 = wxString_in_helper(swig_obj[1]);
14022 if (arg2 == NULL) SWIG_fail;
14023 temp2 = true;
14024 }
14025 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14026 if (!SWIG_IsOK(ecode3)) {
14027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14028 }
14029 arg3 = static_cast< size_t >(val3);
14030 {
14031 PyThreadState* __tstate = wxPyBeginAllowThreads();
14032 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14033 wxPyEndAllowThreads(__tstate);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 {
14037 #if wxUSE_UNICODE
14038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14039 #else
14040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14041 #endif
14042 }
14043 {
14044 if (temp1)
14045 delete arg1;
14046 }
14047 {
14048 if (temp2)
14049 delete arg2;
14050 }
14051 return resultobj;
14052 fail:
14053 {
14054 if (temp1)
14055 delete arg1;
14056 }
14057 {
14058 if (temp2)
14059 delete arg2;
14060 }
14061 return NULL;
14062 }
14063
14064
14065 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14066 int argc;
14067 PyObject *argv[4];
14068
14069 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14070 --argc;
14071 if (argc == 1) {
14072 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14073 }
14074 if (argc == 3) {
14075 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14076 }
14077
14078 fail:
14079 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14080 return NULL;
14081 }
14082
14083
14084 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14085 PyObject *resultobj = 0;
14086 wxEncodingConverter *result = 0 ;
14087
14088 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14089 {
14090 PyThreadState* __tstate = wxPyBeginAllowThreads();
14091 result = (wxEncodingConverter *)new wxEncodingConverter();
14092 wxPyEndAllowThreads(__tstate);
14093 if (PyErr_Occurred()) SWIG_fail;
14094 }
14095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14096 return resultobj;
14097 fail:
14098 return NULL;
14099 }
14100
14101
14102 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14103 PyObject *resultobj = 0;
14104 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14105 void *argp1 = 0 ;
14106 int res1 = 0 ;
14107 PyObject *swig_obj[1] ;
14108
14109 if (!args) SWIG_fail;
14110 swig_obj[0] = args;
14111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14112 if (!SWIG_IsOK(res1)) {
14113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14114 }
14115 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 delete arg1;
14119
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 resultobj = SWIG_Py_Void();
14124 return resultobj;
14125 fail:
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14131 PyObject *resultobj = 0;
14132 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14133 wxFontEncoding arg2 ;
14134 wxFontEncoding arg3 ;
14135 int arg4 = (int) wxCONVERT_STRICT ;
14136 bool result;
14137 void *argp1 = 0 ;
14138 int res1 = 0 ;
14139 int val2 ;
14140 int ecode2 = 0 ;
14141 int val3 ;
14142 int ecode3 = 0 ;
14143 int val4 ;
14144 int ecode4 = 0 ;
14145 PyObject * obj0 = 0 ;
14146 PyObject * obj1 = 0 ;
14147 PyObject * obj2 = 0 ;
14148 PyObject * obj3 = 0 ;
14149 char * kwnames[] = {
14150 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14151 };
14152
14153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14155 if (!SWIG_IsOK(res1)) {
14156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14157 }
14158 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14159 ecode2 = SWIG_AsVal_int(obj1, &val2);
14160 if (!SWIG_IsOK(ecode2)) {
14161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14162 }
14163 arg2 = static_cast< wxFontEncoding >(val2);
14164 ecode3 = SWIG_AsVal_int(obj2, &val3);
14165 if (!SWIG_IsOK(ecode3)) {
14166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14167 }
14168 arg3 = static_cast< wxFontEncoding >(val3);
14169 if (obj3) {
14170 ecode4 = SWIG_AsVal_int(obj3, &val4);
14171 if (!SWIG_IsOK(ecode4)) {
14172 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14173 }
14174 arg4 = static_cast< int >(val4);
14175 }
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14179 wxPyEndAllowThreads(__tstate);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 }
14182 {
14183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14184 }
14185 return resultobj;
14186 fail:
14187 return NULL;
14188 }
14189
14190
14191 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj = 0;
14193 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14194 wxString *arg2 = 0 ;
14195 wxString result;
14196 void *argp1 = 0 ;
14197 int res1 = 0 ;
14198 bool temp2 = false ;
14199 PyObject * obj0 = 0 ;
14200 PyObject * obj1 = 0 ;
14201 char * kwnames[] = {
14202 (char *) "self",(char *) "input", NULL
14203 };
14204
14205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14207 if (!SWIG_IsOK(res1)) {
14208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14209 }
14210 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14211 {
14212 arg2 = wxString_in_helper(obj1);
14213 if (arg2 == NULL) SWIG_fail;
14214 temp2 = true;
14215 }
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 result = (arg1)->Convert((wxString const &)*arg2);
14219 wxPyEndAllowThreads(__tstate);
14220 if (PyErr_Occurred()) SWIG_fail;
14221 }
14222 {
14223 #if wxUSE_UNICODE
14224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14225 #else
14226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14227 #endif
14228 }
14229 {
14230 if (temp2)
14231 delete arg2;
14232 }
14233 return resultobj;
14234 fail:
14235 {
14236 if (temp2)
14237 delete arg2;
14238 }
14239 return NULL;
14240 }
14241
14242
14243 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj = 0;
14245 wxFontEncoding arg1 ;
14246 int arg2 = (int) wxPLATFORM_CURRENT ;
14247 wxFontEncodingArray result;
14248 int val1 ;
14249 int ecode1 = 0 ;
14250 int val2 ;
14251 int ecode2 = 0 ;
14252 PyObject * obj0 = 0 ;
14253 PyObject * obj1 = 0 ;
14254 char * kwnames[] = {
14255 (char *) "enc",(char *) "platform", NULL
14256 };
14257
14258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14259 ecode1 = SWIG_AsVal_int(obj0, &val1);
14260 if (!SWIG_IsOK(ecode1)) {
14261 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14262 }
14263 arg1 = static_cast< wxFontEncoding >(val1);
14264 if (obj1) {
14265 ecode2 = SWIG_AsVal_int(obj1, &val2);
14266 if (!SWIG_IsOK(ecode2)) {
14267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14268 }
14269 arg2 = static_cast< int >(val2);
14270 }
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 {
14278 resultobj = PyList_New(0);
14279 for (size_t i=0; i < (&result)->GetCount(); i++) {
14280 PyObject* number = PyInt_FromLong((&result)->Item(i));
14281 PyList_Append(resultobj, number);
14282 Py_DECREF(number);
14283 }
14284 }
14285 return resultobj;
14286 fail:
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14292 PyObject *resultobj = 0;
14293 wxFontEncoding arg1 ;
14294 wxFontEncodingArray result;
14295 int val1 ;
14296 int ecode1 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 char * kwnames[] = {
14299 (char *) "enc", NULL
14300 };
14301
14302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14303 ecode1 = SWIG_AsVal_int(obj0, &val1);
14304 if (!SWIG_IsOK(ecode1)) {
14305 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14306 }
14307 arg1 = static_cast< wxFontEncoding >(val1);
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = wxEncodingConverter::GetAllEquivalents(arg1);
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 resultobj = PyList_New(0);
14316 for (size_t i=0; i < (&result)->GetCount(); i++) {
14317 PyObject* number = PyInt_FromLong((&result)->Item(i));
14318 PyList_Append(resultobj, number);
14319 Py_DECREF(number);
14320 }
14321 }
14322 return resultobj;
14323 fail:
14324 return NULL;
14325 }
14326
14327
14328 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14329 PyObject *resultobj = 0;
14330 wxFontEncoding arg1 ;
14331 wxFontEncoding arg2 ;
14332 bool result;
14333 int val1 ;
14334 int ecode1 = 0 ;
14335 int val2 ;
14336 int ecode2 = 0 ;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 char * kwnames[] = {
14340 (char *) "encIn",(char *) "encOut", NULL
14341 };
14342
14343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14344 ecode1 = SWIG_AsVal_int(obj0, &val1);
14345 if (!SWIG_IsOK(ecode1)) {
14346 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14347 }
14348 arg1 = static_cast< wxFontEncoding >(val1);
14349 ecode2 = SWIG_AsVal_int(obj1, &val2);
14350 if (!SWIG_IsOK(ecode2)) {
14351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14352 }
14353 arg2 = static_cast< wxFontEncoding >(val2);
14354 {
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 {
14361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14362 }
14363 return resultobj;
14364 fail:
14365 return NULL;
14366 }
14367
14368
14369 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14370 PyObject *obj;
14371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14372 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14373 return SWIG_Py_Void();
14374 }
14375
14376 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14377 return SWIG_Python_InitShadowInstance(args);
14378 }
14379
14380 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14381 PyObject *resultobj = 0;
14382 wxDC *arg1 = (wxDC *) 0 ;
14383 void *argp1 = 0 ;
14384 int res1 = 0 ;
14385 PyObject *swig_obj[1] ;
14386
14387 if (!args) SWIG_fail;
14388 swig_obj[0] = args;
14389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14390 if (!SWIG_IsOK(res1)) {
14391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14392 }
14393 arg1 = reinterpret_cast< wxDC * >(argp1);
14394 {
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 delete arg1;
14397
14398 wxPyEndAllowThreads(__tstate);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 }
14401 resultobj = SWIG_Py_Void();
14402 return resultobj;
14403 fail:
14404 return NULL;
14405 }
14406
14407
14408 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14409 PyObject *resultobj = 0;
14410 wxDC *arg1 = (wxDC *) 0 ;
14411 int arg2 ;
14412 int arg3 ;
14413 wxColour *arg4 = 0 ;
14414 int arg5 = (int) wxFLOOD_SURFACE ;
14415 bool result;
14416 void *argp1 = 0 ;
14417 int res1 = 0 ;
14418 int val2 ;
14419 int ecode2 = 0 ;
14420 int val3 ;
14421 int ecode3 = 0 ;
14422 wxColour temp4 ;
14423 int val5 ;
14424 int ecode5 = 0 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 PyObject * obj2 = 0 ;
14428 PyObject * obj3 = 0 ;
14429 PyObject * obj4 = 0 ;
14430 char * kwnames[] = {
14431 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14432 };
14433
14434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14436 if (!SWIG_IsOK(res1)) {
14437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14438 }
14439 arg1 = reinterpret_cast< wxDC * >(argp1);
14440 ecode2 = SWIG_AsVal_int(obj1, &val2);
14441 if (!SWIG_IsOK(ecode2)) {
14442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14443 }
14444 arg2 = static_cast< int >(val2);
14445 ecode3 = SWIG_AsVal_int(obj2, &val3);
14446 if (!SWIG_IsOK(ecode3)) {
14447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14448 }
14449 arg3 = static_cast< int >(val3);
14450 {
14451 arg4 = &temp4;
14452 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14453 }
14454 if (obj4) {
14455 ecode5 = SWIG_AsVal_int(obj4, &val5);
14456 if (!SWIG_IsOK(ecode5)) {
14457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14458 }
14459 arg5 = static_cast< int >(val5);
14460 }
14461 {
14462 PyThreadState* __tstate = wxPyBeginAllowThreads();
14463 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14464 wxPyEndAllowThreads(__tstate);
14465 if (PyErr_Occurred()) SWIG_fail;
14466 }
14467 {
14468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14469 }
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj = 0;
14478 wxDC *arg1 = (wxDC *) 0 ;
14479 wxPoint *arg2 = 0 ;
14480 wxColour *arg3 = 0 ;
14481 int arg4 = (int) wxFLOOD_SURFACE ;
14482 bool result;
14483 void *argp1 = 0 ;
14484 int res1 = 0 ;
14485 wxPoint temp2 ;
14486 wxColour temp3 ;
14487 int val4 ;
14488 int ecode4 = 0 ;
14489 PyObject * obj0 = 0 ;
14490 PyObject * obj1 = 0 ;
14491 PyObject * obj2 = 0 ;
14492 PyObject * obj3 = 0 ;
14493 char * kwnames[] = {
14494 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14495 };
14496
14497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14501 }
14502 arg1 = reinterpret_cast< wxDC * >(argp1);
14503 {
14504 arg2 = &temp2;
14505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14506 }
14507 {
14508 arg3 = &temp3;
14509 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14510 }
14511 if (obj3) {
14512 ecode4 = SWIG_AsVal_int(obj3, &val4);
14513 if (!SWIG_IsOK(ecode4)) {
14514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14515 }
14516 arg4 = static_cast< int >(val4);
14517 }
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14521 wxPyEndAllowThreads(__tstate);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 {
14525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14526 }
14527 return resultobj;
14528 fail:
14529 return NULL;
14530 }
14531
14532
14533 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14534 PyObject *resultobj = 0;
14535 wxDC *arg1 = (wxDC *) 0 ;
14536 wxRect *arg2 = 0 ;
14537 wxColour *arg3 = 0 ;
14538 wxColour *arg4 = 0 ;
14539 wxPoint *arg5 = 0 ;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 wxRect temp2 ;
14543 wxColour temp3 ;
14544 wxColour temp4 ;
14545 wxPoint temp5 ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 PyObject * obj2 = 0 ;
14549 PyObject * obj3 = 0 ;
14550 PyObject * obj4 = 0 ;
14551 char * kwnames[] = {
14552 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14553 };
14554
14555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14557 if (!SWIG_IsOK(res1)) {
14558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14559 }
14560 arg1 = reinterpret_cast< wxDC * >(argp1);
14561 {
14562 arg2 = &temp2;
14563 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14564 }
14565 {
14566 arg3 = &temp3;
14567 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14568 }
14569 {
14570 arg4 = &temp4;
14571 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14572 }
14573 {
14574 arg5 = &temp5;
14575 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14576 }
14577 {
14578 PyThreadState* __tstate = wxPyBeginAllowThreads();
14579 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_Py_Void();
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj = 0;
14592 wxDC *arg1 = (wxDC *) 0 ;
14593 wxRect *arg2 = 0 ;
14594 wxColour *arg3 = 0 ;
14595 wxColour *arg4 = 0 ;
14596 wxDirection arg5 = (wxDirection) wxEAST ;
14597 void *argp1 = 0 ;
14598 int res1 = 0 ;
14599 wxRect temp2 ;
14600 wxColour temp3 ;
14601 wxColour temp4 ;
14602 int val5 ;
14603 int ecode5 = 0 ;
14604 PyObject * obj0 = 0 ;
14605 PyObject * obj1 = 0 ;
14606 PyObject * obj2 = 0 ;
14607 PyObject * obj3 = 0 ;
14608 PyObject * obj4 = 0 ;
14609 char * kwnames[] = {
14610 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14611 };
14612
14613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14617 }
14618 arg1 = reinterpret_cast< wxDC * >(argp1);
14619 {
14620 arg2 = &temp2;
14621 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14622 }
14623 {
14624 arg3 = &temp3;
14625 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14626 }
14627 {
14628 arg4 = &temp4;
14629 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14630 }
14631 if (obj4) {
14632 ecode5 = SWIG_AsVal_int(obj4, &val5);
14633 if (!SWIG_IsOK(ecode5)) {
14634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14635 }
14636 arg5 = static_cast< wxDirection >(val5);
14637 }
14638 {
14639 PyThreadState* __tstate = wxPyBeginAllowThreads();
14640 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14641 wxPyEndAllowThreads(__tstate);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 }
14644 resultobj = SWIG_Py_Void();
14645 return resultobj;
14646 fail:
14647 return NULL;
14648 }
14649
14650
14651 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14652 PyObject *resultobj = 0;
14653 wxDC *arg1 = (wxDC *) 0 ;
14654 int arg2 ;
14655 int arg3 ;
14656 wxColour result;
14657 void *argp1 = 0 ;
14658 int res1 = 0 ;
14659 int val2 ;
14660 int ecode2 = 0 ;
14661 int val3 ;
14662 int ecode3 = 0 ;
14663 PyObject * obj0 = 0 ;
14664 PyObject * obj1 = 0 ;
14665 PyObject * obj2 = 0 ;
14666 char * kwnames[] = {
14667 (char *) "self",(char *) "x",(char *) "y", NULL
14668 };
14669
14670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14672 if (!SWIG_IsOK(res1)) {
14673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14674 }
14675 arg1 = reinterpret_cast< wxDC * >(argp1);
14676 ecode2 = SWIG_AsVal_int(obj1, &val2);
14677 if (!SWIG_IsOK(ecode2)) {
14678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14679 }
14680 arg2 = static_cast< int >(val2);
14681 ecode3 = SWIG_AsVal_int(obj2, &val3);
14682 if (!SWIG_IsOK(ecode3)) {
14683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14684 }
14685 arg3 = static_cast< int >(val3);
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = wxDC_GetPixel(arg1,arg2,arg3);
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj = 0;
14701 wxDC *arg1 = (wxDC *) 0 ;
14702 wxPoint *arg2 = 0 ;
14703 wxColour result;
14704 void *argp1 = 0 ;
14705 int res1 = 0 ;
14706 wxPoint temp2 ;
14707 PyObject * obj0 = 0 ;
14708 PyObject * obj1 = 0 ;
14709 char * kwnames[] = {
14710 (char *) "self",(char *) "pt", NULL
14711 };
14712
14713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14715 if (!SWIG_IsOK(res1)) {
14716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14717 }
14718 arg1 = reinterpret_cast< wxDC * >(argp1);
14719 {
14720 arg2 = &temp2;
14721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14722 }
14723 {
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14730 return resultobj;
14731 fail:
14732 return NULL;
14733 }
14734
14735
14736 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj = 0;
14738 wxDC *arg1 = (wxDC *) 0 ;
14739 int arg2 ;
14740 int arg3 ;
14741 int arg4 ;
14742 int arg5 ;
14743 void *argp1 = 0 ;
14744 int res1 = 0 ;
14745 int val2 ;
14746 int ecode2 = 0 ;
14747 int val3 ;
14748 int ecode3 = 0 ;
14749 int val4 ;
14750 int ecode4 = 0 ;
14751 int val5 ;
14752 int ecode5 = 0 ;
14753 PyObject * obj0 = 0 ;
14754 PyObject * obj1 = 0 ;
14755 PyObject * obj2 = 0 ;
14756 PyObject * obj3 = 0 ;
14757 PyObject * obj4 = 0 ;
14758 char * kwnames[] = {
14759 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14760 };
14761
14762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14764 if (!SWIG_IsOK(res1)) {
14765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14766 }
14767 arg1 = reinterpret_cast< wxDC * >(argp1);
14768 ecode2 = SWIG_AsVal_int(obj1, &val2);
14769 if (!SWIG_IsOK(ecode2)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14771 }
14772 arg2 = static_cast< int >(val2);
14773 ecode3 = SWIG_AsVal_int(obj2, &val3);
14774 if (!SWIG_IsOK(ecode3)) {
14775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14776 }
14777 arg3 = static_cast< int >(val3);
14778 ecode4 = SWIG_AsVal_int(obj3, &val4);
14779 if (!SWIG_IsOK(ecode4)) {
14780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14781 }
14782 arg4 = static_cast< int >(val4);
14783 ecode5 = SWIG_AsVal_int(obj4, &val5);
14784 if (!SWIG_IsOK(ecode5)) {
14785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14786 }
14787 arg5 = static_cast< int >(val5);
14788 {
14789 PyThreadState* __tstate = wxPyBeginAllowThreads();
14790 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14791 wxPyEndAllowThreads(__tstate);
14792 if (PyErr_Occurred()) SWIG_fail;
14793 }
14794 resultobj = SWIG_Py_Void();
14795 return resultobj;
14796 fail:
14797 return NULL;
14798 }
14799
14800
14801 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14802 PyObject *resultobj = 0;
14803 wxDC *arg1 = (wxDC *) 0 ;
14804 wxPoint *arg2 = 0 ;
14805 wxPoint *arg3 = 0 ;
14806 void *argp1 = 0 ;
14807 int res1 = 0 ;
14808 wxPoint temp2 ;
14809 wxPoint temp3 ;
14810 PyObject * obj0 = 0 ;
14811 PyObject * obj1 = 0 ;
14812 PyObject * obj2 = 0 ;
14813 char * kwnames[] = {
14814 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14815 };
14816
14817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14819 if (!SWIG_IsOK(res1)) {
14820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14821 }
14822 arg1 = reinterpret_cast< wxDC * >(argp1);
14823 {
14824 arg2 = &temp2;
14825 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14826 }
14827 {
14828 arg3 = &temp3;
14829 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14830 }
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = SWIG_Py_Void();
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14845 PyObject *resultobj = 0;
14846 wxDC *arg1 = (wxDC *) 0 ;
14847 int arg2 ;
14848 int arg3 ;
14849 void *argp1 = 0 ;
14850 int res1 = 0 ;
14851 int val2 ;
14852 int ecode2 = 0 ;
14853 int val3 ;
14854 int ecode3 = 0 ;
14855 PyObject * obj0 = 0 ;
14856 PyObject * obj1 = 0 ;
14857 PyObject * obj2 = 0 ;
14858 char * kwnames[] = {
14859 (char *) "self",(char *) "x",(char *) "y", NULL
14860 };
14861
14862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
14865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14866 }
14867 arg1 = reinterpret_cast< wxDC * >(argp1);
14868 ecode2 = SWIG_AsVal_int(obj1, &val2);
14869 if (!SWIG_IsOK(ecode2)) {
14870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14871 }
14872 arg2 = static_cast< int >(val2);
14873 ecode3 = SWIG_AsVal_int(obj2, &val3);
14874 if (!SWIG_IsOK(ecode3)) {
14875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14876 }
14877 arg3 = static_cast< int >(val3);
14878 {
14879 PyThreadState* __tstate = wxPyBeginAllowThreads();
14880 (arg1)->CrossHair(arg2,arg3);
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 resultobj = SWIG_Py_Void();
14885 return resultobj;
14886 fail:
14887 return NULL;
14888 }
14889
14890
14891 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14892 PyObject *resultobj = 0;
14893 wxDC *arg1 = (wxDC *) 0 ;
14894 wxPoint *arg2 = 0 ;
14895 void *argp1 = 0 ;
14896 int res1 = 0 ;
14897 wxPoint temp2 ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 char * kwnames[] = {
14901 (char *) "self",(char *) "pt", NULL
14902 };
14903
14904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14906 if (!SWIG_IsOK(res1)) {
14907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14908 }
14909 arg1 = reinterpret_cast< wxDC * >(argp1);
14910 {
14911 arg2 = &temp2;
14912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14913 }
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 (arg1)->CrossHair((wxPoint const &)*arg2);
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = SWIG_Py_Void();
14921 return resultobj;
14922 fail:
14923 return NULL;
14924 }
14925
14926
14927 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj = 0;
14929 wxDC *arg1 = (wxDC *) 0 ;
14930 int arg2 ;
14931 int arg3 ;
14932 int arg4 ;
14933 int arg5 ;
14934 int arg6 ;
14935 int arg7 ;
14936 void *argp1 = 0 ;
14937 int res1 = 0 ;
14938 int val2 ;
14939 int ecode2 = 0 ;
14940 int val3 ;
14941 int ecode3 = 0 ;
14942 int val4 ;
14943 int ecode4 = 0 ;
14944 int val5 ;
14945 int ecode5 = 0 ;
14946 int val6 ;
14947 int ecode6 = 0 ;
14948 int val7 ;
14949 int ecode7 = 0 ;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 PyObject * obj2 = 0 ;
14953 PyObject * obj3 = 0 ;
14954 PyObject * obj4 = 0 ;
14955 PyObject * obj5 = 0 ;
14956 PyObject * obj6 = 0 ;
14957 char * kwnames[] = {
14958 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
14959 };
14960
14961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14963 if (!SWIG_IsOK(res1)) {
14964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
14965 }
14966 arg1 = reinterpret_cast< wxDC * >(argp1);
14967 ecode2 = SWIG_AsVal_int(obj1, &val2);
14968 if (!SWIG_IsOK(ecode2)) {
14969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
14970 }
14971 arg2 = static_cast< int >(val2);
14972 ecode3 = SWIG_AsVal_int(obj2, &val3);
14973 if (!SWIG_IsOK(ecode3)) {
14974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
14975 }
14976 arg3 = static_cast< int >(val3);
14977 ecode4 = SWIG_AsVal_int(obj3, &val4);
14978 if (!SWIG_IsOK(ecode4)) {
14979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
14980 }
14981 arg4 = static_cast< int >(val4);
14982 ecode5 = SWIG_AsVal_int(obj4, &val5);
14983 if (!SWIG_IsOK(ecode5)) {
14984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
14985 }
14986 arg5 = static_cast< int >(val5);
14987 ecode6 = SWIG_AsVal_int(obj5, &val6);
14988 if (!SWIG_IsOK(ecode6)) {
14989 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
14990 }
14991 arg6 = static_cast< int >(val6);
14992 ecode7 = SWIG_AsVal_int(obj6, &val7);
14993 if (!SWIG_IsOK(ecode7)) {
14994 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
14995 }
14996 arg7 = static_cast< int >(val7);
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15000 wxPyEndAllowThreads(__tstate);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 }
15003 resultobj = SWIG_Py_Void();
15004 return resultobj;
15005 fail:
15006 return NULL;
15007 }
15008
15009
15010 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15011 PyObject *resultobj = 0;
15012 wxDC *arg1 = (wxDC *) 0 ;
15013 wxPoint *arg2 = 0 ;
15014 wxPoint *arg3 = 0 ;
15015 wxPoint *arg4 = 0 ;
15016 void *argp1 = 0 ;
15017 int res1 = 0 ;
15018 wxPoint temp2 ;
15019 wxPoint temp3 ;
15020 wxPoint temp4 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 PyObject * obj2 = 0 ;
15024 PyObject * obj3 = 0 ;
15025 char * kwnames[] = {
15026 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15027 };
15028
15029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15031 if (!SWIG_IsOK(res1)) {
15032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15033 }
15034 arg1 = reinterpret_cast< wxDC * >(argp1);
15035 {
15036 arg2 = &temp2;
15037 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15038 }
15039 {
15040 arg3 = &temp3;
15041 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15042 }
15043 {
15044 arg4 = &temp4;
15045 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15046 }
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15050 wxPyEndAllowThreads(__tstate);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 }
15053 resultobj = SWIG_Py_Void();
15054 return resultobj;
15055 fail:
15056 return NULL;
15057 }
15058
15059
15060 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15061 PyObject *resultobj = 0;
15062 wxDC *arg1 = (wxDC *) 0 ;
15063 int arg2 ;
15064 int arg3 ;
15065 int arg4 ;
15066 int arg5 ;
15067 void *argp1 = 0 ;
15068 int res1 = 0 ;
15069 int val2 ;
15070 int ecode2 = 0 ;
15071 int val3 ;
15072 int ecode3 = 0 ;
15073 int val4 ;
15074 int ecode4 = 0 ;
15075 int val5 ;
15076 int ecode5 = 0 ;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 PyObject * obj2 = 0 ;
15080 PyObject * obj3 = 0 ;
15081 PyObject * obj4 = 0 ;
15082 char * kwnames[] = {
15083 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15084 };
15085
15086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15088 if (!SWIG_IsOK(res1)) {
15089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15090 }
15091 arg1 = reinterpret_cast< wxDC * >(argp1);
15092 ecode2 = SWIG_AsVal_int(obj1, &val2);
15093 if (!SWIG_IsOK(ecode2)) {
15094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15095 }
15096 arg2 = static_cast< int >(val2);
15097 ecode3 = SWIG_AsVal_int(obj2, &val3);
15098 if (!SWIG_IsOK(ecode3)) {
15099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15100 }
15101 arg3 = static_cast< int >(val3);
15102 ecode4 = SWIG_AsVal_int(obj3, &val4);
15103 if (!SWIG_IsOK(ecode4)) {
15104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15105 }
15106 arg4 = static_cast< int >(val4);
15107 ecode5 = SWIG_AsVal_int(obj4, &val5);
15108 if (!SWIG_IsOK(ecode5)) {
15109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15110 }
15111 arg5 = static_cast< int >(val5);
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 resultobj = SWIG_Py_Void();
15119 return resultobj;
15120 fail:
15121 return NULL;
15122 }
15123
15124
15125 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15126 PyObject *resultobj = 0;
15127 wxDC *arg1 = (wxDC *) 0 ;
15128 wxRect *arg2 = 0 ;
15129 void *argp1 = 0 ;
15130 int res1 = 0 ;
15131 wxRect temp2 ;
15132 PyObject * obj0 = 0 ;
15133 PyObject * obj1 = 0 ;
15134 char * kwnames[] = {
15135 (char *) "self",(char *) "rect", NULL
15136 };
15137
15138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15140 if (!SWIG_IsOK(res1)) {
15141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15142 }
15143 arg1 = reinterpret_cast< wxDC * >(argp1);
15144 {
15145 arg2 = &temp2;
15146 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15147 }
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 resultobj = SWIG_Py_Void();
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15162 PyObject *resultobj = 0;
15163 wxDC *arg1 = (wxDC *) 0 ;
15164 int arg2 ;
15165 int arg3 ;
15166 int arg4 ;
15167 int arg5 ;
15168 double arg6 ;
15169 double arg7 ;
15170 void *argp1 = 0 ;
15171 int res1 = 0 ;
15172 int val2 ;
15173 int ecode2 = 0 ;
15174 int val3 ;
15175 int ecode3 = 0 ;
15176 int val4 ;
15177 int ecode4 = 0 ;
15178 int val5 ;
15179 int ecode5 = 0 ;
15180 double val6 ;
15181 int ecode6 = 0 ;
15182 double val7 ;
15183 int ecode7 = 0 ;
15184 PyObject * obj0 = 0 ;
15185 PyObject * obj1 = 0 ;
15186 PyObject * obj2 = 0 ;
15187 PyObject * obj3 = 0 ;
15188 PyObject * obj4 = 0 ;
15189 PyObject * obj5 = 0 ;
15190 PyObject * obj6 = 0 ;
15191 char * kwnames[] = {
15192 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15193 };
15194
15195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15197 if (!SWIG_IsOK(res1)) {
15198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15199 }
15200 arg1 = reinterpret_cast< wxDC * >(argp1);
15201 ecode2 = SWIG_AsVal_int(obj1, &val2);
15202 if (!SWIG_IsOK(ecode2)) {
15203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15204 }
15205 arg2 = static_cast< int >(val2);
15206 ecode3 = SWIG_AsVal_int(obj2, &val3);
15207 if (!SWIG_IsOK(ecode3)) {
15208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15209 }
15210 arg3 = static_cast< int >(val3);
15211 ecode4 = SWIG_AsVal_int(obj3, &val4);
15212 if (!SWIG_IsOK(ecode4)) {
15213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15214 }
15215 arg4 = static_cast< int >(val4);
15216 ecode5 = SWIG_AsVal_int(obj4, &val5);
15217 if (!SWIG_IsOK(ecode5)) {
15218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15219 }
15220 arg5 = static_cast< int >(val5);
15221 ecode6 = SWIG_AsVal_double(obj5, &val6);
15222 if (!SWIG_IsOK(ecode6)) {
15223 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15224 }
15225 arg6 = static_cast< double >(val6);
15226 ecode7 = SWIG_AsVal_double(obj6, &val7);
15227 if (!SWIG_IsOK(ecode7)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15229 }
15230 arg7 = static_cast< double >(val7);
15231 {
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 resultobj = SWIG_Py_Void();
15238 return resultobj;
15239 fail:
15240 return NULL;
15241 }
15242
15243
15244 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15245 PyObject *resultobj = 0;
15246 wxDC *arg1 = (wxDC *) 0 ;
15247 wxPoint *arg2 = 0 ;
15248 wxSize *arg3 = 0 ;
15249 double arg4 ;
15250 double arg5 ;
15251 void *argp1 = 0 ;
15252 int res1 = 0 ;
15253 wxPoint temp2 ;
15254 wxSize temp3 ;
15255 double val4 ;
15256 int ecode4 = 0 ;
15257 double val5 ;
15258 int ecode5 = 0 ;
15259 PyObject * obj0 = 0 ;
15260 PyObject * obj1 = 0 ;
15261 PyObject * obj2 = 0 ;
15262 PyObject * obj3 = 0 ;
15263 PyObject * obj4 = 0 ;
15264 char * kwnames[] = {
15265 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15266 };
15267
15268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15270 if (!SWIG_IsOK(res1)) {
15271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15272 }
15273 arg1 = reinterpret_cast< wxDC * >(argp1);
15274 {
15275 arg2 = &temp2;
15276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15277 }
15278 {
15279 arg3 = &temp3;
15280 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15281 }
15282 ecode4 = SWIG_AsVal_double(obj3, &val4);
15283 if (!SWIG_IsOK(ecode4)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15285 }
15286 arg4 = static_cast< double >(val4);
15287 ecode5 = SWIG_AsVal_double(obj4, &val5);
15288 if (!SWIG_IsOK(ecode5)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15290 }
15291 arg5 = static_cast< double >(val5);
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_Py_Void();
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj = 0;
15307 wxDC *arg1 = (wxDC *) 0 ;
15308 int arg2 ;
15309 int arg3 ;
15310 void *argp1 = 0 ;
15311 int res1 = 0 ;
15312 int val2 ;
15313 int ecode2 = 0 ;
15314 int val3 ;
15315 int ecode3 = 0 ;
15316 PyObject * obj0 = 0 ;
15317 PyObject * obj1 = 0 ;
15318 PyObject * obj2 = 0 ;
15319 char * kwnames[] = {
15320 (char *) "self",(char *) "x",(char *) "y", NULL
15321 };
15322
15323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15325 if (!SWIG_IsOK(res1)) {
15326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15327 }
15328 arg1 = reinterpret_cast< wxDC * >(argp1);
15329 ecode2 = SWIG_AsVal_int(obj1, &val2);
15330 if (!SWIG_IsOK(ecode2)) {
15331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15332 }
15333 arg2 = static_cast< int >(val2);
15334 ecode3 = SWIG_AsVal_int(obj2, &val3);
15335 if (!SWIG_IsOK(ecode3)) {
15336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15337 }
15338 arg3 = static_cast< int >(val3);
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 (arg1)->DrawPoint(arg2,arg3);
15342 wxPyEndAllowThreads(__tstate);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
15345 resultobj = SWIG_Py_Void();
15346 return resultobj;
15347 fail:
15348 return NULL;
15349 }
15350
15351
15352 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15353 PyObject *resultobj = 0;
15354 wxDC *arg1 = (wxDC *) 0 ;
15355 wxPoint *arg2 = 0 ;
15356 void *argp1 = 0 ;
15357 int res1 = 0 ;
15358 wxPoint temp2 ;
15359 PyObject * obj0 = 0 ;
15360 PyObject * obj1 = 0 ;
15361 char * kwnames[] = {
15362 (char *) "self",(char *) "pt", NULL
15363 };
15364
15365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15367 if (!SWIG_IsOK(res1)) {
15368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15369 }
15370 arg1 = reinterpret_cast< wxDC * >(argp1);
15371 {
15372 arg2 = &temp2;
15373 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15374 }
15375 {
15376 PyThreadState* __tstate = wxPyBeginAllowThreads();
15377 (arg1)->DrawPoint((wxPoint const &)*arg2);
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_Py_Void();
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj = 0;
15390 wxDC *arg1 = (wxDC *) 0 ;
15391 int arg2 ;
15392 int arg3 ;
15393 int arg4 ;
15394 int arg5 ;
15395 void *argp1 = 0 ;
15396 int res1 = 0 ;
15397 int val2 ;
15398 int ecode2 = 0 ;
15399 int val3 ;
15400 int ecode3 = 0 ;
15401 int val4 ;
15402 int ecode4 = 0 ;
15403 int val5 ;
15404 int ecode5 = 0 ;
15405 PyObject * obj0 = 0 ;
15406 PyObject * obj1 = 0 ;
15407 PyObject * obj2 = 0 ;
15408 PyObject * obj3 = 0 ;
15409 PyObject * obj4 = 0 ;
15410 char * kwnames[] = {
15411 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15412 };
15413
15414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15416 if (!SWIG_IsOK(res1)) {
15417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15418 }
15419 arg1 = reinterpret_cast< wxDC * >(argp1);
15420 ecode2 = SWIG_AsVal_int(obj1, &val2);
15421 if (!SWIG_IsOK(ecode2)) {
15422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15423 }
15424 arg2 = static_cast< int >(val2);
15425 ecode3 = SWIG_AsVal_int(obj2, &val3);
15426 if (!SWIG_IsOK(ecode3)) {
15427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15428 }
15429 arg3 = static_cast< int >(val3);
15430 ecode4 = SWIG_AsVal_int(obj3, &val4);
15431 if (!SWIG_IsOK(ecode4)) {
15432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15433 }
15434 arg4 = static_cast< int >(val4);
15435 ecode5 = SWIG_AsVal_int(obj4, &val5);
15436 if (!SWIG_IsOK(ecode5)) {
15437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15438 }
15439 arg5 = static_cast< int >(val5);
15440 {
15441 PyThreadState* __tstate = wxPyBeginAllowThreads();
15442 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15443 wxPyEndAllowThreads(__tstate);
15444 if (PyErr_Occurred()) SWIG_fail;
15445 }
15446 resultobj = SWIG_Py_Void();
15447 return resultobj;
15448 fail:
15449 return NULL;
15450 }
15451
15452
15453 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15454 PyObject *resultobj = 0;
15455 wxDC *arg1 = (wxDC *) 0 ;
15456 wxRect *arg2 = 0 ;
15457 void *argp1 = 0 ;
15458 int res1 = 0 ;
15459 wxRect temp2 ;
15460 PyObject * obj0 = 0 ;
15461 PyObject * obj1 = 0 ;
15462 char * kwnames[] = {
15463 (char *) "self",(char *) "rect", NULL
15464 };
15465
15466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15468 if (!SWIG_IsOK(res1)) {
15469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15470 }
15471 arg1 = reinterpret_cast< wxDC * >(argp1);
15472 {
15473 arg2 = &temp2;
15474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15475 }
15476 {
15477 PyThreadState* __tstate = wxPyBeginAllowThreads();
15478 (arg1)->DrawRectangle((wxRect const &)*arg2);
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_Py_Void();
15483 return resultobj;
15484 fail:
15485 return NULL;
15486 }
15487
15488
15489 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj = 0;
15491 wxDC *arg1 = (wxDC *) 0 ;
15492 wxPoint *arg2 = 0 ;
15493 wxSize *arg3 = 0 ;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 wxPoint temp2 ;
15497 wxSize temp3 ;
15498 PyObject * obj0 = 0 ;
15499 PyObject * obj1 = 0 ;
15500 PyObject * obj2 = 0 ;
15501 char * kwnames[] = {
15502 (char *) "self",(char *) "pt",(char *) "sz", NULL
15503 };
15504
15505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15507 if (!SWIG_IsOK(res1)) {
15508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15509 }
15510 arg1 = reinterpret_cast< wxDC * >(argp1);
15511 {
15512 arg2 = &temp2;
15513 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15514 }
15515 {
15516 arg3 = &temp3;
15517 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15518 }
15519 {
15520 PyThreadState* __tstate = wxPyBeginAllowThreads();
15521 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
15525 resultobj = SWIG_Py_Void();
15526 return resultobj;
15527 fail:
15528 return NULL;
15529 }
15530
15531
15532 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj = 0;
15534 wxDC *arg1 = (wxDC *) 0 ;
15535 int arg2 ;
15536 int arg3 ;
15537 int arg4 ;
15538 int arg5 ;
15539 double arg6 ;
15540 void *argp1 = 0 ;
15541 int res1 = 0 ;
15542 int val2 ;
15543 int ecode2 = 0 ;
15544 int val3 ;
15545 int ecode3 = 0 ;
15546 int val4 ;
15547 int ecode4 = 0 ;
15548 int val5 ;
15549 int ecode5 = 0 ;
15550 double val6 ;
15551 int ecode6 = 0 ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 PyObject * obj2 = 0 ;
15555 PyObject * obj3 = 0 ;
15556 PyObject * obj4 = 0 ;
15557 PyObject * obj5 = 0 ;
15558 char * kwnames[] = {
15559 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15560 };
15561
15562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15566 }
15567 arg1 = reinterpret_cast< wxDC * >(argp1);
15568 ecode2 = SWIG_AsVal_int(obj1, &val2);
15569 if (!SWIG_IsOK(ecode2)) {
15570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15571 }
15572 arg2 = static_cast< int >(val2);
15573 ecode3 = SWIG_AsVal_int(obj2, &val3);
15574 if (!SWIG_IsOK(ecode3)) {
15575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15576 }
15577 arg3 = static_cast< int >(val3);
15578 ecode4 = SWIG_AsVal_int(obj3, &val4);
15579 if (!SWIG_IsOK(ecode4)) {
15580 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15581 }
15582 arg4 = static_cast< int >(val4);
15583 ecode5 = SWIG_AsVal_int(obj4, &val5);
15584 if (!SWIG_IsOK(ecode5)) {
15585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15586 }
15587 arg5 = static_cast< int >(val5);
15588 ecode6 = SWIG_AsVal_double(obj5, &val6);
15589 if (!SWIG_IsOK(ecode6)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15591 }
15592 arg6 = static_cast< double >(val6);
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 resultobj = SWIG_Py_Void();
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj = 0;
15608 wxDC *arg1 = (wxDC *) 0 ;
15609 wxRect *arg2 = 0 ;
15610 double arg3 ;
15611 void *argp1 = 0 ;
15612 int res1 = 0 ;
15613 wxRect temp2 ;
15614 double val3 ;
15615 int ecode3 = 0 ;
15616 PyObject * obj0 = 0 ;
15617 PyObject * obj1 = 0 ;
15618 PyObject * obj2 = 0 ;
15619 char * kwnames[] = {
15620 (char *) "self",(char *) "r",(char *) "radius", NULL
15621 };
15622
15623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15625 if (!SWIG_IsOK(res1)) {
15626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15627 }
15628 arg1 = reinterpret_cast< wxDC * >(argp1);
15629 {
15630 arg2 = &temp2;
15631 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15632 }
15633 ecode3 = SWIG_AsVal_double(obj2, &val3);
15634 if (!SWIG_IsOK(ecode3)) {
15635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15636 }
15637 arg3 = static_cast< double >(val3);
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 resultobj = SWIG_Py_Void();
15645 return resultobj;
15646 fail:
15647 return NULL;
15648 }
15649
15650
15651 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15652 PyObject *resultobj = 0;
15653 wxDC *arg1 = (wxDC *) 0 ;
15654 wxPoint *arg2 = 0 ;
15655 wxSize *arg3 = 0 ;
15656 double arg4 ;
15657 void *argp1 = 0 ;
15658 int res1 = 0 ;
15659 wxPoint temp2 ;
15660 wxSize temp3 ;
15661 double val4 ;
15662 int ecode4 = 0 ;
15663 PyObject * obj0 = 0 ;
15664 PyObject * obj1 = 0 ;
15665 PyObject * obj2 = 0 ;
15666 PyObject * obj3 = 0 ;
15667 char * kwnames[] = {
15668 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15669 };
15670
15671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15673 if (!SWIG_IsOK(res1)) {
15674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15675 }
15676 arg1 = reinterpret_cast< wxDC * >(argp1);
15677 {
15678 arg2 = &temp2;
15679 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15680 }
15681 {
15682 arg3 = &temp3;
15683 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15684 }
15685 ecode4 = SWIG_AsVal_double(obj3, &val4);
15686 if (!SWIG_IsOK(ecode4)) {
15687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15688 }
15689 arg4 = static_cast< double >(val4);
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15693 wxPyEndAllowThreads(__tstate);
15694 if (PyErr_Occurred()) SWIG_fail;
15695 }
15696 resultobj = SWIG_Py_Void();
15697 return resultobj;
15698 fail:
15699 return NULL;
15700 }
15701
15702
15703 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj = 0;
15705 wxDC *arg1 = (wxDC *) 0 ;
15706 int arg2 ;
15707 int arg3 ;
15708 int arg4 ;
15709 void *argp1 = 0 ;
15710 int res1 = 0 ;
15711 int val2 ;
15712 int ecode2 = 0 ;
15713 int val3 ;
15714 int ecode3 = 0 ;
15715 int val4 ;
15716 int ecode4 = 0 ;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 PyObject * obj2 = 0 ;
15720 PyObject * obj3 = 0 ;
15721 char * kwnames[] = {
15722 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15723 };
15724
15725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15727 if (!SWIG_IsOK(res1)) {
15728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15729 }
15730 arg1 = reinterpret_cast< wxDC * >(argp1);
15731 ecode2 = SWIG_AsVal_int(obj1, &val2);
15732 if (!SWIG_IsOK(ecode2)) {
15733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15734 }
15735 arg2 = static_cast< int >(val2);
15736 ecode3 = SWIG_AsVal_int(obj2, &val3);
15737 if (!SWIG_IsOK(ecode3)) {
15738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15739 }
15740 arg3 = static_cast< int >(val3);
15741 ecode4 = SWIG_AsVal_int(obj3, &val4);
15742 if (!SWIG_IsOK(ecode4)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15744 }
15745 arg4 = static_cast< int >(val4);
15746 {
15747 PyThreadState* __tstate = wxPyBeginAllowThreads();
15748 (arg1)->DrawCircle(arg2,arg3,arg4);
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_Py_Void();
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj = 0;
15761 wxDC *arg1 = (wxDC *) 0 ;
15762 wxPoint *arg2 = 0 ;
15763 int arg3 ;
15764 void *argp1 = 0 ;
15765 int res1 = 0 ;
15766 wxPoint temp2 ;
15767 int val3 ;
15768 int ecode3 = 0 ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 PyObject * obj2 = 0 ;
15772 char * kwnames[] = {
15773 (char *) "self",(char *) "pt",(char *) "radius", NULL
15774 };
15775
15776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15778 if (!SWIG_IsOK(res1)) {
15779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15780 }
15781 arg1 = reinterpret_cast< wxDC * >(argp1);
15782 {
15783 arg2 = &temp2;
15784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15785 }
15786 ecode3 = SWIG_AsVal_int(obj2, &val3);
15787 if (!SWIG_IsOK(ecode3)) {
15788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15789 }
15790 arg3 = static_cast< int >(val3);
15791 {
15792 PyThreadState* __tstate = wxPyBeginAllowThreads();
15793 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15794 wxPyEndAllowThreads(__tstate);
15795 if (PyErr_Occurred()) SWIG_fail;
15796 }
15797 resultobj = SWIG_Py_Void();
15798 return resultobj;
15799 fail:
15800 return NULL;
15801 }
15802
15803
15804 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15805 PyObject *resultobj = 0;
15806 wxDC *arg1 = (wxDC *) 0 ;
15807 int arg2 ;
15808 int arg3 ;
15809 int arg4 ;
15810 int arg5 ;
15811 void *argp1 = 0 ;
15812 int res1 = 0 ;
15813 int val2 ;
15814 int ecode2 = 0 ;
15815 int val3 ;
15816 int ecode3 = 0 ;
15817 int val4 ;
15818 int ecode4 = 0 ;
15819 int val5 ;
15820 int ecode5 = 0 ;
15821 PyObject * obj0 = 0 ;
15822 PyObject * obj1 = 0 ;
15823 PyObject * obj2 = 0 ;
15824 PyObject * obj3 = 0 ;
15825 PyObject * obj4 = 0 ;
15826 char * kwnames[] = {
15827 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15828 };
15829
15830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15832 if (!SWIG_IsOK(res1)) {
15833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15834 }
15835 arg1 = reinterpret_cast< wxDC * >(argp1);
15836 ecode2 = SWIG_AsVal_int(obj1, &val2);
15837 if (!SWIG_IsOK(ecode2)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15839 }
15840 arg2 = static_cast< int >(val2);
15841 ecode3 = SWIG_AsVal_int(obj2, &val3);
15842 if (!SWIG_IsOK(ecode3)) {
15843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15844 }
15845 arg3 = static_cast< int >(val3);
15846 ecode4 = SWIG_AsVal_int(obj3, &val4);
15847 if (!SWIG_IsOK(ecode4)) {
15848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15849 }
15850 arg4 = static_cast< int >(val4);
15851 ecode5 = SWIG_AsVal_int(obj4, &val5);
15852 if (!SWIG_IsOK(ecode5)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15854 }
15855 arg5 = static_cast< int >(val5);
15856 {
15857 PyThreadState* __tstate = wxPyBeginAllowThreads();
15858 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 resultobj = SWIG_Py_Void();
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15870 PyObject *resultobj = 0;
15871 wxDC *arg1 = (wxDC *) 0 ;
15872 wxRect *arg2 = 0 ;
15873 void *argp1 = 0 ;
15874 int res1 = 0 ;
15875 wxRect temp2 ;
15876 PyObject * obj0 = 0 ;
15877 PyObject * obj1 = 0 ;
15878 char * kwnames[] = {
15879 (char *) "self",(char *) "rect", NULL
15880 };
15881
15882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15884 if (!SWIG_IsOK(res1)) {
15885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15886 }
15887 arg1 = reinterpret_cast< wxDC * >(argp1);
15888 {
15889 arg2 = &temp2;
15890 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15891 }
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 (arg1)->DrawEllipse((wxRect const &)*arg2);
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_Py_Void();
15899 return resultobj;
15900 fail:
15901 return NULL;
15902 }
15903
15904
15905 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj = 0;
15907 wxDC *arg1 = (wxDC *) 0 ;
15908 wxPoint *arg2 = 0 ;
15909 wxSize *arg3 = 0 ;
15910 void *argp1 = 0 ;
15911 int res1 = 0 ;
15912 wxPoint temp2 ;
15913 wxSize temp3 ;
15914 PyObject * obj0 = 0 ;
15915 PyObject * obj1 = 0 ;
15916 PyObject * obj2 = 0 ;
15917 char * kwnames[] = {
15918 (char *) "self",(char *) "pt",(char *) "sz", NULL
15919 };
15920
15921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15923 if (!SWIG_IsOK(res1)) {
15924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15925 }
15926 arg1 = reinterpret_cast< wxDC * >(argp1);
15927 {
15928 arg2 = &temp2;
15929 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15930 }
15931 {
15932 arg3 = &temp3;
15933 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15934 }
15935 {
15936 PyThreadState* __tstate = wxPyBeginAllowThreads();
15937 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
15938 wxPyEndAllowThreads(__tstate);
15939 if (PyErr_Occurred()) SWIG_fail;
15940 }
15941 resultobj = SWIG_Py_Void();
15942 return resultobj;
15943 fail:
15944 return NULL;
15945 }
15946
15947
15948 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj = 0;
15950 wxDC *arg1 = (wxDC *) 0 ;
15951 wxIcon *arg2 = 0 ;
15952 int arg3 ;
15953 int arg4 ;
15954 void *argp1 = 0 ;
15955 int res1 = 0 ;
15956 void *argp2 = 0 ;
15957 int res2 = 0 ;
15958 int val3 ;
15959 int ecode3 = 0 ;
15960 int val4 ;
15961 int ecode4 = 0 ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 PyObject * obj2 = 0 ;
15965 PyObject * obj3 = 0 ;
15966 char * kwnames[] = {
15967 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
15968 };
15969
15970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15972 if (!SWIG_IsOK(res1)) {
15973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
15974 }
15975 arg1 = reinterpret_cast< wxDC * >(argp1);
15976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
15977 if (!SWIG_IsOK(res2)) {
15978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
15979 }
15980 if (!argp2) {
15981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
15982 }
15983 arg2 = reinterpret_cast< wxIcon * >(argp2);
15984 ecode3 = SWIG_AsVal_int(obj2, &val3);
15985 if (!SWIG_IsOK(ecode3)) {
15986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
15987 }
15988 arg3 = static_cast< int >(val3);
15989 ecode4 = SWIG_AsVal_int(obj3, &val4);
15990 if (!SWIG_IsOK(ecode4)) {
15991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
15992 }
15993 arg4 = static_cast< int >(val4);
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
15997 wxPyEndAllowThreads(__tstate);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
16000 resultobj = SWIG_Py_Void();
16001 return resultobj;
16002 fail:
16003 return NULL;
16004 }
16005
16006
16007 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj = 0;
16009 wxDC *arg1 = (wxDC *) 0 ;
16010 wxIcon *arg2 = 0 ;
16011 wxPoint *arg3 = 0 ;
16012 void *argp1 = 0 ;
16013 int res1 = 0 ;
16014 void *argp2 = 0 ;
16015 int res2 = 0 ;
16016 wxPoint temp3 ;
16017 PyObject * obj0 = 0 ;
16018 PyObject * obj1 = 0 ;
16019 PyObject * obj2 = 0 ;
16020 char * kwnames[] = {
16021 (char *) "self",(char *) "icon",(char *) "pt", NULL
16022 };
16023
16024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16026 if (!SWIG_IsOK(res1)) {
16027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16028 }
16029 arg1 = reinterpret_cast< wxDC * >(argp1);
16030 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16031 if (!SWIG_IsOK(res2)) {
16032 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16033 }
16034 if (!argp2) {
16035 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16036 }
16037 arg2 = reinterpret_cast< wxIcon * >(argp2);
16038 {
16039 arg3 = &temp3;
16040 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16041 }
16042 {
16043 PyThreadState* __tstate = wxPyBeginAllowThreads();
16044 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 resultobj = SWIG_Py_Void();
16049 return resultobj;
16050 fail:
16051 return NULL;
16052 }
16053
16054
16055 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj = 0;
16057 wxDC *arg1 = (wxDC *) 0 ;
16058 wxBitmap *arg2 = 0 ;
16059 int arg3 ;
16060 int arg4 ;
16061 bool arg5 = (bool) false ;
16062 void *argp1 = 0 ;
16063 int res1 = 0 ;
16064 void *argp2 = 0 ;
16065 int res2 = 0 ;
16066 int val3 ;
16067 int ecode3 = 0 ;
16068 int val4 ;
16069 int ecode4 = 0 ;
16070 bool val5 ;
16071 int ecode5 = 0 ;
16072 PyObject * obj0 = 0 ;
16073 PyObject * obj1 = 0 ;
16074 PyObject * obj2 = 0 ;
16075 PyObject * obj3 = 0 ;
16076 PyObject * obj4 = 0 ;
16077 char * kwnames[] = {
16078 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16079 };
16080
16081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16083 if (!SWIG_IsOK(res1)) {
16084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16085 }
16086 arg1 = reinterpret_cast< wxDC * >(argp1);
16087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16088 if (!SWIG_IsOK(res2)) {
16089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16090 }
16091 if (!argp2) {
16092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16093 }
16094 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16095 ecode3 = SWIG_AsVal_int(obj2, &val3);
16096 if (!SWIG_IsOK(ecode3)) {
16097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16098 }
16099 arg3 = static_cast< int >(val3);
16100 ecode4 = SWIG_AsVal_int(obj3, &val4);
16101 if (!SWIG_IsOK(ecode4)) {
16102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16103 }
16104 arg4 = static_cast< int >(val4);
16105 if (obj4) {
16106 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16107 if (!SWIG_IsOK(ecode5)) {
16108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16109 }
16110 arg5 = static_cast< bool >(val5);
16111 }
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 resultobj = SWIG_Py_Void();
16119 return resultobj;
16120 fail:
16121 return NULL;
16122 }
16123
16124
16125 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16126 PyObject *resultobj = 0;
16127 wxDC *arg1 = (wxDC *) 0 ;
16128 wxBitmap *arg2 = 0 ;
16129 wxPoint *arg3 = 0 ;
16130 bool arg4 = (bool) false ;
16131 void *argp1 = 0 ;
16132 int res1 = 0 ;
16133 void *argp2 = 0 ;
16134 int res2 = 0 ;
16135 wxPoint temp3 ;
16136 bool val4 ;
16137 int ecode4 = 0 ;
16138 PyObject * obj0 = 0 ;
16139 PyObject * obj1 = 0 ;
16140 PyObject * obj2 = 0 ;
16141 PyObject * obj3 = 0 ;
16142 char * kwnames[] = {
16143 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16144 };
16145
16146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16148 if (!SWIG_IsOK(res1)) {
16149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16150 }
16151 arg1 = reinterpret_cast< wxDC * >(argp1);
16152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16153 if (!SWIG_IsOK(res2)) {
16154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16155 }
16156 if (!argp2) {
16157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16158 }
16159 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16160 {
16161 arg3 = &temp3;
16162 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16163 }
16164 if (obj3) {
16165 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16166 if (!SWIG_IsOK(ecode4)) {
16167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16168 }
16169 arg4 = static_cast< bool >(val4);
16170 }
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16174 wxPyEndAllowThreads(__tstate);
16175 if (PyErr_Occurred()) SWIG_fail;
16176 }
16177 resultobj = SWIG_Py_Void();
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16185 PyObject *resultobj = 0;
16186 wxDC *arg1 = (wxDC *) 0 ;
16187 wxString *arg2 = 0 ;
16188 int arg3 ;
16189 int arg4 ;
16190 void *argp1 = 0 ;
16191 int res1 = 0 ;
16192 bool temp2 = false ;
16193 int val3 ;
16194 int ecode3 = 0 ;
16195 int val4 ;
16196 int ecode4 = 0 ;
16197 PyObject * obj0 = 0 ;
16198 PyObject * obj1 = 0 ;
16199 PyObject * obj2 = 0 ;
16200 PyObject * obj3 = 0 ;
16201 char * kwnames[] = {
16202 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16203 };
16204
16205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16207 if (!SWIG_IsOK(res1)) {
16208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16209 }
16210 arg1 = reinterpret_cast< wxDC * >(argp1);
16211 {
16212 arg2 = wxString_in_helper(obj1);
16213 if (arg2 == NULL) SWIG_fail;
16214 temp2 = true;
16215 }
16216 ecode3 = SWIG_AsVal_int(obj2, &val3);
16217 if (!SWIG_IsOK(ecode3)) {
16218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16219 }
16220 arg3 = static_cast< int >(val3);
16221 ecode4 = SWIG_AsVal_int(obj3, &val4);
16222 if (!SWIG_IsOK(ecode4)) {
16223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16224 }
16225 arg4 = static_cast< int >(val4);
16226 {
16227 PyThreadState* __tstate = wxPyBeginAllowThreads();
16228 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16229 wxPyEndAllowThreads(__tstate);
16230 if (PyErr_Occurred()) SWIG_fail;
16231 }
16232 resultobj = SWIG_Py_Void();
16233 {
16234 if (temp2)
16235 delete arg2;
16236 }
16237 return resultobj;
16238 fail:
16239 {
16240 if (temp2)
16241 delete arg2;
16242 }
16243 return NULL;
16244 }
16245
16246
16247 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16248 PyObject *resultobj = 0;
16249 wxDC *arg1 = (wxDC *) 0 ;
16250 wxString *arg2 = 0 ;
16251 wxPoint *arg3 = 0 ;
16252 void *argp1 = 0 ;
16253 int res1 = 0 ;
16254 bool temp2 = false ;
16255 wxPoint temp3 ;
16256 PyObject * obj0 = 0 ;
16257 PyObject * obj1 = 0 ;
16258 PyObject * obj2 = 0 ;
16259 char * kwnames[] = {
16260 (char *) "self",(char *) "text",(char *) "pt", NULL
16261 };
16262
16263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16265 if (!SWIG_IsOK(res1)) {
16266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16267 }
16268 arg1 = reinterpret_cast< wxDC * >(argp1);
16269 {
16270 arg2 = wxString_in_helper(obj1);
16271 if (arg2 == NULL) SWIG_fail;
16272 temp2 = true;
16273 }
16274 {
16275 arg3 = &temp3;
16276 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16277 }
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 resultobj = SWIG_Py_Void();
16285 {
16286 if (temp2)
16287 delete arg2;
16288 }
16289 return resultobj;
16290 fail:
16291 {
16292 if (temp2)
16293 delete arg2;
16294 }
16295 return NULL;
16296 }
16297
16298
16299 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16300 PyObject *resultobj = 0;
16301 wxDC *arg1 = (wxDC *) 0 ;
16302 wxString *arg2 = 0 ;
16303 int arg3 ;
16304 int arg4 ;
16305 double arg5 ;
16306 void *argp1 = 0 ;
16307 int res1 = 0 ;
16308 bool temp2 = false ;
16309 int val3 ;
16310 int ecode3 = 0 ;
16311 int val4 ;
16312 int ecode4 = 0 ;
16313 double val5 ;
16314 int ecode5 = 0 ;
16315 PyObject * obj0 = 0 ;
16316 PyObject * obj1 = 0 ;
16317 PyObject * obj2 = 0 ;
16318 PyObject * obj3 = 0 ;
16319 PyObject * obj4 = 0 ;
16320 char * kwnames[] = {
16321 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16322 };
16323
16324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16326 if (!SWIG_IsOK(res1)) {
16327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16328 }
16329 arg1 = reinterpret_cast< wxDC * >(argp1);
16330 {
16331 arg2 = wxString_in_helper(obj1);
16332 if (arg2 == NULL) SWIG_fail;
16333 temp2 = true;
16334 }
16335 ecode3 = SWIG_AsVal_int(obj2, &val3);
16336 if (!SWIG_IsOK(ecode3)) {
16337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16338 }
16339 arg3 = static_cast< int >(val3);
16340 ecode4 = SWIG_AsVal_int(obj3, &val4);
16341 if (!SWIG_IsOK(ecode4)) {
16342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16343 }
16344 arg4 = static_cast< int >(val4);
16345 ecode5 = SWIG_AsVal_double(obj4, &val5);
16346 if (!SWIG_IsOK(ecode5)) {
16347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16348 }
16349 arg5 = static_cast< double >(val5);
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 resultobj = SWIG_Py_Void();
16357 {
16358 if (temp2)
16359 delete arg2;
16360 }
16361 return resultobj;
16362 fail:
16363 {
16364 if (temp2)
16365 delete arg2;
16366 }
16367 return NULL;
16368 }
16369
16370
16371 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16372 PyObject *resultobj = 0;
16373 wxDC *arg1 = (wxDC *) 0 ;
16374 wxString *arg2 = 0 ;
16375 wxPoint *arg3 = 0 ;
16376 double arg4 ;
16377 void *argp1 = 0 ;
16378 int res1 = 0 ;
16379 bool temp2 = false ;
16380 wxPoint temp3 ;
16381 double val4 ;
16382 int ecode4 = 0 ;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 PyObject * obj2 = 0 ;
16386 PyObject * obj3 = 0 ;
16387 char * kwnames[] = {
16388 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16389 };
16390
16391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16393 if (!SWIG_IsOK(res1)) {
16394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16395 }
16396 arg1 = reinterpret_cast< wxDC * >(argp1);
16397 {
16398 arg2 = wxString_in_helper(obj1);
16399 if (arg2 == NULL) SWIG_fail;
16400 temp2 = true;
16401 }
16402 {
16403 arg3 = &temp3;
16404 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16405 }
16406 ecode4 = SWIG_AsVal_double(obj3, &val4);
16407 if (!SWIG_IsOK(ecode4)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16409 }
16410 arg4 = static_cast< double >(val4);
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 resultobj = SWIG_Py_Void();
16418 {
16419 if (temp2)
16420 delete arg2;
16421 }
16422 return resultobj;
16423 fail:
16424 {
16425 if (temp2)
16426 delete arg2;
16427 }
16428 return NULL;
16429 }
16430
16431
16432 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16433 PyObject *resultobj = 0;
16434 wxDC *arg1 = (wxDC *) 0 ;
16435 int arg2 ;
16436 int arg3 ;
16437 int arg4 ;
16438 int arg5 ;
16439 wxDC *arg6 = (wxDC *) 0 ;
16440 int arg7 ;
16441 int arg8 ;
16442 int arg9 = (int) wxCOPY ;
16443 bool arg10 = (bool) false ;
16444 int arg11 = (int) -1 ;
16445 int arg12 = (int) -1 ;
16446 bool result;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 int val2 ;
16450 int ecode2 = 0 ;
16451 int val3 ;
16452 int ecode3 = 0 ;
16453 int val4 ;
16454 int ecode4 = 0 ;
16455 int val5 ;
16456 int ecode5 = 0 ;
16457 void *argp6 = 0 ;
16458 int res6 = 0 ;
16459 int val7 ;
16460 int ecode7 = 0 ;
16461 int val8 ;
16462 int ecode8 = 0 ;
16463 int val9 ;
16464 int ecode9 = 0 ;
16465 bool val10 ;
16466 int ecode10 = 0 ;
16467 int val11 ;
16468 int ecode11 = 0 ;
16469 int val12 ;
16470 int ecode12 = 0 ;
16471 PyObject * obj0 = 0 ;
16472 PyObject * obj1 = 0 ;
16473 PyObject * obj2 = 0 ;
16474 PyObject * obj3 = 0 ;
16475 PyObject * obj4 = 0 ;
16476 PyObject * obj5 = 0 ;
16477 PyObject * obj6 = 0 ;
16478 PyObject * obj7 = 0 ;
16479 PyObject * obj8 = 0 ;
16480 PyObject * obj9 = 0 ;
16481 PyObject * obj10 = 0 ;
16482 PyObject * obj11 = 0 ;
16483 char * kwnames[] = {
16484 (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
16485 };
16486
16487 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;
16488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16491 }
16492 arg1 = reinterpret_cast< wxDC * >(argp1);
16493 ecode2 = SWIG_AsVal_int(obj1, &val2);
16494 if (!SWIG_IsOK(ecode2)) {
16495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16496 }
16497 arg2 = static_cast< int >(val2);
16498 ecode3 = SWIG_AsVal_int(obj2, &val3);
16499 if (!SWIG_IsOK(ecode3)) {
16500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16501 }
16502 arg3 = static_cast< int >(val3);
16503 ecode4 = SWIG_AsVal_int(obj3, &val4);
16504 if (!SWIG_IsOK(ecode4)) {
16505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16506 }
16507 arg4 = static_cast< int >(val4);
16508 ecode5 = SWIG_AsVal_int(obj4, &val5);
16509 if (!SWIG_IsOK(ecode5)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16511 }
16512 arg5 = static_cast< int >(val5);
16513 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16514 if (!SWIG_IsOK(res6)) {
16515 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16516 }
16517 arg6 = reinterpret_cast< wxDC * >(argp6);
16518 ecode7 = SWIG_AsVal_int(obj6, &val7);
16519 if (!SWIG_IsOK(ecode7)) {
16520 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16521 }
16522 arg7 = static_cast< int >(val7);
16523 ecode8 = SWIG_AsVal_int(obj7, &val8);
16524 if (!SWIG_IsOK(ecode8)) {
16525 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16526 }
16527 arg8 = static_cast< int >(val8);
16528 if (obj8) {
16529 ecode9 = SWIG_AsVal_int(obj8, &val9);
16530 if (!SWIG_IsOK(ecode9)) {
16531 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16532 }
16533 arg9 = static_cast< int >(val9);
16534 }
16535 if (obj9) {
16536 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16537 if (!SWIG_IsOK(ecode10)) {
16538 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16539 }
16540 arg10 = static_cast< bool >(val10);
16541 }
16542 if (obj10) {
16543 ecode11 = SWIG_AsVal_int(obj10, &val11);
16544 if (!SWIG_IsOK(ecode11)) {
16545 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16546 }
16547 arg11 = static_cast< int >(val11);
16548 }
16549 if (obj11) {
16550 ecode12 = SWIG_AsVal_int(obj11, &val12);
16551 if (!SWIG_IsOK(ecode12)) {
16552 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16553 }
16554 arg12 = static_cast< int >(val12);
16555 }
16556 {
16557 PyThreadState* __tstate = wxPyBeginAllowThreads();
16558 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16559 wxPyEndAllowThreads(__tstate);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 {
16563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16564 }
16565 return resultobj;
16566 fail:
16567 return NULL;
16568 }
16569
16570
16571 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16572 PyObject *resultobj = 0;
16573 wxDC *arg1 = (wxDC *) 0 ;
16574 wxPoint *arg2 = 0 ;
16575 wxSize *arg3 = 0 ;
16576 wxDC *arg4 = (wxDC *) 0 ;
16577 wxPoint *arg5 = 0 ;
16578 int arg6 = (int) wxCOPY ;
16579 bool arg7 = (bool) false ;
16580 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16581 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16582 bool result;
16583 void *argp1 = 0 ;
16584 int res1 = 0 ;
16585 wxPoint temp2 ;
16586 wxSize temp3 ;
16587 void *argp4 = 0 ;
16588 int res4 = 0 ;
16589 wxPoint temp5 ;
16590 int val6 ;
16591 int ecode6 = 0 ;
16592 bool val7 ;
16593 int ecode7 = 0 ;
16594 wxPoint temp8 ;
16595 PyObject * obj0 = 0 ;
16596 PyObject * obj1 = 0 ;
16597 PyObject * obj2 = 0 ;
16598 PyObject * obj3 = 0 ;
16599 PyObject * obj4 = 0 ;
16600 PyObject * obj5 = 0 ;
16601 PyObject * obj6 = 0 ;
16602 PyObject * obj7 = 0 ;
16603 char * kwnames[] = {
16604 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16605 };
16606
16607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16609 if (!SWIG_IsOK(res1)) {
16610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16611 }
16612 arg1 = reinterpret_cast< wxDC * >(argp1);
16613 {
16614 arg2 = &temp2;
16615 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16616 }
16617 {
16618 arg3 = &temp3;
16619 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16620 }
16621 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16622 if (!SWIG_IsOK(res4)) {
16623 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16624 }
16625 arg4 = reinterpret_cast< wxDC * >(argp4);
16626 {
16627 arg5 = &temp5;
16628 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16629 }
16630 if (obj5) {
16631 ecode6 = SWIG_AsVal_int(obj5, &val6);
16632 if (!SWIG_IsOK(ecode6)) {
16633 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16634 }
16635 arg6 = static_cast< int >(val6);
16636 }
16637 if (obj6) {
16638 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16639 if (!SWIG_IsOK(ecode7)) {
16640 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16641 }
16642 arg7 = static_cast< bool >(val7);
16643 }
16644 if (obj7) {
16645 {
16646 arg8 = &temp8;
16647 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16648 }
16649 }
16650 {
16651 PyThreadState* __tstate = wxPyBeginAllowThreads();
16652 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 {
16657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16658 }
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16666 PyObject *resultobj = 0;
16667 wxDC *arg1 = (wxDC *) 0 ;
16668 int arg2 ;
16669 int arg3 ;
16670 int arg4 ;
16671 int arg5 ;
16672 void *argp1 = 0 ;
16673 int res1 = 0 ;
16674 int val2 ;
16675 int ecode2 = 0 ;
16676 int val3 ;
16677 int ecode3 = 0 ;
16678 int val4 ;
16679 int ecode4 = 0 ;
16680 int val5 ;
16681 int ecode5 = 0 ;
16682 PyObject * obj0 = 0 ;
16683 PyObject * obj1 = 0 ;
16684 PyObject * obj2 = 0 ;
16685 PyObject * obj3 = 0 ;
16686 PyObject * obj4 = 0 ;
16687 char * kwnames[] = {
16688 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16689 };
16690
16691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16693 if (!SWIG_IsOK(res1)) {
16694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16695 }
16696 arg1 = reinterpret_cast< wxDC * >(argp1);
16697 ecode2 = SWIG_AsVal_int(obj1, &val2);
16698 if (!SWIG_IsOK(ecode2)) {
16699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16700 }
16701 arg2 = static_cast< int >(val2);
16702 ecode3 = SWIG_AsVal_int(obj2, &val3);
16703 if (!SWIG_IsOK(ecode3)) {
16704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16705 }
16706 arg3 = static_cast< int >(val3);
16707 ecode4 = SWIG_AsVal_int(obj3, &val4);
16708 if (!SWIG_IsOK(ecode4)) {
16709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16710 }
16711 arg4 = static_cast< int >(val4);
16712 ecode5 = SWIG_AsVal_int(obj4, &val5);
16713 if (!SWIG_IsOK(ecode5)) {
16714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16715 }
16716 arg5 = static_cast< int >(val5);
16717 {
16718 PyThreadState* __tstate = wxPyBeginAllowThreads();
16719 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 resultobj = SWIG_Py_Void();
16724 return resultobj;
16725 fail:
16726 return NULL;
16727 }
16728
16729
16730 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj = 0;
16732 wxDC *arg1 = (wxDC *) 0 ;
16733 wxPoint *arg2 = 0 ;
16734 wxSize *arg3 = 0 ;
16735 void *argp1 = 0 ;
16736 int res1 = 0 ;
16737 wxPoint temp2 ;
16738 wxSize temp3 ;
16739 PyObject * obj0 = 0 ;
16740 PyObject * obj1 = 0 ;
16741 PyObject * obj2 = 0 ;
16742 char * kwnames[] = {
16743 (char *) "self",(char *) "pt",(char *) "sz", NULL
16744 };
16745
16746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16748 if (!SWIG_IsOK(res1)) {
16749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16750 }
16751 arg1 = reinterpret_cast< wxDC * >(argp1);
16752 {
16753 arg2 = &temp2;
16754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16755 }
16756 {
16757 arg3 = &temp3;
16758 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16759 }
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 resultobj = SWIG_Py_Void();
16767 return resultobj;
16768 fail:
16769 return NULL;
16770 }
16771
16772
16773 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16774 PyObject *resultobj = 0;
16775 wxDC *arg1 = (wxDC *) 0 ;
16776 wxRegion *arg2 = 0 ;
16777 void *argp1 = 0 ;
16778 int res1 = 0 ;
16779 void *argp2 = 0 ;
16780 int res2 = 0 ;
16781 PyObject * obj0 = 0 ;
16782 PyObject * obj1 = 0 ;
16783 char * kwnames[] = {
16784 (char *) "self",(char *) "region", NULL
16785 };
16786
16787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16789 if (!SWIG_IsOK(res1)) {
16790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16791 }
16792 arg1 = reinterpret_cast< wxDC * >(argp1);
16793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16794 if (!SWIG_IsOK(res2)) {
16795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16796 }
16797 if (!argp2) {
16798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16799 }
16800 arg2 = reinterpret_cast< wxRegion * >(argp2);
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 resultobj = SWIG_Py_Void();
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj = 0;
16816 wxDC *arg1 = (wxDC *) 0 ;
16817 wxRect *arg2 = 0 ;
16818 void *argp1 = 0 ;
16819 int res1 = 0 ;
16820 wxRect temp2 ;
16821 PyObject * obj0 = 0 ;
16822 PyObject * obj1 = 0 ;
16823 char * kwnames[] = {
16824 (char *) "self",(char *) "rect", NULL
16825 };
16826
16827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16829 if (!SWIG_IsOK(res1)) {
16830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16831 }
16832 arg1 = reinterpret_cast< wxDC * >(argp1);
16833 {
16834 arg2 = &temp2;
16835 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16836 }
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 resultobj = SWIG_Py_Void();
16844 return resultobj;
16845 fail:
16846 return NULL;
16847 }
16848
16849
16850 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16851 PyObject *resultobj = 0;
16852 wxDC *arg1 = (wxDC *) 0 ;
16853 int arg2 ;
16854 wxPoint *arg3 = (wxPoint *) 0 ;
16855 int arg4 = (int) 0 ;
16856 int arg5 = (int) 0 ;
16857 void *argp1 = 0 ;
16858 int res1 = 0 ;
16859 int val4 ;
16860 int ecode4 = 0 ;
16861 int val5 ;
16862 int ecode5 = 0 ;
16863 PyObject * obj0 = 0 ;
16864 PyObject * obj1 = 0 ;
16865 PyObject * obj2 = 0 ;
16866 PyObject * obj3 = 0 ;
16867 char * kwnames[] = {
16868 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16869 };
16870
16871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16873 if (!SWIG_IsOK(res1)) {
16874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16875 }
16876 arg1 = reinterpret_cast< wxDC * >(argp1);
16877 {
16878 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16879 if (arg3 == NULL) SWIG_fail;
16880 }
16881 if (obj2) {
16882 ecode4 = SWIG_AsVal_int(obj2, &val4);
16883 if (!SWIG_IsOK(ecode4)) {
16884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16885 }
16886 arg4 = static_cast< int >(val4);
16887 }
16888 if (obj3) {
16889 ecode5 = SWIG_AsVal_int(obj3, &val5);
16890 if (!SWIG_IsOK(ecode5)) {
16891 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16892 }
16893 arg5 = static_cast< int >(val5);
16894 }
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 resultobj = SWIG_Py_Void();
16902 {
16903 if (arg3) delete [] arg3;
16904 }
16905 return resultobj;
16906 fail:
16907 {
16908 if (arg3) delete [] arg3;
16909 }
16910 return NULL;
16911 }
16912
16913
16914 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 wxDC *arg1 = (wxDC *) 0 ;
16917 int arg2 ;
16918 wxPoint *arg3 = (wxPoint *) 0 ;
16919 int arg4 = (int) 0 ;
16920 int arg5 = (int) 0 ;
16921 int arg6 = (int) wxODDEVEN_RULE ;
16922 void *argp1 = 0 ;
16923 int res1 = 0 ;
16924 int val4 ;
16925 int ecode4 = 0 ;
16926 int val5 ;
16927 int ecode5 = 0 ;
16928 int val6 ;
16929 int ecode6 = 0 ;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 PyObject * obj2 = 0 ;
16933 PyObject * obj3 = 0 ;
16934 PyObject * obj4 = 0 ;
16935 char * kwnames[] = {
16936 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
16937 };
16938
16939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16941 if (!SWIG_IsOK(res1)) {
16942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
16943 }
16944 arg1 = reinterpret_cast< wxDC * >(argp1);
16945 {
16946 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16947 if (arg3 == NULL) SWIG_fail;
16948 }
16949 if (obj2) {
16950 ecode4 = SWIG_AsVal_int(obj2, &val4);
16951 if (!SWIG_IsOK(ecode4)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
16953 }
16954 arg4 = static_cast< int >(val4);
16955 }
16956 if (obj3) {
16957 ecode5 = SWIG_AsVal_int(obj3, &val5);
16958 if (!SWIG_IsOK(ecode5)) {
16959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
16960 }
16961 arg5 = static_cast< int >(val5);
16962 }
16963 if (obj4) {
16964 ecode6 = SWIG_AsVal_int(obj4, &val6);
16965 if (!SWIG_IsOK(ecode6)) {
16966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
16967 }
16968 arg6 = static_cast< int >(val6);
16969 }
16970 {
16971 PyThreadState* __tstate = wxPyBeginAllowThreads();
16972 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
16973 wxPyEndAllowThreads(__tstate);
16974 if (PyErr_Occurred()) SWIG_fail;
16975 }
16976 resultobj = SWIG_Py_Void();
16977 {
16978 if (arg3) delete [] arg3;
16979 }
16980 return resultobj;
16981 fail:
16982 {
16983 if (arg3) delete [] arg3;
16984 }
16985 return NULL;
16986 }
16987
16988
16989 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16990 PyObject *resultobj = 0;
16991 wxDC *arg1 = (wxDC *) 0 ;
16992 wxString *arg2 = 0 ;
16993 wxRect *arg3 = 0 ;
16994 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
16995 int arg5 = (int) -1 ;
16996 void *argp1 = 0 ;
16997 int res1 = 0 ;
16998 bool temp2 = false ;
16999 wxRect temp3 ;
17000 int val4 ;
17001 int ecode4 = 0 ;
17002 int val5 ;
17003 int ecode5 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 PyObject * obj2 = 0 ;
17007 PyObject * obj3 = 0 ;
17008 PyObject * obj4 = 0 ;
17009 char * kwnames[] = {
17010 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17011 };
17012
17013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17015 if (!SWIG_IsOK(res1)) {
17016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17017 }
17018 arg1 = reinterpret_cast< wxDC * >(argp1);
17019 {
17020 arg2 = wxString_in_helper(obj1);
17021 if (arg2 == NULL) SWIG_fail;
17022 temp2 = true;
17023 }
17024 {
17025 arg3 = &temp3;
17026 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17027 }
17028 if (obj3) {
17029 ecode4 = SWIG_AsVal_int(obj3, &val4);
17030 if (!SWIG_IsOK(ecode4)) {
17031 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17032 }
17033 arg4 = static_cast< int >(val4);
17034 }
17035 if (obj4) {
17036 ecode5 = SWIG_AsVal_int(obj4, &val5);
17037 if (!SWIG_IsOK(ecode5)) {
17038 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17039 }
17040 arg5 = static_cast< int >(val5);
17041 }
17042 {
17043 PyThreadState* __tstate = wxPyBeginAllowThreads();
17044 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 resultobj = SWIG_Py_Void();
17049 {
17050 if (temp2)
17051 delete arg2;
17052 }
17053 return resultobj;
17054 fail:
17055 {
17056 if (temp2)
17057 delete arg2;
17058 }
17059 return NULL;
17060 }
17061
17062
17063 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17064 PyObject *resultobj = 0;
17065 wxDC *arg1 = (wxDC *) 0 ;
17066 wxString *arg2 = 0 ;
17067 wxBitmap *arg3 = 0 ;
17068 wxRect *arg4 = 0 ;
17069 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17070 int arg6 = (int) -1 ;
17071 wxRect result;
17072 void *argp1 = 0 ;
17073 int res1 = 0 ;
17074 bool temp2 = false ;
17075 void *argp3 = 0 ;
17076 int res3 = 0 ;
17077 wxRect temp4 ;
17078 int val5 ;
17079 int ecode5 = 0 ;
17080 int val6 ;
17081 int ecode6 = 0 ;
17082 PyObject * obj0 = 0 ;
17083 PyObject * obj1 = 0 ;
17084 PyObject * obj2 = 0 ;
17085 PyObject * obj3 = 0 ;
17086 PyObject * obj4 = 0 ;
17087 PyObject * obj5 = 0 ;
17088 char * kwnames[] = {
17089 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17090 };
17091
17092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17094 if (!SWIG_IsOK(res1)) {
17095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17096 }
17097 arg1 = reinterpret_cast< wxDC * >(argp1);
17098 {
17099 arg2 = wxString_in_helper(obj1);
17100 if (arg2 == NULL) SWIG_fail;
17101 temp2 = true;
17102 }
17103 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17104 if (!SWIG_IsOK(res3)) {
17105 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17106 }
17107 if (!argp3) {
17108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17109 }
17110 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17111 {
17112 arg4 = &temp4;
17113 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17114 }
17115 if (obj4) {
17116 ecode5 = SWIG_AsVal_int(obj4, &val5);
17117 if (!SWIG_IsOK(ecode5)) {
17118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17119 }
17120 arg5 = static_cast< int >(val5);
17121 }
17122 if (obj5) {
17123 ecode6 = SWIG_AsVal_int(obj5, &val6);
17124 if (!SWIG_IsOK(ecode6)) {
17125 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17126 }
17127 arg6 = static_cast< int >(val6);
17128 }
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17132 wxPyEndAllowThreads(__tstate);
17133 if (PyErr_Occurred()) SWIG_fail;
17134 }
17135 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17136 {
17137 if (temp2)
17138 delete arg2;
17139 }
17140 return resultobj;
17141 fail:
17142 {
17143 if (temp2)
17144 delete arg2;
17145 }
17146 return NULL;
17147 }
17148
17149
17150 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17151 PyObject *resultobj = 0;
17152 wxDC *arg1 = (wxDC *) 0 ;
17153 int arg2 ;
17154 wxPoint *arg3 = (wxPoint *) 0 ;
17155 void *argp1 = 0 ;
17156 int res1 = 0 ;
17157 PyObject * obj0 = 0 ;
17158 PyObject * obj1 = 0 ;
17159 char * kwnames[] = {
17160 (char *) "self",(char *) "points", NULL
17161 };
17162
17163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17165 if (!SWIG_IsOK(res1)) {
17166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17167 }
17168 arg1 = reinterpret_cast< wxDC * >(argp1);
17169 {
17170 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17171 if (arg3 == NULL) SWIG_fail;
17172 }
17173 {
17174 PyThreadState* __tstate = wxPyBeginAllowThreads();
17175 (arg1)->DrawSpline(arg2,arg3);
17176 wxPyEndAllowThreads(__tstate);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 }
17179 resultobj = SWIG_Py_Void();
17180 {
17181 if (arg3) delete [] arg3;
17182 }
17183 return resultobj;
17184 fail:
17185 {
17186 if (arg3) delete [] arg3;
17187 }
17188 return NULL;
17189 }
17190
17191
17192 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17193 PyObject *resultobj = 0;
17194 wxDC *arg1 = (wxDC *) 0 ;
17195 void *argp1 = 0 ;
17196 int res1 = 0 ;
17197 PyObject *swig_obj[1] ;
17198
17199 if (!args) SWIG_fail;
17200 swig_obj[0] = args;
17201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17202 if (!SWIG_IsOK(res1)) {
17203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17204 }
17205 arg1 = reinterpret_cast< wxDC * >(argp1);
17206 {
17207 PyThreadState* __tstate = wxPyBeginAllowThreads();
17208 (arg1)->Clear();
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 resultobj = SWIG_Py_Void();
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj = 0;
17221 wxDC *arg1 = (wxDC *) 0 ;
17222 wxString *arg2 = 0 ;
17223 bool result;
17224 void *argp1 = 0 ;
17225 int res1 = 0 ;
17226 bool temp2 = false ;
17227 PyObject * obj0 = 0 ;
17228 PyObject * obj1 = 0 ;
17229 char * kwnames[] = {
17230 (char *) "self",(char *) "message", NULL
17231 };
17232
17233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17235 if (!SWIG_IsOK(res1)) {
17236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17237 }
17238 arg1 = reinterpret_cast< wxDC * >(argp1);
17239 {
17240 arg2 = wxString_in_helper(obj1);
17241 if (arg2 == NULL) SWIG_fail;
17242 temp2 = true;
17243 }
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 {
17251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17252 }
17253 {
17254 if (temp2)
17255 delete arg2;
17256 }
17257 return resultobj;
17258 fail:
17259 {
17260 if (temp2)
17261 delete arg2;
17262 }
17263 return NULL;
17264 }
17265
17266
17267 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17268 PyObject *resultobj = 0;
17269 wxDC *arg1 = (wxDC *) 0 ;
17270 void *argp1 = 0 ;
17271 int res1 = 0 ;
17272 PyObject *swig_obj[1] ;
17273
17274 if (!args) SWIG_fail;
17275 swig_obj[0] = args;
17276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17277 if (!SWIG_IsOK(res1)) {
17278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17279 }
17280 arg1 = reinterpret_cast< wxDC * >(argp1);
17281 {
17282 PyThreadState* __tstate = wxPyBeginAllowThreads();
17283 (arg1)->EndDoc();
17284 wxPyEndAllowThreads(__tstate);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 }
17287 resultobj = SWIG_Py_Void();
17288 return resultobj;
17289 fail:
17290 return NULL;
17291 }
17292
17293
17294 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17295 PyObject *resultobj = 0;
17296 wxDC *arg1 = (wxDC *) 0 ;
17297 void *argp1 = 0 ;
17298 int res1 = 0 ;
17299 PyObject *swig_obj[1] ;
17300
17301 if (!args) SWIG_fail;
17302 swig_obj[0] = args;
17303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17304 if (!SWIG_IsOK(res1)) {
17305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17306 }
17307 arg1 = reinterpret_cast< wxDC * >(argp1);
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 (arg1)->StartPage();
17311 wxPyEndAllowThreads(__tstate);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 resultobj = SWIG_Py_Void();
17315 return resultobj;
17316 fail:
17317 return NULL;
17318 }
17319
17320
17321 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17322 PyObject *resultobj = 0;
17323 wxDC *arg1 = (wxDC *) 0 ;
17324 void *argp1 = 0 ;
17325 int res1 = 0 ;
17326 PyObject *swig_obj[1] ;
17327
17328 if (!args) SWIG_fail;
17329 swig_obj[0] = args;
17330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17331 if (!SWIG_IsOK(res1)) {
17332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17333 }
17334 arg1 = reinterpret_cast< wxDC * >(argp1);
17335 {
17336 PyThreadState* __tstate = wxPyBeginAllowThreads();
17337 (arg1)->EndPage();
17338 wxPyEndAllowThreads(__tstate);
17339 if (PyErr_Occurred()) SWIG_fail;
17340 }
17341 resultobj = SWIG_Py_Void();
17342 return resultobj;
17343 fail:
17344 return NULL;
17345 }
17346
17347
17348 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17349 PyObject *resultobj = 0;
17350 wxDC *arg1 = (wxDC *) 0 ;
17351 wxFont *arg2 = 0 ;
17352 void *argp1 = 0 ;
17353 int res1 = 0 ;
17354 void *argp2 = 0 ;
17355 int res2 = 0 ;
17356 PyObject * obj0 = 0 ;
17357 PyObject * obj1 = 0 ;
17358 char * kwnames[] = {
17359 (char *) "self",(char *) "font", NULL
17360 };
17361
17362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17364 if (!SWIG_IsOK(res1)) {
17365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17366 }
17367 arg1 = reinterpret_cast< wxDC * >(argp1);
17368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17369 if (!SWIG_IsOK(res2)) {
17370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17371 }
17372 if (!argp2) {
17373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17374 }
17375 arg2 = reinterpret_cast< wxFont * >(argp2);
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 (arg1)->SetFont((wxFont const &)*arg2);
17379 wxPyEndAllowThreads(__tstate);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 resultobj = SWIG_Py_Void();
17383 return resultobj;
17384 fail:
17385 return NULL;
17386 }
17387
17388
17389 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj = 0;
17391 wxDC *arg1 = (wxDC *) 0 ;
17392 wxPen *arg2 = 0 ;
17393 void *argp1 = 0 ;
17394 int res1 = 0 ;
17395 void *argp2 = 0 ;
17396 int res2 = 0 ;
17397 PyObject * obj0 = 0 ;
17398 PyObject * obj1 = 0 ;
17399 char * kwnames[] = {
17400 (char *) "self",(char *) "pen", NULL
17401 };
17402
17403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17405 if (!SWIG_IsOK(res1)) {
17406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17407 }
17408 arg1 = reinterpret_cast< wxDC * >(argp1);
17409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17410 if (!SWIG_IsOK(res2)) {
17411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17412 }
17413 if (!argp2) {
17414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17415 }
17416 arg2 = reinterpret_cast< wxPen * >(argp2);
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 (arg1)->SetPen((wxPen const &)*arg2);
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 resultobj = SWIG_Py_Void();
17424 return resultobj;
17425 fail:
17426 return NULL;
17427 }
17428
17429
17430 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17431 PyObject *resultobj = 0;
17432 wxDC *arg1 = (wxDC *) 0 ;
17433 wxBrush *arg2 = 0 ;
17434 void *argp1 = 0 ;
17435 int res1 = 0 ;
17436 void *argp2 = 0 ;
17437 int res2 = 0 ;
17438 PyObject * obj0 = 0 ;
17439 PyObject * obj1 = 0 ;
17440 char * kwnames[] = {
17441 (char *) "self",(char *) "brush", NULL
17442 };
17443
17444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17446 if (!SWIG_IsOK(res1)) {
17447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17448 }
17449 arg1 = reinterpret_cast< wxDC * >(argp1);
17450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17451 if (!SWIG_IsOK(res2)) {
17452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17453 }
17454 if (!argp2) {
17455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17456 }
17457 arg2 = reinterpret_cast< wxBrush * >(argp2);
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 (arg1)->SetBrush((wxBrush const &)*arg2);
17461 wxPyEndAllowThreads(__tstate);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 resultobj = SWIG_Py_Void();
17465 return resultobj;
17466 fail:
17467 return NULL;
17468 }
17469
17470
17471 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17472 PyObject *resultobj = 0;
17473 wxDC *arg1 = (wxDC *) 0 ;
17474 wxBrush *arg2 = 0 ;
17475 void *argp1 = 0 ;
17476 int res1 = 0 ;
17477 void *argp2 = 0 ;
17478 int res2 = 0 ;
17479 PyObject * obj0 = 0 ;
17480 PyObject * obj1 = 0 ;
17481 char * kwnames[] = {
17482 (char *) "self",(char *) "brush", NULL
17483 };
17484
17485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17487 if (!SWIG_IsOK(res1)) {
17488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17489 }
17490 arg1 = reinterpret_cast< wxDC * >(argp1);
17491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17492 if (!SWIG_IsOK(res2)) {
17493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17494 }
17495 if (!argp2) {
17496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17497 }
17498 arg2 = reinterpret_cast< wxBrush * >(argp2);
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 (arg1)->SetBackground((wxBrush const &)*arg2);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = SWIG_Py_Void();
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj = 0;
17514 wxDC *arg1 = (wxDC *) 0 ;
17515 int arg2 ;
17516 void *argp1 = 0 ;
17517 int res1 = 0 ;
17518 int val2 ;
17519 int ecode2 = 0 ;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 char * kwnames[] = {
17523 (char *) "self",(char *) "mode", NULL
17524 };
17525
17526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17528 if (!SWIG_IsOK(res1)) {
17529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17530 }
17531 arg1 = reinterpret_cast< wxDC * >(argp1);
17532 ecode2 = SWIG_AsVal_int(obj1, &val2);
17533 if (!SWIG_IsOK(ecode2)) {
17534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17535 }
17536 arg2 = static_cast< int >(val2);
17537 {
17538 PyThreadState* __tstate = wxPyBeginAllowThreads();
17539 (arg1)->SetBackgroundMode(arg2);
17540 wxPyEndAllowThreads(__tstate);
17541 if (PyErr_Occurred()) SWIG_fail;
17542 }
17543 resultobj = SWIG_Py_Void();
17544 return resultobj;
17545 fail:
17546 return NULL;
17547 }
17548
17549
17550 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17551 PyObject *resultobj = 0;
17552 wxDC *arg1 = (wxDC *) 0 ;
17553 wxPalette *arg2 = 0 ;
17554 void *argp1 = 0 ;
17555 int res1 = 0 ;
17556 void *argp2 = 0 ;
17557 int res2 = 0 ;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 char * kwnames[] = {
17561 (char *) "self",(char *) "palette", NULL
17562 };
17563
17564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17566 if (!SWIG_IsOK(res1)) {
17567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17568 }
17569 arg1 = reinterpret_cast< wxDC * >(argp1);
17570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17571 if (!SWIG_IsOK(res2)) {
17572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17573 }
17574 if (!argp2) {
17575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17576 }
17577 arg2 = reinterpret_cast< wxPalette * >(argp2);
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 (arg1)->SetPalette((wxPalette const &)*arg2);
17581 wxPyEndAllowThreads(__tstate);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 resultobj = SWIG_Py_Void();
17585 return resultobj;
17586 fail:
17587 return NULL;
17588 }
17589
17590
17591 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17592 PyObject *resultobj = 0;
17593 wxDC *arg1 = (wxDC *) 0 ;
17594 void *argp1 = 0 ;
17595 int res1 = 0 ;
17596 PyObject *swig_obj[1] ;
17597
17598 if (!args) SWIG_fail;
17599 swig_obj[0] = args;
17600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17601 if (!SWIG_IsOK(res1)) {
17602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17603 }
17604 arg1 = reinterpret_cast< wxDC * >(argp1);
17605 {
17606 PyThreadState* __tstate = wxPyBeginAllowThreads();
17607 (arg1)->DestroyClippingRegion();
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 resultobj = SWIG_Py_Void();
17612 return resultobj;
17613 fail:
17614 return NULL;
17615 }
17616
17617
17618 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17619 PyObject *resultobj = 0;
17620 wxDC *arg1 = (wxDC *) 0 ;
17621 int *arg2 = (int *) 0 ;
17622 int *arg3 = (int *) 0 ;
17623 int *arg4 = (int *) 0 ;
17624 int *arg5 = (int *) 0 ;
17625 void *argp1 = 0 ;
17626 int res1 = 0 ;
17627 int temp2 ;
17628 int res2 = SWIG_TMPOBJ ;
17629 int temp3 ;
17630 int res3 = SWIG_TMPOBJ ;
17631 int temp4 ;
17632 int res4 = SWIG_TMPOBJ ;
17633 int temp5 ;
17634 int res5 = SWIG_TMPOBJ ;
17635 PyObject *swig_obj[1] ;
17636
17637 arg2 = &temp2;
17638 arg3 = &temp3;
17639 arg4 = &temp4;
17640 arg5 = &temp5;
17641 if (!args) SWIG_fail;
17642 swig_obj[0] = args;
17643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17644 if (!SWIG_IsOK(res1)) {
17645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17646 }
17647 arg1 = reinterpret_cast< wxDC * >(argp1);
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 resultobj = SWIG_Py_Void();
17655 if (SWIG_IsTmpObj(res2)) {
17656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17657 } else {
17658 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17660 }
17661 if (SWIG_IsTmpObj(res3)) {
17662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17663 } else {
17664 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17666 }
17667 if (SWIG_IsTmpObj(res4)) {
17668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17669 } else {
17670 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17672 }
17673 if (SWIG_IsTmpObj(res5)) {
17674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17675 } else {
17676 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17678 }
17679 return resultobj;
17680 fail:
17681 return NULL;
17682 }
17683
17684
17685 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17686 PyObject *resultobj = 0;
17687 wxDC *arg1 = (wxDC *) 0 ;
17688 wxRect result;
17689 void *argp1 = 0 ;
17690 int res1 = 0 ;
17691 PyObject *swig_obj[1] ;
17692
17693 if (!args) SWIG_fail;
17694 swig_obj[0] = args;
17695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17696 if (!SWIG_IsOK(res1)) {
17697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17698 }
17699 arg1 = reinterpret_cast< wxDC * >(argp1);
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = wxDC_GetClippingRect(arg1);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17707 return resultobj;
17708 fail:
17709 return NULL;
17710 }
17711
17712
17713 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17714 PyObject *resultobj = 0;
17715 wxDC *arg1 = (wxDC *) 0 ;
17716 int result;
17717 void *argp1 = 0 ;
17718 int res1 = 0 ;
17719 PyObject *swig_obj[1] ;
17720
17721 if (!args) SWIG_fail;
17722 swig_obj[0] = args;
17723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17724 if (!SWIG_IsOK(res1)) {
17725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17726 }
17727 arg1 = reinterpret_cast< wxDC * >(argp1);
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 result = (int)((wxDC const *)arg1)->GetCharHeight();
17731 wxPyEndAllowThreads(__tstate);
17732 if (PyErr_Occurred()) SWIG_fail;
17733 }
17734 resultobj = SWIG_From_int(static_cast< int >(result));
17735 return resultobj;
17736 fail:
17737 return NULL;
17738 }
17739
17740
17741 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17742 PyObject *resultobj = 0;
17743 wxDC *arg1 = (wxDC *) 0 ;
17744 int result;
17745 void *argp1 = 0 ;
17746 int res1 = 0 ;
17747 PyObject *swig_obj[1] ;
17748
17749 if (!args) SWIG_fail;
17750 swig_obj[0] = args;
17751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17752 if (!SWIG_IsOK(res1)) {
17753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17754 }
17755 arg1 = reinterpret_cast< wxDC * >(argp1);
17756 {
17757 PyThreadState* __tstate = wxPyBeginAllowThreads();
17758 result = (int)((wxDC const *)arg1)->GetCharWidth();
17759 wxPyEndAllowThreads(__tstate);
17760 if (PyErr_Occurred()) SWIG_fail;
17761 }
17762 resultobj = SWIG_From_int(static_cast< int >(result));
17763 return resultobj;
17764 fail:
17765 return NULL;
17766 }
17767
17768
17769 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17770 PyObject *resultobj = 0;
17771 wxDC *arg1 = (wxDC *) 0 ;
17772 wxString *arg2 = 0 ;
17773 int *arg3 = (int *) 0 ;
17774 int *arg4 = (int *) 0 ;
17775 void *argp1 = 0 ;
17776 int res1 = 0 ;
17777 bool temp2 = false ;
17778 int temp3 ;
17779 int res3 = SWIG_TMPOBJ ;
17780 int temp4 ;
17781 int res4 = SWIG_TMPOBJ ;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 char * kwnames[] = {
17785 (char *) "self",(char *) "string", NULL
17786 };
17787
17788 arg3 = &temp3;
17789 arg4 = &temp4;
17790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17792 if (!SWIG_IsOK(res1)) {
17793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17794 }
17795 arg1 = reinterpret_cast< wxDC * >(argp1);
17796 {
17797 arg2 = wxString_in_helper(obj1);
17798 if (arg2 == NULL) SWIG_fail;
17799 temp2 = true;
17800 }
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_Py_Void();
17808 if (SWIG_IsTmpObj(res3)) {
17809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17810 } else {
17811 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17812 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17813 }
17814 if (SWIG_IsTmpObj(res4)) {
17815 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17816 } else {
17817 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17818 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17819 }
17820 {
17821 if (temp2)
17822 delete arg2;
17823 }
17824 return resultobj;
17825 fail:
17826 {
17827 if (temp2)
17828 delete arg2;
17829 }
17830 return NULL;
17831 }
17832
17833
17834 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj = 0;
17836 wxDC *arg1 = (wxDC *) 0 ;
17837 wxString *arg2 = 0 ;
17838 int *arg3 = (int *) 0 ;
17839 int *arg4 = (int *) 0 ;
17840 int *arg5 = (int *) 0 ;
17841 int *arg6 = (int *) 0 ;
17842 wxFont *arg7 = (wxFont *) NULL ;
17843 void *argp1 = 0 ;
17844 int res1 = 0 ;
17845 bool temp2 = false ;
17846 int temp3 ;
17847 int res3 = SWIG_TMPOBJ ;
17848 int temp4 ;
17849 int res4 = SWIG_TMPOBJ ;
17850 int temp5 ;
17851 int res5 = SWIG_TMPOBJ ;
17852 int temp6 ;
17853 int res6 = SWIG_TMPOBJ ;
17854 void *argp7 = 0 ;
17855 int res7 = 0 ;
17856 PyObject * obj0 = 0 ;
17857 PyObject * obj1 = 0 ;
17858 PyObject * obj2 = 0 ;
17859 char * kwnames[] = {
17860 (char *) "self",(char *) "string",(char *) "font", NULL
17861 };
17862
17863 arg3 = &temp3;
17864 arg4 = &temp4;
17865 arg5 = &temp5;
17866 arg6 = &temp6;
17867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17871 }
17872 arg1 = reinterpret_cast< wxDC * >(argp1);
17873 {
17874 arg2 = wxString_in_helper(obj1);
17875 if (arg2 == NULL) SWIG_fail;
17876 temp2 = true;
17877 }
17878 if (obj2) {
17879 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17880 if (!SWIG_IsOK(res7)) {
17881 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17882 }
17883 arg7 = reinterpret_cast< wxFont * >(argp7);
17884 }
17885 {
17886 PyThreadState* __tstate = wxPyBeginAllowThreads();
17887 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 resultobj = SWIG_Py_Void();
17892 if (SWIG_IsTmpObj(res3)) {
17893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17894 } else {
17895 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17897 }
17898 if (SWIG_IsTmpObj(res4)) {
17899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17900 } else {
17901 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17903 }
17904 if (SWIG_IsTmpObj(res5)) {
17905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17906 } else {
17907 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17909 }
17910 if (SWIG_IsTmpObj(res6)) {
17911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17912 } else {
17913 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17915 }
17916 {
17917 if (temp2)
17918 delete arg2;
17919 }
17920 return resultobj;
17921 fail:
17922 {
17923 if (temp2)
17924 delete arg2;
17925 }
17926 return NULL;
17927 }
17928
17929
17930 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17931 PyObject *resultobj = 0;
17932 wxDC *arg1 = (wxDC *) 0 ;
17933 wxString *arg2 = 0 ;
17934 int *arg3 = (int *) 0 ;
17935 int *arg4 = (int *) 0 ;
17936 int *arg5 = (int *) 0 ;
17937 wxFont *arg6 = (wxFont *) NULL ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 bool temp2 = false ;
17941 int temp3 ;
17942 int res3 = SWIG_TMPOBJ ;
17943 int temp4 ;
17944 int res4 = SWIG_TMPOBJ ;
17945 int temp5 ;
17946 int res5 = SWIG_TMPOBJ ;
17947 void *argp6 = 0 ;
17948 int res6 = 0 ;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 PyObject * obj2 = 0 ;
17952 char * kwnames[] = {
17953 (char *) "self",(char *) "text",(char *) "font", NULL
17954 };
17955
17956 arg3 = &temp3;
17957 arg4 = &temp4;
17958 arg5 = &temp5;
17959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17961 if (!SWIG_IsOK(res1)) {
17962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17963 }
17964 arg1 = reinterpret_cast< wxDC * >(argp1);
17965 {
17966 arg2 = wxString_in_helper(obj1);
17967 if (arg2 == NULL) SWIG_fail;
17968 temp2 = true;
17969 }
17970 if (obj2) {
17971 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
17972 if (!SWIG_IsOK(res6)) {
17973 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
17974 }
17975 arg6 = reinterpret_cast< wxFont * >(argp6);
17976 }
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 resultobj = SWIG_Py_Void();
17984 if (SWIG_IsTmpObj(res3)) {
17985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17986 } else {
17987 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17989 }
17990 if (SWIG_IsTmpObj(res4)) {
17991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17992 } else {
17993 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17995 }
17996 if (SWIG_IsTmpObj(res5)) {
17997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17998 } else {
17999 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18001 }
18002 {
18003 if (temp2)
18004 delete arg2;
18005 }
18006 return resultobj;
18007 fail:
18008 {
18009 if (temp2)
18010 delete arg2;
18011 }
18012 return NULL;
18013 }
18014
18015
18016 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxDC *arg1 = (wxDC *) 0 ;
18019 wxString *arg2 = 0 ;
18020 wxArrayInt result;
18021 void *argp1 = 0 ;
18022 int res1 = 0 ;
18023 bool temp2 = false ;
18024 PyObject * obj0 = 0 ;
18025 PyObject * obj1 = 0 ;
18026 char * kwnames[] = {
18027 (char *) "self",(char *) "text", NULL
18028 };
18029
18030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18032 if (!SWIG_IsOK(res1)) {
18033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18034 }
18035 arg1 = reinterpret_cast< wxDC * >(argp1);
18036 {
18037 arg2 = wxString_in_helper(obj1);
18038 if (arg2 == NULL) SWIG_fail;
18039 temp2 = true;
18040 }
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 resultobj = PyList_New(0);
18049 size_t idx;
18050 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18051 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18052 PyList_Append(resultobj, val);
18053 Py_DECREF(val);
18054 }
18055 }
18056 {
18057 if (temp2)
18058 delete arg2;
18059 }
18060 return resultobj;
18061 fail:
18062 {
18063 if (temp2)
18064 delete arg2;
18065 }
18066 return NULL;
18067 }
18068
18069
18070 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18071 PyObject *resultobj = 0;
18072 wxDC *arg1 = (wxDC *) 0 ;
18073 wxSize result;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 PyObject *swig_obj[1] ;
18077
18078 if (!args) SWIG_fail;
18079 swig_obj[0] = args;
18080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18081 if (!SWIG_IsOK(res1)) {
18082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18083 }
18084 arg1 = reinterpret_cast< wxDC * >(argp1);
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 result = (arg1)->GetSize();
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18092 return resultobj;
18093 fail:
18094 return NULL;
18095 }
18096
18097
18098 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18099 PyObject *resultobj = 0;
18100 wxDC *arg1 = (wxDC *) 0 ;
18101 int *arg2 = (int *) 0 ;
18102 int *arg3 = (int *) 0 ;
18103 void *argp1 = 0 ;
18104 int res1 = 0 ;
18105 int temp2 ;
18106 int res2 = SWIG_TMPOBJ ;
18107 int temp3 ;
18108 int res3 = SWIG_TMPOBJ ;
18109 PyObject *swig_obj[1] ;
18110
18111 arg2 = &temp2;
18112 arg3 = &temp3;
18113 if (!args) SWIG_fail;
18114 swig_obj[0] = args;
18115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18116 if (!SWIG_IsOK(res1)) {
18117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18118 }
18119 arg1 = reinterpret_cast< wxDC * >(argp1);
18120 {
18121 PyThreadState* __tstate = wxPyBeginAllowThreads();
18122 (arg1)->GetSize(arg2,arg3);
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 resultobj = SWIG_Py_Void();
18127 if (SWIG_IsTmpObj(res2)) {
18128 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18129 } else {
18130 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18131 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18132 }
18133 if (SWIG_IsTmpObj(res3)) {
18134 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18135 } else {
18136 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18138 }
18139 return resultobj;
18140 fail:
18141 return NULL;
18142 }
18143
18144
18145 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18146 PyObject *resultobj = 0;
18147 wxDC *arg1 = (wxDC *) 0 ;
18148 wxSize result;
18149 void *argp1 = 0 ;
18150 int res1 = 0 ;
18151 PyObject *swig_obj[1] ;
18152
18153 if (!args) SWIG_fail;
18154 swig_obj[0] = args;
18155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18156 if (!SWIG_IsOK(res1)) {
18157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18158 }
18159 arg1 = reinterpret_cast< wxDC * >(argp1);
18160 {
18161 PyThreadState* __tstate = wxPyBeginAllowThreads();
18162 result = ((wxDC const *)arg1)->GetSizeMM();
18163 wxPyEndAllowThreads(__tstate);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18174 PyObject *resultobj = 0;
18175 wxDC *arg1 = (wxDC *) 0 ;
18176 int *arg2 = (int *) 0 ;
18177 int *arg3 = (int *) 0 ;
18178 void *argp1 = 0 ;
18179 int res1 = 0 ;
18180 int temp2 ;
18181 int res2 = SWIG_TMPOBJ ;
18182 int temp3 ;
18183 int res3 = SWIG_TMPOBJ ;
18184 PyObject *swig_obj[1] ;
18185
18186 arg2 = &temp2;
18187 arg3 = &temp3;
18188 if (!args) SWIG_fail;
18189 swig_obj[0] = args;
18190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18191 if (!SWIG_IsOK(res1)) {
18192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18193 }
18194 arg1 = reinterpret_cast< wxDC * >(argp1);
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_Py_Void();
18202 if (SWIG_IsTmpObj(res2)) {
18203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18204 } else {
18205 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18207 }
18208 if (SWIG_IsTmpObj(res3)) {
18209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18210 } else {
18211 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18213 }
18214 return resultobj;
18215 fail:
18216 return NULL;
18217 }
18218
18219
18220 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18221 PyObject *resultobj = 0;
18222 wxDC *arg1 = (wxDC *) 0 ;
18223 int arg2 ;
18224 int result;
18225 void *argp1 = 0 ;
18226 int res1 = 0 ;
18227 int val2 ;
18228 int ecode2 = 0 ;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 char * kwnames[] = {
18232 (char *) "self",(char *) "x", NULL
18233 };
18234
18235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18237 if (!SWIG_IsOK(res1)) {
18238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18239 }
18240 arg1 = reinterpret_cast< wxDC * >(argp1);
18241 ecode2 = SWIG_AsVal_int(obj1, &val2);
18242 if (!SWIG_IsOK(ecode2)) {
18243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18244 }
18245 arg2 = static_cast< int >(val2);
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18249 wxPyEndAllowThreads(__tstate);
18250 if (PyErr_Occurred()) SWIG_fail;
18251 }
18252 resultobj = SWIG_From_int(static_cast< int >(result));
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18260 PyObject *resultobj = 0;
18261 wxDC *arg1 = (wxDC *) 0 ;
18262 int arg2 ;
18263 int result;
18264 void *argp1 = 0 ;
18265 int res1 = 0 ;
18266 int val2 ;
18267 int ecode2 = 0 ;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char * kwnames[] = {
18271 (char *) "self",(char *) "y", NULL
18272 };
18273
18274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18276 if (!SWIG_IsOK(res1)) {
18277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18278 }
18279 arg1 = reinterpret_cast< wxDC * >(argp1);
18280 ecode2 = SWIG_AsVal_int(obj1, &val2);
18281 if (!SWIG_IsOK(ecode2)) {
18282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18283 }
18284 arg2 = static_cast< int >(val2);
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_From_int(static_cast< int >(result));
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj = 0;
18300 wxDC *arg1 = (wxDC *) 0 ;
18301 int arg2 ;
18302 int result;
18303 void *argp1 = 0 ;
18304 int res1 = 0 ;
18305 int val2 ;
18306 int ecode2 = 0 ;
18307 PyObject * obj0 = 0 ;
18308 PyObject * obj1 = 0 ;
18309 char * kwnames[] = {
18310 (char *) "self",(char *) "x", NULL
18311 };
18312
18313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18315 if (!SWIG_IsOK(res1)) {
18316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18317 }
18318 arg1 = reinterpret_cast< wxDC * >(argp1);
18319 ecode2 = SWIG_AsVal_int(obj1, &val2);
18320 if (!SWIG_IsOK(ecode2)) {
18321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18322 }
18323 arg2 = static_cast< int >(val2);
18324 {
18325 PyThreadState* __tstate = wxPyBeginAllowThreads();
18326 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18327 wxPyEndAllowThreads(__tstate);
18328 if (PyErr_Occurred()) SWIG_fail;
18329 }
18330 resultobj = SWIG_From_int(static_cast< int >(result));
18331 return resultobj;
18332 fail:
18333 return NULL;
18334 }
18335
18336
18337 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18338 PyObject *resultobj = 0;
18339 wxDC *arg1 = (wxDC *) 0 ;
18340 int arg2 ;
18341 int result;
18342 void *argp1 = 0 ;
18343 int res1 = 0 ;
18344 int val2 ;
18345 int ecode2 = 0 ;
18346 PyObject * obj0 = 0 ;
18347 PyObject * obj1 = 0 ;
18348 char * kwnames[] = {
18349 (char *) "self",(char *) "y", NULL
18350 };
18351
18352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18354 if (!SWIG_IsOK(res1)) {
18355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18356 }
18357 arg1 = reinterpret_cast< wxDC * >(argp1);
18358 ecode2 = SWIG_AsVal_int(obj1, &val2);
18359 if (!SWIG_IsOK(ecode2)) {
18360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18361 }
18362 arg2 = static_cast< int >(val2);
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 resultobj = SWIG_From_int(static_cast< int >(result));
18370 return resultobj;
18371 fail:
18372 return NULL;
18373 }
18374
18375
18376 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18377 PyObject *resultobj = 0;
18378 wxDC *arg1 = (wxDC *) 0 ;
18379 int arg2 ;
18380 int result;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 int val2 ;
18384 int ecode2 = 0 ;
18385 PyObject * obj0 = 0 ;
18386 PyObject * obj1 = 0 ;
18387 char * kwnames[] = {
18388 (char *) "self",(char *) "x", NULL
18389 };
18390
18391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18393 if (!SWIG_IsOK(res1)) {
18394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18395 }
18396 arg1 = reinterpret_cast< wxDC * >(argp1);
18397 ecode2 = SWIG_AsVal_int(obj1, &val2);
18398 if (!SWIG_IsOK(ecode2)) {
18399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18400 }
18401 arg2 = static_cast< int >(val2);
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_From_int(static_cast< int >(result));
18409 return resultobj;
18410 fail:
18411 return NULL;
18412 }
18413
18414
18415 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 int arg2 ;
18419 int result;
18420 void *argp1 = 0 ;
18421 int res1 = 0 ;
18422 int val2 ;
18423 int ecode2 = 0 ;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 char * kwnames[] = {
18427 (char *) "self",(char *) "y", NULL
18428 };
18429
18430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18432 if (!SWIG_IsOK(res1)) {
18433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18434 }
18435 arg1 = reinterpret_cast< wxDC * >(argp1);
18436 ecode2 = SWIG_AsVal_int(obj1, &val2);
18437 if (!SWIG_IsOK(ecode2)) {
18438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18439 }
18440 arg2 = static_cast< int >(val2);
18441 {
18442 PyThreadState* __tstate = wxPyBeginAllowThreads();
18443 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18444 wxPyEndAllowThreads(__tstate);
18445 if (PyErr_Occurred()) SWIG_fail;
18446 }
18447 resultobj = SWIG_From_int(static_cast< int >(result));
18448 return resultobj;
18449 fail:
18450 return NULL;
18451 }
18452
18453
18454 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18455 PyObject *resultobj = 0;
18456 wxDC *arg1 = (wxDC *) 0 ;
18457 int arg2 ;
18458 int result;
18459 void *argp1 = 0 ;
18460 int res1 = 0 ;
18461 int val2 ;
18462 int ecode2 = 0 ;
18463 PyObject * obj0 = 0 ;
18464 PyObject * obj1 = 0 ;
18465 char * kwnames[] = {
18466 (char *) "self",(char *) "x", NULL
18467 };
18468
18469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18471 if (!SWIG_IsOK(res1)) {
18472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18473 }
18474 arg1 = reinterpret_cast< wxDC * >(argp1);
18475 ecode2 = SWIG_AsVal_int(obj1, &val2);
18476 if (!SWIG_IsOK(ecode2)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18478 }
18479 arg2 = static_cast< int >(val2);
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_From_int(static_cast< int >(result));
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 int arg2 ;
18497 int result;
18498 void *argp1 = 0 ;
18499 int res1 = 0 ;
18500 int val2 ;
18501 int ecode2 = 0 ;
18502 PyObject * obj0 = 0 ;
18503 PyObject * obj1 = 0 ;
18504 char * kwnames[] = {
18505 (char *) "self",(char *) "y", NULL
18506 };
18507
18508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18510 if (!SWIG_IsOK(res1)) {
18511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18512 }
18513 arg1 = reinterpret_cast< wxDC * >(argp1);
18514 ecode2 = SWIG_AsVal_int(obj1, &val2);
18515 if (!SWIG_IsOK(ecode2)) {
18516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18517 }
18518 arg2 = static_cast< int >(val2);
18519 {
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 resultobj = SWIG_From_int(static_cast< int >(result));
18526 return resultobj;
18527 fail:
18528 return NULL;
18529 }
18530
18531
18532 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18533 PyObject *resultobj = 0;
18534 wxDC *arg1 = (wxDC *) 0 ;
18535 bool result;
18536 void *argp1 = 0 ;
18537 int res1 = 0 ;
18538 PyObject *swig_obj[1] ;
18539
18540 if (!args) SWIG_fail;
18541 swig_obj[0] = args;
18542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18543 if (!SWIG_IsOK(res1)) {
18544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18545 }
18546 arg1 = reinterpret_cast< wxDC * >(argp1);
18547 {
18548 PyThreadState* __tstate = wxPyBeginAllowThreads();
18549 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18550 wxPyEndAllowThreads(__tstate);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 {
18554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18555 }
18556 return resultobj;
18557 fail:
18558 return NULL;
18559 }
18560
18561
18562 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18563 PyObject *resultobj = 0;
18564 wxDC *arg1 = (wxDC *) 0 ;
18565 bool result;
18566 void *argp1 = 0 ;
18567 int res1 = 0 ;
18568 PyObject *swig_obj[1] ;
18569
18570 if (!args) SWIG_fail;
18571 swig_obj[0] = args;
18572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18573 if (!SWIG_IsOK(res1)) {
18574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18575 }
18576 arg1 = reinterpret_cast< wxDC * >(argp1);
18577 {
18578 PyThreadState* __tstate = wxPyBeginAllowThreads();
18579 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18580 wxPyEndAllowThreads(__tstate);
18581 if (PyErr_Occurred()) SWIG_fail;
18582 }
18583 {
18584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18585 }
18586 return resultobj;
18587 fail:
18588 return NULL;
18589 }
18590
18591
18592 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18593 PyObject *resultobj = 0;
18594 wxDC *arg1 = (wxDC *) 0 ;
18595 int result;
18596 void *argp1 = 0 ;
18597 int res1 = 0 ;
18598 PyObject *swig_obj[1] ;
18599
18600 if (!args) SWIG_fail;
18601 swig_obj[0] = args;
18602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18603 if (!SWIG_IsOK(res1)) {
18604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18605 }
18606 arg1 = reinterpret_cast< wxDC * >(argp1);
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 result = (int)((wxDC const *)arg1)->GetDepth();
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_From_int(static_cast< int >(result));
18614 return resultobj;
18615 fail:
18616 return NULL;
18617 }
18618
18619
18620 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18621 PyObject *resultobj = 0;
18622 wxDC *arg1 = (wxDC *) 0 ;
18623 wxSize result;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 PyObject *swig_obj[1] ;
18627
18628 if (!args) SWIG_fail;
18629 swig_obj[0] = args;
18630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18631 if (!SWIG_IsOK(res1)) {
18632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18633 }
18634 arg1 = reinterpret_cast< wxDC * >(argp1);
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = ((wxDC const *)arg1)->GetPPI();
18638 wxPyEndAllowThreads(__tstate);
18639 if (PyErr_Occurred()) SWIG_fail;
18640 }
18641 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18642 return resultobj;
18643 fail:
18644 return NULL;
18645 }
18646
18647
18648 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18649 PyObject *resultobj = 0;
18650 wxDC *arg1 = (wxDC *) 0 ;
18651 bool result;
18652 void *argp1 = 0 ;
18653 int res1 = 0 ;
18654 PyObject *swig_obj[1] ;
18655
18656 if (!args) SWIG_fail;
18657 swig_obj[0] = args;
18658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18659 if (!SWIG_IsOK(res1)) {
18660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18661 }
18662 arg1 = reinterpret_cast< wxDC * >(argp1);
18663 {
18664 PyThreadState* __tstate = wxPyBeginAllowThreads();
18665 result = (bool)((wxDC const *)arg1)->Ok();
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 {
18670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18671 }
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18679 PyObject *resultobj = 0;
18680 wxDC *arg1 = (wxDC *) 0 ;
18681 int result;
18682 void *argp1 = 0 ;
18683 int res1 = 0 ;
18684 PyObject *swig_obj[1] ;
18685
18686 if (!args) SWIG_fail;
18687 swig_obj[0] = args;
18688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18689 if (!SWIG_IsOK(res1)) {
18690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18691 }
18692 arg1 = reinterpret_cast< wxDC * >(argp1);
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 resultobj = SWIG_From_int(static_cast< int >(result));
18700 return resultobj;
18701 fail:
18702 return NULL;
18703 }
18704
18705
18706 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18707 PyObject *resultobj = 0;
18708 wxDC *arg1 = (wxDC *) 0 ;
18709 wxBrush *result = 0 ;
18710 void *argp1 = 0 ;
18711 int res1 = 0 ;
18712 PyObject *swig_obj[1] ;
18713
18714 if (!args) SWIG_fail;
18715 swig_obj[0] = args;
18716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18719 }
18720 arg1 = reinterpret_cast< wxDC * >(argp1);
18721 {
18722 PyThreadState* __tstate = wxPyBeginAllowThreads();
18723 {
18724 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18725 result = (wxBrush *) &_result_ref;
18726 }
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 {
18731 wxBrush* resultptr = new wxBrush(*result);
18732 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18733 }
18734 return resultobj;
18735 fail:
18736 return NULL;
18737 }
18738
18739
18740 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18741 PyObject *resultobj = 0;
18742 wxDC *arg1 = (wxDC *) 0 ;
18743 wxBrush *result = 0 ;
18744 void *argp1 = 0 ;
18745 int res1 = 0 ;
18746 PyObject *swig_obj[1] ;
18747
18748 if (!args) SWIG_fail;
18749 swig_obj[0] = args;
18750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18753 }
18754 arg1 = reinterpret_cast< wxDC * >(argp1);
18755 {
18756 PyThreadState* __tstate = wxPyBeginAllowThreads();
18757 {
18758 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18759 result = (wxBrush *) &_result_ref;
18760 }
18761 wxPyEndAllowThreads(__tstate);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 }
18764 {
18765 wxBrush* resultptr = new wxBrush(*result);
18766 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18767 }
18768 return resultobj;
18769 fail:
18770 return NULL;
18771 }
18772
18773
18774 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18775 PyObject *resultobj = 0;
18776 wxDC *arg1 = (wxDC *) 0 ;
18777 wxFont *result = 0 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 PyObject *swig_obj[1] ;
18781
18782 if (!args) SWIG_fail;
18783 swig_obj[0] = args;
18784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18785 if (!SWIG_IsOK(res1)) {
18786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18787 }
18788 arg1 = reinterpret_cast< wxDC * >(argp1);
18789 {
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 {
18792 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18793 result = (wxFont *) &_result_ref;
18794 }
18795 wxPyEndAllowThreads(__tstate);
18796 if (PyErr_Occurred()) SWIG_fail;
18797 }
18798 {
18799 wxFont* resultptr = new wxFont(*result);
18800 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18801 }
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18809 PyObject *resultobj = 0;
18810 wxDC *arg1 = (wxDC *) 0 ;
18811 wxPen *result = 0 ;
18812 void *argp1 = 0 ;
18813 int res1 = 0 ;
18814 PyObject *swig_obj[1] ;
18815
18816 if (!args) SWIG_fail;
18817 swig_obj[0] = args;
18818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18819 if (!SWIG_IsOK(res1)) {
18820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18821 }
18822 arg1 = reinterpret_cast< wxDC * >(argp1);
18823 {
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 {
18826 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18827 result = (wxPen *) &_result_ref;
18828 }
18829 wxPyEndAllowThreads(__tstate);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 }
18832 {
18833 wxPen* resultptr = new wxPen(*result);
18834 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18835 }
18836 return resultobj;
18837 fail:
18838 return NULL;
18839 }
18840
18841
18842 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18843 PyObject *resultobj = 0;
18844 wxDC *arg1 = (wxDC *) 0 ;
18845 wxColour *result = 0 ;
18846 void *argp1 = 0 ;
18847 int res1 = 0 ;
18848 PyObject *swig_obj[1] ;
18849
18850 if (!args) SWIG_fail;
18851 swig_obj[0] = args;
18852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18853 if (!SWIG_IsOK(res1)) {
18854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18855 }
18856 arg1 = reinterpret_cast< wxDC * >(argp1);
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 {
18860 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18861 result = (wxColour *) &_result_ref;
18862 }
18863 wxPyEndAllowThreads(__tstate);
18864 if (PyErr_Occurred()) SWIG_fail;
18865 }
18866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18867 return resultobj;
18868 fail:
18869 return NULL;
18870 }
18871
18872
18873 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18874 PyObject *resultobj = 0;
18875 wxDC *arg1 = (wxDC *) 0 ;
18876 wxColour *result = 0 ;
18877 void *argp1 = 0 ;
18878 int res1 = 0 ;
18879 PyObject *swig_obj[1] ;
18880
18881 if (!args) SWIG_fail;
18882 swig_obj[0] = args;
18883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18884 if (!SWIG_IsOK(res1)) {
18885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18886 }
18887 arg1 = reinterpret_cast< wxDC * >(argp1);
18888 {
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 {
18891 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18892 result = (wxColour *) &_result_ref;
18893 }
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18898 return resultobj;
18899 fail:
18900 return NULL;
18901 }
18902
18903
18904 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj = 0;
18906 wxDC *arg1 = (wxDC *) 0 ;
18907 wxColour *arg2 = 0 ;
18908 void *argp1 = 0 ;
18909 int res1 = 0 ;
18910 wxColour temp2 ;
18911 PyObject * obj0 = 0 ;
18912 PyObject * obj1 = 0 ;
18913 char * kwnames[] = {
18914 (char *) "self",(char *) "colour", NULL
18915 };
18916
18917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18919 if (!SWIG_IsOK(res1)) {
18920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18921 }
18922 arg1 = reinterpret_cast< wxDC * >(argp1);
18923 {
18924 arg2 = &temp2;
18925 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18926 }
18927 {
18928 PyThreadState* __tstate = wxPyBeginAllowThreads();
18929 (arg1)->SetTextForeground((wxColour const &)*arg2);
18930 wxPyEndAllowThreads(__tstate);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 resultobj = SWIG_Py_Void();
18934 return resultobj;
18935 fail:
18936 return NULL;
18937 }
18938
18939
18940 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18941 PyObject *resultobj = 0;
18942 wxDC *arg1 = (wxDC *) 0 ;
18943 wxColour *arg2 = 0 ;
18944 void *argp1 = 0 ;
18945 int res1 = 0 ;
18946 wxColour temp2 ;
18947 PyObject * obj0 = 0 ;
18948 PyObject * obj1 = 0 ;
18949 char * kwnames[] = {
18950 (char *) "self",(char *) "colour", NULL
18951 };
18952
18953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18955 if (!SWIG_IsOK(res1)) {
18956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18957 }
18958 arg1 = reinterpret_cast< wxDC * >(argp1);
18959 {
18960 arg2 = &temp2;
18961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18962 }
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 (arg1)->SetTextBackground((wxColour const &)*arg2);
18966 wxPyEndAllowThreads(__tstate);
18967 if (PyErr_Occurred()) SWIG_fail;
18968 }
18969 resultobj = SWIG_Py_Void();
18970 return resultobj;
18971 fail:
18972 return NULL;
18973 }
18974
18975
18976 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18977 PyObject *resultobj = 0;
18978 wxDC *arg1 = (wxDC *) 0 ;
18979 int result;
18980 void *argp1 = 0 ;
18981 int res1 = 0 ;
18982 PyObject *swig_obj[1] ;
18983
18984 if (!args) SWIG_fail;
18985 swig_obj[0] = args;
18986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18987 if (!SWIG_IsOK(res1)) {
18988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18989 }
18990 arg1 = reinterpret_cast< wxDC * >(argp1);
18991 {
18992 PyThreadState* __tstate = wxPyBeginAllowThreads();
18993 result = (int)((wxDC const *)arg1)->GetMapMode();
18994 wxPyEndAllowThreads(__tstate);
18995 if (PyErr_Occurred()) SWIG_fail;
18996 }
18997 resultobj = SWIG_From_int(static_cast< int >(result));
18998 return resultobj;
18999 fail:
19000 return NULL;
19001 }
19002
19003
19004 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19005 PyObject *resultobj = 0;
19006 wxDC *arg1 = (wxDC *) 0 ;
19007 int arg2 ;
19008 void *argp1 = 0 ;
19009 int res1 = 0 ;
19010 int val2 ;
19011 int ecode2 = 0 ;
19012 PyObject * obj0 = 0 ;
19013 PyObject * obj1 = 0 ;
19014 char * kwnames[] = {
19015 (char *) "self",(char *) "mode", NULL
19016 };
19017
19018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19020 if (!SWIG_IsOK(res1)) {
19021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19022 }
19023 arg1 = reinterpret_cast< wxDC * >(argp1);
19024 ecode2 = SWIG_AsVal_int(obj1, &val2);
19025 if (!SWIG_IsOK(ecode2)) {
19026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19027 }
19028 arg2 = static_cast< int >(val2);
19029 {
19030 PyThreadState* __tstate = wxPyBeginAllowThreads();
19031 (arg1)->SetMapMode(arg2);
19032 wxPyEndAllowThreads(__tstate);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 resultobj = SWIG_Py_Void();
19036 return resultobj;
19037 fail:
19038 return NULL;
19039 }
19040
19041
19042 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19043 PyObject *resultobj = 0;
19044 wxDC *arg1 = (wxDC *) 0 ;
19045 double *arg2 = (double *) 0 ;
19046 double *arg3 = (double *) 0 ;
19047 void *argp1 = 0 ;
19048 int res1 = 0 ;
19049 double temp2 ;
19050 int res2 = SWIG_TMPOBJ ;
19051 double temp3 ;
19052 int res3 = SWIG_TMPOBJ ;
19053 PyObject *swig_obj[1] ;
19054
19055 arg2 = &temp2;
19056 arg3 = &temp3;
19057 if (!args) SWIG_fail;
19058 swig_obj[0] = args;
19059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19060 if (!SWIG_IsOK(res1)) {
19061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19062 }
19063 arg1 = reinterpret_cast< wxDC * >(argp1);
19064 {
19065 PyThreadState* __tstate = wxPyBeginAllowThreads();
19066 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19067 wxPyEndAllowThreads(__tstate);
19068 if (PyErr_Occurred()) SWIG_fail;
19069 }
19070 resultobj = SWIG_Py_Void();
19071 if (SWIG_IsTmpObj(res2)) {
19072 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19073 } else {
19074 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19075 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19076 }
19077 if (SWIG_IsTmpObj(res3)) {
19078 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19079 } else {
19080 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19081 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19082 }
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = 0;
19091 wxDC *arg1 = (wxDC *) 0 ;
19092 double arg2 ;
19093 double arg3 ;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 double val2 ;
19097 int ecode2 = 0 ;
19098 double val3 ;
19099 int ecode3 = 0 ;
19100 PyObject * obj0 = 0 ;
19101 PyObject * obj1 = 0 ;
19102 PyObject * obj2 = 0 ;
19103 char * kwnames[] = {
19104 (char *) "self",(char *) "x",(char *) "y", NULL
19105 };
19106
19107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19109 if (!SWIG_IsOK(res1)) {
19110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19111 }
19112 arg1 = reinterpret_cast< wxDC * >(argp1);
19113 ecode2 = SWIG_AsVal_double(obj1, &val2);
19114 if (!SWIG_IsOK(ecode2)) {
19115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19116 }
19117 arg2 = static_cast< double >(val2);
19118 ecode3 = SWIG_AsVal_double(obj2, &val3);
19119 if (!SWIG_IsOK(ecode3)) {
19120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19121 }
19122 arg3 = static_cast< double >(val3);
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 (arg1)->SetUserScale(arg2,arg3);
19126 wxPyEndAllowThreads(__tstate);
19127 if (PyErr_Occurred()) SWIG_fail;
19128 }
19129 resultobj = SWIG_Py_Void();
19130 return resultobj;
19131 fail:
19132 return NULL;
19133 }
19134
19135
19136 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19137 PyObject *resultobj = 0;
19138 wxDC *arg1 = (wxDC *) 0 ;
19139 double *arg2 = (double *) 0 ;
19140 double *arg3 = (double *) 0 ;
19141 void *argp1 = 0 ;
19142 int res1 = 0 ;
19143 double temp2 ;
19144 int res2 = SWIG_TMPOBJ ;
19145 double temp3 ;
19146 int res3 = SWIG_TMPOBJ ;
19147 PyObject *swig_obj[1] ;
19148
19149 arg2 = &temp2;
19150 arg3 = &temp3;
19151 if (!args) SWIG_fail;
19152 swig_obj[0] = args;
19153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19154 if (!SWIG_IsOK(res1)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19156 }
19157 arg1 = reinterpret_cast< wxDC * >(argp1);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 (arg1)->GetLogicalScale(arg2,arg3);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 resultobj = SWIG_Py_Void();
19165 if (SWIG_IsTmpObj(res2)) {
19166 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19167 } else {
19168 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19169 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19170 }
19171 if (SWIG_IsTmpObj(res3)) {
19172 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19173 } else {
19174 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19175 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19176 }
19177 return resultobj;
19178 fail:
19179 return NULL;
19180 }
19181
19182
19183 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19184 PyObject *resultobj = 0;
19185 wxDC *arg1 = (wxDC *) 0 ;
19186 double arg2 ;
19187 double arg3 ;
19188 void *argp1 = 0 ;
19189 int res1 = 0 ;
19190 double val2 ;
19191 int ecode2 = 0 ;
19192 double val3 ;
19193 int ecode3 = 0 ;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 PyObject * obj2 = 0 ;
19197 char * kwnames[] = {
19198 (char *) "self",(char *) "x",(char *) "y", NULL
19199 };
19200
19201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19203 if (!SWIG_IsOK(res1)) {
19204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19205 }
19206 arg1 = reinterpret_cast< wxDC * >(argp1);
19207 ecode2 = SWIG_AsVal_double(obj1, &val2);
19208 if (!SWIG_IsOK(ecode2)) {
19209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19210 }
19211 arg2 = static_cast< double >(val2);
19212 ecode3 = SWIG_AsVal_double(obj2, &val3);
19213 if (!SWIG_IsOK(ecode3)) {
19214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19215 }
19216 arg3 = static_cast< double >(val3);
19217 {
19218 PyThreadState* __tstate = wxPyBeginAllowThreads();
19219 (arg1)->SetLogicalScale(arg2,arg3);
19220 wxPyEndAllowThreads(__tstate);
19221 if (PyErr_Occurred()) SWIG_fail;
19222 }
19223 resultobj = SWIG_Py_Void();
19224 return resultobj;
19225 fail:
19226 return NULL;
19227 }
19228
19229
19230 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19231 PyObject *resultobj = 0;
19232 wxDC *arg1 = (wxDC *) 0 ;
19233 wxPoint result;
19234 void *argp1 = 0 ;
19235 int res1 = 0 ;
19236 PyObject *swig_obj[1] ;
19237
19238 if (!args) SWIG_fail;
19239 swig_obj[0] = args;
19240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19241 if (!SWIG_IsOK(res1)) {
19242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19243 }
19244 arg1 = reinterpret_cast< wxDC * >(argp1);
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19252 return resultobj;
19253 fail:
19254 return NULL;
19255 }
19256
19257
19258 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19259 PyObject *resultobj = 0;
19260 wxDC *arg1 = (wxDC *) 0 ;
19261 int *arg2 = (int *) 0 ;
19262 int *arg3 = (int *) 0 ;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 int temp2 ;
19266 int res2 = SWIG_TMPOBJ ;
19267 int temp3 ;
19268 int res3 = SWIG_TMPOBJ ;
19269 PyObject *swig_obj[1] ;
19270
19271 arg2 = &temp2;
19272 arg3 = &temp3;
19273 if (!args) SWIG_fail;
19274 swig_obj[0] = args;
19275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19276 if (!SWIG_IsOK(res1)) {
19277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19278 }
19279 arg1 = reinterpret_cast< wxDC * >(argp1);
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 resultobj = SWIG_Py_Void();
19287 if (SWIG_IsTmpObj(res2)) {
19288 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19289 } else {
19290 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19291 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19292 }
19293 if (SWIG_IsTmpObj(res3)) {
19294 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19295 } else {
19296 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19298 }
19299 return resultobj;
19300 fail:
19301 return NULL;
19302 }
19303
19304
19305 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19306 PyObject *resultobj = 0;
19307 wxDC *arg1 = (wxDC *) 0 ;
19308 int arg2 ;
19309 int arg3 ;
19310 void *argp1 = 0 ;
19311 int res1 = 0 ;
19312 int val2 ;
19313 int ecode2 = 0 ;
19314 int val3 ;
19315 int ecode3 = 0 ;
19316 PyObject * obj0 = 0 ;
19317 PyObject * obj1 = 0 ;
19318 PyObject * obj2 = 0 ;
19319 char * kwnames[] = {
19320 (char *) "self",(char *) "x",(char *) "y", NULL
19321 };
19322
19323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19325 if (!SWIG_IsOK(res1)) {
19326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19327 }
19328 arg1 = reinterpret_cast< wxDC * >(argp1);
19329 ecode2 = SWIG_AsVal_int(obj1, &val2);
19330 if (!SWIG_IsOK(ecode2)) {
19331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19332 }
19333 arg2 = static_cast< int >(val2);
19334 ecode3 = SWIG_AsVal_int(obj2, &val3);
19335 if (!SWIG_IsOK(ecode3)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19337 }
19338 arg3 = static_cast< int >(val3);
19339 {
19340 PyThreadState* __tstate = wxPyBeginAllowThreads();
19341 (arg1)->SetLogicalOrigin(arg2,arg3);
19342 wxPyEndAllowThreads(__tstate);
19343 if (PyErr_Occurred()) SWIG_fail;
19344 }
19345 resultobj = SWIG_Py_Void();
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19353 PyObject *resultobj = 0;
19354 wxDC *arg1 = (wxDC *) 0 ;
19355 wxPoint *arg2 = 0 ;
19356 void *argp1 = 0 ;
19357 int res1 = 0 ;
19358 wxPoint temp2 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 char * kwnames[] = {
19362 (char *) "self",(char *) "point", NULL
19363 };
19364
19365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19367 if (!SWIG_IsOK(res1)) {
19368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19369 }
19370 arg1 = reinterpret_cast< wxDC * >(argp1);
19371 {
19372 arg2 = &temp2;
19373 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19374 }
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19378 wxPyEndAllowThreads(__tstate);
19379 if (PyErr_Occurred()) SWIG_fail;
19380 }
19381 resultobj = SWIG_Py_Void();
19382 return resultobj;
19383 fail:
19384 return NULL;
19385 }
19386
19387
19388 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19389 PyObject *resultobj = 0;
19390 wxDC *arg1 = (wxDC *) 0 ;
19391 wxPoint result;
19392 void *argp1 = 0 ;
19393 int res1 = 0 ;
19394 PyObject *swig_obj[1] ;
19395
19396 if (!args) SWIG_fail;
19397 swig_obj[0] = args;
19398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19399 if (!SWIG_IsOK(res1)) {
19400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19401 }
19402 arg1 = reinterpret_cast< wxDC * >(argp1);
19403 {
19404 PyThreadState* __tstate = wxPyBeginAllowThreads();
19405 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19406 wxPyEndAllowThreads(__tstate);
19407 if (PyErr_Occurred()) SWIG_fail;
19408 }
19409 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19410 return resultobj;
19411 fail:
19412 return NULL;
19413 }
19414
19415
19416 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19417 PyObject *resultobj = 0;
19418 wxDC *arg1 = (wxDC *) 0 ;
19419 int *arg2 = (int *) 0 ;
19420 int *arg3 = (int *) 0 ;
19421 void *argp1 = 0 ;
19422 int res1 = 0 ;
19423 int temp2 ;
19424 int res2 = SWIG_TMPOBJ ;
19425 int temp3 ;
19426 int res3 = SWIG_TMPOBJ ;
19427 PyObject *swig_obj[1] ;
19428
19429 arg2 = &temp2;
19430 arg3 = &temp3;
19431 if (!args) SWIG_fail;
19432 swig_obj[0] = args;
19433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19434 if (!SWIG_IsOK(res1)) {
19435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19436 }
19437 arg1 = reinterpret_cast< wxDC * >(argp1);
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 if (SWIG_IsTmpObj(res2)) {
19446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19447 } else {
19448 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19450 }
19451 if (SWIG_IsTmpObj(res3)) {
19452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19453 } else {
19454 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19456 }
19457 return resultobj;
19458 fail:
19459 return NULL;
19460 }
19461
19462
19463 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19464 PyObject *resultobj = 0;
19465 wxDC *arg1 = (wxDC *) 0 ;
19466 int arg2 ;
19467 int arg3 ;
19468 void *argp1 = 0 ;
19469 int res1 = 0 ;
19470 int val2 ;
19471 int ecode2 = 0 ;
19472 int val3 ;
19473 int ecode3 = 0 ;
19474 PyObject * obj0 = 0 ;
19475 PyObject * obj1 = 0 ;
19476 PyObject * obj2 = 0 ;
19477 char * kwnames[] = {
19478 (char *) "self",(char *) "x",(char *) "y", NULL
19479 };
19480
19481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19483 if (!SWIG_IsOK(res1)) {
19484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19485 }
19486 arg1 = reinterpret_cast< wxDC * >(argp1);
19487 ecode2 = SWIG_AsVal_int(obj1, &val2);
19488 if (!SWIG_IsOK(ecode2)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19490 }
19491 arg2 = static_cast< int >(val2);
19492 ecode3 = SWIG_AsVal_int(obj2, &val3);
19493 if (!SWIG_IsOK(ecode3)) {
19494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19495 }
19496 arg3 = static_cast< int >(val3);
19497 {
19498 PyThreadState* __tstate = wxPyBeginAllowThreads();
19499 (arg1)->SetDeviceOrigin(arg2,arg3);
19500 wxPyEndAllowThreads(__tstate);
19501 if (PyErr_Occurred()) SWIG_fail;
19502 }
19503 resultobj = SWIG_Py_Void();
19504 return resultobj;
19505 fail:
19506 return NULL;
19507 }
19508
19509
19510 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19511 PyObject *resultobj = 0;
19512 wxDC *arg1 = (wxDC *) 0 ;
19513 wxPoint *arg2 = 0 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 wxPoint temp2 ;
19517 PyObject * obj0 = 0 ;
19518 PyObject * obj1 = 0 ;
19519 char * kwnames[] = {
19520 (char *) "self",(char *) "point", NULL
19521 };
19522
19523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19525 if (!SWIG_IsOK(res1)) {
19526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19527 }
19528 arg1 = reinterpret_cast< wxDC * >(argp1);
19529 {
19530 arg2 = &temp2;
19531 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19532 }
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19536 wxPyEndAllowThreads(__tstate);
19537 if (PyErr_Occurred()) SWIG_fail;
19538 }
19539 resultobj = SWIG_Py_Void();
19540 return resultobj;
19541 fail:
19542 return NULL;
19543 }
19544
19545
19546 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19547 PyObject *resultobj = 0;
19548 wxDC *arg1 = (wxDC *) 0 ;
19549 bool arg2 ;
19550 bool arg3 ;
19551 void *argp1 = 0 ;
19552 int res1 = 0 ;
19553 bool val2 ;
19554 int ecode2 = 0 ;
19555 bool val3 ;
19556 int ecode3 = 0 ;
19557 PyObject * obj0 = 0 ;
19558 PyObject * obj1 = 0 ;
19559 PyObject * obj2 = 0 ;
19560 char * kwnames[] = {
19561 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19562 };
19563
19564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19568 }
19569 arg1 = reinterpret_cast< wxDC * >(argp1);
19570 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19571 if (!SWIG_IsOK(ecode2)) {
19572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19573 }
19574 arg2 = static_cast< bool >(val2);
19575 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19576 if (!SWIG_IsOK(ecode3)) {
19577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19578 }
19579 arg3 = static_cast< bool >(val3);
19580 {
19581 PyThreadState* __tstate = wxPyBeginAllowThreads();
19582 (arg1)->SetAxisOrientation(arg2,arg3);
19583 wxPyEndAllowThreads(__tstate);
19584 if (PyErr_Occurred()) SWIG_fail;
19585 }
19586 resultobj = SWIG_Py_Void();
19587 return resultobj;
19588 fail:
19589 return NULL;
19590 }
19591
19592
19593 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19594 PyObject *resultobj = 0;
19595 wxDC *arg1 = (wxDC *) 0 ;
19596 int result;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 PyObject *swig_obj[1] ;
19600
19601 if (!args) SWIG_fail;
19602 swig_obj[0] = args;
19603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19604 if (!SWIG_IsOK(res1)) {
19605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19606 }
19607 arg1 = reinterpret_cast< wxDC * >(argp1);
19608 {
19609 PyThreadState* __tstate = wxPyBeginAllowThreads();
19610 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19611 wxPyEndAllowThreads(__tstate);
19612 if (PyErr_Occurred()) SWIG_fail;
19613 }
19614 resultobj = SWIG_From_int(static_cast< int >(result));
19615 return resultobj;
19616 fail:
19617 return NULL;
19618 }
19619
19620
19621 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19622 PyObject *resultobj = 0;
19623 wxDC *arg1 = (wxDC *) 0 ;
19624 int arg2 ;
19625 void *argp1 = 0 ;
19626 int res1 = 0 ;
19627 int val2 ;
19628 int ecode2 = 0 ;
19629 PyObject * obj0 = 0 ;
19630 PyObject * obj1 = 0 ;
19631 char * kwnames[] = {
19632 (char *) "self",(char *) "function", NULL
19633 };
19634
19635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19637 if (!SWIG_IsOK(res1)) {
19638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19639 }
19640 arg1 = reinterpret_cast< wxDC * >(argp1);
19641 ecode2 = SWIG_AsVal_int(obj1, &val2);
19642 if (!SWIG_IsOK(ecode2)) {
19643 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19644 }
19645 arg2 = static_cast< int >(val2);
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 (arg1)->SetLogicalFunction(arg2);
19649 wxPyEndAllowThreads(__tstate);
19650 if (PyErr_Occurred()) SWIG_fail;
19651 }
19652 resultobj = SWIG_Py_Void();
19653 return resultobj;
19654 fail:
19655 return NULL;
19656 }
19657
19658
19659 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19660 PyObject *resultobj = 0;
19661 wxDC *arg1 = (wxDC *) 0 ;
19662 void *argp1 = 0 ;
19663 int res1 = 0 ;
19664 PyObject *swig_obj[1] ;
19665
19666 if (!args) SWIG_fail;
19667 swig_obj[0] = args;
19668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19669 if (!SWIG_IsOK(res1)) {
19670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19671 }
19672 arg1 = reinterpret_cast< wxDC * >(argp1);
19673 {
19674 PyThreadState* __tstate = wxPyBeginAllowThreads();
19675 (arg1)->ComputeScaleAndOrigin();
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
19679 resultobj = SWIG_Py_Void();
19680 return resultobj;
19681 fail:
19682 return NULL;
19683 }
19684
19685
19686 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj = 0;
19688 wxDC *arg1 = (wxDC *) 0 ;
19689 int arg2 ;
19690 int arg3 ;
19691 void *argp1 = 0 ;
19692 int res1 = 0 ;
19693 int val2 ;
19694 int ecode2 = 0 ;
19695 int val3 ;
19696 int ecode3 = 0 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 PyObject * obj2 = 0 ;
19700 char * kwnames[] = {
19701 (char *) "self",(char *) "x",(char *) "y", NULL
19702 };
19703
19704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19706 if (!SWIG_IsOK(res1)) {
19707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19708 }
19709 arg1 = reinterpret_cast< wxDC * >(argp1);
19710 ecode2 = SWIG_AsVal_int(obj1, &val2);
19711 if (!SWIG_IsOK(ecode2)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19713 }
19714 arg2 = static_cast< int >(val2);
19715 ecode3 = SWIG_AsVal_int(obj2, &val3);
19716 if (!SWIG_IsOK(ecode3)) {
19717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19718 }
19719 arg3 = static_cast< int >(val3);
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 (arg1)->CalcBoundingBox(arg2,arg3);
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 resultobj = SWIG_Py_Void();
19727 return resultobj;
19728 fail:
19729 return NULL;
19730 }
19731
19732
19733 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19734 PyObject *resultobj = 0;
19735 wxDC *arg1 = (wxDC *) 0 ;
19736 wxPoint *arg2 = 0 ;
19737 void *argp1 = 0 ;
19738 int res1 = 0 ;
19739 wxPoint temp2 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "point", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19750 }
19751 arg1 = reinterpret_cast< wxDC * >(argp1);
19752 {
19753 arg2 = &temp2;
19754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19755 }
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 resultobj = SWIG_Py_Void();
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19770 PyObject *resultobj = 0;
19771 wxDC *arg1 = (wxDC *) 0 ;
19772 void *argp1 = 0 ;
19773 int res1 = 0 ;
19774 PyObject *swig_obj[1] ;
19775
19776 if (!args) SWIG_fail;
19777 swig_obj[0] = args;
19778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19779 if (!SWIG_IsOK(res1)) {
19780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19781 }
19782 arg1 = reinterpret_cast< wxDC * >(argp1);
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->ResetBoundingBox();
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_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19797 PyObject *resultobj = 0;
19798 wxDC *arg1 = (wxDC *) 0 ;
19799 int result;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 PyObject *swig_obj[1] ;
19803
19804 if (!args) SWIG_fail;
19805 swig_obj[0] = args;
19806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19807 if (!SWIG_IsOK(res1)) {
19808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19809 }
19810 arg1 = reinterpret_cast< wxDC * >(argp1);
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (int)((wxDC const *)arg1)->MinX();
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 resultobj = SWIG_From_int(static_cast< int >(result));
19818 return resultobj;
19819 fail:
19820 return NULL;
19821 }
19822
19823
19824 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19825 PyObject *resultobj = 0;
19826 wxDC *arg1 = (wxDC *) 0 ;
19827 int result;
19828 void *argp1 = 0 ;
19829 int res1 = 0 ;
19830 PyObject *swig_obj[1] ;
19831
19832 if (!args) SWIG_fail;
19833 swig_obj[0] = args;
19834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19835 if (!SWIG_IsOK(res1)) {
19836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19837 }
19838 arg1 = reinterpret_cast< wxDC * >(argp1);
19839 {
19840 PyThreadState* __tstate = wxPyBeginAllowThreads();
19841 result = (int)((wxDC const *)arg1)->MaxX();
19842 wxPyEndAllowThreads(__tstate);
19843 if (PyErr_Occurred()) SWIG_fail;
19844 }
19845 resultobj = SWIG_From_int(static_cast< int >(result));
19846 return resultobj;
19847 fail:
19848 return NULL;
19849 }
19850
19851
19852 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19853 PyObject *resultobj = 0;
19854 wxDC *arg1 = (wxDC *) 0 ;
19855 int result;
19856 void *argp1 = 0 ;
19857 int res1 = 0 ;
19858 PyObject *swig_obj[1] ;
19859
19860 if (!args) SWIG_fail;
19861 swig_obj[0] = args;
19862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19863 if (!SWIG_IsOK(res1)) {
19864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19865 }
19866 arg1 = reinterpret_cast< wxDC * >(argp1);
19867 {
19868 PyThreadState* __tstate = wxPyBeginAllowThreads();
19869 result = (int)((wxDC const *)arg1)->MinY();
19870 wxPyEndAllowThreads(__tstate);
19871 if (PyErr_Occurred()) SWIG_fail;
19872 }
19873 resultobj = SWIG_From_int(static_cast< int >(result));
19874 return resultobj;
19875 fail:
19876 return NULL;
19877 }
19878
19879
19880 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19881 PyObject *resultobj = 0;
19882 wxDC *arg1 = (wxDC *) 0 ;
19883 int result;
19884 void *argp1 = 0 ;
19885 int res1 = 0 ;
19886 PyObject *swig_obj[1] ;
19887
19888 if (!args) SWIG_fail;
19889 swig_obj[0] = args;
19890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19891 if (!SWIG_IsOK(res1)) {
19892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19893 }
19894 arg1 = reinterpret_cast< wxDC * >(argp1);
19895 {
19896 PyThreadState* __tstate = wxPyBeginAllowThreads();
19897 result = (int)((wxDC const *)arg1)->MaxY();
19898 wxPyEndAllowThreads(__tstate);
19899 if (PyErr_Occurred()) SWIG_fail;
19900 }
19901 resultobj = SWIG_From_int(static_cast< int >(result));
19902 return resultobj;
19903 fail:
19904 return NULL;
19905 }
19906
19907
19908 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19909 PyObject *resultobj = 0;
19910 wxDC *arg1 = (wxDC *) 0 ;
19911 int *arg2 = (int *) 0 ;
19912 int *arg3 = (int *) 0 ;
19913 int *arg4 = (int *) 0 ;
19914 int *arg5 = (int *) 0 ;
19915 void *argp1 = 0 ;
19916 int res1 = 0 ;
19917 int temp2 ;
19918 int res2 = SWIG_TMPOBJ ;
19919 int temp3 ;
19920 int res3 = SWIG_TMPOBJ ;
19921 int temp4 ;
19922 int res4 = SWIG_TMPOBJ ;
19923 int temp5 ;
19924 int res5 = SWIG_TMPOBJ ;
19925 PyObject *swig_obj[1] ;
19926
19927 arg2 = &temp2;
19928 arg3 = &temp3;
19929 arg4 = &temp4;
19930 arg5 = &temp5;
19931 if (!args) SWIG_fail;
19932 swig_obj[0] = args;
19933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19936 }
19937 arg1 = reinterpret_cast< wxDC * >(argp1);
19938 {
19939 PyThreadState* __tstate = wxPyBeginAllowThreads();
19940 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
19941 wxPyEndAllowThreads(__tstate);
19942 if (PyErr_Occurred()) SWIG_fail;
19943 }
19944 resultobj = SWIG_Py_Void();
19945 if (SWIG_IsTmpObj(res2)) {
19946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19947 } else {
19948 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19950 }
19951 if (SWIG_IsTmpObj(res3)) {
19952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19953 } else {
19954 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19956 }
19957 if (SWIG_IsTmpObj(res4)) {
19958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
19959 } else {
19960 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
19962 }
19963 if (SWIG_IsTmpObj(res5)) {
19964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
19965 } else {
19966 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
19968 }
19969 return resultobj;
19970 fail:
19971 return NULL;
19972 }
19973
19974
19975 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj = 0;
19977 wxDC *arg1 = (wxDC *) 0 ;
19978 PyObject *arg2 = (PyObject *) 0 ;
19979 PyObject *arg3 = (PyObject *) 0 ;
19980 PyObject *arg4 = (PyObject *) 0 ;
19981 PyObject *result = 0 ;
19982 void *argp1 = 0 ;
19983 int res1 = 0 ;
19984 PyObject * obj0 = 0 ;
19985 PyObject * obj1 = 0 ;
19986 PyObject * obj2 = 0 ;
19987 PyObject * obj3 = 0 ;
19988 char * kwnames[] = {
19989 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
19990 };
19991
19992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19994 if (!SWIG_IsOK(res1)) {
19995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
19996 }
19997 arg1 = reinterpret_cast< wxDC * >(argp1);
19998 arg2 = obj1;
19999 arg3 = obj2;
20000 arg4 = obj3;
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = result;
20008 return resultobj;
20009 fail:
20010 return NULL;
20011 }
20012
20013
20014 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20015 PyObject *resultobj = 0;
20016 wxDC *arg1 = (wxDC *) 0 ;
20017 PyObject *arg2 = (PyObject *) 0 ;
20018 PyObject *arg3 = (PyObject *) 0 ;
20019 PyObject *arg4 = (PyObject *) 0 ;
20020 PyObject *result = 0 ;
20021 void *argp1 = 0 ;
20022 int res1 = 0 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 PyObject * obj2 = 0 ;
20026 PyObject * obj3 = 0 ;
20027 char * kwnames[] = {
20028 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20029 };
20030
20031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20033 if (!SWIG_IsOK(res1)) {
20034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20035 }
20036 arg1 = reinterpret_cast< wxDC * >(argp1);
20037 arg2 = obj1;
20038 arg3 = obj2;
20039 arg4 = obj3;
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = result;
20047 return resultobj;
20048 fail:
20049 return NULL;
20050 }
20051
20052
20053 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj = 0;
20055 wxDC *arg1 = (wxDC *) 0 ;
20056 PyObject *arg2 = (PyObject *) 0 ;
20057 PyObject *arg3 = (PyObject *) 0 ;
20058 PyObject *arg4 = (PyObject *) 0 ;
20059 PyObject *result = 0 ;
20060 void *argp1 = 0 ;
20061 int res1 = 0 ;
20062 PyObject * obj0 = 0 ;
20063 PyObject * obj1 = 0 ;
20064 PyObject * obj2 = 0 ;
20065 PyObject * obj3 = 0 ;
20066 char * kwnames[] = {
20067 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20068 };
20069
20070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20072 if (!SWIG_IsOK(res1)) {
20073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20074 }
20075 arg1 = reinterpret_cast< wxDC * >(argp1);
20076 arg2 = obj1;
20077 arg3 = obj2;
20078 arg4 = obj3;
20079 {
20080 PyThreadState* __tstate = wxPyBeginAllowThreads();
20081 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20082 wxPyEndAllowThreads(__tstate);
20083 if (PyErr_Occurred()) SWIG_fail;
20084 }
20085 resultobj = result;
20086 return resultobj;
20087 fail:
20088 return NULL;
20089 }
20090
20091
20092 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj = 0;
20094 wxDC *arg1 = (wxDC *) 0 ;
20095 PyObject *arg2 = (PyObject *) 0 ;
20096 PyObject *arg3 = (PyObject *) 0 ;
20097 PyObject *arg4 = (PyObject *) 0 ;
20098 PyObject *result = 0 ;
20099 void *argp1 = 0 ;
20100 int res1 = 0 ;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 PyObject * obj2 = 0 ;
20104 PyObject * obj3 = 0 ;
20105 char * kwnames[] = {
20106 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20107 };
20108
20109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20111 if (!SWIG_IsOK(res1)) {
20112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20113 }
20114 arg1 = reinterpret_cast< wxDC * >(argp1);
20115 arg2 = obj1;
20116 arg3 = obj2;
20117 arg4 = obj3;
20118 {
20119 PyThreadState* __tstate = wxPyBeginAllowThreads();
20120 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20121 wxPyEndAllowThreads(__tstate);
20122 if (PyErr_Occurred()) SWIG_fail;
20123 }
20124 resultobj = result;
20125 return resultobj;
20126 fail:
20127 return NULL;
20128 }
20129
20130
20131 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20132 PyObject *resultobj = 0;
20133 wxDC *arg1 = (wxDC *) 0 ;
20134 PyObject *arg2 = (PyObject *) 0 ;
20135 PyObject *arg3 = (PyObject *) 0 ;
20136 PyObject *arg4 = (PyObject *) 0 ;
20137 PyObject *result = 0 ;
20138 void *argp1 = 0 ;
20139 int res1 = 0 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 PyObject * obj2 = 0 ;
20143 PyObject * obj3 = 0 ;
20144 char * kwnames[] = {
20145 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20146 };
20147
20148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20150 if (!SWIG_IsOK(res1)) {
20151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20152 }
20153 arg1 = reinterpret_cast< wxDC * >(argp1);
20154 arg2 = obj1;
20155 arg3 = obj2;
20156 arg4 = obj3;
20157 {
20158 PyThreadState* __tstate = wxPyBeginAllowThreads();
20159 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20160 wxPyEndAllowThreads(__tstate);
20161 if (PyErr_Occurred()) SWIG_fail;
20162 }
20163 resultobj = result;
20164 return resultobj;
20165 fail:
20166 return NULL;
20167 }
20168
20169
20170 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20171 PyObject *resultobj = 0;
20172 wxDC *arg1 = (wxDC *) 0 ;
20173 PyObject *arg2 = (PyObject *) 0 ;
20174 PyObject *arg3 = (PyObject *) 0 ;
20175 PyObject *arg4 = (PyObject *) 0 ;
20176 PyObject *arg5 = (PyObject *) 0 ;
20177 PyObject *result = 0 ;
20178 void *argp1 = 0 ;
20179 int res1 = 0 ;
20180 PyObject * obj0 = 0 ;
20181 PyObject * obj1 = 0 ;
20182 PyObject * obj2 = 0 ;
20183 PyObject * obj3 = 0 ;
20184 PyObject * obj4 = 0 ;
20185 char * kwnames[] = {
20186 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20187 };
20188
20189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20191 if (!SWIG_IsOK(res1)) {
20192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20193 }
20194 arg1 = reinterpret_cast< wxDC * >(argp1);
20195 arg2 = obj1;
20196 arg3 = obj2;
20197 arg4 = obj3;
20198 arg5 = obj4;
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 resultobj = result;
20206 return resultobj;
20207 fail:
20208 return NULL;
20209 }
20210
20211
20212 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20213 PyObject *obj;
20214 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20215 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20216 return SWIG_Py_Void();
20217 }
20218
20219 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20220 PyObject *resultobj = 0;
20221 wxMemoryDC *result = 0 ;
20222
20223 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20224 {
20225 if (!wxPyCheckForApp()) SWIG_fail;
20226 PyThreadState* __tstate = wxPyBeginAllowThreads();
20227 result = (wxMemoryDC *)new wxMemoryDC();
20228 wxPyEndAllowThreads(__tstate);
20229 if (PyErr_Occurred()) SWIG_fail;
20230 }
20231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20232 return resultobj;
20233 fail:
20234 return NULL;
20235 }
20236
20237
20238 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20239 PyObject *resultobj = 0;
20240 wxDC *arg1 = (wxDC *) 0 ;
20241 wxMemoryDC *result = 0 ;
20242 void *argp1 = 0 ;
20243 int res1 = 0 ;
20244 PyObject * obj0 = 0 ;
20245 char * kwnames[] = {
20246 (char *) "oldDC", NULL
20247 };
20248
20249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20251 if (!SWIG_IsOK(res1)) {
20252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20253 }
20254 arg1 = reinterpret_cast< wxDC * >(argp1);
20255 {
20256 if (!wxPyCheckForApp()) SWIG_fail;
20257 PyThreadState* __tstate = wxPyBeginAllowThreads();
20258 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20259 wxPyEndAllowThreads(__tstate);
20260 if (PyErr_Occurred()) SWIG_fail;
20261 }
20262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20263 return resultobj;
20264 fail:
20265 return NULL;
20266 }
20267
20268
20269 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20270 PyObject *resultobj = 0;
20271 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20272 wxBitmap *arg2 = 0 ;
20273 void *argp1 = 0 ;
20274 int res1 = 0 ;
20275 void *argp2 = 0 ;
20276 int res2 = 0 ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 char * kwnames[] = {
20280 (char *) "self",(char *) "bitmap", NULL
20281 };
20282
20283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20285 if (!SWIG_IsOK(res1)) {
20286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20287 }
20288 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20290 if (!SWIG_IsOK(res2)) {
20291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20292 }
20293 if (!argp2) {
20294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20295 }
20296 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 (arg1)->SelectObject((wxBitmap const &)*arg2);
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 resultobj = SWIG_Py_Void();
20304 return resultobj;
20305 fail:
20306 return NULL;
20307 }
20308
20309
20310 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20311 PyObject *obj;
20312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20313 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20314 return SWIG_Py_Void();
20315 }
20316
20317 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20318 return SWIG_Python_InitShadowInstance(args);
20319 }
20320
20321 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20322 PyObject *resultobj = 0;
20323 wxDC *arg1 = (wxDC *) 0 ;
20324 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20325 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20326 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20327 wxBufferedDC *result = 0 ;
20328 void *argp1 = 0 ;
20329 int res1 = 0 ;
20330 void *argp2 = 0 ;
20331 int res2 = 0 ;
20332 int val3 ;
20333 int ecode3 = 0 ;
20334
20335 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20339 }
20340 arg1 = reinterpret_cast< wxDC * >(argp1);
20341 if (swig_obj[1]) {
20342 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20343 if (!SWIG_IsOK(res2)) {
20344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20345 }
20346 if (!argp2) {
20347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20348 }
20349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20350 }
20351 if (swig_obj[2]) {
20352 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20353 if (!SWIG_IsOK(ecode3)) {
20354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20355 }
20356 arg3 = static_cast< int >(val3);
20357 }
20358 {
20359 if (!wxPyCheckForApp()) SWIG_fail;
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20362 wxPyEndAllowThreads(__tstate);
20363 if (PyErr_Occurred()) SWIG_fail;
20364 }
20365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20366 return resultobj;
20367 fail:
20368 return NULL;
20369 }
20370
20371
20372 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20373 PyObject *resultobj = 0;
20374 wxDC *arg1 = (wxDC *) 0 ;
20375 wxSize *arg2 = 0 ;
20376 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20377 wxBufferedDC *result = 0 ;
20378 void *argp1 = 0 ;
20379 int res1 = 0 ;
20380 wxSize temp2 ;
20381 int val3 ;
20382 int ecode3 = 0 ;
20383
20384 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20386 if (!SWIG_IsOK(res1)) {
20387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20388 }
20389 arg1 = reinterpret_cast< wxDC * >(argp1);
20390 {
20391 arg2 = &temp2;
20392 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20393 }
20394 if (swig_obj[2]) {
20395 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20396 if (!SWIG_IsOK(ecode3)) {
20397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20398 }
20399 arg3 = static_cast< int >(val3);
20400 }
20401 {
20402 if (!wxPyCheckForApp()) SWIG_fail;
20403 PyThreadState* __tstate = wxPyBeginAllowThreads();
20404 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
20408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20409 return resultobj;
20410 fail:
20411 return NULL;
20412 }
20413
20414
20415 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20416 int argc;
20417 PyObject *argv[4];
20418
20419 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20420 --argc;
20421 if ((argc >= 1) && (argc <= 3)) {
20422 int _v = 0;
20423 if (argc > 1) {
20424 {
20425 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20426 _v = SWIG_CheckState(res);
20427 }
20428 if (!_v) goto check_1;
20429 }
20430 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20431 }
20432 check_1:
20433
20434 if ((argc >= 2) && (argc <= 3)) {
20435 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20436 }
20437
20438 fail:
20439 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20440 return NULL;
20441 }
20442
20443
20444 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20445 PyObject *resultobj = 0;
20446 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20447 void *argp1 = 0 ;
20448 int res1 = 0 ;
20449 PyObject *swig_obj[1] ;
20450
20451 if (!args) SWIG_fail;
20452 swig_obj[0] = args;
20453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20454 if (!SWIG_IsOK(res1)) {
20455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20456 }
20457 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 delete arg1;
20461
20462 wxPyEndAllowThreads(__tstate);
20463 if (PyErr_Occurred()) SWIG_fail;
20464 }
20465 resultobj = SWIG_Py_Void();
20466 return resultobj;
20467 fail:
20468 return NULL;
20469 }
20470
20471
20472 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20473 PyObject *resultobj = 0;
20474 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20475 void *argp1 = 0 ;
20476 int res1 = 0 ;
20477 PyObject *swig_obj[1] ;
20478
20479 if (!args) SWIG_fail;
20480 swig_obj[0] = args;
20481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20482 if (!SWIG_IsOK(res1)) {
20483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20484 }
20485 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 (arg1)->UnMask();
20489 wxPyEndAllowThreads(__tstate);
20490 if (PyErr_Occurred()) SWIG_fail;
20491 }
20492 resultobj = SWIG_Py_Void();
20493 return resultobj;
20494 fail:
20495 return NULL;
20496 }
20497
20498
20499 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20500 PyObject *obj;
20501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20502 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20503 return SWIG_Py_Void();
20504 }
20505
20506 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20507 return SWIG_Python_InitShadowInstance(args);
20508 }
20509
20510 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20511 PyObject *resultobj = 0;
20512 wxWindow *arg1 = (wxWindow *) 0 ;
20513 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20514 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20515 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20516 wxBufferedPaintDC *result = 0 ;
20517 void *argp1 = 0 ;
20518 int res1 = 0 ;
20519 void *argp2 = 0 ;
20520 int res2 = 0 ;
20521 int val3 ;
20522 int ecode3 = 0 ;
20523 PyObject * obj0 = 0 ;
20524 PyObject * obj1 = 0 ;
20525 PyObject * obj2 = 0 ;
20526 char * kwnames[] = {
20527 (char *) "window",(char *) "buffer",(char *) "style", NULL
20528 };
20529
20530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20534 }
20535 arg1 = reinterpret_cast< wxWindow * >(argp1);
20536 if (obj1) {
20537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20538 if (!SWIG_IsOK(res2)) {
20539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20540 }
20541 if (!argp2) {
20542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20543 }
20544 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20545 }
20546 if (obj2) {
20547 ecode3 = SWIG_AsVal_int(obj2, &val3);
20548 if (!SWIG_IsOK(ecode3)) {
20549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20550 }
20551 arg3 = static_cast< int >(val3);
20552 }
20553 {
20554 if (!wxPyCheckForApp()) SWIG_fail;
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20561 return resultobj;
20562 fail:
20563 return NULL;
20564 }
20565
20566
20567 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20568 PyObject *obj;
20569 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20570 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20571 return SWIG_Py_Void();
20572 }
20573
20574 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20575 return SWIG_Python_InitShadowInstance(args);
20576 }
20577
20578 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20579 PyObject *resultobj = 0;
20580 wxScreenDC *result = 0 ;
20581
20582 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20583 {
20584 if (!wxPyCheckForApp()) SWIG_fail;
20585 PyThreadState* __tstate = wxPyBeginAllowThreads();
20586 result = (wxScreenDC *)new wxScreenDC();
20587 wxPyEndAllowThreads(__tstate);
20588 if (PyErr_Occurred()) SWIG_fail;
20589 }
20590 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20591 return resultobj;
20592 fail:
20593 return NULL;
20594 }
20595
20596
20597 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20598 PyObject *resultobj = 0;
20599 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20600 wxWindow *arg2 = (wxWindow *) 0 ;
20601 bool result;
20602 void *argp1 = 0 ;
20603 int res1 = 0 ;
20604 void *argp2 = 0 ;
20605 int res2 = 0 ;
20606 PyObject * obj0 = 0 ;
20607 PyObject * obj1 = 0 ;
20608 char * kwnames[] = {
20609 (char *) "self",(char *) "window", NULL
20610 };
20611
20612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20614 if (!SWIG_IsOK(res1)) {
20615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20616 }
20617 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20618 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20619 if (!SWIG_IsOK(res2)) {
20620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20621 }
20622 arg2 = reinterpret_cast< wxWindow * >(argp2);
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 {
20630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20631 }
20632 return resultobj;
20633 fail:
20634 return NULL;
20635 }
20636
20637
20638 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20641 wxRect *arg2 = (wxRect *) NULL ;
20642 bool result;
20643 void *argp1 = 0 ;
20644 int res1 = 0 ;
20645 void *argp2 = 0 ;
20646 int res2 = 0 ;
20647 PyObject * obj0 = 0 ;
20648 PyObject * obj1 = 0 ;
20649 char * kwnames[] = {
20650 (char *) "self",(char *) "rect", NULL
20651 };
20652
20653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20655 if (!SWIG_IsOK(res1)) {
20656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20657 }
20658 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20659 if (obj1) {
20660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20661 if (!SWIG_IsOK(res2)) {
20662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20663 }
20664 arg2 = reinterpret_cast< wxRect * >(argp2);
20665 }
20666 {
20667 PyThreadState* __tstate = wxPyBeginAllowThreads();
20668 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20669 wxPyEndAllowThreads(__tstate);
20670 if (PyErr_Occurred()) SWIG_fail;
20671 }
20672 {
20673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20674 }
20675 return resultobj;
20676 fail:
20677 return NULL;
20678 }
20679
20680
20681 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20682 PyObject *resultobj = 0;
20683 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20684 bool result;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 PyObject *swig_obj[1] ;
20688
20689 if (!args) SWIG_fail;
20690 swig_obj[0] = args;
20691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20694 }
20695 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20696 {
20697 PyThreadState* __tstate = wxPyBeginAllowThreads();
20698 result = (bool)(arg1)->EndDrawingOnTop();
20699 wxPyEndAllowThreads(__tstate);
20700 if (PyErr_Occurred()) SWIG_fail;
20701 }
20702 {
20703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20704 }
20705 return resultobj;
20706 fail:
20707 return NULL;
20708 }
20709
20710
20711 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20712 PyObject *obj;
20713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20714 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20715 return SWIG_Py_Void();
20716 }
20717
20718 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20719 return SWIG_Python_InitShadowInstance(args);
20720 }
20721
20722 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj = 0;
20724 wxWindow *arg1 = (wxWindow *) 0 ;
20725 wxClientDC *result = 0 ;
20726 void *argp1 = 0 ;
20727 int res1 = 0 ;
20728 PyObject * obj0 = 0 ;
20729 char * kwnames[] = {
20730 (char *) "win", NULL
20731 };
20732
20733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20735 if (!SWIG_IsOK(res1)) {
20736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20737 }
20738 arg1 = reinterpret_cast< wxWindow * >(argp1);
20739 {
20740 if (!wxPyCheckForApp()) SWIG_fail;
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = (wxClientDC *)new wxClientDC(arg1);
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20747 return resultobj;
20748 fail:
20749 return NULL;
20750 }
20751
20752
20753 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *obj;
20755 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20756 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20757 return SWIG_Py_Void();
20758 }
20759
20760 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20761 return SWIG_Python_InitShadowInstance(args);
20762 }
20763
20764 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20765 PyObject *resultobj = 0;
20766 wxWindow *arg1 = (wxWindow *) 0 ;
20767 wxPaintDC *result = 0 ;
20768 void *argp1 = 0 ;
20769 int res1 = 0 ;
20770 PyObject * obj0 = 0 ;
20771 char * kwnames[] = {
20772 (char *) "win", NULL
20773 };
20774
20775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20777 if (!SWIG_IsOK(res1)) {
20778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20779 }
20780 arg1 = reinterpret_cast< wxWindow * >(argp1);
20781 {
20782 if (!wxPyCheckForApp()) SWIG_fail;
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = (wxPaintDC *)new wxPaintDC(arg1);
20785 wxPyEndAllowThreads(__tstate);
20786 if (PyErr_Occurred()) SWIG_fail;
20787 }
20788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20789 return resultobj;
20790 fail:
20791 return NULL;
20792 }
20793
20794
20795 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20796 PyObject *obj;
20797 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20798 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20799 return SWIG_Py_Void();
20800 }
20801
20802 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20803 return SWIG_Python_InitShadowInstance(args);
20804 }
20805
20806 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20807 PyObject *resultobj = 0;
20808 wxWindow *arg1 = (wxWindow *) 0 ;
20809 wxWindowDC *result = 0 ;
20810 void *argp1 = 0 ;
20811 int res1 = 0 ;
20812 PyObject * obj0 = 0 ;
20813 char * kwnames[] = {
20814 (char *) "win", NULL
20815 };
20816
20817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20821 }
20822 arg1 = reinterpret_cast< wxWindow * >(argp1);
20823 {
20824 if (!wxPyCheckForApp()) SWIG_fail;
20825 PyThreadState* __tstate = wxPyBeginAllowThreads();
20826 result = (wxWindowDC *)new wxWindowDC(arg1);
20827 wxPyEndAllowThreads(__tstate);
20828 if (PyErr_Occurred()) SWIG_fail;
20829 }
20830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20831 return resultobj;
20832 fail:
20833 return NULL;
20834 }
20835
20836
20837 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20838 PyObject *obj;
20839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20840 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20841 return SWIG_Py_Void();
20842 }
20843
20844 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20845 return SWIG_Python_InitShadowInstance(args);
20846 }
20847
20848 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = 0 ;
20851 bool arg2 ;
20852 wxMirrorDC *result = 0 ;
20853 void *argp1 = 0 ;
20854 int res1 = 0 ;
20855 bool val2 ;
20856 int ecode2 = 0 ;
20857 PyObject * obj0 = 0 ;
20858 PyObject * obj1 = 0 ;
20859 char * kwnames[] = {
20860 (char *) "dc",(char *) "mirror", NULL
20861 };
20862
20863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20864 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20865 if (!SWIG_IsOK(res1)) {
20866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20867 }
20868 if (!argp1) {
20869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20870 }
20871 arg1 = reinterpret_cast< wxDC * >(argp1);
20872 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20873 if (!SWIG_IsOK(ecode2)) {
20874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20875 }
20876 arg2 = static_cast< bool >(val2);
20877 {
20878 if (!wxPyCheckForApp()) SWIG_fail;
20879 PyThreadState* __tstate = wxPyBeginAllowThreads();
20880 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20881 wxPyEndAllowThreads(__tstate);
20882 if (PyErr_Occurred()) SWIG_fail;
20883 }
20884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20885 return resultobj;
20886 fail:
20887 return NULL;
20888 }
20889
20890
20891 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20892 PyObject *obj;
20893 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20894 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20895 return SWIG_Py_Void();
20896 }
20897
20898 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20899 return SWIG_Python_InitShadowInstance(args);
20900 }
20901
20902 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20903 PyObject *resultobj = 0;
20904 wxPrintData *arg1 = 0 ;
20905 wxPostScriptDC *result = 0 ;
20906 void *argp1 = 0 ;
20907 int res1 = 0 ;
20908 PyObject * obj0 = 0 ;
20909 char * kwnames[] = {
20910 (char *) "printData", NULL
20911 };
20912
20913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20914 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20915 if (!SWIG_IsOK(res1)) {
20916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20917 }
20918 if (!argp1) {
20919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20920 }
20921 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20922 {
20923 if (!wxPyCheckForApp()) SWIG_fail;
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20930 return resultobj;
20931 fail:
20932 return NULL;
20933 }
20934
20935
20936 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20937 PyObject *resultobj = 0;
20938 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20939 wxPrintData *result = 0 ;
20940 void *argp1 = 0 ;
20941 int res1 = 0 ;
20942 PyObject *swig_obj[1] ;
20943
20944 if (!args) SWIG_fail;
20945 swig_obj[0] = args;
20946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20947 if (!SWIG_IsOK(res1)) {
20948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
20949 }
20950 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 {
20954 wxPrintData &_result_ref = (arg1)->GetPrintData();
20955 result = (wxPrintData *) &_result_ref;
20956 }
20957 wxPyEndAllowThreads(__tstate);
20958 if (PyErr_Occurred()) SWIG_fail;
20959 }
20960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
20961 return resultobj;
20962 fail:
20963 return NULL;
20964 }
20965
20966
20967 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20968 PyObject *resultobj = 0;
20969 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20970 wxPrintData *arg2 = 0 ;
20971 void *argp1 = 0 ;
20972 int res1 = 0 ;
20973 void *argp2 = 0 ;
20974 int res2 = 0 ;
20975 PyObject * obj0 = 0 ;
20976 PyObject * obj1 = 0 ;
20977 char * kwnames[] = {
20978 (char *) "self",(char *) "data", NULL
20979 };
20980
20981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
20982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20983 if (!SWIG_IsOK(res1)) {
20984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
20985 }
20986 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
20987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
20988 if (!SWIG_IsOK(res2)) {
20989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
20990 }
20991 if (!argp2) {
20992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
20993 }
20994 arg2 = reinterpret_cast< wxPrintData * >(argp2);
20995 {
20996 PyThreadState* __tstate = wxPyBeginAllowThreads();
20997 (arg1)->SetPrintData((wxPrintData const &)*arg2);
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 resultobj = SWIG_Py_Void();
21002 return resultobj;
21003 fail:
21004 return NULL;
21005 }
21006
21007
21008 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21009 PyObject *resultobj = 0;
21010 int arg1 ;
21011 int val1 ;
21012 int ecode1 = 0 ;
21013 PyObject * obj0 = 0 ;
21014 char * kwnames[] = {
21015 (char *) "ppi", NULL
21016 };
21017
21018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21019 ecode1 = SWIG_AsVal_int(obj0, &val1);
21020 if (!SWIG_IsOK(ecode1)) {
21021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21022 }
21023 arg1 = static_cast< int >(val1);
21024 {
21025 PyThreadState* __tstate = wxPyBeginAllowThreads();
21026 wxPostScriptDC::SetResolution(arg1);
21027 wxPyEndAllowThreads(__tstate);
21028 if (PyErr_Occurred()) SWIG_fail;
21029 }
21030 resultobj = SWIG_Py_Void();
21031 return resultobj;
21032 fail:
21033 return NULL;
21034 }
21035
21036
21037 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21038 PyObject *resultobj = 0;
21039 int result;
21040
21041 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21042 {
21043 PyThreadState* __tstate = wxPyBeginAllowThreads();
21044 result = (int)wxPostScriptDC::GetResolution();
21045 wxPyEndAllowThreads(__tstate);
21046 if (PyErr_Occurred()) SWIG_fail;
21047 }
21048 resultobj = SWIG_From_int(static_cast< int >(result));
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21056 PyObject *obj;
21057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21058 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21059 return SWIG_Py_Void();
21060 }
21061
21062 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21063 return SWIG_Python_InitShadowInstance(args);
21064 }
21065
21066 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21067 PyObject *resultobj = 0;
21068 wxString const &arg1_defvalue = wxPyEmptyString ;
21069 wxString *arg1 = (wxString *) &arg1_defvalue ;
21070 wxMetaFile *result = 0 ;
21071 bool temp1 = false ;
21072 PyObject * obj0 = 0 ;
21073 char * kwnames[] = {
21074 (char *) "filename", NULL
21075 };
21076
21077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21078 if (obj0) {
21079 {
21080 arg1 = wxString_in_helper(obj0);
21081 if (arg1 == NULL) SWIG_fail;
21082 temp1 = true;
21083 }
21084 }
21085 {
21086 if (!wxPyCheckForApp()) SWIG_fail;
21087 PyThreadState* __tstate = wxPyBeginAllowThreads();
21088 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21089 wxPyEndAllowThreads(__tstate);
21090 if (PyErr_Occurred()) SWIG_fail;
21091 }
21092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21093 {
21094 if (temp1)
21095 delete arg1;
21096 }
21097 return resultobj;
21098 fail:
21099 {
21100 if (temp1)
21101 delete arg1;
21102 }
21103 return NULL;
21104 }
21105
21106
21107 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21108 PyObject *resultobj = 0;
21109 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21110 void *argp1 = 0 ;
21111 int res1 = 0 ;
21112 PyObject *swig_obj[1] ;
21113
21114 if (!args) SWIG_fail;
21115 swig_obj[0] = args;
21116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21117 if (!SWIG_IsOK(res1)) {
21118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21119 }
21120 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21121 {
21122 PyThreadState* __tstate = wxPyBeginAllowThreads();
21123 delete arg1;
21124
21125 wxPyEndAllowThreads(__tstate);
21126 if (PyErr_Occurred()) SWIG_fail;
21127 }
21128 resultobj = SWIG_Py_Void();
21129 return resultobj;
21130 fail:
21131 return NULL;
21132 }
21133
21134
21135 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21136 PyObject *resultobj = 0;
21137 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21138 bool result;
21139 void *argp1 = 0 ;
21140 int res1 = 0 ;
21141 PyObject *swig_obj[1] ;
21142
21143 if (!args) SWIG_fail;
21144 swig_obj[0] = args;
21145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21146 if (!SWIG_IsOK(res1)) {
21147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21148 }
21149 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21150 {
21151 PyThreadState* __tstate = wxPyBeginAllowThreads();
21152 result = (bool)(arg1)->Ok();
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 {
21157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21158 }
21159 return resultobj;
21160 fail:
21161 return NULL;
21162 }
21163
21164
21165 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21166 PyObject *resultobj = 0;
21167 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21168 int arg2 = (int) 0 ;
21169 int arg3 = (int) 0 ;
21170 bool result;
21171 void *argp1 = 0 ;
21172 int res1 = 0 ;
21173 int val2 ;
21174 int ecode2 = 0 ;
21175 int val3 ;
21176 int ecode3 = 0 ;
21177 PyObject * obj0 = 0 ;
21178 PyObject * obj1 = 0 ;
21179 PyObject * obj2 = 0 ;
21180 char * kwnames[] = {
21181 (char *) "self",(char *) "width",(char *) "height", NULL
21182 };
21183
21184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21186 if (!SWIG_IsOK(res1)) {
21187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21188 }
21189 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21190 if (obj1) {
21191 ecode2 = SWIG_AsVal_int(obj1, &val2);
21192 if (!SWIG_IsOK(ecode2)) {
21193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21194 }
21195 arg2 = static_cast< int >(val2);
21196 }
21197 if (obj2) {
21198 ecode3 = SWIG_AsVal_int(obj2, &val3);
21199 if (!SWIG_IsOK(ecode3)) {
21200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21201 }
21202 arg3 = static_cast< int >(val3);
21203 }
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 {
21211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21212 }
21213 return resultobj;
21214 fail:
21215 return NULL;
21216 }
21217
21218
21219 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21220 PyObject *resultobj = 0;
21221 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21222 wxSize result;
21223 void *argp1 = 0 ;
21224 int res1 = 0 ;
21225 PyObject *swig_obj[1] ;
21226
21227 if (!args) SWIG_fail;
21228 swig_obj[0] = args;
21229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21230 if (!SWIG_IsOK(res1)) {
21231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21232 }
21233 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21234 {
21235 PyThreadState* __tstate = wxPyBeginAllowThreads();
21236 result = (arg1)->GetSize();
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21241 return resultobj;
21242 fail:
21243 return NULL;
21244 }
21245
21246
21247 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21248 PyObject *resultobj = 0;
21249 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21250 int result;
21251 void *argp1 = 0 ;
21252 int res1 = 0 ;
21253 PyObject *swig_obj[1] ;
21254
21255 if (!args) SWIG_fail;
21256 swig_obj[0] = args;
21257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21258 if (!SWIG_IsOK(res1)) {
21259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21260 }
21261 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21262 {
21263 PyThreadState* __tstate = wxPyBeginAllowThreads();
21264 result = (int)(arg1)->GetWidth();
21265 wxPyEndAllowThreads(__tstate);
21266 if (PyErr_Occurred()) SWIG_fail;
21267 }
21268 resultobj = SWIG_From_int(static_cast< int >(result));
21269 return resultobj;
21270 fail:
21271 return NULL;
21272 }
21273
21274
21275 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276 PyObject *resultobj = 0;
21277 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21278 int result;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 PyObject *swig_obj[1] ;
21282
21283 if (!args) SWIG_fail;
21284 swig_obj[0] = args;
21285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21286 if (!SWIG_IsOK(res1)) {
21287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21288 }
21289 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (int)(arg1)->GetHeight();
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 resultobj = SWIG_From_int(static_cast< int >(result));
21297 return resultobj;
21298 fail:
21299 return NULL;
21300 }
21301
21302
21303 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21304 PyObject *obj;
21305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21306 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21307 return SWIG_Py_Void();
21308 }
21309
21310 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 return SWIG_Python_InitShadowInstance(args);
21312 }
21313
21314 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21315 PyObject *resultobj = 0;
21316 wxString const &arg1_defvalue = wxPyEmptyString ;
21317 wxString *arg1 = (wxString *) &arg1_defvalue ;
21318 int arg2 = (int) 0 ;
21319 int arg3 = (int) 0 ;
21320 wxString const &arg4_defvalue = wxPyEmptyString ;
21321 wxString *arg4 = (wxString *) &arg4_defvalue ;
21322 wxMetaFileDC *result = 0 ;
21323 bool temp1 = false ;
21324 int val2 ;
21325 int ecode2 = 0 ;
21326 int val3 ;
21327 int ecode3 = 0 ;
21328 bool temp4 = false ;
21329 PyObject * obj0 = 0 ;
21330 PyObject * obj1 = 0 ;
21331 PyObject * obj2 = 0 ;
21332 PyObject * obj3 = 0 ;
21333 char * kwnames[] = {
21334 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21335 };
21336
21337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21338 if (obj0) {
21339 {
21340 arg1 = wxString_in_helper(obj0);
21341 if (arg1 == NULL) SWIG_fail;
21342 temp1 = true;
21343 }
21344 }
21345 if (obj1) {
21346 ecode2 = SWIG_AsVal_int(obj1, &val2);
21347 if (!SWIG_IsOK(ecode2)) {
21348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21349 }
21350 arg2 = static_cast< int >(val2);
21351 }
21352 if (obj2) {
21353 ecode3 = SWIG_AsVal_int(obj2, &val3);
21354 if (!SWIG_IsOK(ecode3)) {
21355 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21356 }
21357 arg3 = static_cast< int >(val3);
21358 }
21359 if (obj3) {
21360 {
21361 arg4 = wxString_in_helper(obj3);
21362 if (arg4 == NULL) SWIG_fail;
21363 temp4 = true;
21364 }
21365 }
21366 {
21367 if (!wxPyCheckForApp()) SWIG_fail;
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21370 wxPyEndAllowThreads(__tstate);
21371 if (PyErr_Occurred()) SWIG_fail;
21372 }
21373 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21374 {
21375 if (temp1)
21376 delete arg1;
21377 }
21378 {
21379 if (temp4)
21380 delete arg4;
21381 }
21382 return resultobj;
21383 fail:
21384 {
21385 if (temp1)
21386 delete arg1;
21387 }
21388 {
21389 if (temp4)
21390 delete arg4;
21391 }
21392 return NULL;
21393 }
21394
21395
21396 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21397 PyObject *resultobj = 0;
21398 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21399 wxMetaFile *result = 0 ;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 PyObject *swig_obj[1] ;
21403
21404 if (!args) SWIG_fail;
21405 swig_obj[0] = args;
21406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21407 if (!SWIG_IsOK(res1)) {
21408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21409 }
21410 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (wxMetaFile *)(arg1)->Close();
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21418 return resultobj;
21419 fail:
21420 return NULL;
21421 }
21422
21423
21424 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21425 PyObject *obj;
21426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21427 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21428 return SWIG_Py_Void();
21429 }
21430
21431 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21432 return SWIG_Python_InitShadowInstance(args);
21433 }
21434
21435 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21436 PyObject *resultobj = 0;
21437 wxPrintData *arg1 = 0 ;
21438 wxPrinterDC *result = 0 ;
21439 void *argp1 = 0 ;
21440 int res1 = 0 ;
21441 PyObject * obj0 = 0 ;
21442 char * kwnames[] = {
21443 (char *) "printData", NULL
21444 };
21445
21446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21447 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21450 }
21451 if (!argp1) {
21452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21453 }
21454 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21455 {
21456 if (!wxPyCheckForApp()) SWIG_fail;
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
21458 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21459 wxPyEndAllowThreads(__tstate);
21460 if (PyErr_Occurred()) SWIG_fail;
21461 }
21462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21463 return resultobj;
21464 fail:
21465 return NULL;
21466 }
21467
21468
21469 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *obj;
21471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21472 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21473 return SWIG_Py_Void();
21474 }
21475
21476 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21477 return SWIG_Python_InitShadowInstance(args);
21478 }
21479
21480 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21481 PyObject *resultobj = 0;
21482 int arg1 ;
21483 int arg2 ;
21484 int arg3 = (int) true ;
21485 int arg4 = (int) 1 ;
21486 wxImageList *result = 0 ;
21487 int val1 ;
21488 int ecode1 = 0 ;
21489 int val2 ;
21490 int ecode2 = 0 ;
21491 int val3 ;
21492 int ecode3 = 0 ;
21493 int val4 ;
21494 int ecode4 = 0 ;
21495 PyObject * obj0 = 0 ;
21496 PyObject * obj1 = 0 ;
21497 PyObject * obj2 = 0 ;
21498 PyObject * obj3 = 0 ;
21499 char * kwnames[] = {
21500 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21501 };
21502
21503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21504 ecode1 = SWIG_AsVal_int(obj0, &val1);
21505 if (!SWIG_IsOK(ecode1)) {
21506 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21507 }
21508 arg1 = static_cast< int >(val1);
21509 ecode2 = SWIG_AsVal_int(obj1, &val2);
21510 if (!SWIG_IsOK(ecode2)) {
21511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21512 }
21513 arg2 = static_cast< int >(val2);
21514 if (obj2) {
21515 ecode3 = SWIG_AsVal_int(obj2, &val3);
21516 if (!SWIG_IsOK(ecode3)) {
21517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21518 }
21519 arg3 = static_cast< int >(val3);
21520 }
21521 if (obj3) {
21522 ecode4 = SWIG_AsVal_int(obj3, &val4);
21523 if (!SWIG_IsOK(ecode4)) {
21524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21525 }
21526 arg4 = static_cast< int >(val4);
21527 }
21528 {
21529 if (!wxPyCheckForApp()) SWIG_fail;
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 {
21536 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21537 }
21538 return resultobj;
21539 fail:
21540 return NULL;
21541 }
21542
21543
21544 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21545 PyObject *resultobj = 0;
21546 wxImageList *arg1 = (wxImageList *) 0 ;
21547 void *argp1 = 0 ;
21548 int res1 = 0 ;
21549 PyObject *swig_obj[1] ;
21550
21551 if (!args) SWIG_fail;
21552 swig_obj[0] = args;
21553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21554 if (!SWIG_IsOK(res1)) {
21555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21556 }
21557 arg1 = reinterpret_cast< wxImageList * >(argp1);
21558 {
21559 PyThreadState* __tstate = wxPyBeginAllowThreads();
21560 delete arg1;
21561
21562 wxPyEndAllowThreads(__tstate);
21563 if (PyErr_Occurred()) SWIG_fail;
21564 }
21565 resultobj = SWIG_Py_Void();
21566 return resultobj;
21567 fail:
21568 return NULL;
21569 }
21570
21571
21572 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21573 PyObject *resultobj = 0;
21574 wxImageList *arg1 = (wxImageList *) 0 ;
21575 wxBitmap *arg2 = 0 ;
21576 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21577 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21578 int result;
21579 void *argp1 = 0 ;
21580 int res1 = 0 ;
21581 void *argp2 = 0 ;
21582 int res2 = 0 ;
21583 void *argp3 = 0 ;
21584 int res3 = 0 ;
21585 PyObject * obj0 = 0 ;
21586 PyObject * obj1 = 0 ;
21587 PyObject * obj2 = 0 ;
21588 char * kwnames[] = {
21589 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21590 };
21591
21592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21594 if (!SWIG_IsOK(res1)) {
21595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21596 }
21597 arg1 = reinterpret_cast< wxImageList * >(argp1);
21598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21599 if (!SWIG_IsOK(res2)) {
21600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21601 }
21602 if (!argp2) {
21603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21604 }
21605 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21606 if (obj2) {
21607 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21608 if (!SWIG_IsOK(res3)) {
21609 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21610 }
21611 if (!argp3) {
21612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21613 }
21614 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21615 }
21616 {
21617 PyThreadState* __tstate = wxPyBeginAllowThreads();
21618 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21619 wxPyEndAllowThreads(__tstate);
21620 if (PyErr_Occurred()) SWIG_fail;
21621 }
21622 resultobj = SWIG_From_int(static_cast< int >(result));
21623 return resultobj;
21624 fail:
21625 return NULL;
21626 }
21627
21628
21629 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21630 PyObject *resultobj = 0;
21631 wxImageList *arg1 = (wxImageList *) 0 ;
21632 wxBitmap *arg2 = 0 ;
21633 wxColour *arg3 = 0 ;
21634 int result;
21635 void *argp1 = 0 ;
21636 int res1 = 0 ;
21637 void *argp2 = 0 ;
21638 int res2 = 0 ;
21639 wxColour temp3 ;
21640 PyObject * obj0 = 0 ;
21641 PyObject * obj1 = 0 ;
21642 PyObject * obj2 = 0 ;
21643 char * kwnames[] = {
21644 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21645 };
21646
21647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21649 if (!SWIG_IsOK(res1)) {
21650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21651 }
21652 arg1 = reinterpret_cast< wxImageList * >(argp1);
21653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21654 if (!SWIG_IsOK(res2)) {
21655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21656 }
21657 if (!argp2) {
21658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21659 }
21660 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21661 {
21662 arg3 = &temp3;
21663 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21664 }
21665 {
21666 PyThreadState* __tstate = wxPyBeginAllowThreads();
21667 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21668 wxPyEndAllowThreads(__tstate);
21669 if (PyErr_Occurred()) SWIG_fail;
21670 }
21671 resultobj = SWIG_From_int(static_cast< int >(result));
21672 return resultobj;
21673 fail:
21674 return NULL;
21675 }
21676
21677
21678 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21679 PyObject *resultobj = 0;
21680 wxImageList *arg1 = (wxImageList *) 0 ;
21681 wxIcon *arg2 = 0 ;
21682 int result;
21683 void *argp1 = 0 ;
21684 int res1 = 0 ;
21685 void *argp2 = 0 ;
21686 int res2 = 0 ;
21687 PyObject * obj0 = 0 ;
21688 PyObject * obj1 = 0 ;
21689 char * kwnames[] = {
21690 (char *) "self",(char *) "icon", NULL
21691 };
21692
21693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21695 if (!SWIG_IsOK(res1)) {
21696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21697 }
21698 arg1 = reinterpret_cast< wxImageList * >(argp1);
21699 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21700 if (!SWIG_IsOK(res2)) {
21701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21702 }
21703 if (!argp2) {
21704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21705 }
21706 arg2 = reinterpret_cast< wxIcon * >(argp2);
21707 {
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 resultobj = SWIG_From_int(static_cast< int >(result));
21714 return resultobj;
21715 fail:
21716 return NULL;
21717 }
21718
21719
21720 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21721 PyObject *resultobj = 0;
21722 wxImageList *arg1 = (wxImageList *) 0 ;
21723 int arg2 ;
21724 SwigValueWrapper<wxBitmap > result;
21725 void *argp1 = 0 ;
21726 int res1 = 0 ;
21727 int val2 ;
21728 int ecode2 = 0 ;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 char * kwnames[] = {
21732 (char *) "self",(char *) "index", NULL
21733 };
21734
21735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21737 if (!SWIG_IsOK(res1)) {
21738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21739 }
21740 arg1 = reinterpret_cast< wxImageList * >(argp1);
21741 ecode2 = SWIG_AsVal_int(obj1, &val2);
21742 if (!SWIG_IsOK(ecode2)) {
21743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21744 }
21745 arg2 = static_cast< int >(val2);
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj = 0;
21761 wxImageList *arg1 = (wxImageList *) 0 ;
21762 int arg2 ;
21763 wxIcon result;
21764 void *argp1 = 0 ;
21765 int res1 = 0 ;
21766 int val2 ;
21767 int ecode2 = 0 ;
21768 PyObject * obj0 = 0 ;
21769 PyObject * obj1 = 0 ;
21770 char * kwnames[] = {
21771 (char *) "self",(char *) "index", NULL
21772 };
21773
21774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21776 if (!SWIG_IsOK(res1)) {
21777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21778 }
21779 arg1 = reinterpret_cast< wxImageList * >(argp1);
21780 ecode2 = SWIG_AsVal_int(obj1, &val2);
21781 if (!SWIG_IsOK(ecode2)) {
21782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21783 }
21784 arg2 = static_cast< int >(val2);
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21792 return resultobj;
21793 fail:
21794 return NULL;
21795 }
21796
21797
21798 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21799 PyObject *resultobj = 0;
21800 wxImageList *arg1 = (wxImageList *) 0 ;
21801 int arg2 ;
21802 wxBitmap *arg3 = 0 ;
21803 bool result;
21804 void *argp1 = 0 ;
21805 int res1 = 0 ;
21806 int val2 ;
21807 int ecode2 = 0 ;
21808 void *argp3 = 0 ;
21809 int res3 = 0 ;
21810 PyObject * obj0 = 0 ;
21811 PyObject * obj1 = 0 ;
21812 PyObject * obj2 = 0 ;
21813 char * kwnames[] = {
21814 (char *) "self",(char *) "index",(char *) "bitmap", NULL
21815 };
21816
21817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21819 if (!SWIG_IsOK(res1)) {
21820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21821 }
21822 arg1 = reinterpret_cast< wxImageList * >(argp1);
21823 ecode2 = SWIG_AsVal_int(obj1, &val2);
21824 if (!SWIG_IsOK(ecode2)) {
21825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21826 }
21827 arg2 = static_cast< int >(val2);
21828 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21829 if (!SWIG_IsOK(res3)) {
21830 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21831 }
21832 if (!argp3) {
21833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21834 }
21835 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21836 {
21837 PyThreadState* __tstate = wxPyBeginAllowThreads();
21838 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
21839 wxPyEndAllowThreads(__tstate);
21840 if (PyErr_Occurred()) SWIG_fail;
21841 }
21842 {
21843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21844 }
21845 return resultobj;
21846 fail:
21847 return NULL;
21848 }
21849
21850
21851 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21852 PyObject *resultobj = 0;
21853 wxImageList *arg1 = (wxImageList *) 0 ;
21854 int arg2 ;
21855 wxDC *arg3 = 0 ;
21856 int arg4 ;
21857 int arg5 ;
21858 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21859 bool arg7 = (bool) (bool)false ;
21860 bool result;
21861 void *argp1 = 0 ;
21862 int res1 = 0 ;
21863 int val2 ;
21864 int ecode2 = 0 ;
21865 void *argp3 = 0 ;
21866 int res3 = 0 ;
21867 int val4 ;
21868 int ecode4 = 0 ;
21869 int val5 ;
21870 int ecode5 = 0 ;
21871 int val6 ;
21872 int ecode6 = 0 ;
21873 bool val7 ;
21874 int ecode7 = 0 ;
21875 PyObject * obj0 = 0 ;
21876 PyObject * obj1 = 0 ;
21877 PyObject * obj2 = 0 ;
21878 PyObject * obj3 = 0 ;
21879 PyObject * obj4 = 0 ;
21880 PyObject * obj5 = 0 ;
21881 PyObject * obj6 = 0 ;
21882 char * kwnames[] = {
21883 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21884 };
21885
21886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21888 if (!SWIG_IsOK(res1)) {
21889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21890 }
21891 arg1 = reinterpret_cast< wxImageList * >(argp1);
21892 ecode2 = SWIG_AsVal_int(obj1, &val2);
21893 if (!SWIG_IsOK(ecode2)) {
21894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21895 }
21896 arg2 = static_cast< int >(val2);
21897 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21898 if (!SWIG_IsOK(res3)) {
21899 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21900 }
21901 if (!argp3) {
21902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21903 }
21904 arg3 = reinterpret_cast< wxDC * >(argp3);
21905 ecode4 = SWIG_AsVal_int(obj3, &val4);
21906 if (!SWIG_IsOK(ecode4)) {
21907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21908 }
21909 arg4 = static_cast< int >(val4);
21910 ecode5 = SWIG_AsVal_int(obj4, &val5);
21911 if (!SWIG_IsOK(ecode5)) {
21912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21913 }
21914 arg5 = static_cast< int >(val5);
21915 if (obj5) {
21916 ecode6 = SWIG_AsVal_int(obj5, &val6);
21917 if (!SWIG_IsOK(ecode6)) {
21918 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21919 }
21920 arg6 = static_cast< int >(val6);
21921 }
21922 if (obj6) {
21923 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21924 if (!SWIG_IsOK(ecode7)) {
21925 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21926 }
21927 arg7 = static_cast< bool >(val7);
21928 }
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21932 wxPyEndAllowThreads(__tstate);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 }
21935 {
21936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21937 }
21938 return resultobj;
21939 fail:
21940 return NULL;
21941 }
21942
21943
21944 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21945 PyObject *resultobj = 0;
21946 wxImageList *arg1 = (wxImageList *) 0 ;
21947 int result;
21948 void *argp1 = 0 ;
21949 int res1 = 0 ;
21950 PyObject *swig_obj[1] ;
21951
21952 if (!args) SWIG_fail;
21953 swig_obj[0] = args;
21954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21955 if (!SWIG_IsOK(res1)) {
21956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21957 }
21958 arg1 = reinterpret_cast< wxImageList * >(argp1);
21959 {
21960 PyThreadState* __tstate = wxPyBeginAllowThreads();
21961 result = (int)(arg1)->GetImageCount();
21962 wxPyEndAllowThreads(__tstate);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 resultobj = SWIG_From_int(static_cast< int >(result));
21966 return resultobj;
21967 fail:
21968 return NULL;
21969 }
21970
21971
21972 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21973 PyObject *resultobj = 0;
21974 wxImageList *arg1 = (wxImageList *) 0 ;
21975 int arg2 ;
21976 bool result;
21977 void *argp1 = 0 ;
21978 int res1 = 0 ;
21979 int val2 ;
21980 int ecode2 = 0 ;
21981 PyObject * obj0 = 0 ;
21982 PyObject * obj1 = 0 ;
21983 char * kwnames[] = {
21984 (char *) "self",(char *) "index", NULL
21985 };
21986
21987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21989 if (!SWIG_IsOK(res1)) {
21990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21991 }
21992 arg1 = reinterpret_cast< wxImageList * >(argp1);
21993 ecode2 = SWIG_AsVal_int(obj1, &val2);
21994 if (!SWIG_IsOK(ecode2)) {
21995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21996 }
21997 arg2 = static_cast< int >(val2);
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 result = (bool)(arg1)->Remove(arg2);
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 {
22005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22006 }
22007 return resultobj;
22008 fail:
22009 return NULL;
22010 }
22011
22012
22013 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxImageList *arg1 = (wxImageList *) 0 ;
22016 bool result;
22017 void *argp1 = 0 ;
22018 int res1 = 0 ;
22019 PyObject *swig_obj[1] ;
22020
22021 if (!args) SWIG_fail;
22022 swig_obj[0] = args;
22023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22024 if (!SWIG_IsOK(res1)) {
22025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22026 }
22027 arg1 = reinterpret_cast< wxImageList * >(argp1);
22028 {
22029 PyThreadState* __tstate = wxPyBeginAllowThreads();
22030 result = (bool)(arg1)->RemoveAll();
22031 wxPyEndAllowThreads(__tstate);
22032 if (PyErr_Occurred()) SWIG_fail;
22033 }
22034 {
22035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22036 }
22037 return resultobj;
22038 fail:
22039 return NULL;
22040 }
22041
22042
22043 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22044 PyObject *resultobj = 0;
22045 wxImageList *arg1 = (wxImageList *) 0 ;
22046 int arg2 ;
22047 int *arg3 = 0 ;
22048 int *arg4 = 0 ;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 int val2 ;
22052 int ecode2 = 0 ;
22053 int temp3 ;
22054 int res3 = SWIG_TMPOBJ ;
22055 int temp4 ;
22056 int res4 = SWIG_TMPOBJ ;
22057 PyObject * obj0 = 0 ;
22058 PyObject * obj1 = 0 ;
22059 char * kwnames[] = {
22060 (char *) "self",(char *) "index", NULL
22061 };
22062
22063 arg3 = &temp3;
22064 arg4 = &temp4;
22065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22067 if (!SWIG_IsOK(res1)) {
22068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22069 }
22070 arg1 = reinterpret_cast< wxImageList * >(argp1);
22071 ecode2 = SWIG_AsVal_int(obj1, &val2);
22072 if (!SWIG_IsOK(ecode2)) {
22073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22074 }
22075 arg2 = static_cast< int >(val2);
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 (arg1)->GetSize(arg2,*arg3,*arg4);
22079 wxPyEndAllowThreads(__tstate);
22080 if (PyErr_Occurred()) SWIG_fail;
22081 }
22082 resultobj = SWIG_Py_Void();
22083 if (SWIG_IsTmpObj(res3)) {
22084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22085 } else {
22086 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22088 }
22089 if (SWIG_IsTmpObj(res4)) {
22090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22091 } else {
22092 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22094 }
22095 return resultobj;
22096 fail:
22097 return NULL;
22098 }
22099
22100
22101 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22102 PyObject *obj;
22103 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22104 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22105 return SWIG_Py_Void();
22106 }
22107
22108 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22109 return SWIG_Python_InitShadowInstance(args);
22110 }
22111
22112 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22113 PyObject *resultobj = 0;
22114 wxStockGDI *result = 0 ;
22115
22116 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (wxStockGDI *)new wxStockGDI();
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22124 return resultobj;
22125 fail:
22126 return NULL;
22127 }
22128
22129
22130 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131 PyObject *resultobj = 0;
22132 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22133 void *argp1 = 0 ;
22134 int res1 = 0 ;
22135 PyObject *swig_obj[1] ;
22136
22137 if (!args) SWIG_fail;
22138 swig_obj[0] = args;
22139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22140 if (!SWIG_IsOK(res1)) {
22141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22142 }
22143 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 delete arg1;
22147
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 resultobj = SWIG_Py_Void();
22152 return resultobj;
22153 fail:
22154 return NULL;
22155 }
22156
22157
22158 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22159 PyObject *resultobj = 0;
22160
22161 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 wxStockGDI::DeleteAll();
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_Py_Void();
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxStockGDI *result = 0 ;
22178
22179 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 {
22183 wxStockGDI &_result_ref = wxStockGDI::instance();
22184 result = (wxStockGDI *) &_result_ref;
22185 }
22186 wxPyEndAllowThreads(__tstate);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 }
22189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22190 return resultobj;
22191 fail:
22192 return NULL;
22193 }
22194
22195
22196 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22197 PyObject *resultobj = 0;
22198 wxStockGDI::Item arg1 ;
22199 wxBrush *result = 0 ;
22200 int val1 ;
22201 int ecode1 = 0 ;
22202 PyObject * obj0 = 0 ;
22203 char * kwnames[] = {
22204 (char *) "item", NULL
22205 };
22206
22207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22208 ecode1 = SWIG_AsVal_int(obj0, &val1);
22209 if (!SWIG_IsOK(ecode1)) {
22210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22211 }
22212 arg1 = static_cast< wxStockGDI::Item >(val1);
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22216 wxPyEndAllowThreads(__tstate);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22220 return resultobj;
22221 fail:
22222 return NULL;
22223 }
22224
22225
22226 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22227 PyObject *resultobj = 0;
22228 wxStockGDI::Item arg1 ;
22229 wxColour *result = 0 ;
22230 int val1 ;
22231 int ecode1 = 0 ;
22232 PyObject * obj0 = 0 ;
22233 char * kwnames[] = {
22234 (char *) "item", NULL
22235 };
22236
22237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22238 ecode1 = SWIG_AsVal_int(obj0, &val1);
22239 if (!SWIG_IsOK(ecode1)) {
22240 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22241 }
22242 arg1 = static_cast< wxStockGDI::Item >(val1);
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 result = (wxColour *)wxStockGDI::GetColour(arg1);
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22257 PyObject *resultobj = 0;
22258 wxStockGDI::Item arg1 ;
22259 wxCursor *result = 0 ;
22260 int val1 ;
22261 int ecode1 = 0 ;
22262 PyObject * obj0 = 0 ;
22263 char * kwnames[] = {
22264 (char *) "item", NULL
22265 };
22266
22267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22268 ecode1 = SWIG_AsVal_int(obj0, &val1);
22269 if (!SWIG_IsOK(ecode1)) {
22270 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22271 }
22272 arg1 = static_cast< wxStockGDI::Item >(val1);
22273 {
22274 PyThreadState* __tstate = wxPyBeginAllowThreads();
22275 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22276 wxPyEndAllowThreads(__tstate);
22277 if (PyErr_Occurred()) SWIG_fail;
22278 }
22279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22280 return resultobj;
22281 fail:
22282 return NULL;
22283 }
22284
22285
22286 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj = 0;
22288 wxStockGDI::Item arg1 ;
22289 wxPen *result = 0 ;
22290 int val1 ;
22291 int ecode1 = 0 ;
22292 PyObject * obj0 = 0 ;
22293 char * kwnames[] = {
22294 (char *) "item", NULL
22295 };
22296
22297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22298 ecode1 = SWIG_AsVal_int(obj0, &val1);
22299 if (!SWIG_IsOK(ecode1)) {
22300 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22301 }
22302 arg1 = static_cast< wxStockGDI::Item >(val1);
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 result = (wxPen *)wxStockGDI::GetPen(arg1);
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22310 return resultobj;
22311 fail:
22312 return NULL;
22313 }
22314
22315
22316 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22317 PyObject *resultobj = 0;
22318 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22319 wxStockGDI::Item arg2 ;
22320 wxFont *result = 0 ;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 int val2 ;
22324 int ecode2 = 0 ;
22325 PyObject * obj0 = 0 ;
22326 PyObject * obj1 = 0 ;
22327 char * kwnames[] = {
22328 (char *) "self",(char *) "item", NULL
22329 };
22330
22331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22333 if (!SWIG_IsOK(res1)) {
22334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22335 }
22336 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22337 ecode2 = SWIG_AsVal_int(obj1, &val2);
22338 if (!SWIG_IsOK(ecode2)) {
22339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22340 }
22341 arg2 = static_cast< wxStockGDI::Item >(val2);
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 result = (wxFont *)(arg1)->GetFont(arg2);
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22349 return resultobj;
22350 fail:
22351 return NULL;
22352 }
22353
22354
22355 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 PyObject *obj;
22357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22358 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22359 return SWIG_Py_Void();
22360 }
22361
22362 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22363 return SWIG_Python_InitShadowInstance(args);
22364 }
22365
22366 SWIGINTERN int NullBitmap_set(PyObject *) {
22367 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22368 return 1;
22369 }
22370
22371
22372 SWIGINTERN PyObject *NullBitmap_get(void) {
22373 PyObject *pyobj = 0;
22374
22375 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22376 return pyobj;
22377 }
22378
22379
22380 SWIGINTERN int NullIcon_set(PyObject *) {
22381 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22382 return 1;
22383 }
22384
22385
22386 SWIGINTERN PyObject *NullIcon_get(void) {
22387 PyObject *pyobj = 0;
22388
22389 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22390 return pyobj;
22391 }
22392
22393
22394 SWIGINTERN int NullCursor_set(PyObject *) {
22395 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22396 return 1;
22397 }
22398
22399
22400 SWIGINTERN PyObject *NullCursor_get(void) {
22401 PyObject *pyobj = 0;
22402
22403 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22404 return pyobj;
22405 }
22406
22407
22408 SWIGINTERN int NullPen_set(PyObject *) {
22409 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22410 return 1;
22411 }
22412
22413
22414 SWIGINTERN PyObject *NullPen_get(void) {
22415 PyObject *pyobj = 0;
22416
22417 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22418 return pyobj;
22419 }
22420
22421
22422 SWIGINTERN int NullBrush_set(PyObject *) {
22423 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22424 return 1;
22425 }
22426
22427
22428 SWIGINTERN PyObject *NullBrush_get(void) {
22429 PyObject *pyobj = 0;
22430
22431 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22432 return pyobj;
22433 }
22434
22435
22436 SWIGINTERN int NullPalette_set(PyObject *) {
22437 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22438 return 1;
22439 }
22440
22441
22442 SWIGINTERN PyObject *NullPalette_get(void) {
22443 PyObject *pyobj = 0;
22444
22445 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22446 return pyobj;
22447 }
22448
22449
22450 SWIGINTERN int NullFont_set(PyObject *) {
22451 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22452 return 1;
22453 }
22454
22455
22456 SWIGINTERN PyObject *NullFont_get(void) {
22457 PyObject *pyobj = 0;
22458
22459 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22460 return pyobj;
22461 }
22462
22463
22464 SWIGINTERN int NullColour_set(PyObject *) {
22465 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22466 return 1;
22467 }
22468
22469
22470 SWIGINTERN PyObject *NullColour_get(void) {
22471 PyObject *pyobj = 0;
22472
22473 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22474 return pyobj;
22475 }
22476
22477
22478 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22479 PyObject *resultobj = 0;
22480 wxGDIObjListBase *result = 0 ;
22481
22482 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22483 {
22484 PyThreadState* __tstate = wxPyBeginAllowThreads();
22485 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22486 wxPyEndAllowThreads(__tstate);
22487 if (PyErr_Occurred()) SWIG_fail;
22488 }
22489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22490 return resultobj;
22491 fail:
22492 return NULL;
22493 }
22494
22495
22496 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22497 PyObject *resultobj = 0;
22498 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22499 void *argp1 = 0 ;
22500 int res1 = 0 ;
22501 PyObject *swig_obj[1] ;
22502
22503 if (!args) SWIG_fail;
22504 swig_obj[0] = args;
22505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22506 if (!SWIG_IsOK(res1)) {
22507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22508 }
22509 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 delete arg1;
22513
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 resultobj = SWIG_Py_Void();
22518 return resultobj;
22519 fail:
22520 return NULL;
22521 }
22522
22523
22524 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22525 PyObject *obj;
22526 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22527 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22528 return SWIG_Py_Void();
22529 }
22530
22531 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22532 return SWIG_Python_InitShadowInstance(args);
22533 }
22534
22535 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22536 PyObject *resultobj = 0;
22537 wxPenList *arg1 = (wxPenList *) 0 ;
22538 wxColour *arg2 = 0 ;
22539 int arg3 ;
22540 int arg4 ;
22541 wxPen *result = 0 ;
22542 void *argp1 = 0 ;
22543 int res1 = 0 ;
22544 wxColour temp2 ;
22545 int val3 ;
22546 int ecode3 = 0 ;
22547 int val4 ;
22548 int ecode4 = 0 ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 PyObject * obj2 = 0 ;
22552 PyObject * obj3 = 0 ;
22553 char * kwnames[] = {
22554 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22555 };
22556
22557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22559 if (!SWIG_IsOK(res1)) {
22560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22561 }
22562 arg1 = reinterpret_cast< wxPenList * >(argp1);
22563 {
22564 arg2 = &temp2;
22565 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22566 }
22567 ecode3 = SWIG_AsVal_int(obj2, &val3);
22568 if (!SWIG_IsOK(ecode3)) {
22569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22570 }
22571 arg3 = static_cast< int >(val3);
22572 ecode4 = SWIG_AsVal_int(obj3, &val4);
22573 if (!SWIG_IsOK(ecode4)) {
22574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22575 }
22576 arg4 = static_cast< int >(val4);
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22580 wxPyEndAllowThreads(__tstate);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22584 return resultobj;
22585 fail:
22586 return NULL;
22587 }
22588
22589
22590 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22591 PyObject *resultobj = 0;
22592 wxPenList *arg1 = (wxPenList *) 0 ;
22593 wxPen *arg2 = (wxPen *) 0 ;
22594 void *argp1 = 0 ;
22595 int res1 = 0 ;
22596 void *argp2 = 0 ;
22597 int res2 = 0 ;
22598 PyObject * obj0 = 0 ;
22599 PyObject * obj1 = 0 ;
22600 char * kwnames[] = {
22601 (char *) "self",(char *) "pen", NULL
22602 };
22603
22604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22606 if (!SWIG_IsOK(res1)) {
22607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22608 }
22609 arg1 = reinterpret_cast< wxPenList * >(argp1);
22610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22611 if (!SWIG_IsOK(res2)) {
22612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22613 }
22614 arg2 = reinterpret_cast< wxPen * >(argp2);
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 (arg1)->AddPen(arg2);
22618 wxPyEndAllowThreads(__tstate);
22619 if (PyErr_Occurred()) SWIG_fail;
22620 }
22621 resultobj = SWIG_Py_Void();
22622 return resultobj;
22623 fail:
22624 return NULL;
22625 }
22626
22627
22628 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22629 PyObject *resultobj = 0;
22630 wxPenList *arg1 = (wxPenList *) 0 ;
22631 wxPen *arg2 = (wxPen *) 0 ;
22632 void *argp1 = 0 ;
22633 int res1 = 0 ;
22634 void *argp2 = 0 ;
22635 int res2 = 0 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 char * kwnames[] = {
22639 (char *) "self",(char *) "pen", NULL
22640 };
22641
22642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22646 }
22647 arg1 = reinterpret_cast< wxPenList * >(argp1);
22648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22649 if (!SWIG_IsOK(res2)) {
22650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22651 }
22652 arg2 = reinterpret_cast< wxPen * >(argp2);
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 (arg1)->RemovePen(arg2);
22656 wxPyEndAllowThreads(__tstate);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 }
22659 resultobj = SWIG_Py_Void();
22660 return resultobj;
22661 fail:
22662 return NULL;
22663 }
22664
22665
22666 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22667 PyObject *obj;
22668 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22669 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22670 return SWIG_Py_Void();
22671 }
22672
22673 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22674 PyObject *resultobj = 0;
22675 wxBrushList *arg1 = (wxBrushList *) 0 ;
22676 wxColour *arg2 = 0 ;
22677 int arg3 = (int) wxSOLID ;
22678 wxBrush *result = 0 ;
22679 void *argp1 = 0 ;
22680 int res1 = 0 ;
22681 wxColour temp2 ;
22682 int val3 ;
22683 int ecode3 = 0 ;
22684 PyObject * obj0 = 0 ;
22685 PyObject * obj1 = 0 ;
22686 PyObject * obj2 = 0 ;
22687 char * kwnames[] = {
22688 (char *) "self",(char *) "colour",(char *) "style", NULL
22689 };
22690
22691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22693 if (!SWIG_IsOK(res1)) {
22694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22695 }
22696 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22697 {
22698 arg2 = &temp2;
22699 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22700 }
22701 if (obj2) {
22702 ecode3 = SWIG_AsVal_int(obj2, &val3);
22703 if (!SWIG_IsOK(ecode3)) {
22704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22705 }
22706 arg3 = static_cast< int >(val3);
22707 }
22708 {
22709 PyThreadState* __tstate = wxPyBeginAllowThreads();
22710 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22715 return resultobj;
22716 fail:
22717 return NULL;
22718 }
22719
22720
22721 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22722 PyObject *resultobj = 0;
22723 wxBrushList *arg1 = (wxBrushList *) 0 ;
22724 wxBrush *arg2 = (wxBrush *) 0 ;
22725 void *argp1 = 0 ;
22726 int res1 = 0 ;
22727 void *argp2 = 0 ;
22728 int res2 = 0 ;
22729 PyObject * obj0 = 0 ;
22730 PyObject * obj1 = 0 ;
22731 char * kwnames[] = {
22732 (char *) "self",(char *) "brush", NULL
22733 };
22734
22735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22737 if (!SWIG_IsOK(res1)) {
22738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22739 }
22740 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22742 if (!SWIG_IsOK(res2)) {
22743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22744 }
22745 arg2 = reinterpret_cast< wxBrush * >(argp2);
22746 {
22747 PyThreadState* __tstate = wxPyBeginAllowThreads();
22748 (arg1)->AddBrush(arg2);
22749 wxPyEndAllowThreads(__tstate);
22750 if (PyErr_Occurred()) SWIG_fail;
22751 }
22752 resultobj = SWIG_Py_Void();
22753 return resultobj;
22754 fail:
22755 return NULL;
22756 }
22757
22758
22759 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22760 PyObject *resultobj = 0;
22761 wxBrushList *arg1 = (wxBrushList *) 0 ;
22762 wxBrush *arg2 = (wxBrush *) 0 ;
22763 void *argp1 = 0 ;
22764 int res1 = 0 ;
22765 void *argp2 = 0 ;
22766 int res2 = 0 ;
22767 PyObject * obj0 = 0 ;
22768 PyObject * obj1 = 0 ;
22769 char * kwnames[] = {
22770 (char *) "self",(char *) "brush", NULL
22771 };
22772
22773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22775 if (!SWIG_IsOK(res1)) {
22776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22777 }
22778 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22780 if (!SWIG_IsOK(res2)) {
22781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22782 }
22783 arg2 = reinterpret_cast< wxBrush * >(argp2);
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 (arg1)->RemoveBrush(arg2);
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 resultobj = SWIG_Py_Void();
22791 return resultobj;
22792 fail:
22793 return NULL;
22794 }
22795
22796
22797 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22798 PyObject *obj;
22799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22800 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22801 return SWIG_Py_Void();
22802 }
22803
22804 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22805 PyObject *resultobj = 0;
22806 wxFontList *arg1 = (wxFontList *) 0 ;
22807 int arg2 ;
22808 int arg3 ;
22809 int arg4 ;
22810 int arg5 ;
22811 bool arg6 = (bool) false ;
22812 wxString const &arg7_defvalue = wxPyEmptyString ;
22813 wxString *arg7 = (wxString *) &arg7_defvalue ;
22814 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22815 wxFont *result = 0 ;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 int val2 ;
22819 int ecode2 = 0 ;
22820 int val3 ;
22821 int ecode3 = 0 ;
22822 int val4 ;
22823 int ecode4 = 0 ;
22824 int val5 ;
22825 int ecode5 = 0 ;
22826 bool val6 ;
22827 int ecode6 = 0 ;
22828 bool temp7 = false ;
22829 int val8 ;
22830 int ecode8 = 0 ;
22831 PyObject * obj0 = 0 ;
22832 PyObject * obj1 = 0 ;
22833 PyObject * obj2 = 0 ;
22834 PyObject * obj3 = 0 ;
22835 PyObject * obj4 = 0 ;
22836 PyObject * obj5 = 0 ;
22837 PyObject * obj6 = 0 ;
22838 PyObject * obj7 = 0 ;
22839 char * kwnames[] = {
22840 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22841 };
22842
22843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22845 if (!SWIG_IsOK(res1)) {
22846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22847 }
22848 arg1 = reinterpret_cast< wxFontList * >(argp1);
22849 ecode2 = SWIG_AsVal_int(obj1, &val2);
22850 if (!SWIG_IsOK(ecode2)) {
22851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22852 }
22853 arg2 = static_cast< int >(val2);
22854 ecode3 = SWIG_AsVal_int(obj2, &val3);
22855 if (!SWIG_IsOK(ecode3)) {
22856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22857 }
22858 arg3 = static_cast< int >(val3);
22859 ecode4 = SWIG_AsVal_int(obj3, &val4);
22860 if (!SWIG_IsOK(ecode4)) {
22861 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22862 }
22863 arg4 = static_cast< int >(val4);
22864 ecode5 = SWIG_AsVal_int(obj4, &val5);
22865 if (!SWIG_IsOK(ecode5)) {
22866 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22867 }
22868 arg5 = static_cast< int >(val5);
22869 if (obj5) {
22870 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22871 if (!SWIG_IsOK(ecode6)) {
22872 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22873 }
22874 arg6 = static_cast< bool >(val6);
22875 }
22876 if (obj6) {
22877 {
22878 arg7 = wxString_in_helper(obj6);
22879 if (arg7 == NULL) SWIG_fail;
22880 temp7 = true;
22881 }
22882 }
22883 if (obj7) {
22884 ecode8 = SWIG_AsVal_int(obj7, &val8);
22885 if (!SWIG_IsOK(ecode8)) {
22886 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22887 }
22888 arg8 = static_cast< wxFontEncoding >(val8);
22889 }
22890 {
22891 PyThreadState* __tstate = wxPyBeginAllowThreads();
22892 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22893 wxPyEndAllowThreads(__tstate);
22894 if (PyErr_Occurred()) SWIG_fail;
22895 }
22896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22897 {
22898 if (temp7)
22899 delete arg7;
22900 }
22901 return resultobj;
22902 fail:
22903 {
22904 if (temp7)
22905 delete arg7;
22906 }
22907 return NULL;
22908 }
22909
22910
22911 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22912 PyObject *resultobj = 0;
22913 wxFontList *arg1 = (wxFontList *) 0 ;
22914 wxFont *arg2 = (wxFont *) 0 ;
22915 void *argp1 = 0 ;
22916 int res1 = 0 ;
22917 void *argp2 = 0 ;
22918 int res2 = 0 ;
22919 PyObject * obj0 = 0 ;
22920 PyObject * obj1 = 0 ;
22921 char * kwnames[] = {
22922 (char *) "self",(char *) "font", NULL
22923 };
22924
22925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22927 if (!SWIG_IsOK(res1)) {
22928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22929 }
22930 arg1 = reinterpret_cast< wxFontList * >(argp1);
22931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22932 if (!SWIG_IsOK(res2)) {
22933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22934 }
22935 arg2 = reinterpret_cast< wxFont * >(argp2);
22936 {
22937 PyThreadState* __tstate = wxPyBeginAllowThreads();
22938 (arg1)->AddFont(arg2);
22939 wxPyEndAllowThreads(__tstate);
22940 if (PyErr_Occurred()) SWIG_fail;
22941 }
22942 resultobj = SWIG_Py_Void();
22943 return resultobj;
22944 fail:
22945 return NULL;
22946 }
22947
22948
22949 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj = 0;
22951 wxFontList *arg1 = (wxFontList *) 0 ;
22952 wxFont *arg2 = (wxFont *) 0 ;
22953 void *argp1 = 0 ;
22954 int res1 = 0 ;
22955 void *argp2 = 0 ;
22956 int res2 = 0 ;
22957 PyObject * obj0 = 0 ;
22958 PyObject * obj1 = 0 ;
22959 char * kwnames[] = {
22960 (char *) "self",(char *) "font", NULL
22961 };
22962
22963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22967 }
22968 arg1 = reinterpret_cast< wxFontList * >(argp1);
22969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22970 if (!SWIG_IsOK(res2)) {
22971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22972 }
22973 arg2 = reinterpret_cast< wxFont * >(argp2);
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 (arg1)->RemoveFont(arg2);
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 resultobj = SWIG_Py_Void();
22981 return resultobj;
22982 fail:
22983 return NULL;
22984 }
22985
22986
22987 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22988 PyObject *obj;
22989 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22990 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
22991 return SWIG_Py_Void();
22992 }
22993
22994 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22995 PyObject *resultobj = 0;
22996 wxColourDatabase *result = 0 ;
22997
22998 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22999 {
23000 if (!wxPyCheckForApp()) SWIG_fail;
23001 PyThreadState* __tstate = wxPyBeginAllowThreads();
23002 result = (wxColourDatabase *)new wxColourDatabase();
23003 wxPyEndAllowThreads(__tstate);
23004 if (PyErr_Occurred()) SWIG_fail;
23005 }
23006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23007 return resultobj;
23008 fail:
23009 return NULL;
23010 }
23011
23012
23013 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23014 PyObject *resultobj = 0;
23015 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 PyObject *swig_obj[1] ;
23019
23020 if (!args) SWIG_fail;
23021 swig_obj[0] = args;
23022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23023 if (!SWIG_IsOK(res1)) {
23024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23025 }
23026 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 delete arg1;
23030
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 resultobj = SWIG_Py_Void();
23035 return resultobj;
23036 fail:
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23042 PyObject *resultobj = 0;
23043 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23044 wxString *arg2 = 0 ;
23045 wxColour result;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 bool temp2 = false ;
23049 PyObject * obj0 = 0 ;
23050 PyObject * obj1 = 0 ;
23051 char * kwnames[] = {
23052 (char *) "self",(char *) "name", NULL
23053 };
23054
23055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23057 if (!SWIG_IsOK(res1)) {
23058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23059 }
23060 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23061 {
23062 arg2 = wxString_in_helper(obj1);
23063 if (arg2 == NULL) SWIG_fail;
23064 temp2 = true;
23065 }
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23073 {
23074 if (temp2)
23075 delete arg2;
23076 }
23077 return resultobj;
23078 fail:
23079 {
23080 if (temp2)
23081 delete arg2;
23082 }
23083 return NULL;
23084 }
23085
23086
23087 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23088 PyObject *resultobj = 0;
23089 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23090 wxColour *arg2 = 0 ;
23091 wxString result;
23092 void *argp1 = 0 ;
23093 int res1 = 0 ;
23094 wxColour temp2 ;
23095 PyObject * obj0 = 0 ;
23096 PyObject * obj1 = 0 ;
23097 char * kwnames[] = {
23098 (char *) "self",(char *) "colour", NULL
23099 };
23100
23101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23103 if (!SWIG_IsOK(res1)) {
23104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23105 }
23106 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23107 {
23108 arg2 = &temp2;
23109 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23110 }
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 {
23118 #if wxUSE_UNICODE
23119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23120 #else
23121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23122 #endif
23123 }
23124 return resultobj;
23125 fail:
23126 return NULL;
23127 }
23128
23129
23130 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23131 PyObject *resultobj = 0;
23132 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23133 wxString *arg2 = 0 ;
23134 wxColour *arg3 = 0 ;
23135 void *argp1 = 0 ;
23136 int res1 = 0 ;
23137 bool temp2 = false ;
23138 wxColour temp3 ;
23139 PyObject * obj0 = 0 ;
23140 PyObject * obj1 = 0 ;
23141 PyObject * obj2 = 0 ;
23142 char * kwnames[] = {
23143 (char *) "self",(char *) "name",(char *) "colour", NULL
23144 };
23145
23146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23148 if (!SWIG_IsOK(res1)) {
23149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23150 }
23151 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23152 {
23153 arg2 = wxString_in_helper(obj1);
23154 if (arg2 == NULL) SWIG_fail;
23155 temp2 = true;
23156 }
23157 {
23158 arg3 = &temp3;
23159 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23160 }
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 resultobj = SWIG_Py_Void();
23168 {
23169 if (temp2)
23170 delete arg2;
23171 }
23172 return resultobj;
23173 fail:
23174 {
23175 if (temp2)
23176 delete arg2;
23177 }
23178 return NULL;
23179 }
23180
23181
23182 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23183 PyObject *resultobj = 0;
23184 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23185 wxString *arg2 = 0 ;
23186 int arg3 ;
23187 int arg4 ;
23188 int arg5 ;
23189 void *argp1 = 0 ;
23190 int res1 = 0 ;
23191 bool temp2 = false ;
23192 int val3 ;
23193 int ecode3 = 0 ;
23194 int val4 ;
23195 int ecode4 = 0 ;
23196 int val5 ;
23197 int ecode5 = 0 ;
23198 PyObject * obj0 = 0 ;
23199 PyObject * obj1 = 0 ;
23200 PyObject * obj2 = 0 ;
23201 PyObject * obj3 = 0 ;
23202 PyObject * obj4 = 0 ;
23203 char * kwnames[] = {
23204 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23205 };
23206
23207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23209 if (!SWIG_IsOK(res1)) {
23210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23211 }
23212 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23213 {
23214 arg2 = wxString_in_helper(obj1);
23215 if (arg2 == NULL) SWIG_fail;
23216 temp2 = true;
23217 }
23218 ecode3 = SWIG_AsVal_int(obj2, &val3);
23219 if (!SWIG_IsOK(ecode3)) {
23220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23221 }
23222 arg3 = static_cast< int >(val3);
23223 ecode4 = SWIG_AsVal_int(obj3, &val4);
23224 if (!SWIG_IsOK(ecode4)) {
23225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23226 }
23227 arg4 = static_cast< int >(val4);
23228 ecode5 = SWIG_AsVal_int(obj4, &val5);
23229 if (!SWIG_IsOK(ecode5)) {
23230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23231 }
23232 arg5 = static_cast< int >(val5);
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 {
23241 if (temp2)
23242 delete arg2;
23243 }
23244 return resultobj;
23245 fail:
23246 {
23247 if (temp2)
23248 delete arg2;
23249 }
23250 return NULL;
23251 }
23252
23253
23254 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23255 PyObject *obj;
23256 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23257 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23258 return SWIG_Py_Void();
23259 }
23260
23261 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23262 return SWIG_Python_InitShadowInstance(args);
23263 }
23264
23265 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23266 PyObject *resultobj = 0;
23267 wxFontList *result = 0 ;
23268
23269 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23270 {
23271 PyThreadState* __tstate = wxPyBeginAllowThreads();
23272 result = (wxFontList *)_wxPyInitTheFontList();
23273 wxPyEndAllowThreads(__tstate);
23274 if (PyErr_Occurred()) SWIG_fail;
23275 }
23276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23277 return resultobj;
23278 fail:
23279 return NULL;
23280 }
23281
23282
23283 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23284 PyObject *resultobj = 0;
23285 wxPenList *result = 0 ;
23286
23287 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23288 {
23289 PyThreadState* __tstate = wxPyBeginAllowThreads();
23290 result = (wxPenList *)_wxPyInitThePenList();
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23295 return resultobj;
23296 fail:
23297 return NULL;
23298 }
23299
23300
23301 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23302 PyObject *resultobj = 0;
23303 wxBrushList *result = 0 ;
23304
23305 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23306 {
23307 PyThreadState* __tstate = wxPyBeginAllowThreads();
23308 result = (wxBrushList *)_wxPyInitTheBrushList();
23309 wxPyEndAllowThreads(__tstate);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 }
23312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23313 return resultobj;
23314 fail:
23315 return NULL;
23316 }
23317
23318
23319 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23320 PyObject *resultobj = 0;
23321 wxColourDatabase *result = 0 ;
23322
23323 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23324 {
23325 PyThreadState* __tstate = wxPyBeginAllowThreads();
23326 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23327 wxPyEndAllowThreads(__tstate);
23328 if (PyErr_Occurred()) SWIG_fail;
23329 }
23330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23331 return resultobj;
23332 fail:
23333 return NULL;
23334 }
23335
23336
23337 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23338 PyObject *resultobj = 0;
23339 wxEffects *result = 0 ;
23340
23341 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 result = (wxEffects *)new wxEffects();
23345 wxPyEndAllowThreads(__tstate);
23346 if (PyErr_Occurred()) SWIG_fail;
23347 }
23348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23349 return resultobj;
23350 fail:
23351 return NULL;
23352 }
23353
23354
23355 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23356 PyObject *resultobj = 0;
23357 wxEffects *arg1 = (wxEffects *) 0 ;
23358 wxColour result;
23359 void *argp1 = 0 ;
23360 int res1 = 0 ;
23361 PyObject *swig_obj[1] ;
23362
23363 if (!args) SWIG_fail;
23364 swig_obj[0] = args;
23365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23366 if (!SWIG_IsOK(res1)) {
23367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23368 }
23369 arg1 = reinterpret_cast< wxEffects * >(argp1);
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = ((wxEffects const *)arg1)->GetHighlightColour();
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23384 PyObject *resultobj = 0;
23385 wxEffects *arg1 = (wxEffects *) 0 ;
23386 wxColour result;
23387 void *argp1 = 0 ;
23388 int res1 = 0 ;
23389 PyObject *swig_obj[1] ;
23390
23391 if (!args) SWIG_fail;
23392 swig_obj[0] = args;
23393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23394 if (!SWIG_IsOK(res1)) {
23395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23396 }
23397 arg1 = reinterpret_cast< wxEffects * >(argp1);
23398 {
23399 PyThreadState* __tstate = wxPyBeginAllowThreads();
23400 result = ((wxEffects const *)arg1)->GetLightShadow();
23401 wxPyEndAllowThreads(__tstate);
23402 if (PyErr_Occurred()) SWIG_fail;
23403 }
23404 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23405 return resultobj;
23406 fail:
23407 return NULL;
23408 }
23409
23410
23411 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23412 PyObject *resultobj = 0;
23413 wxEffects *arg1 = (wxEffects *) 0 ;
23414 wxColour result;
23415 void *argp1 = 0 ;
23416 int res1 = 0 ;
23417 PyObject *swig_obj[1] ;
23418
23419 if (!args) SWIG_fail;
23420 swig_obj[0] = args;
23421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23424 }
23425 arg1 = reinterpret_cast< wxEffects * >(argp1);
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = ((wxEffects const *)arg1)->GetFaceColour();
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23440 PyObject *resultobj = 0;
23441 wxEffects *arg1 = (wxEffects *) 0 ;
23442 wxColour result;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 PyObject *swig_obj[1] ;
23446
23447 if (!args) SWIG_fail;
23448 swig_obj[0] = args;
23449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23450 if (!SWIG_IsOK(res1)) {
23451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23452 }
23453 arg1 = reinterpret_cast< wxEffects * >(argp1);
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = ((wxEffects const *)arg1)->GetMediumShadow();
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23461 return resultobj;
23462 fail:
23463 return NULL;
23464 }
23465
23466
23467 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 PyObject *resultobj = 0;
23469 wxEffects *arg1 = (wxEffects *) 0 ;
23470 wxColour result;
23471 void *argp1 = 0 ;
23472 int res1 = 0 ;
23473 PyObject *swig_obj[1] ;
23474
23475 if (!args) SWIG_fail;
23476 swig_obj[0] = args;
23477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23478 if (!SWIG_IsOK(res1)) {
23479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23480 }
23481 arg1 = reinterpret_cast< wxEffects * >(argp1);
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
23484 result = ((wxEffects const *)arg1)->GetDarkShadow();
23485 wxPyEndAllowThreads(__tstate);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
23488 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23489 return resultobj;
23490 fail:
23491 return NULL;
23492 }
23493
23494
23495 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23496 PyObject *resultobj = 0;
23497 wxEffects *arg1 = (wxEffects *) 0 ;
23498 wxColour *arg2 = 0 ;
23499 void *argp1 = 0 ;
23500 int res1 = 0 ;
23501 wxColour temp2 ;
23502 PyObject * obj0 = 0 ;
23503 PyObject * obj1 = 0 ;
23504 char * kwnames[] = {
23505 (char *) "self",(char *) "c", NULL
23506 };
23507
23508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23510 if (!SWIG_IsOK(res1)) {
23511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23512 }
23513 arg1 = reinterpret_cast< wxEffects * >(argp1);
23514 {
23515 arg2 = &temp2;
23516 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23517 }
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_Py_Void();
23525 return resultobj;
23526 fail:
23527 return NULL;
23528 }
23529
23530
23531 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23532 PyObject *resultobj = 0;
23533 wxEffects *arg1 = (wxEffects *) 0 ;
23534 wxColour *arg2 = 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 wxColour temp2 ;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 char * kwnames[] = {
23541 (char *) "self",(char *) "c", NULL
23542 };
23543
23544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23548 }
23549 arg1 = reinterpret_cast< wxEffects * >(argp1);
23550 {
23551 arg2 = &temp2;
23552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23553 }
23554 {
23555 PyThreadState* __tstate = wxPyBeginAllowThreads();
23556 (arg1)->SetLightShadow((wxColour const &)*arg2);
23557 wxPyEndAllowThreads(__tstate);
23558 if (PyErr_Occurred()) SWIG_fail;
23559 }
23560 resultobj = SWIG_Py_Void();
23561 return resultobj;
23562 fail:
23563 return NULL;
23564 }
23565
23566
23567 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23568 PyObject *resultobj = 0;
23569 wxEffects *arg1 = (wxEffects *) 0 ;
23570 wxColour *arg2 = 0 ;
23571 void *argp1 = 0 ;
23572 int res1 = 0 ;
23573 wxColour temp2 ;
23574 PyObject * obj0 = 0 ;
23575 PyObject * obj1 = 0 ;
23576 char * kwnames[] = {
23577 (char *) "self",(char *) "c", NULL
23578 };
23579
23580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23582 if (!SWIG_IsOK(res1)) {
23583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23584 }
23585 arg1 = reinterpret_cast< wxEffects * >(argp1);
23586 {
23587 arg2 = &temp2;
23588 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23589 }
23590 {
23591 PyThreadState* __tstate = wxPyBeginAllowThreads();
23592 (arg1)->SetFaceColour((wxColour const &)*arg2);
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 resultobj = SWIG_Py_Void();
23597 return resultobj;
23598 fail:
23599 return NULL;
23600 }
23601
23602
23603 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23604 PyObject *resultobj = 0;
23605 wxEffects *arg1 = (wxEffects *) 0 ;
23606 wxColour *arg2 = 0 ;
23607 void *argp1 = 0 ;
23608 int res1 = 0 ;
23609 wxColour temp2 ;
23610 PyObject * obj0 = 0 ;
23611 PyObject * obj1 = 0 ;
23612 char * kwnames[] = {
23613 (char *) "self",(char *) "c", NULL
23614 };
23615
23616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23618 if (!SWIG_IsOK(res1)) {
23619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23620 }
23621 arg1 = reinterpret_cast< wxEffects * >(argp1);
23622 {
23623 arg2 = &temp2;
23624 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23625 }
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23629 wxPyEndAllowThreads(__tstate);
23630 if (PyErr_Occurred()) SWIG_fail;
23631 }
23632 resultobj = SWIG_Py_Void();
23633 return resultobj;
23634 fail:
23635 return NULL;
23636 }
23637
23638
23639 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23640 PyObject *resultobj = 0;
23641 wxEffects *arg1 = (wxEffects *) 0 ;
23642 wxColour *arg2 = 0 ;
23643 void *argp1 = 0 ;
23644 int res1 = 0 ;
23645 wxColour temp2 ;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 char * kwnames[] = {
23649 (char *) "self",(char *) "c", NULL
23650 };
23651
23652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23654 if (!SWIG_IsOK(res1)) {
23655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23656 }
23657 arg1 = reinterpret_cast< wxEffects * >(argp1);
23658 {
23659 arg2 = &temp2;
23660 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23661 }
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23665 wxPyEndAllowThreads(__tstate);
23666 if (PyErr_Occurred()) SWIG_fail;
23667 }
23668 resultobj = SWIG_Py_Void();
23669 return resultobj;
23670 fail:
23671 return NULL;
23672 }
23673
23674
23675 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23676 PyObject *resultobj = 0;
23677 wxEffects *arg1 = (wxEffects *) 0 ;
23678 wxColour *arg2 = 0 ;
23679 wxColour *arg3 = 0 ;
23680 wxColour *arg4 = 0 ;
23681 wxColour *arg5 = 0 ;
23682 wxColour *arg6 = 0 ;
23683 void *argp1 = 0 ;
23684 int res1 = 0 ;
23685 wxColour temp2 ;
23686 wxColour temp3 ;
23687 wxColour temp4 ;
23688 wxColour temp5 ;
23689 wxColour temp6 ;
23690 PyObject * obj0 = 0 ;
23691 PyObject * obj1 = 0 ;
23692 PyObject * obj2 = 0 ;
23693 PyObject * obj3 = 0 ;
23694 PyObject * obj4 = 0 ;
23695 PyObject * obj5 = 0 ;
23696 char * kwnames[] = {
23697 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23698 };
23699
23700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23702 if (!SWIG_IsOK(res1)) {
23703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23704 }
23705 arg1 = reinterpret_cast< wxEffects * >(argp1);
23706 {
23707 arg2 = &temp2;
23708 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23709 }
23710 {
23711 arg3 = &temp3;
23712 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23713 }
23714 {
23715 arg4 = &temp4;
23716 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23717 }
23718 {
23719 arg5 = &temp5;
23720 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23721 }
23722 {
23723 arg6 = &temp6;
23724 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23725 }
23726 {
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
23728 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 resultobj = SWIG_Py_Void();
23733 return resultobj;
23734 fail:
23735 return NULL;
23736 }
23737
23738
23739 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj = 0;
23741 wxEffects *arg1 = (wxEffects *) 0 ;
23742 wxDC *arg2 = 0 ;
23743 wxRect *arg3 = 0 ;
23744 int arg4 = (int) 1 ;
23745 void *argp1 = 0 ;
23746 int res1 = 0 ;
23747 void *argp2 = 0 ;
23748 int res2 = 0 ;
23749 wxRect temp3 ;
23750 int val4 ;
23751 int ecode4 = 0 ;
23752 PyObject * obj0 = 0 ;
23753 PyObject * obj1 = 0 ;
23754 PyObject * obj2 = 0 ;
23755 PyObject * obj3 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23764 }
23765 arg1 = reinterpret_cast< wxEffects * >(argp1);
23766 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23767 if (!SWIG_IsOK(res2)) {
23768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23769 }
23770 if (!argp2) {
23771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23772 }
23773 arg2 = reinterpret_cast< wxDC * >(argp2);
23774 {
23775 arg3 = &temp3;
23776 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23777 }
23778 if (obj3) {
23779 ecode4 = SWIG_AsVal_int(obj3, &val4);
23780 if (!SWIG_IsOK(ecode4)) {
23781 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23782 }
23783 arg4 = static_cast< int >(val4);
23784 }
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_Py_Void();
23792 return resultobj;
23793 fail:
23794 return NULL;
23795 }
23796
23797
23798 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23799 PyObject *resultobj = 0;
23800 wxEffects *arg1 = (wxEffects *) 0 ;
23801 wxRect *arg2 = 0 ;
23802 wxDC *arg3 = 0 ;
23803 wxBitmap *arg4 = 0 ;
23804 bool result;
23805 void *argp1 = 0 ;
23806 int res1 = 0 ;
23807 wxRect temp2 ;
23808 void *argp3 = 0 ;
23809 int res3 = 0 ;
23810 void *argp4 = 0 ;
23811 int res4 = 0 ;
23812 PyObject * obj0 = 0 ;
23813 PyObject * obj1 = 0 ;
23814 PyObject * obj2 = 0 ;
23815 PyObject * obj3 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23824 }
23825 arg1 = reinterpret_cast< wxEffects * >(argp1);
23826 {
23827 arg2 = &temp2;
23828 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23829 }
23830 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23831 if (!SWIG_IsOK(res3)) {
23832 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23833 }
23834 if (!argp3) {
23835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23836 }
23837 arg3 = reinterpret_cast< wxDC * >(argp3);
23838 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23839 if (!SWIG_IsOK(res4)) {
23840 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23841 }
23842 if (!argp4) {
23843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23844 }
23845 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23846 {
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23849 wxPyEndAllowThreads(__tstate);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 {
23853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23854 }
23855 return resultobj;
23856 fail:
23857 return NULL;
23858 }
23859
23860
23861 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23862 PyObject *obj;
23863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23864 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23865 return SWIG_Py_Void();
23866 }
23867
23868 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23869 return SWIG_Python_InitShadowInstance(args);
23870 }
23871
23872 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23873 PyObject *resultobj = 0;
23874 int arg1 ;
23875 int arg2 ;
23876 bool arg3 ;
23877 wxSplitterRenderParams *result = 0 ;
23878 int val1 ;
23879 int ecode1 = 0 ;
23880 int val2 ;
23881 int ecode2 = 0 ;
23882 bool val3 ;
23883 int ecode3 = 0 ;
23884 PyObject * obj0 = 0 ;
23885 PyObject * obj1 = 0 ;
23886 PyObject * obj2 = 0 ;
23887 char * kwnames[] = {
23888 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23889 };
23890
23891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23892 ecode1 = SWIG_AsVal_int(obj0, &val1);
23893 if (!SWIG_IsOK(ecode1)) {
23894 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23895 }
23896 arg1 = static_cast< int >(val1);
23897 ecode2 = SWIG_AsVal_int(obj1, &val2);
23898 if (!SWIG_IsOK(ecode2)) {
23899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23900 }
23901 arg2 = static_cast< int >(val2);
23902 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23903 if (!SWIG_IsOK(ecode3)) {
23904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23905 }
23906 arg3 = static_cast< bool >(val3);
23907 {
23908 PyThreadState* __tstate = wxPyBeginAllowThreads();
23909 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23914 return resultobj;
23915 fail:
23916 return NULL;
23917 }
23918
23919
23920 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23921 PyObject *resultobj = 0;
23922 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23923 void *argp1 = 0 ;
23924 int res1 = 0 ;
23925 PyObject *swig_obj[1] ;
23926
23927 if (!args) SWIG_fail;
23928 swig_obj[0] = args;
23929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23930 if (!SWIG_IsOK(res1)) {
23931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23932 }
23933 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 delete arg1;
23937
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 resultobj = SWIG_Py_Void();
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23949 PyObject *resultobj = 0;
23950 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23951 int result;
23952 void *argp1 = 0 ;
23953 int res1 = 0 ;
23954 PyObject *swig_obj[1] ;
23955
23956 if (!args) SWIG_fail;
23957 swig_obj[0] = args;
23958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23959 if (!SWIG_IsOK(res1)) {
23960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23961 }
23962 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23963 result = (int)(int) ((arg1)->widthSash);
23964 resultobj = SWIG_From_int(static_cast< int >(result));
23965 return resultobj;
23966 fail:
23967 return NULL;
23968 }
23969
23970
23971 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23972 PyObject *resultobj = 0;
23973 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23974 int result;
23975 void *argp1 = 0 ;
23976 int res1 = 0 ;
23977 PyObject *swig_obj[1] ;
23978
23979 if (!args) SWIG_fail;
23980 swig_obj[0] = args;
23981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23982 if (!SWIG_IsOK(res1)) {
23983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23984 }
23985 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23986 result = (int)(int) ((arg1)->border);
23987 resultobj = SWIG_From_int(static_cast< int >(result));
23988 return resultobj;
23989 fail:
23990 return NULL;
23991 }
23992
23993
23994 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23995 PyObject *resultobj = 0;
23996 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23997 bool result;
23998 void *argp1 = 0 ;
23999 int res1 = 0 ;
24000 PyObject *swig_obj[1] ;
24001
24002 if (!args) SWIG_fail;
24003 swig_obj[0] = args;
24004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24005 if (!SWIG_IsOK(res1)) {
24006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24007 }
24008 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24009 result = (bool)(bool) ((arg1)->isHotSensitive);
24010 resultobj = SWIG_From_bool(static_cast< bool >(result));
24011 return resultobj;
24012 fail:
24013 return NULL;
24014 }
24015
24016
24017 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24018 PyObject *obj;
24019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24020 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24021 return SWIG_Py_Void();
24022 }
24023
24024 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24025 return SWIG_Python_InitShadowInstance(args);
24026 }
24027
24028 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24029 PyObject *resultobj = 0;
24030 int arg1 ;
24031 int arg2 ;
24032 wxRendererVersion *result = 0 ;
24033 int val1 ;
24034 int ecode1 = 0 ;
24035 int val2 ;
24036 int ecode2 = 0 ;
24037 PyObject * obj0 = 0 ;
24038 PyObject * obj1 = 0 ;
24039 char * kwnames[] = {
24040 (char *) "version_",(char *) "age_", NULL
24041 };
24042
24043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24044 ecode1 = SWIG_AsVal_int(obj0, &val1);
24045 if (!SWIG_IsOK(ecode1)) {
24046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24047 }
24048 arg1 = static_cast< int >(val1);
24049 ecode2 = SWIG_AsVal_int(obj1, &val2);
24050 if (!SWIG_IsOK(ecode2)) {
24051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24052 }
24053 arg2 = static_cast< int >(val2);
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24061 return resultobj;
24062 fail:
24063 return NULL;
24064 }
24065
24066
24067 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24068 PyObject *resultobj = 0;
24069 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24070 void *argp1 = 0 ;
24071 int res1 = 0 ;
24072 PyObject *swig_obj[1] ;
24073
24074 if (!args) SWIG_fail;
24075 swig_obj[0] = args;
24076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24077 if (!SWIG_IsOK(res1)) {
24078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24079 }
24080 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24081 {
24082 PyThreadState* __tstate = wxPyBeginAllowThreads();
24083 delete arg1;
24084
24085 wxPyEndAllowThreads(__tstate);
24086 if (PyErr_Occurred()) SWIG_fail;
24087 }
24088 resultobj = SWIG_Py_Void();
24089 return resultobj;
24090 fail:
24091 return NULL;
24092 }
24093
24094
24095 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24096 PyObject *resultobj = 0;
24097 wxRendererVersion *arg1 = 0 ;
24098 bool result;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 PyObject * obj0 = 0 ;
24102 char * kwnames[] = {
24103 (char *) "ver", NULL
24104 };
24105
24106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24107 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24108 if (!SWIG_IsOK(res1)) {
24109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24110 }
24111 if (!argp1) {
24112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24113 }
24114 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24115 {
24116 PyThreadState* __tstate = wxPyBeginAllowThreads();
24117 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24118 wxPyEndAllowThreads(__tstate);
24119 if (PyErr_Occurred()) SWIG_fail;
24120 }
24121 {
24122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24123 }
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *resultobj = 0;
24132 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24133 int result;
24134 void *argp1 = 0 ;
24135 int res1 = 0 ;
24136 PyObject *swig_obj[1] ;
24137
24138 if (!args) SWIG_fail;
24139 swig_obj[0] = args;
24140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24143 }
24144 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24145 result = (int)(int) ((arg1)->version);
24146 resultobj = SWIG_From_int(static_cast< int >(result));
24147 return resultobj;
24148 fail:
24149 return NULL;
24150 }
24151
24152
24153 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24154 PyObject *resultobj = 0;
24155 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24156 int result;
24157 void *argp1 = 0 ;
24158 int res1 = 0 ;
24159 PyObject *swig_obj[1] ;
24160
24161 if (!args) SWIG_fail;
24162 swig_obj[0] = args;
24163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24164 if (!SWIG_IsOK(res1)) {
24165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24166 }
24167 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24168 result = (int)(int) ((arg1)->age);
24169 resultobj = SWIG_From_int(static_cast< int >(result));
24170 return resultobj;
24171 fail:
24172 return NULL;
24173 }
24174
24175
24176 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24177 PyObject *obj;
24178 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24179 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24180 return SWIG_Py_Void();
24181 }
24182
24183 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 return SWIG_Python_InitShadowInstance(args);
24185 }
24186
24187 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24188 PyObject *resultobj = 0;
24189 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24190 wxWindow *arg2 = (wxWindow *) 0 ;
24191 wxDC *arg3 = 0 ;
24192 wxRect *arg4 = 0 ;
24193 int arg5 = (int) 0 ;
24194 void *argp1 = 0 ;
24195 int res1 = 0 ;
24196 void *argp2 = 0 ;
24197 int res2 = 0 ;
24198 void *argp3 = 0 ;
24199 int res3 = 0 ;
24200 wxRect temp4 ;
24201 int val5 ;
24202 int ecode5 = 0 ;
24203 PyObject * obj0 = 0 ;
24204 PyObject * obj1 = 0 ;
24205 PyObject * obj2 = 0 ;
24206 PyObject * obj3 = 0 ;
24207 PyObject * obj4 = 0 ;
24208 char * kwnames[] = {
24209 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24210 };
24211
24212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24216 }
24217 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24218 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24219 if (!SWIG_IsOK(res2)) {
24220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24221 }
24222 arg2 = reinterpret_cast< wxWindow * >(argp2);
24223 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24224 if (!SWIG_IsOK(res3)) {
24225 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24226 }
24227 if (!argp3) {
24228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24229 }
24230 arg3 = reinterpret_cast< wxDC * >(argp3);
24231 {
24232 arg4 = &temp4;
24233 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24234 }
24235 if (obj4) {
24236 ecode5 = SWIG_AsVal_int(obj4, &val5);
24237 if (!SWIG_IsOK(ecode5)) {
24238 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24239 }
24240 arg5 = static_cast< int >(val5);
24241 }
24242 {
24243 PyThreadState* __tstate = wxPyBeginAllowThreads();
24244 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24245 wxPyEndAllowThreads(__tstate);
24246 if (PyErr_Occurred()) SWIG_fail;
24247 }
24248 resultobj = SWIG_Py_Void();
24249 return resultobj;
24250 fail:
24251 return NULL;
24252 }
24253
24254
24255 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24256 PyObject *resultobj = 0;
24257 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24258 wxWindow *arg2 = (wxWindow *) 0 ;
24259 wxDC *arg3 = 0 ;
24260 wxRect *arg4 = 0 ;
24261 int arg5 = (int) 0 ;
24262 void *argp1 = 0 ;
24263 int res1 = 0 ;
24264 void *argp2 = 0 ;
24265 int res2 = 0 ;
24266 void *argp3 = 0 ;
24267 int res3 = 0 ;
24268 wxRect temp4 ;
24269 int val5 ;
24270 int ecode5 = 0 ;
24271 PyObject * obj0 = 0 ;
24272 PyObject * obj1 = 0 ;
24273 PyObject * obj2 = 0 ;
24274 PyObject * obj3 = 0 ;
24275 PyObject * obj4 = 0 ;
24276 char * kwnames[] = {
24277 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24278 };
24279
24280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24282 if (!SWIG_IsOK(res1)) {
24283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24284 }
24285 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24287 if (!SWIG_IsOK(res2)) {
24288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24289 }
24290 arg2 = reinterpret_cast< wxWindow * >(argp2);
24291 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24292 if (!SWIG_IsOK(res3)) {
24293 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24294 }
24295 if (!argp3) {
24296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24297 }
24298 arg3 = reinterpret_cast< wxDC * >(argp3);
24299 {
24300 arg4 = &temp4;
24301 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24302 }
24303 if (obj4) {
24304 ecode5 = SWIG_AsVal_int(obj4, &val5);
24305 if (!SWIG_IsOK(ecode5)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24307 }
24308 arg5 = static_cast< int >(val5);
24309 }
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24313 wxPyEndAllowThreads(__tstate);
24314 if (PyErr_Occurred()) SWIG_fail;
24315 }
24316 resultobj = SWIG_Py_Void();
24317 return resultobj;
24318 fail:
24319 return NULL;
24320 }
24321
24322
24323 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24324 PyObject *resultobj = 0;
24325 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24326 wxWindow *arg2 = (wxWindow *) 0 ;
24327 wxDC *arg3 = 0 ;
24328 wxRect *arg4 = 0 ;
24329 int arg5 = (int) 0 ;
24330 void *argp1 = 0 ;
24331 int res1 = 0 ;
24332 void *argp2 = 0 ;
24333 int res2 = 0 ;
24334 void *argp3 = 0 ;
24335 int res3 = 0 ;
24336 wxRect temp4 ;
24337 int val5 ;
24338 int ecode5 = 0 ;
24339 PyObject * obj0 = 0 ;
24340 PyObject * obj1 = 0 ;
24341 PyObject * obj2 = 0 ;
24342 PyObject * obj3 = 0 ;
24343 PyObject * obj4 = 0 ;
24344 char * kwnames[] = {
24345 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24346 };
24347
24348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24352 }
24353 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24354 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24355 if (!SWIG_IsOK(res2)) {
24356 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24357 }
24358 arg2 = reinterpret_cast< wxWindow * >(argp2);
24359 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24360 if (!SWIG_IsOK(res3)) {
24361 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24362 }
24363 if (!argp3) {
24364 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24365 }
24366 arg3 = reinterpret_cast< wxDC * >(argp3);
24367 {
24368 arg4 = &temp4;
24369 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24370 }
24371 if (obj4) {
24372 ecode5 = SWIG_AsVal_int(obj4, &val5);
24373 if (!SWIG_IsOK(ecode5)) {
24374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24375 }
24376 arg5 = static_cast< int >(val5);
24377 }
24378 {
24379 PyThreadState* __tstate = wxPyBeginAllowThreads();
24380 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24381 wxPyEndAllowThreads(__tstate);
24382 if (PyErr_Occurred()) SWIG_fail;
24383 }
24384 resultobj = SWIG_Py_Void();
24385 return resultobj;
24386 fail:
24387 return NULL;
24388 }
24389
24390
24391 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24392 PyObject *resultobj = 0;
24393 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24394 wxWindow *arg2 = (wxWindow *) 0 ;
24395 wxDC *arg3 = 0 ;
24396 wxSize *arg4 = 0 ;
24397 int arg5 ;
24398 wxOrientation arg6 ;
24399 int arg7 = (int) 0 ;
24400 void *argp1 = 0 ;
24401 int res1 = 0 ;
24402 void *argp2 = 0 ;
24403 int res2 = 0 ;
24404 void *argp3 = 0 ;
24405 int res3 = 0 ;
24406 wxSize temp4 ;
24407 int val5 ;
24408 int ecode5 = 0 ;
24409 int val6 ;
24410 int ecode6 = 0 ;
24411 int val7 ;
24412 int ecode7 = 0 ;
24413 PyObject * obj0 = 0 ;
24414 PyObject * obj1 = 0 ;
24415 PyObject * obj2 = 0 ;
24416 PyObject * obj3 = 0 ;
24417 PyObject * obj4 = 0 ;
24418 PyObject * obj5 = 0 ;
24419 PyObject * obj6 = 0 ;
24420 char * kwnames[] = {
24421 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24422 };
24423
24424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_DrawSplitterSash" "', 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_DrawSplitterSash" "', 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_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24438 }
24439 if (!argp3) {
24440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24441 }
24442 arg3 = reinterpret_cast< wxDC * >(argp3);
24443 {
24444 arg4 = &temp4;
24445 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24446 }
24447 ecode5 = SWIG_AsVal_int(obj4, &val5);
24448 if (!SWIG_IsOK(ecode5)) {
24449 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24450 }
24451 arg5 = static_cast< int >(val5);
24452 ecode6 = SWIG_AsVal_int(obj5, &val6);
24453 if (!SWIG_IsOK(ecode6)) {
24454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24455 }
24456 arg6 = static_cast< wxOrientation >(val6);
24457 if (obj6) {
24458 ecode7 = SWIG_AsVal_int(obj6, &val7);
24459 if (!SWIG_IsOK(ecode7)) {
24460 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24461 }
24462 arg7 = static_cast< int >(val7);
24463 }
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 resultobj = SWIG_Py_Void();
24471 return resultobj;
24472 fail:
24473 return NULL;
24474 }
24475
24476
24477 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj = 0;
24479 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24480 wxWindow *arg2 = (wxWindow *) 0 ;
24481 wxDC *arg3 = 0 ;
24482 wxRect *arg4 = 0 ;
24483 int arg5 = (int) 0 ;
24484 void *argp1 = 0 ;
24485 int res1 = 0 ;
24486 void *argp2 = 0 ;
24487 int res2 = 0 ;
24488 void *argp3 = 0 ;
24489 int res3 = 0 ;
24490 wxRect temp4 ;
24491 int val5 ;
24492 int ecode5 = 0 ;
24493 PyObject * obj0 = 0 ;
24494 PyObject * obj1 = 0 ;
24495 PyObject * obj2 = 0 ;
24496 PyObject * obj3 = 0 ;
24497 PyObject * obj4 = 0 ;
24498 char * kwnames[] = {
24499 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24500 };
24501
24502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24504 if (!SWIG_IsOK(res1)) {
24505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24506 }
24507 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24509 if (!SWIG_IsOK(res2)) {
24510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24511 }
24512 arg2 = reinterpret_cast< wxWindow * >(argp2);
24513 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24514 if (!SWIG_IsOK(res3)) {
24515 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24516 }
24517 if (!argp3) {
24518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24519 }
24520 arg3 = reinterpret_cast< wxDC * >(argp3);
24521 {
24522 arg4 = &temp4;
24523 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24524 }
24525 if (obj4) {
24526 ecode5 = SWIG_AsVal_int(obj4, &val5);
24527 if (!SWIG_IsOK(ecode5)) {
24528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24529 }
24530 arg5 = static_cast< int >(val5);
24531 }
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 resultobj = SWIG_Py_Void();
24539 return resultobj;
24540 fail:
24541 return NULL;
24542 }
24543
24544
24545 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24546 PyObject *resultobj = 0;
24547 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24548 wxWindow *arg2 = (wxWindow *) 0 ;
24549 wxDC *arg3 = 0 ;
24550 wxRect *arg4 = 0 ;
24551 int arg5 = (int) 0 ;
24552 void *argp1 = 0 ;
24553 int res1 = 0 ;
24554 void *argp2 = 0 ;
24555 int res2 = 0 ;
24556 void *argp3 = 0 ;
24557 int res3 = 0 ;
24558 wxRect temp4 ;
24559 int val5 ;
24560 int ecode5 = 0 ;
24561 PyObject * obj0 = 0 ;
24562 PyObject * obj1 = 0 ;
24563 PyObject * obj2 = 0 ;
24564 PyObject * obj3 = 0 ;
24565 PyObject * obj4 = 0 ;
24566 char * kwnames[] = {
24567 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24568 };
24569
24570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24572 if (!SWIG_IsOK(res1)) {
24573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24574 }
24575 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24577 if (!SWIG_IsOK(res2)) {
24578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24579 }
24580 arg2 = reinterpret_cast< wxWindow * >(argp2);
24581 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24582 if (!SWIG_IsOK(res3)) {
24583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24584 }
24585 if (!argp3) {
24586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24587 }
24588 arg3 = reinterpret_cast< wxDC * >(argp3);
24589 {
24590 arg4 = &temp4;
24591 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24592 }
24593 if (obj4) {
24594 ecode5 = SWIG_AsVal_int(obj4, &val5);
24595 if (!SWIG_IsOK(ecode5)) {
24596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24597 }
24598 arg5 = static_cast< int >(val5);
24599 }
24600 {
24601 PyThreadState* __tstate = wxPyBeginAllowThreads();
24602 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24603 wxPyEndAllowThreads(__tstate);
24604 if (PyErr_Occurred()) SWIG_fail;
24605 }
24606 resultobj = SWIG_Py_Void();
24607 return resultobj;
24608 fail:
24609 return NULL;
24610 }
24611
24612
24613 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24614 PyObject *resultobj = 0;
24615 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24616 wxWindow *arg2 = (wxWindow *) 0 ;
24617 wxDC *arg3 = 0 ;
24618 wxRect *arg4 = 0 ;
24619 int arg5 = (int) 0 ;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 void *argp2 = 0 ;
24623 int res2 = 0 ;
24624 void *argp3 = 0 ;
24625 int res3 = 0 ;
24626 wxRect temp4 ;
24627 int val5 ;
24628 int ecode5 = 0 ;
24629 PyObject * obj0 = 0 ;
24630 PyObject * obj1 = 0 ;
24631 PyObject * obj2 = 0 ;
24632 PyObject * obj3 = 0 ;
24633 PyObject * obj4 = 0 ;
24634 char * kwnames[] = {
24635 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24636 };
24637
24638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24640 if (!SWIG_IsOK(res1)) {
24641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24642 }
24643 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24645 if (!SWIG_IsOK(res2)) {
24646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24647 }
24648 arg2 = reinterpret_cast< wxWindow * >(argp2);
24649 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24650 if (!SWIG_IsOK(res3)) {
24651 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
24652 }
24653 if (!argp3) {
24654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
24655 }
24656 arg3 = reinterpret_cast< wxDC * >(argp3);
24657 {
24658 arg4 = &temp4;
24659 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24660 }
24661 if (obj4) {
24662 ecode5 = SWIG_AsVal_int(obj4, &val5);
24663 if (!SWIG_IsOK(ecode5)) {
24664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "5"" of type '" "int""'");
24665 }
24666 arg5 = static_cast< int >(val5);
24667 }
24668 {
24669 PyThreadState* __tstate = wxPyBeginAllowThreads();
24670 (arg1)->DrawCheckButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 resultobj = SWIG_Py_Void();
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj = 0;
24683 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24684 wxWindow *arg2 = (wxWindow *) 0 ;
24685 SwigValueWrapper<wxSplitterRenderParams > result;
24686 void *argp1 = 0 ;
24687 int res1 = 0 ;
24688 void *argp2 = 0 ;
24689 int res2 = 0 ;
24690 PyObject * obj0 = 0 ;
24691 PyObject * obj1 = 0 ;
24692 char * kwnames[] = {
24693 (char *) "self",(char *) "win", NULL
24694 };
24695
24696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24698 if (!SWIG_IsOK(res1)) {
24699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24700 }
24701 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24703 if (!SWIG_IsOK(res2)) {
24704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24705 }
24706 arg2 = reinterpret_cast< wxWindow * >(argp2);
24707 {
24708 PyThreadState* __tstate = wxPyBeginAllowThreads();
24709 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24714 return resultobj;
24715 fail:
24716 return NULL;
24717 }
24718
24719
24720 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24721 PyObject *resultobj = 0;
24722 wxRendererNative *result = 0 ;
24723
24724 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24725 {
24726 PyThreadState* __tstate = wxPyBeginAllowThreads();
24727 {
24728 wxRendererNative &_result_ref = wxRendererNative::Get();
24729 result = (wxRendererNative *) &_result_ref;
24730 }
24731 wxPyEndAllowThreads(__tstate);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24735 return resultobj;
24736 fail:
24737 return NULL;
24738 }
24739
24740
24741 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24742 PyObject *resultobj = 0;
24743 wxRendererNative *result = 0 ;
24744
24745 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 {
24749 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24750 result = (wxRendererNative *) &_result_ref;
24751 }
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24756 return resultobj;
24757 fail:
24758 return NULL;
24759 }
24760
24761
24762 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24763 PyObject *resultobj = 0;
24764 wxRendererNative *result = 0 ;
24765
24766 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24767 {
24768 PyThreadState* __tstate = wxPyBeginAllowThreads();
24769 {
24770 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24771 result = (wxRendererNative *) &_result_ref;
24772 }
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24777 return resultobj;
24778 fail:
24779 return NULL;
24780 }
24781
24782
24783 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj = 0;
24785 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24786 wxRendererNative *result = 0 ;
24787 void *argp1 = 0 ;
24788 int res1 = 0 ;
24789 PyObject * obj0 = 0 ;
24790 char * kwnames[] = {
24791 (char *) "renderer", NULL
24792 };
24793
24794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24796 if (!SWIG_IsOK(res1)) {
24797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24798 }
24799 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24807 return resultobj;
24808 fail:
24809 return NULL;
24810 }
24811
24812
24813 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24814 PyObject *resultobj = 0;
24815 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24816 SwigValueWrapper<wxRendererVersion > result;
24817 void *argp1 = 0 ;
24818 int res1 = 0 ;
24819 PyObject *swig_obj[1] ;
24820
24821 if (!args) SWIG_fail;
24822 swig_obj[0] = args;
24823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24824 if (!SWIG_IsOK(res1)) {
24825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24826 }
24827 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 result = ((wxRendererNative const *)arg1)->GetVersion();
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24842 PyObject *obj;
24843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24844 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24845 return SWIG_Py_Void();
24846 }
24847
24848 static PyMethodDef SwigMethods[] = {
24849 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24850 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
24851 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24852 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24853 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24854 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24855 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24856 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24857 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24858 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24859 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24860 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24861 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24862 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24863 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24864 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24865 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24866 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24867 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24868 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24869 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24870 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24871 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24872 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24873 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24874 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24875 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24876 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24877 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24878 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24879 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24880 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24881 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24882 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24883 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24884 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24885 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24886 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24887 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24888 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24889 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24890 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24891 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24892 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24893 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24894 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24895 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24896 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24897 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24898 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24899 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24900 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24901 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24902 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24903 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24904 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24905 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24906 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24907 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24908 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24909 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24910 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24911 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
24912 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
24913 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24914 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24915 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24916 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24917 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24918 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24919 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24920 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24921 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24922 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24923 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24924 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24925 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24926 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24927 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24928 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24929 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24930 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24931 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24932 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24933 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24934 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24935 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24936 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24937 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24938 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24939 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24940 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24941 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24942 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24943 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24944 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24945 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24946 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24947 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24948 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24949 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24950 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24951 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24952 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24953 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24954 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24955 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24956 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24957 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24958 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24959 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24960 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24961 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24962 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24963 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24964 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24965 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24966 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24967 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24968 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24969 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24970 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24971 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24972 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24973 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24974 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24975 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24976 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
24977 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24978 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24979 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24980 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
24981 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
24982 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
24983 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
24984 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
24985 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24986 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
24987 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
24988 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
24989 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
24990 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24991 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
24992 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
24993 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
24994 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
24995 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
24996 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
24997 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24998 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
24999 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25001 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25002 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25004 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25005 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25006 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25007 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25008 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25009 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25010 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25011 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25012 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25013 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25014 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25015 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25016 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25017 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25018 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25019 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25020 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25021 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25022 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25023 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25024 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25025 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25026 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25027 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25028 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25029 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25030 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25031 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25032 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25033 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25034 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25035 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25036 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25037 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25038 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25039 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25040 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25041 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25042 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25043 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25044 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25045 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25046 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25047 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25048 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25049 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25050 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25051 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25052 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25053 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25054 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25055 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25056 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25057 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25058 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25059 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25060 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25061 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25062 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25063 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25064 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25065 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25066 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25067 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25068 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25069 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25071 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25072 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25073 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25074 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25075 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25077 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25078 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25079 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25080 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25081 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25082 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25083 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25084 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25085 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25086 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25087 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25088 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25089 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25091 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25092 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25093 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25094 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25095 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25097 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25099 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25100 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25101 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25102 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25103 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25104 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25105 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25106 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25107 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25108 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25109 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25110 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25111 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25112 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25113 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25115 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25116 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25117 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25120 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25121 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25122 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25123 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25124 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25125 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25126 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25127 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25128 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25129 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25130 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25131 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25132 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25133 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25134 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25135 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25136 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25137 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25138 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25139 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25140 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25141 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25142 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25143 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25144 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25145 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25146 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25147 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25148 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25149 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25150 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25151 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25153 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25154 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25155 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25156 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25157 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25158 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25159 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25160 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25161 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25162 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25163 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25164 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25165 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25166 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25167 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25168 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25169 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25170 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25171 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25172 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25173 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25174 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25175 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25176 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25177 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25178 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25179 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25180 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25181 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25182 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25183 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25184 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25190 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25194 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25195 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25197 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25200 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25202 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25207 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25227 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25232 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25234 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25235 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25236 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25238 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25243 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25244 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25245 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25246 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25247 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25248 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25252 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25253 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25254 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25255 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25256 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25257 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25258 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25259 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25260 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25261 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25262 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25263 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25264 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25265 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25266 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25267 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25268 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25269 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25270 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25271 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25272 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25273 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25274 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25275 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25276 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25277 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25278 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25279 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25280 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25282 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25284 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25285 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25286 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25287 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25288 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25289 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25290 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25291 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25292 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25293 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25294 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25295 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25296 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25297 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25298 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25299 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25300 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25301 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25302 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25303 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25304 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25305 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25306 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25307 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25309 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25310 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25311 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25313 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25314 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25315 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25316 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25317 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25318 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25319 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25320 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25321 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25322 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25323 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25324 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25325 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25326 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25327 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25328 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25329 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25331 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25332 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25333 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25334 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25335 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25336 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25337 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25338 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25339 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25340 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25341 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25342 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25343 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25344 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25345 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25346 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25347 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25348 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
25350 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
25351 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
25352 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
25353 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
25354 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
25355 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25356 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25357 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25358 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
25359 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25360 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25361 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25362 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25363 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25364 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25365 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25366 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25367 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25368 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25369 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25371 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25372 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25373 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25374 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25375 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25376 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25377 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25378 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25379 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25380 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25381 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25382 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25383 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25384 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25386 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25387 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25388 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25389 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25390 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25391 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25392 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25393 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25394 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25396 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25397 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25398 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25399 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25400 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25401 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25402 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25403 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25404 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25405 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25406 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25407 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25408 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25413 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25414 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25415 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25416 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25417 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25418 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25419 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25420 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25421 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25422 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25423 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25424 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25427 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25429 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25431 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25432 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25433 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25434 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25435 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25436 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25437 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25438 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25439 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25440 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25441 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25443 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25444 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25445 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25446 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25447 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25448 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25449 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25450 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25451 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25452 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25453 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25454 { (char *)"RendererNative_DrawCheckButton", (PyCFunction) _wrap_RendererNative_DrawCheckButton, METH_VARARGS | METH_KEYWORDS, NULL},
25455 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25456 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25457 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25458 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25459 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25460 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25461 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25462 { NULL, NULL, 0, NULL }
25463 };
25464
25465
25466 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25467
25468 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25469 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25470 }
25471 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25472 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25473 }
25474 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25475 return (void *)((wxGDIObject *) ((wxIcon *) x));
25476 }
25477 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25478 return (void *)((wxGDIObject *) ((wxPalette *) x));
25479 }
25480 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25481 return (void *)((wxGDIObject *) ((wxPen *) x));
25482 }
25483 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25484 return (void *)((wxGDIObject *) ((wxFont *) x));
25485 }
25486 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25487 return (void *)((wxGDIObject *) ((wxCursor *) x));
25488 }
25489 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25490 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25491 }
25492 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25493 return (void *)((wxGDIObject *) ((wxRegion *) x));
25494 }
25495 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25496 return (void *)((wxGDIObject *) ((wxBrush *) x));
25497 }
25498 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25499 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25500 }
25501 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25502 return (void *)((wxDC *) ((wxScreenDC *) x));
25503 }
25504 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25505 return (void *)((wxDC *) ((wxMirrorDC *) x));
25506 }
25507 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25508 return (void *)((wxDC *) ((wxMemoryDC *) x));
25509 }
25510 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25511 return (void *)((wxDC *) ((wxWindowDC *) x));
25512 }
25513 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25514 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25515 }
25516 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25517 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25518 }
25519 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25520 return (void *)((wxDC *) ((wxClientDC *) x));
25521 }
25522 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25523 return (void *)((wxDC *) ((wxPaintDC *) x));
25524 }
25525 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25526 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25527 }
25528 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25529 return (void *)((wxDC *) ((wxPrinterDC *) x));
25530 }
25531 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25532 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25533 }
25534 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25535 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25536 }
25537 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25538 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25539 }
25540 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25541 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25542 }
25543 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25544 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25545 }
25546 static void *_p_wxPenTo_p_wxObject(void *x) {
25547 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25548 }
25549 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25550 return (void *)((wxObject *) ((wxRegionIterator *) x));
25551 }
25552 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25553 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25554 }
25555 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25556 return (void *)((wxObject *) ((wxSizerItem *) x));
25557 }
25558 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25559 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25560 }
25561 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25562 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25563 }
25564 static void *_p_wxIconTo_p_wxObject(void *x) {
25565 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25566 }
25567 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25568 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25569 }
25570 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25571 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25572 }
25573 static void *_p_wxSizerTo_p_wxObject(void *x) {
25574 return (void *)((wxObject *) ((wxSizer *) x));
25575 }
25576 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25577 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25578 }
25579 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25581 }
25582 static void *_p_wxEventTo_p_wxObject(void *x) {
25583 return (void *)((wxObject *) ((wxEvent *) x));
25584 }
25585 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25586 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25587 }
25588 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25589 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25590 }
25591 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25592 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25593 }
25594 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25595 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25596 }
25597 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25598 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25599 }
25600 static void *_p_wxDCTo_p_wxObject(void *x) {
25601 return (void *)((wxObject *) ((wxDC *) x));
25602 }
25603 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25604 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25605 }
25606 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25607 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25608 }
25609 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25610 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25611 }
25612 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25613 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25614 }
25615 static void *_p_wxControlTo_p_wxObject(void *x) {
25616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25617 }
25618 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25619 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25620 }
25621 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25622 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25623 }
25624 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25625 return (void *)((wxObject *) ((wxFSFile *) x));
25626 }
25627 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25628 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25629 }
25630 static void *_p_wxRegionTo_p_wxObject(void *x) {
25631 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25632 }
25633 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25634 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25635 }
25636 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25637 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25638 }
25639 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25640 return (void *)((wxObject *) ((wxGDIObject *) x));
25641 }
25642 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25643 return (void *)((wxObject *) ((wxEffects *) x));
25644 }
25645 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25646 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25647 }
25648 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25650 }
25651 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25652 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25653 }
25654 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25655 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25656 }
25657 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25658 return (void *)((wxObject *) ((wxMenuItem *) x));
25659 }
25660 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25662 }
25663 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25664 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25665 }
25666 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25667 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25668 }
25669 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25670 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25671 }
25672 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25673 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25674 }
25675 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25676 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25677 }
25678 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25679 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25680 }
25681 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25682 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25683 }
25684 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25685 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25686 }
25687 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25688 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25689 }
25690 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25691 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25692 }
25693 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25694 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25695 }
25696 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25697 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25698 }
25699 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25700 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25701 }
25702 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25703 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25704 }
25705 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25706 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25707 }
25708 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25709 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25710 }
25711 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25712 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25713 }
25714 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25715 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25716 }
25717 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25718 return (void *)((wxObject *) ((wxImageHandler *) x));
25719 }
25720 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25721 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25722 }
25723 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25724 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25725 }
25726 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25727 return (void *)((wxObject *) ((wxEvtHandler *) x));
25728 }
25729 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25730 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25731 }
25732 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25733 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25734 }
25735 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25736 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25737 }
25738 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25739 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25740 }
25741 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25742 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25743 }
25744 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25745 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25746 }
25747 static void *_p_wxImageTo_p_wxObject(void *x) {
25748 return (void *)((wxObject *) ((wxImage *) x));
25749 }
25750 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25751 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25752 }
25753 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25754 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25755 }
25756 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25757 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25758 }
25759 static void *_p_wxImageListTo_p_wxObject(void *x) {
25760 return (void *)((wxObject *) ((wxImageList *) x));
25761 }
25762 static void *_p_wxCursorTo_p_wxObject(void *x) {
25763 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25764 }
25765 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25766 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25767 }
25768 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25769 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25770 }
25771 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25772 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25773 }
25774 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25775 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25776 }
25777 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25778 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25779 }
25780 static void *_p_wxWindowTo_p_wxObject(void *x) {
25781 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25782 }
25783 static void *_p_wxMenuTo_p_wxObject(void *x) {
25784 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25785 }
25786 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25788 }
25789 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25790 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25791 }
25792 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25793 return (void *)((wxObject *) ((wxFileSystem *) x));
25794 }
25795 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25796 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25797 }
25798 static void *_p_wxMaskTo_p_wxObject(void *x) {
25799 return (void *)((wxObject *) ((wxMask *) x));
25800 }
25801 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25803 }
25804 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25805 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25806 }
25807 static void *_p_wxPyAppTo_p_wxObject(void *x) {
25808 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25809 }
25810 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25811 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25812 }
25813 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25814 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25815 }
25816 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25817 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25818 }
25819 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25820 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25821 }
25822 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25823 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25824 }
25825 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25826 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25827 }
25828 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25829 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25830 }
25831 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25833 }
25834 static void *_p_wxFontTo_p_wxObject(void *x) {
25835 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25836 }
25837 static void *_p_wxBrushTo_p_wxObject(void *x) {
25838 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25839 }
25840 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25841 return (void *)((wxObject *) ((wxMetaFile *) x));
25842 }
25843 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25844 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25845 }
25846 static void *_p_wxColourTo_p_wxObject(void *x) {
25847 return (void *)((wxObject *) ((wxColour *) x));
25848 }
25849 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25850 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25851 }
25852 static void *_p_wxValidatorTo_p_wxObject(void *x) {
25853 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25854 }
25855 static void *_p_wxControlTo_p_wxWindow(void *x) {
25856 return (void *)((wxWindow *) ((wxControl *) x));
25857 }
25858 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25859 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25860 }
25861 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25862 return (void *)((wxWindow *) ((wxMenuBar *) x));
25863 }
25864 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25865 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25866 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};
25867 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25868 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25869 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25870 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25871 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25872 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25873 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25874 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25875 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25876 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25877 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25878 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25879 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25880 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25881 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25882 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25883 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25884 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25885 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25886 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25887 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
25888 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
25889 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25890 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25891 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25892 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25893 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25894 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25895 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25896 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25897 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25898 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25899 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25900 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25901 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25902 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25903 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25904 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25905 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25906 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25907 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25908 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25909 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25910 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25911 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25912 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25913 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25914 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25915 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25916 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25917 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25918 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25919 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
25920 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25921 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25922 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25923 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25924 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25925 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25926 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25927 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25928 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25929 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25930 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25931 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25932 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25933 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25934 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25935 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25936 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25937 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25938 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25939 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25940 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25941 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25942 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 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_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
25945 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25946 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25947 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25948 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25949 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25950 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25951 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25952 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25953 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
25954 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25955 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25956 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25957 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25958 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25959 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25960 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25961 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25962 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25963 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25964 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25965 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25966 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25967 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25968 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25969 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25970 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25971 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25972 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25973 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25974 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25975 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
25976 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
25977 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
25978 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
25979 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
25980 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
25981 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
25982 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
25983 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
25984 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
25985 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
25986 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
25987 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
25988 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
25989 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
25990 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
25991 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
25992 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
25993 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
25994 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
25995 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
25996 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
25997 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
25998 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
25999 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26000 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26001
26002 static swig_type_info *swig_type_initial[] = {
26003 &_swigt__p_char,
26004 &_swigt__p_double,
26005 &_swigt__p_form_ops_t,
26006 &_swigt__p_int,
26007 &_swigt__p_unsigned_char,
26008 &_swigt__p_unsigned_int,
26009 &_swigt__p_unsigned_long,
26010 &_swigt__p_wxANIHandler,
26011 &_swigt__p_wxAcceleratorTable,
26012 &_swigt__p_wxActivateEvent,
26013 &_swigt__p_wxBMPHandler,
26014 &_swigt__p_wxBitmap,
26015 &_swigt__p_wxBoxSizer,
26016 &_swigt__p_wxBrush,
26017 &_swigt__p_wxBrushList,
26018 &_swigt__p_wxBufferedDC,
26019 &_swigt__p_wxBufferedPaintDC,
26020 &_swigt__p_wxCURHandler,
26021 &_swigt__p_wxChildFocusEvent,
26022 &_swigt__p_wxClientDC,
26023 &_swigt__p_wxCloseEvent,
26024 &_swigt__p_wxColour,
26025 &_swigt__p_wxColourDatabase,
26026 &_swigt__p_wxCommandEvent,
26027 &_swigt__p_wxContextMenuEvent,
26028 &_swigt__p_wxControl,
26029 &_swigt__p_wxControlWithItems,
26030 &_swigt__p_wxCursor,
26031 &_swigt__p_wxDC,
26032 &_swigt__p_wxDash,
26033 &_swigt__p_wxDateEvent,
26034 &_swigt__p_wxDisplayChangedEvent,
26035 &_swigt__p_wxDropFilesEvent,
26036 &_swigt__p_wxDuplexMode,
26037 &_swigt__p_wxEffects,
26038 &_swigt__p_wxEncodingConverter,
26039 &_swigt__p_wxEraseEvent,
26040 &_swigt__p_wxEvent,
26041 &_swigt__p_wxEvtHandler,
26042 &_swigt__p_wxFSFile,
26043 &_swigt__p_wxFileSystem,
26044 &_swigt__p_wxFlexGridSizer,
26045 &_swigt__p_wxFocusEvent,
26046 &_swigt__p_wxFont,
26047 &_swigt__p_wxFontList,
26048 &_swigt__p_wxFontMapper,
26049 &_swigt__p_wxGBSizerItem,
26050 &_swigt__p_wxGDIObjListBase,
26051 &_swigt__p_wxGDIObject,
26052 &_swigt__p_wxGIFHandler,
26053 &_swigt__p_wxGridBagSizer,
26054 &_swigt__p_wxGridSizer,
26055 &_swigt__p_wxICOHandler,
26056 &_swigt__p_wxIcon,
26057 &_swigt__p_wxIconBundle,
26058 &_swigt__p_wxIconLocation,
26059 &_swigt__p_wxIconizeEvent,
26060 &_swigt__p_wxIdleEvent,
26061 &_swigt__p_wxImage,
26062 &_swigt__p_wxImageHandler,
26063 &_swigt__p_wxImageList,
26064 &_swigt__p_wxIndividualLayoutConstraint,
26065 &_swigt__p_wxInitDialogEvent,
26066 &_swigt__p_wxJPEGHandler,
26067 &_swigt__p_wxKeyEvent,
26068 &_swigt__p_wxLanguageInfo,
26069 &_swigt__p_wxLayoutConstraints,
26070 &_swigt__p_wxLocale,
26071 &_swigt__p_wxMask,
26072 &_swigt__p_wxMaximizeEvent,
26073 &_swigt__p_wxMemoryDC,
26074 &_swigt__p_wxMenu,
26075 &_swigt__p_wxMenuBar,
26076 &_swigt__p_wxMenuEvent,
26077 &_swigt__p_wxMenuItem,
26078 &_swigt__p_wxMetaFile,
26079 &_swigt__p_wxMetaFileDC,
26080 &_swigt__p_wxMirrorDC,
26081 &_swigt__p_wxMouseCaptureChangedEvent,
26082 &_swigt__p_wxMouseEvent,
26083 &_swigt__p_wxMoveEvent,
26084 &_swigt__p_wxNativeEncodingInfo,
26085 &_swigt__p_wxNativeFontInfo,
26086 &_swigt__p_wxNavigationKeyEvent,
26087 &_swigt__p_wxNcPaintEvent,
26088 &_swigt__p_wxNotifyEvent,
26089 &_swigt__p_wxObject,
26090 &_swigt__p_wxPCXHandler,
26091 &_swigt__p_wxPNGHandler,
26092 &_swigt__p_wxPNMHandler,
26093 &_swigt__p_wxPaintDC,
26094 &_swigt__p_wxPaintEvent,
26095 &_swigt__p_wxPalette,
26096 &_swigt__p_wxPaletteChangedEvent,
26097 &_swigt__p_wxPaperSize,
26098 &_swigt__p_wxPen,
26099 &_swigt__p_wxPenList,
26100 &_swigt__p_wxPoint,
26101 &_swigt__p_wxPostScriptDC,
26102 &_swigt__p_wxPrintData,
26103 &_swigt__p_wxPrinterDC,
26104 &_swigt__p_wxPyApp,
26105 &_swigt__p_wxPyCommandEvent,
26106 &_swigt__p_wxPyEvent,
26107 &_swigt__p_wxPyFontEnumerator,
26108 &_swigt__p_wxPyImageHandler,
26109 &_swigt__p_wxPySizer,
26110 &_swigt__p_wxPyValidator,
26111 &_swigt__p_wxQueryNewPaletteEvent,
26112 &_swigt__p_wxRect,
26113 &_swigt__p_wxRegion,
26114 &_swigt__p_wxRegionIterator,
26115 &_swigt__p_wxRendererNative,
26116 &_swigt__p_wxRendererVersion,
26117 &_swigt__p_wxScreenDC,
26118 &_swigt__p_wxScrollEvent,
26119 &_swigt__p_wxScrollWinEvent,
26120 &_swigt__p_wxSetCursorEvent,
26121 &_swigt__p_wxShowEvent,
26122 &_swigt__p_wxSize,
26123 &_swigt__p_wxSizeEvent,
26124 &_swigt__p_wxSizer,
26125 &_swigt__p_wxSizerItem,
26126 &_swigt__p_wxSplitterRenderParams,
26127 &_swigt__p_wxStaticBoxSizer,
26128 &_swigt__p_wxStdDialogButtonSizer,
26129 &_swigt__p_wxStockGDI,
26130 &_swigt__p_wxString,
26131 &_swigt__p_wxSysColourChangedEvent,
26132 &_swigt__p_wxTIFFHandler,
26133 &_swigt__p_wxUpdateUIEvent,
26134 &_swigt__p_wxValidator,
26135 &_swigt__p_wxWindow,
26136 &_swigt__p_wxWindowCreateEvent,
26137 &_swigt__p_wxWindowDC,
26138 &_swigt__p_wxWindowDestroyEvent,
26139 &_swigt__p_wxXPMHandler,
26140 };
26141
26142 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26143 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26144 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26145 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26146 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26147 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26148 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26149 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26150 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26151 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26152 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}};
26153 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26154 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26155 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26156 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26157 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26158 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}};
26159 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26160 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26161 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26162 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26163 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26164 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26165 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26166 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}};
26167 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}};
26168 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26169 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26170 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26171 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26172 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26173 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26174 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26175 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26176 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}};
26177 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26178 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26179 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26180 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26181 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26182 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26183 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26184 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26185 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26186 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26187 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26188 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26189 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26190 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26191 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26192 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26193 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26194 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26195 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26196 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26197 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26198 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26199 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26200 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26201 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26202 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26203 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26204 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26205 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26206 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26207 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26208 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26209 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26210 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26211 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26212 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26213 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26214 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26215 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26216 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26217 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26218 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26219 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26220 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26221 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26222 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26223 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26224 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26225 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26226 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26227 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26228 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26229 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26230 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26231 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26232 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26233 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26234 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26235 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26236 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26237 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26238 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26239 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26240 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26241 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26242 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26243 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26244 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26245 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26246 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26247 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26248 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26249 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26250 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26251 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26252 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26253 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26254 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26255 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26256 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_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_wxGIFHandler, _p_wxGIFHandlerTo_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_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}};
26257 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26258 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26259 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26260 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26261 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26262 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26263 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26264 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26265 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26266 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26267 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26268 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26269 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26270 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26271 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26272 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26273 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26274 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26275 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26276 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26277 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}};
26278 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26279
26280 static swig_cast_info *swig_cast_initial[] = {
26281 _swigc__p_char,
26282 _swigc__p_double,
26283 _swigc__p_form_ops_t,
26284 _swigc__p_int,
26285 _swigc__p_unsigned_char,
26286 _swigc__p_unsigned_int,
26287 _swigc__p_unsigned_long,
26288 _swigc__p_wxANIHandler,
26289 _swigc__p_wxAcceleratorTable,
26290 _swigc__p_wxActivateEvent,
26291 _swigc__p_wxBMPHandler,
26292 _swigc__p_wxBitmap,
26293 _swigc__p_wxBoxSizer,
26294 _swigc__p_wxBrush,
26295 _swigc__p_wxBrushList,
26296 _swigc__p_wxBufferedDC,
26297 _swigc__p_wxBufferedPaintDC,
26298 _swigc__p_wxCURHandler,
26299 _swigc__p_wxChildFocusEvent,
26300 _swigc__p_wxClientDC,
26301 _swigc__p_wxCloseEvent,
26302 _swigc__p_wxColour,
26303 _swigc__p_wxColourDatabase,
26304 _swigc__p_wxCommandEvent,
26305 _swigc__p_wxContextMenuEvent,
26306 _swigc__p_wxControl,
26307 _swigc__p_wxControlWithItems,
26308 _swigc__p_wxCursor,
26309 _swigc__p_wxDC,
26310 _swigc__p_wxDash,
26311 _swigc__p_wxDateEvent,
26312 _swigc__p_wxDisplayChangedEvent,
26313 _swigc__p_wxDropFilesEvent,
26314 _swigc__p_wxDuplexMode,
26315 _swigc__p_wxEffects,
26316 _swigc__p_wxEncodingConverter,
26317 _swigc__p_wxEraseEvent,
26318 _swigc__p_wxEvent,
26319 _swigc__p_wxEvtHandler,
26320 _swigc__p_wxFSFile,
26321 _swigc__p_wxFileSystem,
26322 _swigc__p_wxFlexGridSizer,
26323 _swigc__p_wxFocusEvent,
26324 _swigc__p_wxFont,
26325 _swigc__p_wxFontList,
26326 _swigc__p_wxFontMapper,
26327 _swigc__p_wxGBSizerItem,
26328 _swigc__p_wxGDIObjListBase,
26329 _swigc__p_wxGDIObject,
26330 _swigc__p_wxGIFHandler,
26331 _swigc__p_wxGridBagSizer,
26332 _swigc__p_wxGridSizer,
26333 _swigc__p_wxICOHandler,
26334 _swigc__p_wxIcon,
26335 _swigc__p_wxIconBundle,
26336 _swigc__p_wxIconLocation,
26337 _swigc__p_wxIconizeEvent,
26338 _swigc__p_wxIdleEvent,
26339 _swigc__p_wxImage,
26340 _swigc__p_wxImageHandler,
26341 _swigc__p_wxImageList,
26342 _swigc__p_wxIndividualLayoutConstraint,
26343 _swigc__p_wxInitDialogEvent,
26344 _swigc__p_wxJPEGHandler,
26345 _swigc__p_wxKeyEvent,
26346 _swigc__p_wxLanguageInfo,
26347 _swigc__p_wxLayoutConstraints,
26348 _swigc__p_wxLocale,
26349 _swigc__p_wxMask,
26350 _swigc__p_wxMaximizeEvent,
26351 _swigc__p_wxMemoryDC,
26352 _swigc__p_wxMenu,
26353 _swigc__p_wxMenuBar,
26354 _swigc__p_wxMenuEvent,
26355 _swigc__p_wxMenuItem,
26356 _swigc__p_wxMetaFile,
26357 _swigc__p_wxMetaFileDC,
26358 _swigc__p_wxMirrorDC,
26359 _swigc__p_wxMouseCaptureChangedEvent,
26360 _swigc__p_wxMouseEvent,
26361 _swigc__p_wxMoveEvent,
26362 _swigc__p_wxNativeEncodingInfo,
26363 _swigc__p_wxNativeFontInfo,
26364 _swigc__p_wxNavigationKeyEvent,
26365 _swigc__p_wxNcPaintEvent,
26366 _swigc__p_wxNotifyEvent,
26367 _swigc__p_wxObject,
26368 _swigc__p_wxPCXHandler,
26369 _swigc__p_wxPNGHandler,
26370 _swigc__p_wxPNMHandler,
26371 _swigc__p_wxPaintDC,
26372 _swigc__p_wxPaintEvent,
26373 _swigc__p_wxPalette,
26374 _swigc__p_wxPaletteChangedEvent,
26375 _swigc__p_wxPaperSize,
26376 _swigc__p_wxPen,
26377 _swigc__p_wxPenList,
26378 _swigc__p_wxPoint,
26379 _swigc__p_wxPostScriptDC,
26380 _swigc__p_wxPrintData,
26381 _swigc__p_wxPrinterDC,
26382 _swigc__p_wxPyApp,
26383 _swigc__p_wxPyCommandEvent,
26384 _swigc__p_wxPyEvent,
26385 _swigc__p_wxPyFontEnumerator,
26386 _swigc__p_wxPyImageHandler,
26387 _swigc__p_wxPySizer,
26388 _swigc__p_wxPyValidator,
26389 _swigc__p_wxQueryNewPaletteEvent,
26390 _swigc__p_wxRect,
26391 _swigc__p_wxRegion,
26392 _swigc__p_wxRegionIterator,
26393 _swigc__p_wxRendererNative,
26394 _swigc__p_wxRendererVersion,
26395 _swigc__p_wxScreenDC,
26396 _swigc__p_wxScrollEvent,
26397 _swigc__p_wxScrollWinEvent,
26398 _swigc__p_wxSetCursorEvent,
26399 _swigc__p_wxShowEvent,
26400 _swigc__p_wxSize,
26401 _swigc__p_wxSizeEvent,
26402 _swigc__p_wxSizer,
26403 _swigc__p_wxSizerItem,
26404 _swigc__p_wxSplitterRenderParams,
26405 _swigc__p_wxStaticBoxSizer,
26406 _swigc__p_wxStdDialogButtonSizer,
26407 _swigc__p_wxStockGDI,
26408 _swigc__p_wxString,
26409 _swigc__p_wxSysColourChangedEvent,
26410 _swigc__p_wxTIFFHandler,
26411 _swigc__p_wxUpdateUIEvent,
26412 _swigc__p_wxValidator,
26413 _swigc__p_wxWindow,
26414 _swigc__p_wxWindowCreateEvent,
26415 _swigc__p_wxWindowDC,
26416 _swigc__p_wxWindowDestroyEvent,
26417 _swigc__p_wxXPMHandler,
26418 };
26419
26420
26421 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26422
26423 static swig_const_info swig_const_table[] = {
26424 {0, 0, 0, 0.0, 0, 0}};
26425
26426 #ifdef __cplusplus
26427 }
26428 #endif
26429 /* -----------------------------------------------------------------------------
26430 * Type initialization:
26431 * This problem is tough by the requirement that no dynamic
26432 * memory is used. Also, since swig_type_info structures store pointers to
26433 * swig_cast_info structures and swig_cast_info structures store pointers back
26434 * to swig_type_info structures, we need some lookup code at initialization.
26435 * The idea is that swig generates all the structures that are needed.
26436 * The runtime then collects these partially filled structures.
26437 * The SWIG_InitializeModule function takes these initial arrays out of
26438 * swig_module, and does all the lookup, filling in the swig_module.types
26439 * array with the correct data and linking the correct swig_cast_info
26440 * structures together.
26441 *
26442 * The generated swig_type_info structures are assigned staticly to an initial
26443 * array. We just loop though that array, and handle each type individually.
26444 * First we lookup if this type has been already loaded, and if so, use the
26445 * loaded structure instead of the generated one. Then we have to fill in the
26446 * cast linked list. The cast data is initially stored in something like a
26447 * two-dimensional array. Each row corresponds to a type (there are the same
26448 * number of rows as there are in the swig_type_initial array). Each entry in
26449 * a column is one of the swig_cast_info structures for that type.
26450 * The cast_initial array is actually an array of arrays, because each row has
26451 * a variable number of columns. So to actually build the cast linked list,
26452 * we find the array of casts associated with the type, and loop through it
26453 * adding the casts to the list. The one last trick we need to do is making
26454 * sure the type pointer in the swig_cast_info struct is correct.
26455 *
26456 * First off, we lookup the cast->type name to see if it is already loaded.
26457 * There are three cases to handle:
26458 * 1) If the cast->type has already been loaded AND the type we are adding
26459 * casting info to has not been loaded (it is in this module), THEN we
26460 * replace the cast->type pointer with the type pointer that has already
26461 * been loaded.
26462 * 2) If BOTH types (the one we are adding casting info to, and the
26463 * cast->type) are loaded, THEN the cast info has already been loaded by
26464 * the previous module so we just ignore it.
26465 * 3) Finally, if cast->type has not already been loaded, then we add that
26466 * swig_cast_info to the linked list (because the cast->type) pointer will
26467 * be correct.
26468 * ----------------------------------------------------------------------------- */
26469
26470 #ifdef __cplusplus
26471 extern "C" {
26472 #if 0
26473 } /* c-mode */
26474 #endif
26475 #endif
26476
26477 #if 0
26478 #define SWIGRUNTIME_DEBUG
26479 #endif
26480
26481 SWIGRUNTIME void
26482 SWIG_InitializeModule(void *clientdata) {
26483 size_t i;
26484 swig_module_info *module_head;
26485 static int init_run = 0;
26486
26487 clientdata = clientdata;
26488
26489 if (init_run) return;
26490 init_run = 1;
26491
26492 /* Initialize the swig_module */
26493 swig_module.type_initial = swig_type_initial;
26494 swig_module.cast_initial = swig_cast_initial;
26495
26496 /* Try and load any already created modules */
26497 module_head = SWIG_GetModule(clientdata);
26498 if (module_head) {
26499 swig_module.next = module_head->next;
26500 module_head->next = &swig_module;
26501 } else {
26502 /* This is the first module loaded */
26503 swig_module.next = &swig_module;
26504 SWIG_SetModule(clientdata, &swig_module);
26505 }
26506
26507 /* Now work on filling in swig_module.types */
26508 #ifdef SWIGRUNTIME_DEBUG
26509 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26510 #endif
26511 for (i = 0; i < swig_module.size; ++i) {
26512 swig_type_info *type = 0;
26513 swig_type_info *ret;
26514 swig_cast_info *cast;
26515
26516 #ifdef SWIGRUNTIME_DEBUG
26517 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26518 #endif
26519
26520 /* if there is another module already loaded */
26521 if (swig_module.next != &swig_module) {
26522 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26523 }
26524 if (type) {
26525 /* Overwrite clientdata field */
26526 #ifdef SWIGRUNTIME_DEBUG
26527 printf("SWIG_InitializeModule: found type %s\n", type->name);
26528 #endif
26529 if (swig_module.type_initial[i]->clientdata) {
26530 type->clientdata = swig_module.type_initial[i]->clientdata;
26531 #ifdef SWIGRUNTIME_DEBUG
26532 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26533 #endif
26534 }
26535 } else {
26536 type = swig_module.type_initial[i];
26537 }
26538
26539 /* Insert casting types */
26540 cast = swig_module.cast_initial[i];
26541 while (cast->type) {
26542 /* Don't need to add information already in the list */
26543 ret = 0;
26544 #ifdef SWIGRUNTIME_DEBUG
26545 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26546 #endif
26547 if (swig_module.next != &swig_module) {
26548 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26549 #ifdef SWIGRUNTIME_DEBUG
26550 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26551 #endif
26552 }
26553 if (ret) {
26554 if (type == swig_module.type_initial[i]) {
26555 #ifdef SWIGRUNTIME_DEBUG
26556 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26557 #endif
26558 cast->type = ret;
26559 ret = 0;
26560 } else {
26561 /* Check for casting already in the list */
26562 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26563 #ifdef SWIGRUNTIME_DEBUG
26564 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26565 #endif
26566 if (!ocast) ret = 0;
26567 }
26568 }
26569
26570 if (!ret) {
26571 #ifdef SWIGRUNTIME_DEBUG
26572 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26573 #endif
26574 if (type->cast) {
26575 type->cast->prev = cast;
26576 cast->next = type->cast;
26577 }
26578 type->cast = cast;
26579 }
26580 cast++;
26581 }
26582 /* Set entry in modules->types array equal to the type */
26583 swig_module.types[i] = type;
26584 }
26585 swig_module.types[i] = 0;
26586
26587 #ifdef SWIGRUNTIME_DEBUG
26588 printf("**** SWIG_InitializeModule: Cast List ******\n");
26589 for (i = 0; i < swig_module.size; ++i) {
26590 int j = 0;
26591 swig_cast_info *cast = swig_module.cast_initial[i];
26592 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26593 while (cast->type) {
26594 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26595 cast++;
26596 ++j;
26597 }
26598 printf("---- Total casts: %d\n",j);
26599 }
26600 printf("**** SWIG_InitializeModule: Cast List ******\n");
26601 #endif
26602 }
26603
26604 /* This function will propagate the clientdata field of type to
26605 * any new swig_type_info structures that have been added into the list
26606 * of equivalent types. It is like calling
26607 * SWIG_TypeClientData(type, clientdata) a second time.
26608 */
26609 SWIGRUNTIME void
26610 SWIG_PropagateClientData(void) {
26611 size_t i;
26612 swig_cast_info *equiv;
26613 static int init_run = 0;
26614
26615 if (init_run) return;
26616 init_run = 1;
26617
26618 for (i = 0; i < swig_module.size; i++) {
26619 if (swig_module.types[i]->clientdata) {
26620 equiv = swig_module.types[i]->cast;
26621 while (equiv) {
26622 if (!equiv->converter) {
26623 if (equiv->type && !equiv->type->clientdata)
26624 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26625 }
26626 equiv = equiv->next;
26627 }
26628 }
26629 }
26630 }
26631
26632 #ifdef __cplusplus
26633 #if 0
26634 {
26635 /* c-mode */
26636 #endif
26637 }
26638 #endif
26639
26640
26641
26642 #ifdef __cplusplus
26643 extern "C" {
26644 #endif
26645
26646 /* Python-specific SWIG API */
26647 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26648 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26649 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26650
26651 /* -----------------------------------------------------------------------------
26652 * global variable support code.
26653 * ----------------------------------------------------------------------------- */
26654
26655 typedef struct swig_globalvar {
26656 char *name; /* Name of global variable */
26657 PyObject *(*get_attr)(void); /* Return the current value */
26658 int (*set_attr)(PyObject *); /* Set the value */
26659 struct swig_globalvar *next;
26660 } swig_globalvar;
26661
26662 typedef struct swig_varlinkobject {
26663 PyObject_HEAD
26664 swig_globalvar *vars;
26665 } swig_varlinkobject;
26666
26667 SWIGINTERN PyObject *
26668 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26669 return PyString_FromString("<Swig global variables>");
26670 }
26671
26672 SWIGINTERN PyObject *
26673 swig_varlink_str(swig_varlinkobject *v) {
26674 PyObject *str = PyString_FromString("(");
26675 swig_globalvar *var;
26676 for (var = v->vars; var; var=var->next) {
26677 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26678 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26679 }
26680 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26681 return str;
26682 }
26683
26684 SWIGINTERN int
26685 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26686 PyObject *str = swig_varlink_str(v);
26687 fprintf(fp,"Swig global variables ");
26688 fprintf(fp,"%s\n", PyString_AsString(str));
26689 Py_DECREF(str);
26690 return 0;
26691 }
26692
26693 SWIGINTERN void
26694 swig_varlink_dealloc(swig_varlinkobject *v) {
26695 swig_globalvar *var = v->vars;
26696 while (var) {
26697 swig_globalvar *n = var->next;
26698 free(var->name);
26699 free(var);
26700 var = n;
26701 }
26702 }
26703
26704 SWIGINTERN PyObject *
26705 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26706 PyObject *res = NULL;
26707 swig_globalvar *var = v->vars;
26708 while (var) {
26709 if (strcmp(var->name,n) == 0) {
26710 res = (*var->get_attr)();
26711 break;
26712 }
26713 var = var->next;
26714 }
26715 if (res == NULL && !PyErr_Occurred()) {
26716 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26717 }
26718 return res;
26719 }
26720
26721 SWIGINTERN int
26722 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26723 int res = 1;
26724 swig_globalvar *var = v->vars;
26725 while (var) {
26726 if (strcmp(var->name,n) == 0) {
26727 res = (*var->set_attr)(p);
26728 break;
26729 }
26730 var = var->next;
26731 }
26732 if (res == 1 && !PyErr_Occurred()) {
26733 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26734 }
26735 return res;
26736 }
26737
26738 SWIGINTERN PyTypeObject*
26739 swig_varlink_type(void) {
26740 static char varlink__doc__[] = "Swig var link object";
26741 static PyTypeObject varlink_type;
26742 static int type_init = 0;
26743 if (!type_init) {
26744 const PyTypeObject tmp
26745 = {
26746 PyObject_HEAD_INIT(NULL)
26747 0, /* Number of items in variable part (ob_size) */
26748 (char *)"swigvarlink", /* Type name (tp_name) */
26749 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26750 0, /* Itemsize (tp_itemsize) */
26751 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26752 (printfunc) swig_varlink_print, /* Print (tp_print) */
26753 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26754 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26755 0, /* tp_compare */
26756 (reprfunc) swig_varlink_repr, /* tp_repr */
26757 0, /* tp_as_number */
26758 0, /* tp_as_sequence */
26759 0, /* tp_as_mapping */
26760 0, /* tp_hash */
26761 0, /* tp_call */
26762 (reprfunc)swig_varlink_str, /* tp_str */
26763 0, /* tp_getattro */
26764 0, /* tp_setattro */
26765 0, /* tp_as_buffer */
26766 0, /* tp_flags */
26767 varlink__doc__, /* tp_doc */
26768 0, /* tp_traverse */
26769 0, /* tp_clear */
26770 0, /* tp_richcompare */
26771 0, /* tp_weaklistoffset */
26772 #if PY_VERSION_HEX >= 0x02020000
26773 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26774 #endif
26775 #if PY_VERSION_HEX >= 0x02030000
26776 0, /* tp_del */
26777 #endif
26778 #ifdef COUNT_ALLOCS
26779 0,0,0,0 /* tp_alloc -> tp_next */
26780 #endif
26781 };
26782 varlink_type = tmp;
26783 varlink_type.ob_type = &PyType_Type;
26784 type_init = 1;
26785 }
26786 return &varlink_type;
26787 }
26788
26789 /* Create a variable linking object for use later */
26790 SWIGINTERN PyObject *
26791 SWIG_Python_newvarlink(void) {
26792 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26793 if (result) {
26794 result->vars = 0;
26795 }
26796 return ((PyObject*) result);
26797 }
26798
26799 SWIGINTERN void
26800 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26801 swig_varlinkobject *v = (swig_varlinkobject *) p;
26802 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26803 if (gv) {
26804 size_t size = strlen(name)+1;
26805 gv->name = (char *)malloc(size);
26806 if (gv->name) {
26807 strncpy(gv->name,name,size);
26808 gv->get_attr = get_attr;
26809 gv->set_attr = set_attr;
26810 gv->next = v->vars;
26811 }
26812 }
26813 v->vars = gv;
26814 }
26815
26816 SWIGINTERN PyObject *
26817 SWIG_globals() {
26818 static PyObject *_SWIG_globals = 0;
26819 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26820 return _SWIG_globals;
26821 }
26822
26823 /* -----------------------------------------------------------------------------
26824 * constants/methods manipulation
26825 * ----------------------------------------------------------------------------- */
26826
26827 /* Install Constants */
26828 SWIGINTERN void
26829 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26830 PyObject *obj = 0;
26831 size_t i;
26832 for (i = 0; constants[i].type; ++i) {
26833 switch(constants[i].type) {
26834 case SWIG_PY_POINTER:
26835 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26836 break;
26837 case SWIG_PY_BINARY:
26838 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26839 break;
26840 default:
26841 obj = 0;
26842 break;
26843 }
26844 if (obj) {
26845 PyDict_SetItemString(d, constants[i].name, obj);
26846 Py_DECREF(obj);
26847 }
26848 }
26849 }
26850
26851 /* -----------------------------------------------------------------------------*/
26852 /* Fix SwigMethods to carry the callback ptrs when needed */
26853 /* -----------------------------------------------------------------------------*/
26854
26855 SWIGINTERN void
26856 SWIG_Python_FixMethods(PyMethodDef *methods,
26857 swig_const_info *const_table,
26858 swig_type_info **types,
26859 swig_type_info **types_initial) {
26860 size_t i;
26861 for (i = 0; methods[i].ml_name; ++i) {
26862 char *c = methods[i].ml_doc;
26863 if (c && (c = strstr(c, "swig_ptr: "))) {
26864 int j;
26865 swig_const_info *ci = 0;
26866 char *name = c + 10;
26867 for (j = 0; const_table[j].type; ++j) {
26868 if (strncmp(const_table[j].name, name,
26869 strlen(const_table[j].name)) == 0) {
26870 ci = &(const_table[j]);
26871 break;
26872 }
26873 }
26874 if (ci) {
26875 size_t shift = (ci->ptype) - types;
26876 swig_type_info *ty = types_initial[shift];
26877 size_t ldoc = (c - methods[i].ml_doc);
26878 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26879 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26880 if (ndoc) {
26881 char *buff = ndoc;
26882 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26883 if (ptr) {
26884 strncpy(buff, methods[i].ml_doc, ldoc);
26885 buff += ldoc;
26886 strncpy(buff, "swig_ptr: ", 10);
26887 buff += 10;
26888 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26889 methods[i].ml_doc = ndoc;
26890 }
26891 }
26892 }
26893 }
26894 }
26895 }
26896
26897 #ifdef __cplusplus
26898 }
26899 #endif
26900
26901 /* -----------------------------------------------------------------------------*
26902 * Partial Init method
26903 * -----------------------------------------------------------------------------*/
26904
26905 #ifdef __cplusplus
26906 extern "C"
26907 #endif
26908 SWIGEXPORT void SWIG_init(void) {
26909 PyObject *m, *d;
26910
26911 /* Fix SwigMethods to carry the callback ptrs when needed */
26912 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26913
26914 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26915 d = PyModule_GetDict(m);
26916
26917 SWIG_InitializeModule(0);
26918 SWIG_InstallConstants(d,swig_const_table);
26919
26920
26921 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26922 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26923 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26924 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26925 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26926 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26927 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26928 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26929 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26930 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26931 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26932 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26933 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26934 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26935 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26936 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26937 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26938 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26939 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26940 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26941 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26942 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26943 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26944 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26945 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26946 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26947 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26948 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26949 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26950 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26951 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26952 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26953 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26954 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26955 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26956 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26957 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26958 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26959 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26960 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26961 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26962 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26963 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26964 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26965 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26966 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26967 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26968 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26969 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
26970 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
26971 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
26972 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
26973 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
26974 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
26975 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
26976 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
26977 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
26978 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
26979 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
26980 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
26981 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
26982 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
26983 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
26984 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
26985 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
26986 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
26987 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
26988 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
26989 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
26990 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
26991 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
26992 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
26993 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
26994 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
26995 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
26996 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
26997 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
26998 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
26999 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27000 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27001 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27002 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27003 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27004 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27005 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27006 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27007 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27008 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27009 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27010 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27011 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27012 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27013 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27014 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27015 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27016 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27017 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27018 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27019 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27020 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27021 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27022 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27023 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27024 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27025 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27026 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27027 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27028 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27029 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27030 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27031 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27032 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27033 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27034 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27035 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27036 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27037 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27038 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27039 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27040 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27041 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27042 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27043 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27044 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27045 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27046 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27047 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27048
27049 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27050
27051 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27052 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27053 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27054 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27055 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27056 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27057 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27058 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27059 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27060 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27061 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27062 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27063 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27064 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27065 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27066 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27067 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27068 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27069 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27070 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27071 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27072 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27073 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27074 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27075 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27076 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27077 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27078 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27079 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27080 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27081 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27082 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27083 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27084 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27085 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27086 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27087 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27088 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27089 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27090 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27091 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27092 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27093 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27094 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27095 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27096 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27097 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27098 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27099 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27100 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27101 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27102 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27103 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27104 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27105 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27106 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27107 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27108 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27109 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27110 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27111 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27112 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27113 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27114 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27115 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27116 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27117 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27118 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27119 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27120 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27121 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27122 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27123 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27124 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27125 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27126 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27127 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27128 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27129 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27130 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27131 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27132 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27133 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27134 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27135 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27136 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27137 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27138 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27139 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27140 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27141 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27142 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27143 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27144 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27145 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27146 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27147 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27148 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27149 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27150 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27151 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27152 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27153 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27154 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27155 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27156 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27157 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27158 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27159 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27160 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27161 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27162 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27163 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27164 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27165 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27166 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27167 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27168 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27169 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27170 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27171 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27172 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27173 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27174 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27175 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27176 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27177 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27178 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27179 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27180 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27181 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27182 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27183 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27184 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27185 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27186 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27187 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27188 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27189 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27190 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27191 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27192 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27193 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27194 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27195 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27196 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27197 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27198 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27199 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27200 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27201 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27202 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27203 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27204 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27205 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27206 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27207 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27208 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27209 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27210 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27211 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27212 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27213 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27214 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27215 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27216 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27217 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27218 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27219 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27220 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27221 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27222 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27223 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27224 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27225 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27226 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27227 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27228 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27229 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27230 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27231 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27232 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27233 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27234 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27235 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27236 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27237 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27238 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27239 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27240 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27241 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27242 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27257 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27258 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27259 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27260 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27261 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27262 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27263 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27278 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27279 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27280 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27281 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27282 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27283 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27284 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27285 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27286 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27287 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27288 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27289 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27290 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27291 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27292 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27293 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27294 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27295 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27296 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27297 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27298 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27299 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27300 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27301 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27302 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27303 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27304 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27305 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27306 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27307 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27308 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27309 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27310 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27311 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27312 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27313 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27314 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27315 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27316 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27317 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27318 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27319 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27320 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27321 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27322 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27323 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27324 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27325 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27326 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27327 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27328 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27329 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27330 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27331 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27332 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27333 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27334 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27335 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27336 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27337 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27338 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27339 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27340 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27341 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27342 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27343 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27344 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27345 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27346 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27347 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27348 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27349 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27350 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27351 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27352 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27353 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27354 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27355 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27356 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27357 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27358 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27359 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27360 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27361 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27362 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27363 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27364 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27365
27366 // Work around a chicken/egg problem in drawlist.cpp
27367 wxPyDrawList_SetAPIPtr();
27368
27369 }
27370