]> 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_wxClipboardTextEvent swig_types[20]
2483 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2484 #define SWIGTYPE_p_wxColour swig_types[22]
2485 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2486 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2487 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2488 #define SWIGTYPE_p_wxControl swig_types[26]
2489 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2490 #define SWIGTYPE_p_wxCursor swig_types[28]
2491 #define SWIGTYPE_p_wxDC swig_types[29]
2492 #define SWIGTYPE_p_wxDash swig_types[30]
2493 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2496 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2497 #define SWIGTYPE_p_wxEffects swig_types[35]
2498 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2499 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvent swig_types[38]
2501 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2502 #define SWIGTYPE_p_wxFSFile swig_types[40]
2503 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2504 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506 #define SWIGTYPE_p_wxFont swig_types[44]
2507 #define SWIGTYPE_p_wxFontList swig_types[45]
2508 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2509 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2511 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2512 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2513 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2514 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2515 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2516 #define SWIGTYPE_p_wxIcon swig_types[54]
2517 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2518 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2519 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2520 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2521 #define SWIGTYPE_p_wxImage swig_types[59]
2522 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2523 #define SWIGTYPE_p_wxImageList swig_types[61]
2524 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2525 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2526 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2527 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2528 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2529 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2530 #define SWIGTYPE_p_wxLocale swig_types[68]
2531 #define SWIGTYPE_p_wxMask swig_types[69]
2532 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2533 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2534 #define SWIGTYPE_p_wxMenu swig_types[72]
2535 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2536 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2537 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2539 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2540 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2541 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2543 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2544 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2546 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2548 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2549 #define SWIGTYPE_p_wxObject swig_types[87]
2550 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2553 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2554 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPalette swig_types[93]
2556 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2557 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2558 #define SWIGTYPE_p_wxPen swig_types[96]
2559 #define SWIGTYPE_p_wxPenList swig_types[97]
2560 #define SWIGTYPE_p_wxPoint swig_types[98]
2561 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2562 #define SWIGTYPE_p_wxPrintData swig_types[100]
2563 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2564 #define SWIGTYPE_p_wxPyApp swig_types[102]
2565 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2567 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2568 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2569 #define SWIGTYPE_p_wxPySizer swig_types[107]
2570 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2571 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2572 #define SWIGTYPE_p_wxRect swig_types[110]
2573 #define SWIGTYPE_p_wxRegion swig_types[111]
2574 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2575 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2576 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2577 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2578 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2579 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2581 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSize swig_types[120]
2583 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2584 #define SWIGTYPE_p_wxSizer swig_types[122]
2585 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2586 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2587 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2589 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2590 #define SWIGTYPE_p_wxString swig_types[128]
2591 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2592 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2593 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2594 #define SWIGTYPE_p_wxValidator swig_types[132]
2595 #define SWIGTYPE_p_wxWindow swig_types[133]
2596 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2598 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2599 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2600 static swig_type_info *swig_types[139];
2601 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2602 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2604
2605 /* -------- TYPES TABLE (END) -------- */
2606
2607 #if (PY_VERSION_HEX <= 0x02000000)
2608 # if !defined(SWIG_PYTHON_CLASSIC)
2609 # error "This python version requires to use swig with the '-classic' option"
2610 # endif
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodern' option"
2614 #endif
2615 #if (PY_VERSION_HEX <= 0x02020000)
2616 # error "This python version requires to use swig with the '-nomodernargs' option"
2617 #endif
2618 #ifndef METH_O
2619 # error "This python version requires to use swig with the '-nofastunpack' option"
2620 #endif
2621
2622 /*-----------------------------------------------
2623 @(target):= _gdi_.so
2624 ------------------------------------------------*/
2625 #define SWIG_init init_gdi_
2626
2627 #define SWIG_name "_gdi_"
2628
2629 #define SWIGVERSION 0x010329
2630
2631
2632 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2634
2635
2636 #include <stdexcept>
2637
2638
2639 namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
2647 }
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
2652 }
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
2682 }
2683
2684
2685 namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
2694 }
2695 };
2696 }
2697
2698
2699 #include "wx/wxPython/wxPython.h"
2700 #include "wx/wxPython/pyclasses.h"
2701
2702
2703 static const wxString wxPyEmptyString(wxEmptyString);
2704
2705 #define SWIG_From_long PyInt_FromLong
2706
2707
2708 SWIGINTERNINLINE PyObject *
2709 SWIG_From_int (int value)
2710 {
2711 return SWIG_From_long (value);
2712 }
2713
2714
2715 #include <limits.h>
2716 #ifndef LLONG_MIN
2717 # define LLONG_MIN LONG_LONG_MIN
2718 #endif
2719 #ifndef LLONG_MAX
2720 # define LLONG_MAX LONG_LONG_MAX
2721 #endif
2722 #ifndef ULLONG_MAX
2723 # define ULLONG_MAX ULONG_LONG_MAX
2724 #endif
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_long (PyObject* obj, long* val)
2729 {
2730 if (PyNumber_Check(obj)) {
2731 if (val) *val = PyInt_AsLong(obj);
2732 return SWIG_OK;
2733 }
2734 return SWIG_TypeError;
2735 }
2736
2737
2738 SWIGINTERN int
2739 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2740 {
2741 long v = 0;
2742 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2743 return SWIG_TypeError;
2744 }
2745 else if (val)
2746 *val = (unsigned long)v;
2747 return SWIG_OK;
2748 }
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2753 {
2754 unsigned long v;
2755 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2756 if (SWIG_IsOK(res)) {
2757 if ((v > UCHAR_MAX)) {
2758 return SWIG_OverflowError;
2759 } else {
2760 if (val) *val = static_cast< unsigned char >(v);
2761 }
2762 }
2763 return res;
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject*
2768 SWIG_From_unsigned_SS_long (unsigned long value)
2769 {
2770 return (value > LONG_MAX) ?
2771 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2772 }
2773
2774
2775 SWIGINTERNINLINE PyObject *
2776 SWIG_From_unsigned_SS_char (unsigned char value)
2777 {
2778 return SWIG_From_unsigned_SS_long (value);
2779 }
2780
2781 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2782 wxColour temp, *obj = &temp;
2783 if ( other == Py_None ) return false;
2784 if ( ! wxColour_helper(other, &obj) ) {
2785 PyErr_Clear();
2786 return false;
2787 }
2788 return self->operator==(*obj);
2789 }
2790 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2791 wxColour temp, *obj = &temp;
2792 if ( other == Py_None ) return true;
2793 if ( ! wxColour_helper(other, &obj)) {
2794 PyErr_Clear();
2795 return true;
2796 }
2797 return self->operator!=(*obj);
2798 }
2799 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2800 PyObject* rv = PyTuple_New(3);
2801 int red = -1;
2802 int green = -1;
2803 int blue = -1;
2804 if (self->Ok()) {
2805 red = self->Red();
2806 green = self->Green();
2807 blue = self->Blue();
2808 }
2809 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2810 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2811 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2812 return rv;
2813 }
2814 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2815 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2816 }
2817
2818 SWIGINTERN int
2819 SWIG_AsVal_int (PyObject * obj, int *val)
2820 {
2821 long v;
2822 int res = SWIG_AsVal_long (obj, &v);
2823 if (SWIG_IsOK(res)) {
2824 if ((v < INT_MIN || v > INT_MAX)) {
2825 return SWIG_OverflowError;
2826 } else {
2827 if (val) *val = static_cast< int >(v);
2828 }
2829 }
2830 return res;
2831 }
2832
2833 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2834 wxDash* dashes;
2835 int count = self->GetDashes(&dashes);
2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2837 PyObject* retval = PyList_New(0);
2838 for (int x=0; x<count; x++) {
2839 PyObject* pyint = PyInt_FromLong(dashes[x]);
2840 PyList_Append(retval, pyint);
2841 Py_DECREF(pyint);
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return retval;
2845 }
2846 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2848 int size = PyList_Size(pyDashes);
2849 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2850
2851 // black magic warning! The array of wxDashes needs to exist as
2852 // long as the pen does because wxPen does not copy the array. So
2853 // stick a copy in a Python string object and attach it to _self,
2854 // and then call SetDashes with a pointer to that array. Then
2855 // when the Python pen object is destroyed the array will be
2856 // cleaned up too.
2857 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2858 PyObject_SetAttrString(_self, "_dashes", strDashes);
2859
2860 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2861 delete [] dashes;
2862 Py_DECREF(strDashes);
2863 wxPyEndBlockThreads(blocked);
2864 }
2865 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2866 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2867
2868 SWIGINTERNINLINE PyObject *
2869 SWIG_From_short (short value)
2870 {
2871 return SWIG_From_long (value);
2872 }
2873
2874
2875 SWIGINTERN int
2876 SWIG_AsVal_short (PyObject * obj, short *val)
2877 {
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< short >(v);
2885 }
2886 }
2887 return res;
2888 }
2889
2890
2891 #include <wx/image.h>
2892
2893 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2894 char** cArray = NULL;
2895 int count;
2896
2897 if (!PyList_Check(listOfStrings)) {
2898 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2899 return NULL;
2900 }
2901 count = PyList_Size(listOfStrings);
2902 cArray = new char*[count];
2903
2904 for(int x=0; x<count; x++) {
2905 // TODO: Need some validation and error checking here
2906 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2907 }
2908 return cArray;
2909 }
2910
2911
2912 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2913 char** cArray = NULL;
2914 wxBitmap* bmp;
2915
2916 cArray = ConvertListOfStrings(listOfStrings);
2917 if (! cArray)
2918 return NULL;
2919 bmp = new wxBitmap(cArray);
2920 delete [] cArray;
2921 return bmp;
2922 }
2923 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2924 char* buf;
2925 int length;
2926 PyString_AsStringAndSize(bits, &buf, &length);
2927 return new wxBitmap(buf, width, height, depth);
2928 }
2929 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2930 wxSize size(self->GetWidth(), self->GetHeight());
2931 return size;
2932 }
2933 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2934 wxMask *mask = new wxMask(*self, colour);
2935 self->SetMask(mask);
2936 }
2937 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2938 self->SetWidth(size.x);
2939 self->SetHeight(size.y);
2940 }
2941 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2942 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2943 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2944 if ( !colour.Ok() )
2945 return new wxMask(bitmap, *wxBLACK);
2946 else
2947 return new wxMask(bitmap, colour);
2948 }
2949
2950 #include <wx/iconbndl.h>
2951
2952 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2953 wxIcon* icon = new wxIcon();
2954 icon->CopyFromBitmap(bmp);
2955 return icon;
2956 }
2957 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2958 char** cArray = NULL;
2959 wxIcon* icon;
2960
2961 cArray = ConvertListOfStrings(listOfStrings);
2962 if (! cArray)
2963 return NULL;
2964 icon = new wxIcon(cArray);
2965 delete [] cArray;
2966 return icon;
2967 }
2968 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2969
2970
2971
2972 return new wxIconLocation(*filename);
2973
2974 }
2975 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2976
2977
2978
2979 // do nothing
2980
2981 }
2982 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2983
2984
2985
2986 return -1;
2987
2988 }
2989 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2990 #ifdef __WXGTK__
2991 wxImage img(cursorName, type);
2992 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2993 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2994 return new wxCursor(img);
2995 #else
2996 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2997 #endif
2998 }
2999
3000
3001 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3002 (*self) ++;
3003 }
3004 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3005 return self->operator bool();
3006 }
3007
3008 #include <wx/fontutil.h>
3009 #include <wx/fontmap.h>
3010 #include <wx/fontenum.h>
3011
3012
3013 SWIGINTERN int
3014 SWIG_AsVal_bool (PyObject *obj, bool *val)
3015 {
3016 if (obj == Py_True) {
3017 if (val) *val = true;
3018 return SWIG_OK;
3019 } else if (obj == Py_False) {
3020 if (val) *val = false;
3021 return SWIG_OK;
3022 } else {
3023 long v = 0;
3024 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3025 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3026 return res;
3027 }
3028 }
3029
3030 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3031 return self->ToString();
3032 }
3033
3034 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3035 static wxNativeEncodingInfo info;
3036 if ( wxGetNativeFontEncoding(encoding, &info) )
3037 return &info;
3038 else
3039 return NULL;
3040 }
3041
3042
3043 SWIGINTERNINLINE PyObject *
3044 SWIG_From_size_t (size_t value)
3045 {
3046 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3047 }
3048
3049
3050 SWIGINTERNINLINE int
3051 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3052 {
3053 unsigned long v;
3054 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3055 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3056 return res;
3057 }
3058
3059 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3060 wxFontEncoding alt_enc;
3061 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3062 return PyInt_FromLong(alt_enc);
3063 else {
3064 Py_INCREF(Py_None);
3065 return Py_None;
3066 }
3067 }
3068 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3069 wxNativeFontInfo nfi;
3070 nfi.FromString(info);
3071 return new wxFont(nfi);
3072 }
3073 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3074 return wxFont::New(pointSize, family, flags, face, encoding);
3075 }
3076 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3077 return wxFontBase::New(pixelSize, family,
3078 style, weight, underlined,
3079 face, encoding);
3080 }
3081 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3082 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3083 }
3084 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3085 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3086
3087 class wxPyFontEnumerator : public wxFontEnumerator {
3088 public:
3089 wxPyFontEnumerator() {}
3090 ~wxPyFontEnumerator() {}
3091
3092 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3093 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3094
3095 PYPRIVATE;
3096 };
3097
3098 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3099 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3100
3101
3102 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3103 PyObject* ret;
3104 wxArrayString* arr = self->GetEncodings();
3105 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3106 if (arr)
3107 ret = wxArrayString2PyList_helper(*arr);
3108 else
3109 ret = PyList_New(0);
3110 wxPyEndBlockThreads(blocked);
3111 return ret;
3112 }
3113 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3114 PyObject* ret;
3115 wxArrayString* arr = self->GetFacenames();
3116 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3117 if (arr)
3118 ret = wxArrayString2PyList_helper(*arr);
3119 else
3120 ret = PyList_New(0);
3121 wxPyEndBlockThreads(blocked);
3122 return ret;
3123 }
3124
3125 #include <locale.h>
3126
3127 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3128 wxLocale* loc;
3129 if (language == -1)
3130 loc = new wxLocale();
3131 else
3132 loc = new wxLocale(language, flags);
3133 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3134 // for the floating point conversions and such to work right.
3135 #if PY_VERSION_HEX < 0x02040000
3136 setlocale(LC_NUMERIC, "C");
3137 #endif
3138 return loc;
3139 }
3140 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3141 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3142 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3143 // for the floating point conversions and such to work right.
3144 #if PY_VERSION_HEX < 0x02040000
3145 setlocale(LC_NUMERIC, "C");
3146 #endif
3147 return rc;
3148 }
3149 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3150 bool rc = self->Init(language, flags);
3151 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3152 // for the floating point conversions and such to work right.
3153 #if PY_VERSION_HEX < 0x02040000
3154 setlocale(LC_NUMERIC, "C");
3155 #endif
3156 return rc;
3157 }
3158
3159 #include "wx/wxPython/pydrawxxx.h"
3160
3161 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3162 wxColour col;
3163 self->GetPixel(x, y, &col);
3164 return col;
3165 }
3166 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3167 wxColour col;
3168 self->GetPixel(pt, &col);
3169 return col;
3170 }
3171
3172 SWIGINTERN int
3173 SWIG_AsVal_double (PyObject *obj, double* val)
3174 {
3175 if (PyNumber_Check(obj)) {
3176 if (val) *val = PyFloat_AsDouble(obj);
3177 return SWIG_OK;
3178 }
3179 return SWIG_TypeError;
3180 }
3181
3182 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3183 wxRect rv;
3184 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3185 return rv;
3186 }
3187 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3188 wxRect rect;
3189 self->GetClippingBox(rect);
3190 return rect;
3191 }
3192 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3193 wxArrayInt widths;
3194 self->GetPartialTextExtents(text, widths);
3195 return widths;
3196 }
3197
3198 #define SWIG_From_double PyFloat_FromDouble
3199
3200 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3201 self->SetLogicalOrigin(point.x, point.y);
3202 }
3203 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3204 self->SetDeviceOrigin(point.x, point.y);
3205 }
3206 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3207 self->CalcBoundingBox(point.x, point.y);
3208 }
3209 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3210 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3211 }
3212 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3213 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3214 }
3215 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3216 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3217 }
3218 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3219 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3220 }
3221 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3222 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3223 }
3224 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3225 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3226 }
3227
3228 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3229 *x1 = dc->MinX();
3230 *y1 = dc->MinY();
3231 *x2 = dc->MaxX();
3232 *y2 = dc->MaxY();
3233 }
3234
3235
3236 #include <wx/dcbuffer.h>
3237
3238
3239 #include <wx/dcps.h>
3240
3241
3242 #include <wx/metafile.h>
3243
3244
3245
3246 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3247 self->AddColour(name, wxColour(red, green, blue));
3248 }
3249
3250 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3251 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3252 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3253 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3254
3255
3256 #include <wx/effects.h>
3257
3258
3259 #include "wx/renderer.h"
3260
3261
3262 SWIGINTERNINLINE PyObject*
3263 SWIG_From_bool (bool value)
3264 {
3265 return PyBool_FromLong(value ? 1 : 0);
3266 }
3267
3268 #ifdef __cplusplus
3269 extern "C" {
3270 #endif
3271 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3272 PyObject *resultobj = 0;
3273 wxGDIObject *result = 0 ;
3274
3275 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3276 {
3277 if (!wxPyCheckForApp()) SWIG_fail;
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 result = (wxGDIObject *)new wxGDIObject();
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3284 return resultobj;
3285 fail:
3286 return NULL;
3287 }
3288
3289
3290 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3291 PyObject *resultobj = 0;
3292 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3293 void *argp1 = 0 ;
3294 int res1 = 0 ;
3295 PyObject *swig_obj[1] ;
3296
3297 if (!args) SWIG_fail;
3298 swig_obj[0] = args;
3299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3300 if (!SWIG_IsOK(res1)) {
3301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3302 }
3303 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3304 {
3305 PyThreadState* __tstate = wxPyBeginAllowThreads();
3306 delete arg1;
3307
3308 wxPyEndAllowThreads(__tstate);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 }
3311 resultobj = SWIG_Py_Void();
3312 return resultobj;
3313 fail:
3314 return NULL;
3315 }
3316
3317
3318 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3319 PyObject *resultobj = 0;
3320 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3321 bool result;
3322 void *argp1 = 0 ;
3323 int res1 = 0 ;
3324 PyObject *swig_obj[1] ;
3325
3326 if (!args) SWIG_fail;
3327 swig_obj[0] = args;
3328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3329 if (!SWIG_IsOK(res1)) {
3330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3331 }
3332 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3333 {
3334 PyThreadState* __tstate = wxPyBeginAllowThreads();
3335 result = (bool)(arg1)->IsNull();
3336 wxPyEndAllowThreads(__tstate);
3337 if (PyErr_Occurred()) SWIG_fail;
3338 }
3339 {
3340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3341 }
3342 return resultobj;
3343 fail:
3344 return NULL;
3345 }
3346
3347
3348 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3349 PyObject *obj;
3350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3351 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3352 return SWIG_Py_Void();
3353 }
3354
3355 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3356 return SWIG_Python_InitShadowInstance(args);
3357 }
3358
3359 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3360 PyObject *resultobj = 0;
3361 byte arg1 = (byte) 0 ;
3362 byte arg2 = (byte) 0 ;
3363 byte arg3 = (byte) 0 ;
3364 wxColour *result = 0 ;
3365 unsigned char val1 ;
3366 int ecode1 = 0 ;
3367 unsigned char val2 ;
3368 int ecode2 = 0 ;
3369 unsigned char val3 ;
3370 int ecode3 = 0 ;
3371 PyObject * obj0 = 0 ;
3372 PyObject * obj1 = 0 ;
3373 PyObject * obj2 = 0 ;
3374 char * kwnames[] = {
3375 (char *) "red",(char *) "green",(char *) "blue", NULL
3376 };
3377
3378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3379 if (obj0) {
3380 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3381 if (!SWIG_IsOK(ecode1)) {
3382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3383 }
3384 arg1 = static_cast< byte >(val1);
3385 }
3386 if (obj1) {
3387 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3388 if (!SWIG_IsOK(ecode2)) {
3389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3390 }
3391 arg2 = static_cast< byte >(val2);
3392 }
3393 if (obj2) {
3394 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3395 if (!SWIG_IsOK(ecode3)) {
3396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3397 }
3398 arg3 = static_cast< byte >(val3);
3399 }
3400 {
3401 PyThreadState* __tstate = wxPyBeginAllowThreads();
3402 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3403 wxPyEndAllowThreads(__tstate);
3404 if (PyErr_Occurred()) SWIG_fail;
3405 }
3406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3407 return resultobj;
3408 fail:
3409 return NULL;
3410 }
3411
3412
3413 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3414 PyObject *resultobj = 0;
3415 wxString *arg1 = 0 ;
3416 wxColour *result = 0 ;
3417 bool temp1 = false ;
3418 PyObject * obj0 = 0 ;
3419 char * kwnames[] = {
3420 (char *) "colorName", NULL
3421 };
3422
3423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3424 {
3425 arg1 = wxString_in_helper(obj0);
3426 if (arg1 == NULL) SWIG_fail;
3427 temp1 = true;
3428 }
3429 {
3430 if (!wxPyCheckForApp()) SWIG_fail;
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 result = (wxColour *)new wxColour((wxString const &)*arg1);
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3437 {
3438 if (temp1)
3439 delete arg1;
3440 }
3441 return resultobj;
3442 fail:
3443 {
3444 if (temp1)
3445 delete arg1;
3446 }
3447 return NULL;
3448 }
3449
3450
3451 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj = 0;
3453 unsigned long arg1 ;
3454 wxColour *result = 0 ;
3455 unsigned long val1 ;
3456 int ecode1 = 0 ;
3457 PyObject * obj0 = 0 ;
3458 char * kwnames[] = {
3459 (char *) "colRGB", NULL
3460 };
3461
3462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3463 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3464 if (!SWIG_IsOK(ecode1)) {
3465 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3466 }
3467 arg1 = static_cast< unsigned long >(val1);
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 result = (wxColour *)new wxColour(arg1);
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3475 return resultobj;
3476 fail:
3477 return NULL;
3478 }
3479
3480
3481 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3482 PyObject *resultobj = 0;
3483 wxColour *arg1 = (wxColour *) 0 ;
3484 void *argp1 = 0 ;
3485 int res1 = 0 ;
3486 PyObject *swig_obj[1] ;
3487
3488 if (!args) SWIG_fail;
3489 swig_obj[0] = args;
3490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3491 if (!SWIG_IsOK(res1)) {
3492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3493 }
3494 arg1 = reinterpret_cast< wxColour * >(argp1);
3495 {
3496 PyThreadState* __tstate = wxPyBeginAllowThreads();
3497 delete arg1;
3498
3499 wxPyEndAllowThreads(__tstate);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 }
3502 resultobj = SWIG_Py_Void();
3503 return resultobj;
3504 fail:
3505 return NULL;
3506 }
3507
3508
3509 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3510 PyObject *resultobj = 0;
3511 wxColour *arg1 = (wxColour *) 0 ;
3512 byte result;
3513 void *argp1 = 0 ;
3514 int res1 = 0 ;
3515 PyObject *swig_obj[1] ;
3516
3517 if (!args) SWIG_fail;
3518 swig_obj[0] = args;
3519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3520 if (!SWIG_IsOK(res1)) {
3521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3522 }
3523 arg1 = reinterpret_cast< wxColour * >(argp1);
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 result = (byte)(arg1)->Red();
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3531 return resultobj;
3532 fail:
3533 return NULL;
3534 }
3535
3536
3537 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3538 PyObject *resultobj = 0;
3539 wxColour *arg1 = (wxColour *) 0 ;
3540 byte result;
3541 void *argp1 = 0 ;
3542 int res1 = 0 ;
3543 PyObject *swig_obj[1] ;
3544
3545 if (!args) SWIG_fail;
3546 swig_obj[0] = args;
3547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3548 if (!SWIG_IsOK(res1)) {
3549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3550 }
3551 arg1 = reinterpret_cast< wxColour * >(argp1);
3552 {
3553 PyThreadState* __tstate = wxPyBeginAllowThreads();
3554 result = (byte)(arg1)->Green();
3555 wxPyEndAllowThreads(__tstate);
3556 if (PyErr_Occurred()) SWIG_fail;
3557 }
3558 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3559 return resultobj;
3560 fail:
3561 return NULL;
3562 }
3563
3564
3565 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3566 PyObject *resultobj = 0;
3567 wxColour *arg1 = (wxColour *) 0 ;
3568 byte result;
3569 void *argp1 = 0 ;
3570 int res1 = 0 ;
3571 PyObject *swig_obj[1] ;
3572
3573 if (!args) SWIG_fail;
3574 swig_obj[0] = args;
3575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3576 if (!SWIG_IsOK(res1)) {
3577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3578 }
3579 arg1 = reinterpret_cast< wxColour * >(argp1);
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (byte)(arg1)->Blue();
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3587 return resultobj;
3588 fail:
3589 return NULL;
3590 }
3591
3592
3593 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3594 PyObject *resultobj = 0;
3595 wxColour *arg1 = (wxColour *) 0 ;
3596 bool result;
3597 void *argp1 = 0 ;
3598 int res1 = 0 ;
3599 PyObject *swig_obj[1] ;
3600
3601 if (!args) SWIG_fail;
3602 swig_obj[0] = args;
3603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3604 if (!SWIG_IsOK(res1)) {
3605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3606 }
3607 arg1 = reinterpret_cast< wxColour * >(argp1);
3608 {
3609 PyThreadState* __tstate = wxPyBeginAllowThreads();
3610 result = (bool)(arg1)->Ok();
3611 wxPyEndAllowThreads(__tstate);
3612 if (PyErr_Occurred()) SWIG_fail;
3613 }
3614 {
3615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3616 }
3617 return resultobj;
3618 fail:
3619 return NULL;
3620 }
3621
3622
3623 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3624 PyObject *resultobj = 0;
3625 wxColour *arg1 = (wxColour *) 0 ;
3626 byte arg2 ;
3627 byte arg3 ;
3628 byte arg4 ;
3629 void *argp1 = 0 ;
3630 int res1 = 0 ;
3631 unsigned char val2 ;
3632 int ecode2 = 0 ;
3633 unsigned char val3 ;
3634 int ecode3 = 0 ;
3635 unsigned char val4 ;
3636 int ecode4 = 0 ;
3637 PyObject * obj0 = 0 ;
3638 PyObject * obj1 = 0 ;
3639 PyObject * obj2 = 0 ;
3640 PyObject * obj3 = 0 ;
3641 char * kwnames[] = {
3642 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3643 };
3644
3645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3647 if (!SWIG_IsOK(res1)) {
3648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3649 }
3650 arg1 = reinterpret_cast< wxColour * >(argp1);
3651 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3652 if (!SWIG_IsOK(ecode2)) {
3653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3654 }
3655 arg2 = static_cast< byte >(val2);
3656 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3657 if (!SWIG_IsOK(ecode3)) {
3658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3659 }
3660 arg3 = static_cast< byte >(val3);
3661 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3662 if (!SWIG_IsOK(ecode4)) {
3663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3664 }
3665 arg4 = static_cast< byte >(val4);
3666 {
3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
3668 (arg1)->Set(arg2,arg3,arg4);
3669 wxPyEndAllowThreads(__tstate);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 }
3672 resultobj = SWIG_Py_Void();
3673 return resultobj;
3674 fail:
3675 return NULL;
3676 }
3677
3678
3679 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3680 PyObject *resultobj = 0;
3681 wxColour *arg1 = (wxColour *) 0 ;
3682 unsigned long arg2 ;
3683 void *argp1 = 0 ;
3684 int res1 = 0 ;
3685 unsigned long val2 ;
3686 int ecode2 = 0 ;
3687 PyObject * obj0 = 0 ;
3688 PyObject * obj1 = 0 ;
3689 char * kwnames[] = {
3690 (char *) "self",(char *) "colRGB", NULL
3691 };
3692
3693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3695 if (!SWIG_IsOK(res1)) {
3696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3697 }
3698 arg1 = reinterpret_cast< wxColour * >(argp1);
3699 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3700 if (!SWIG_IsOK(ecode2)) {
3701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3702 }
3703 arg2 = static_cast< unsigned long >(val2);
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 (arg1)->Set(arg2);
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 resultobj = SWIG_Py_Void();
3711 return resultobj;
3712 fail:
3713 return NULL;
3714 }
3715
3716
3717 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj = 0;
3719 wxColour *arg1 = (wxColour *) 0 ;
3720 wxString *arg2 = 0 ;
3721 void *argp1 = 0 ;
3722 int res1 = 0 ;
3723 bool temp2 = false ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char * kwnames[] = {
3727 (char *) "self",(char *) "colourName", NULL
3728 };
3729
3730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3732 if (!SWIG_IsOK(res1)) {
3733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3734 }
3735 arg1 = reinterpret_cast< wxColour * >(argp1);
3736 {
3737 arg2 = wxString_in_helper(obj1);
3738 if (arg2 == NULL) SWIG_fail;
3739 temp2 = true;
3740 }
3741 {
3742 PyThreadState* __tstate = wxPyBeginAllowThreads();
3743 (arg1)->InitFromName((wxString const &)*arg2);
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 resultobj = SWIG_Py_Void();
3748 {
3749 if (temp2)
3750 delete arg2;
3751 }
3752 return resultobj;
3753 fail:
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return NULL;
3759 }
3760
3761
3762 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj = 0;
3764 wxColour *arg1 = (wxColour *) 0 ;
3765 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3766 wxString result;
3767 void *argp1 = 0 ;
3768 int res1 = 0 ;
3769 long val2 ;
3770 int ecode2 = 0 ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 char * kwnames[] = {
3774 (char *) "self",(char *) "flags", NULL
3775 };
3776
3777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3779 if (!SWIG_IsOK(res1)) {
3780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3781 }
3782 arg1 = reinterpret_cast< wxColour * >(argp1);
3783 if (obj1) {
3784 ecode2 = SWIG_AsVal_long(obj1, &val2);
3785 if (!SWIG_IsOK(ecode2)) {
3786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3787 }
3788 arg2 = static_cast< long >(val2);
3789 }
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = ((wxColour const *)arg1)->GetAsString(arg2);
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 {
3797 #if wxUSE_UNICODE
3798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3799 #else
3800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3801 #endif
3802 }
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3810 PyObject *resultobj = 0;
3811 wxColour *arg1 = (wxColour *) 0 ;
3812 long result;
3813 void *argp1 = 0 ;
3814 int res1 = 0 ;
3815 PyObject *swig_obj[1] ;
3816
3817 if (!args) SWIG_fail;
3818 swig_obj[0] = args;
3819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3820 if (!SWIG_IsOK(res1)) {
3821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3822 }
3823 arg1 = reinterpret_cast< wxColour * >(argp1);
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 result = (long)((wxColour const *)arg1)->GetPixel();
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 resultobj = SWIG_From_long(static_cast< long >(result));
3831 return resultobj;
3832 fail:
3833 return NULL;
3834 }
3835
3836
3837 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj = 0;
3839 wxColour *arg1 = (wxColour *) 0 ;
3840 PyObject *arg2 = (PyObject *) 0 ;
3841 bool result;
3842 void *argp1 = 0 ;
3843 int res1 = 0 ;
3844 PyObject * obj0 = 0 ;
3845 PyObject * obj1 = 0 ;
3846 char * kwnames[] = {
3847 (char *) "self",(char *) "other", NULL
3848 };
3849
3850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3852 if (!SWIG_IsOK(res1)) {
3853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3854 }
3855 arg1 = reinterpret_cast< wxColour * >(argp1);
3856 arg2 = obj1;
3857 {
3858 result = (bool)wxColour___eq__(arg1,arg2);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 }
3861 {
3862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3863 }
3864 return resultobj;
3865 fail:
3866 return NULL;
3867 }
3868
3869
3870 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj = 0;
3872 wxColour *arg1 = (wxColour *) 0 ;
3873 PyObject *arg2 = (PyObject *) 0 ;
3874 bool result;
3875 void *argp1 = 0 ;
3876 int res1 = 0 ;
3877 PyObject * obj0 = 0 ;
3878 PyObject * obj1 = 0 ;
3879 char * kwnames[] = {
3880 (char *) "self",(char *) "other", NULL
3881 };
3882
3883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3885 if (!SWIG_IsOK(res1)) {
3886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3887 }
3888 arg1 = reinterpret_cast< wxColour * >(argp1);
3889 arg2 = obj1;
3890 {
3891 result = (bool)wxColour___ne__(arg1,arg2);
3892 if (PyErr_Occurred()) SWIG_fail;
3893 }
3894 {
3895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3896 }
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3904 PyObject *resultobj = 0;
3905 wxColour *arg1 = (wxColour *) 0 ;
3906 PyObject *result = 0 ;
3907 void *argp1 = 0 ;
3908 int res1 = 0 ;
3909 PyObject *swig_obj[1] ;
3910
3911 if (!args) SWIG_fail;
3912 swig_obj[0] = args;
3913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3914 if (!SWIG_IsOK(res1)) {
3915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3916 }
3917 arg1 = reinterpret_cast< wxColour * >(argp1);
3918 {
3919 PyThreadState* __tstate = wxPyBeginAllowThreads();
3920 result = (PyObject *)wxColour_Get(arg1);
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 resultobj = result;
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3932 PyObject *resultobj = 0;
3933 wxColour *arg1 = (wxColour *) 0 ;
3934 unsigned long result;
3935 void *argp1 = 0 ;
3936 int res1 = 0 ;
3937 PyObject *swig_obj[1] ;
3938
3939 if (!args) SWIG_fail;
3940 swig_obj[0] = args;
3941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3942 if (!SWIG_IsOK(res1)) {
3943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3944 }
3945 arg1 = reinterpret_cast< wxColour * >(argp1);
3946 {
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (unsigned long)wxColour_GetRGB(arg1);
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3953 return resultobj;
3954 fail:
3955 return NULL;
3956 }
3957
3958
3959 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3960 PyObject *obj;
3961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3962 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3963 return SWIG_Py_Void();
3964 }
3965
3966 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3967 return SWIG_Python_InitShadowInstance(args);
3968 }
3969
3970 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3971 PyObject *resultobj = 0;
3972 int arg1 ;
3973 unsigned char *arg2 = (unsigned char *) 0 ;
3974 unsigned char *arg3 = (unsigned char *) 0 ;
3975 unsigned char *arg4 = (unsigned char *) 0 ;
3976 wxPalette *result = 0 ;
3977 int val1 ;
3978 int ecode1 = 0 ;
3979 void *argp2 = 0 ;
3980 int res2 = 0 ;
3981 void *argp3 = 0 ;
3982 int res3 = 0 ;
3983 void *argp4 = 0 ;
3984 int res4 = 0 ;
3985 PyObject * obj0 = 0 ;
3986 PyObject * obj1 = 0 ;
3987 PyObject * obj2 = 0 ;
3988 PyObject * obj3 = 0 ;
3989 char * kwnames[] = {
3990 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3991 };
3992
3993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3994 ecode1 = SWIG_AsVal_int(obj0, &val1);
3995 if (!SWIG_IsOK(ecode1)) {
3996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3997 }
3998 arg1 = static_cast< int >(val1);
3999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4000 if (!SWIG_IsOK(res2)) {
4001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4002 }
4003 arg2 = reinterpret_cast< unsigned char * >(argp2);
4004 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4005 if (!SWIG_IsOK(res3)) {
4006 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4007 }
4008 arg3 = reinterpret_cast< unsigned char * >(argp3);
4009 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4010 if (!SWIG_IsOK(res4)) {
4011 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4012 }
4013 arg4 = reinterpret_cast< unsigned char * >(argp4);
4014 {
4015 if (!wxPyCheckForApp()) SWIG_fail;
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4022 return resultobj;
4023 fail:
4024 return NULL;
4025 }
4026
4027
4028 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4029 PyObject *resultobj = 0;
4030 wxPalette *arg1 = (wxPalette *) 0 ;
4031 void *argp1 = 0 ;
4032 int res1 = 0 ;
4033 PyObject *swig_obj[1] ;
4034
4035 if (!args) SWIG_fail;
4036 swig_obj[0] = args;
4037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4038 if (!SWIG_IsOK(res1)) {
4039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4040 }
4041 arg1 = reinterpret_cast< wxPalette * >(argp1);
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 delete arg1;
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4049 resultobj = SWIG_Py_Void();
4050 return resultobj;
4051 fail:
4052 return NULL;
4053 }
4054
4055
4056 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4057 PyObject *resultobj = 0;
4058 wxPalette *arg1 = (wxPalette *) 0 ;
4059 byte arg2 ;
4060 byte arg3 ;
4061 byte arg4 ;
4062 int result;
4063 void *argp1 = 0 ;
4064 int res1 = 0 ;
4065 unsigned char val2 ;
4066 int ecode2 = 0 ;
4067 unsigned char val3 ;
4068 int ecode3 = 0 ;
4069 unsigned char val4 ;
4070 int ecode4 = 0 ;
4071 PyObject * obj0 = 0 ;
4072 PyObject * obj1 = 0 ;
4073 PyObject * obj2 = 0 ;
4074 PyObject * obj3 = 0 ;
4075 char * kwnames[] = {
4076 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4077 };
4078
4079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4081 if (!SWIG_IsOK(res1)) {
4082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4083 }
4084 arg1 = reinterpret_cast< wxPalette * >(argp1);
4085 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4086 if (!SWIG_IsOK(ecode2)) {
4087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4088 }
4089 arg2 = static_cast< byte >(val2);
4090 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4091 if (!SWIG_IsOK(ecode3)) {
4092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4093 }
4094 arg3 = static_cast< byte >(val3);
4095 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4096 if (!SWIG_IsOK(ecode4)) {
4097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4098 }
4099 arg4 = static_cast< byte >(val4);
4100 {
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
4102 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 resultobj = SWIG_From_int(static_cast< int >(result));
4107 return resultobj;
4108 fail:
4109 return NULL;
4110 }
4111
4112
4113 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj = 0;
4115 wxPalette *arg1 = (wxPalette *) 0 ;
4116 int arg2 ;
4117 byte *arg3 = (byte *) 0 ;
4118 byte *arg4 = (byte *) 0 ;
4119 byte *arg5 = (byte *) 0 ;
4120 bool result;
4121 void *argp1 = 0 ;
4122 int res1 = 0 ;
4123 int val2 ;
4124 int ecode2 = 0 ;
4125 byte temp3 ;
4126 int res3 = SWIG_TMPOBJ ;
4127 byte temp4 ;
4128 int res4 = SWIG_TMPOBJ ;
4129 byte temp5 ;
4130 int res5 = SWIG_TMPOBJ ;
4131 PyObject * obj0 = 0 ;
4132 PyObject * obj1 = 0 ;
4133 char * kwnames[] = {
4134 (char *) "self",(char *) "pixel", NULL
4135 };
4136
4137 arg3 = &temp3;
4138 arg4 = &temp4;
4139 arg5 = &temp5;
4140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4142 if (!SWIG_IsOK(res1)) {
4143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4144 }
4145 arg1 = reinterpret_cast< wxPalette * >(argp1);
4146 ecode2 = SWIG_AsVal_int(obj1, &val2);
4147 if (!SWIG_IsOK(ecode2)) {
4148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4149 }
4150 arg2 = static_cast< int >(val2);
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4159 }
4160 if (SWIG_IsTmpObj(res3)) {
4161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4162 } else {
4163 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4165 }
4166 if (SWIG_IsTmpObj(res4)) {
4167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4168 } else {
4169 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4171 }
4172 if (SWIG_IsTmpObj(res5)) {
4173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4174 } else {
4175 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4177 }
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4185 PyObject *resultobj = 0;
4186 wxPalette *arg1 = (wxPalette *) 0 ;
4187 int result;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 PyObject *swig_obj[1] ;
4191
4192 if (!args) SWIG_fail;
4193 swig_obj[0] = args;
4194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4197 }
4198 arg1 = reinterpret_cast< wxPalette * >(argp1);
4199 {
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 resultobj = SWIG_From_int(static_cast< int >(result));
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4213 PyObject *resultobj = 0;
4214 wxPalette *arg1 = (wxPalette *) 0 ;
4215 bool result;
4216 void *argp1 = 0 ;
4217 int res1 = 0 ;
4218 PyObject *swig_obj[1] ;
4219
4220 if (!args) SWIG_fail;
4221 swig_obj[0] = args;
4222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4223 if (!SWIG_IsOK(res1)) {
4224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4225 }
4226 arg1 = reinterpret_cast< wxPalette * >(argp1);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 result = (bool)(arg1)->Ok();
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 {
4234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4235 }
4236 return resultobj;
4237 fail:
4238 return NULL;
4239 }
4240
4241
4242 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4243 PyObject *obj;
4244 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4245 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4246 return SWIG_Py_Void();
4247 }
4248
4249 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4250 return SWIG_Python_InitShadowInstance(args);
4251 }
4252
4253 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj = 0;
4255 wxColour *arg1 = 0 ;
4256 int arg2 = (int) 1 ;
4257 int arg3 = (int) wxSOLID ;
4258 wxPen *result = 0 ;
4259 wxColour temp1 ;
4260 int val2 ;
4261 int ecode2 = 0 ;
4262 int val3 ;
4263 int ecode3 = 0 ;
4264 PyObject * obj0 = 0 ;
4265 PyObject * obj1 = 0 ;
4266 PyObject * obj2 = 0 ;
4267 char * kwnames[] = {
4268 (char *) "colour",(char *) "width",(char *) "style", NULL
4269 };
4270
4271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4272 {
4273 arg1 = &temp1;
4274 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4275 }
4276 if (obj1) {
4277 ecode2 = SWIG_AsVal_int(obj1, &val2);
4278 if (!SWIG_IsOK(ecode2)) {
4279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4280 }
4281 arg2 = static_cast< int >(val2);
4282 }
4283 if (obj2) {
4284 ecode3 = SWIG_AsVal_int(obj2, &val3);
4285 if (!SWIG_IsOK(ecode3)) {
4286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4287 }
4288 arg3 = static_cast< int >(val3);
4289 }
4290 {
4291 if (!wxPyCheckForApp()) SWIG_fail;
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4298 return resultobj;
4299 fail:
4300 return NULL;
4301 }
4302
4303
4304 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4305 PyObject *resultobj = 0;
4306 wxPen *arg1 = (wxPen *) 0 ;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 PyObject *swig_obj[1] ;
4310
4311 if (!args) SWIG_fail;
4312 swig_obj[0] = args;
4313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4314 if (!SWIG_IsOK(res1)) {
4315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4316 }
4317 arg1 = reinterpret_cast< wxPen * >(argp1);
4318 {
4319 PyThreadState* __tstate = wxPyBeginAllowThreads();
4320 delete arg1;
4321
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 resultobj = SWIG_Py_Void();
4326 return resultobj;
4327 fail:
4328 return NULL;
4329 }
4330
4331
4332 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 wxPen *arg1 = (wxPen *) 0 ;
4335 int result;
4336 void *argp1 = 0 ;
4337 int res1 = 0 ;
4338 PyObject *swig_obj[1] ;
4339
4340 if (!args) SWIG_fail;
4341 swig_obj[0] = args;
4342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4343 if (!SWIG_IsOK(res1)) {
4344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4345 }
4346 arg1 = reinterpret_cast< wxPen * >(argp1);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (int)(arg1)->GetCap();
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_From_int(static_cast< int >(result));
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4361 PyObject *resultobj = 0;
4362 wxPen *arg1 = (wxPen *) 0 ;
4363 wxColour result;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 PyObject *swig_obj[1] ;
4367
4368 if (!args) SWIG_fail;
4369 swig_obj[0] = args;
4370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4373 }
4374 arg1 = reinterpret_cast< wxPen * >(argp1);
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
4377 result = (arg1)->GetColour();
4378 wxPyEndAllowThreads(__tstate);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4382 return resultobj;
4383 fail:
4384 return NULL;
4385 }
4386
4387
4388 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4389 PyObject *resultobj = 0;
4390 wxPen *arg1 = (wxPen *) 0 ;
4391 int result;
4392 void *argp1 = 0 ;
4393 int res1 = 0 ;
4394 PyObject *swig_obj[1] ;
4395
4396 if (!args) SWIG_fail;
4397 swig_obj[0] = args;
4398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4399 if (!SWIG_IsOK(res1)) {
4400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4401 }
4402 arg1 = reinterpret_cast< wxPen * >(argp1);
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 result = (int)(arg1)->GetJoin();
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_From_int(static_cast< int >(result));
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4417 PyObject *resultobj = 0;
4418 wxPen *arg1 = (wxPen *) 0 ;
4419 int result;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 PyObject *swig_obj[1] ;
4423
4424 if (!args) SWIG_fail;
4425 swig_obj[0] = args;
4426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4427 if (!SWIG_IsOK(res1)) {
4428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4429 }
4430 arg1 = reinterpret_cast< wxPen * >(argp1);
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 result = (int)(arg1)->GetStyle();
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 resultobj = SWIG_From_int(static_cast< int >(result));
4438 return resultobj;
4439 fail:
4440 return NULL;
4441 }
4442
4443
4444 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4445 PyObject *resultobj = 0;
4446 wxPen *arg1 = (wxPen *) 0 ;
4447 int result;
4448 void *argp1 = 0 ;
4449 int res1 = 0 ;
4450 PyObject *swig_obj[1] ;
4451
4452 if (!args) SWIG_fail;
4453 swig_obj[0] = args;
4454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4457 }
4458 arg1 = reinterpret_cast< wxPen * >(argp1);
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 result = (int)(arg1)->GetWidth();
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 resultobj = SWIG_From_int(static_cast< int >(result));
4466 return resultobj;
4467 fail:
4468 return NULL;
4469 }
4470
4471
4472 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4473 PyObject *resultobj = 0;
4474 wxPen *arg1 = (wxPen *) 0 ;
4475 bool result;
4476 void *argp1 = 0 ;
4477 int res1 = 0 ;
4478 PyObject *swig_obj[1] ;
4479
4480 if (!args) SWIG_fail;
4481 swig_obj[0] = args;
4482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4483 if (!SWIG_IsOK(res1)) {
4484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4485 }
4486 arg1 = reinterpret_cast< wxPen * >(argp1);
4487 {
4488 PyThreadState* __tstate = wxPyBeginAllowThreads();
4489 result = (bool)(arg1)->Ok();
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 {
4494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4495 }
4496 return resultobj;
4497 fail:
4498 return NULL;
4499 }
4500
4501
4502 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj = 0;
4504 wxPen *arg1 = (wxPen *) 0 ;
4505 int arg2 ;
4506 void *argp1 = 0 ;
4507 int res1 = 0 ;
4508 int val2 ;
4509 int ecode2 = 0 ;
4510 PyObject * obj0 = 0 ;
4511 PyObject * obj1 = 0 ;
4512 char * kwnames[] = {
4513 (char *) "self",(char *) "cap_style", NULL
4514 };
4515
4516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4518 if (!SWIG_IsOK(res1)) {
4519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4520 }
4521 arg1 = reinterpret_cast< wxPen * >(argp1);
4522 ecode2 = SWIG_AsVal_int(obj1, &val2);
4523 if (!SWIG_IsOK(ecode2)) {
4524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4525 }
4526 arg2 = static_cast< int >(val2);
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 (arg1)->SetCap(arg2);
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 resultobj = SWIG_Py_Void();
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj = 0;
4542 wxPen *arg1 = (wxPen *) 0 ;
4543 wxColour *arg2 = 0 ;
4544 void *argp1 = 0 ;
4545 int res1 = 0 ;
4546 wxColour temp2 ;
4547 PyObject * obj0 = 0 ;
4548 PyObject * obj1 = 0 ;
4549 char * kwnames[] = {
4550 (char *) "self",(char *) "colour", NULL
4551 };
4552
4553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4555 if (!SWIG_IsOK(res1)) {
4556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4557 }
4558 arg1 = reinterpret_cast< wxPen * >(argp1);
4559 {
4560 arg2 = &temp2;
4561 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4562 }
4563 {
4564 PyThreadState* __tstate = wxPyBeginAllowThreads();
4565 (arg1)->SetColour(*arg2);
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) SWIG_fail;
4568 }
4569 resultobj = SWIG_Py_Void();
4570 return resultobj;
4571 fail:
4572 return NULL;
4573 }
4574
4575
4576 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj = 0;
4578 wxPen *arg1 = (wxPen *) 0 ;
4579 int arg2 ;
4580 void *argp1 = 0 ;
4581 int res1 = 0 ;
4582 int val2 ;
4583 int ecode2 = 0 ;
4584 PyObject * obj0 = 0 ;
4585 PyObject * obj1 = 0 ;
4586 char * kwnames[] = {
4587 (char *) "self",(char *) "join_style", NULL
4588 };
4589
4590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4592 if (!SWIG_IsOK(res1)) {
4593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4594 }
4595 arg1 = reinterpret_cast< wxPen * >(argp1);
4596 ecode2 = SWIG_AsVal_int(obj1, &val2);
4597 if (!SWIG_IsOK(ecode2)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4599 }
4600 arg2 = static_cast< int >(val2);
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 (arg1)->SetJoin(arg2);
4604 wxPyEndAllowThreads(__tstate);
4605 if (PyErr_Occurred()) SWIG_fail;
4606 }
4607 resultobj = SWIG_Py_Void();
4608 return resultobj;
4609 fail:
4610 return NULL;
4611 }
4612
4613
4614 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4615 PyObject *resultobj = 0;
4616 wxPen *arg1 = (wxPen *) 0 ;
4617 int arg2 ;
4618 void *argp1 = 0 ;
4619 int res1 = 0 ;
4620 int val2 ;
4621 int ecode2 = 0 ;
4622 PyObject * obj0 = 0 ;
4623 PyObject * obj1 = 0 ;
4624 char * kwnames[] = {
4625 (char *) "self",(char *) "style", NULL
4626 };
4627
4628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4630 if (!SWIG_IsOK(res1)) {
4631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4632 }
4633 arg1 = reinterpret_cast< wxPen * >(argp1);
4634 ecode2 = SWIG_AsVal_int(obj1, &val2);
4635 if (!SWIG_IsOK(ecode2)) {
4636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4637 }
4638 arg2 = static_cast< int >(val2);
4639 {
4640 PyThreadState* __tstate = wxPyBeginAllowThreads();
4641 (arg1)->SetStyle(arg2);
4642 wxPyEndAllowThreads(__tstate);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 resultobj = SWIG_Py_Void();
4646 return resultobj;
4647 fail:
4648 return NULL;
4649 }
4650
4651
4652 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj = 0;
4654 wxPen *arg1 = (wxPen *) 0 ;
4655 int arg2 ;
4656 void *argp1 = 0 ;
4657 int res1 = 0 ;
4658 int val2 ;
4659 int ecode2 = 0 ;
4660 PyObject * obj0 = 0 ;
4661 PyObject * obj1 = 0 ;
4662 char * kwnames[] = {
4663 (char *) "self",(char *) "width", NULL
4664 };
4665
4666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4668 if (!SWIG_IsOK(res1)) {
4669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4670 }
4671 arg1 = reinterpret_cast< wxPen * >(argp1);
4672 ecode2 = SWIG_AsVal_int(obj1, &val2);
4673 if (!SWIG_IsOK(ecode2)) {
4674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4675 }
4676 arg2 = static_cast< int >(val2);
4677 {
4678 PyThreadState* __tstate = wxPyBeginAllowThreads();
4679 (arg1)->SetWidth(arg2);
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 resultobj = SWIG_Py_Void();
4684 return resultobj;
4685 fail:
4686 return NULL;
4687 }
4688
4689
4690 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4691 PyObject *resultobj = 0;
4692 wxPen *arg1 = (wxPen *) 0 ;
4693 int arg2 ;
4694 wxDash *arg3 = (wxDash *) 0 ;
4695 void *argp1 = 0 ;
4696 int res1 = 0 ;
4697 PyObject * obj0 = 0 ;
4698 PyObject * obj1 = 0 ;
4699 char * kwnames[] = {
4700 (char *) "self",(char *) "dashes", NULL
4701 };
4702
4703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4705 if (!SWIG_IsOK(res1)) {
4706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4707 }
4708 arg1 = reinterpret_cast< wxPen * >(argp1);
4709 {
4710 arg2 = PyList_Size(obj1);
4711 arg3 = (wxDash*)byte_LIST_helper(obj1);
4712 if (arg3 == NULL) SWIG_fail;
4713 }
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 (arg1)->SetDashes(arg2,arg3);
4717 wxPyEndAllowThreads(__tstate);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 resultobj = SWIG_Py_Void();
4721 {
4722 if (arg3) delete [] arg3;
4723 }
4724 return resultobj;
4725 fail:
4726 {
4727 if (arg3) delete [] arg3;
4728 }
4729 return NULL;
4730 }
4731
4732
4733 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4734 PyObject *resultobj = 0;
4735 wxPen *arg1 = (wxPen *) 0 ;
4736 PyObject *result = 0 ;
4737 void *argp1 = 0 ;
4738 int res1 = 0 ;
4739 PyObject *swig_obj[1] ;
4740
4741 if (!args) SWIG_fail;
4742 swig_obj[0] = args;
4743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4744 if (!SWIG_IsOK(res1)) {
4745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4746 }
4747 arg1 = reinterpret_cast< wxPen * >(argp1);
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (PyObject *)wxPen_GetDashes(arg1);
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 resultobj = result;
4755 return resultobj;
4756 fail:
4757 return NULL;
4758 }
4759
4760
4761 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4762 PyObject *resultobj = 0;
4763 wxPen *arg1 = (wxPen *) 0 ;
4764 PyObject *arg2 = (PyObject *) 0 ;
4765 PyObject *arg3 = (PyObject *) 0 ;
4766 void *argp1 = 0 ;
4767 int res1 = 0 ;
4768 PyObject * obj0 = 0 ;
4769 PyObject * obj1 = 0 ;
4770 PyObject * obj2 = 0 ;
4771 char * kwnames[] = {
4772 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4773 };
4774
4775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4777 if (!SWIG_IsOK(res1)) {
4778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4779 }
4780 arg1 = reinterpret_cast< wxPen * >(argp1);
4781 arg2 = obj1;
4782 arg3 = obj2;
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 wxPen__SetDashes(arg1,arg2,arg3);
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_Py_Void();
4790 return resultobj;
4791 fail:
4792 return NULL;
4793 }
4794
4795
4796 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj = 0;
4798 wxPen *arg1 = (wxPen *) 0 ;
4799 wxPen *arg2 = (wxPen *) 0 ;
4800 bool result;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 void *argp2 = 0 ;
4804 int res2 = 0 ;
4805 PyObject * obj0 = 0 ;
4806 PyObject * obj1 = 0 ;
4807 char * kwnames[] = {
4808 (char *) "self",(char *) "other", NULL
4809 };
4810
4811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4815 }
4816 arg1 = reinterpret_cast< wxPen * >(argp1);
4817 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4818 if (!SWIG_IsOK(res2)) {
4819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4820 }
4821 arg2 = reinterpret_cast< wxPen * >(argp2);
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 {
4829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4830 }
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4838 PyObject *resultobj = 0;
4839 wxPen *arg1 = (wxPen *) 0 ;
4840 wxPen *arg2 = (wxPen *) 0 ;
4841 bool result;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 void *argp2 = 0 ;
4845 int res2 = 0 ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 char * kwnames[] = {
4849 (char *) "self",(char *) "other", NULL
4850 };
4851
4852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4856 }
4857 arg1 = reinterpret_cast< wxPen * >(argp1);
4858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4859 if (!SWIG_IsOK(res2)) {
4860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4861 }
4862 arg2 = reinterpret_cast< wxPen * >(argp2);
4863 {
4864 PyThreadState* __tstate = wxPyBeginAllowThreads();
4865 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 {
4870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4871 }
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4879 PyObject *obj;
4880 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4881 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4882 return SWIG_Py_Void();
4883 }
4884
4885 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4886 return SWIG_Python_InitShadowInstance(args);
4887 }
4888
4889 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4890 PyObject *resultobj = 0;
4891 wxColour *arg1 = 0 ;
4892 int arg2 = (int) wxSOLID ;
4893 wxBrush *result = 0 ;
4894 wxColour temp1 ;
4895 int val2 ;
4896 int ecode2 = 0 ;
4897 PyObject * obj0 = 0 ;
4898 PyObject * obj1 = 0 ;
4899 char * kwnames[] = {
4900 (char *) "colour",(char *) "style", NULL
4901 };
4902
4903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4904 {
4905 arg1 = &temp1;
4906 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4907 }
4908 if (obj1) {
4909 ecode2 = SWIG_AsVal_int(obj1, &val2);
4910 if (!SWIG_IsOK(ecode2)) {
4911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4912 }
4913 arg2 = static_cast< int >(val2);
4914 }
4915 {
4916 if (!wxPyCheckForApp()) SWIG_fail;
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4923 return resultobj;
4924 fail:
4925 return NULL;
4926 }
4927
4928
4929 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4930 PyObject *resultobj = 0;
4931 wxBitmap *arg1 = 0 ;
4932 wxBrush *result = 0 ;
4933 void *argp1 = 0 ;
4934 int res1 = 0 ;
4935 PyObject * obj0 = 0 ;
4936 char * kwnames[] = {
4937 (char *) "stippleBitmap", NULL
4938 };
4939
4940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4941 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4942 if (!SWIG_IsOK(res1)) {
4943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4944 }
4945 if (!argp1) {
4946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4947 }
4948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4949 {
4950 if (!wxPyCheckForApp()) SWIG_fail;
4951 PyThreadState* __tstate = wxPyBeginAllowThreads();
4952 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4964 PyObject *resultobj = 0;
4965 wxBrush *arg1 = (wxBrush *) 0 ;
4966 void *argp1 = 0 ;
4967 int res1 = 0 ;
4968 PyObject *swig_obj[1] ;
4969
4970 if (!args) SWIG_fail;
4971 swig_obj[0] = args;
4972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4973 if (!SWIG_IsOK(res1)) {
4974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4975 }
4976 arg1 = reinterpret_cast< wxBrush * >(argp1);
4977 {
4978 PyThreadState* __tstate = wxPyBeginAllowThreads();
4979 delete arg1;
4980
4981 wxPyEndAllowThreads(__tstate);
4982 if (PyErr_Occurred()) SWIG_fail;
4983 }
4984 resultobj = SWIG_Py_Void();
4985 return resultobj;
4986 fail:
4987 return NULL;
4988 }
4989
4990
4991 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4992 PyObject *resultobj = 0;
4993 wxBrush *arg1 = (wxBrush *) 0 ;
4994 wxColour *arg2 = 0 ;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 wxColour temp2 ;
4998 PyObject * obj0 = 0 ;
4999 PyObject * obj1 = 0 ;
5000 char * kwnames[] = {
5001 (char *) "self",(char *) "col", NULL
5002 };
5003
5004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5008 }
5009 arg1 = reinterpret_cast< wxBrush * >(argp1);
5010 {
5011 arg2 = &temp2;
5012 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5013 }
5014 {
5015 PyThreadState* __tstate = wxPyBeginAllowThreads();
5016 (arg1)->SetColour((wxColour const &)*arg2);
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 resultobj = SWIG_Py_Void();
5021 return resultobj;
5022 fail:
5023 return NULL;
5024 }
5025
5026
5027 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj = 0;
5029 wxBrush *arg1 = (wxBrush *) 0 ;
5030 int arg2 ;
5031 void *argp1 = 0 ;
5032 int res1 = 0 ;
5033 int val2 ;
5034 int ecode2 = 0 ;
5035 PyObject * obj0 = 0 ;
5036 PyObject * obj1 = 0 ;
5037 char * kwnames[] = {
5038 (char *) "self",(char *) "style", NULL
5039 };
5040
5041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5043 if (!SWIG_IsOK(res1)) {
5044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5045 }
5046 arg1 = reinterpret_cast< wxBrush * >(argp1);
5047 ecode2 = SWIG_AsVal_int(obj1, &val2);
5048 if (!SWIG_IsOK(ecode2)) {
5049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5050 }
5051 arg2 = static_cast< int >(val2);
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 (arg1)->SetStyle(arg2);
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_Py_Void();
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj = 0;
5067 wxBrush *arg1 = (wxBrush *) 0 ;
5068 wxBitmap *arg2 = 0 ;
5069 void *argp1 = 0 ;
5070 int res1 = 0 ;
5071 void *argp2 = 0 ;
5072 int res2 = 0 ;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 char * kwnames[] = {
5076 (char *) "self",(char *) "stipple", NULL
5077 };
5078
5079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5081 if (!SWIG_IsOK(res1)) {
5082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5083 }
5084 arg1 = reinterpret_cast< wxBrush * >(argp1);
5085 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5086 if (!SWIG_IsOK(res2)) {
5087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5088 }
5089 if (!argp2) {
5090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5091 }
5092 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 (arg1)->SetStipple((wxBitmap const &)*arg2);
5096 wxPyEndAllowThreads(__tstate);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 resultobj = SWIG_Py_Void();
5100 return resultobj;
5101 fail:
5102 return NULL;
5103 }
5104
5105
5106 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5107 PyObject *resultobj = 0;
5108 wxBrush *arg1 = (wxBrush *) 0 ;
5109 wxColour result;
5110 void *argp1 = 0 ;
5111 int res1 = 0 ;
5112 PyObject *swig_obj[1] ;
5113
5114 if (!args) SWIG_fail;
5115 swig_obj[0] = args;
5116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5117 if (!SWIG_IsOK(res1)) {
5118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5119 }
5120 arg1 = reinterpret_cast< wxBrush * >(argp1);
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 result = ((wxBrush const *)arg1)->GetColour();
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5135 PyObject *resultobj = 0;
5136 wxBrush *arg1 = (wxBrush *) 0 ;
5137 int result;
5138 void *argp1 = 0 ;
5139 int res1 = 0 ;
5140 PyObject *swig_obj[1] ;
5141
5142 if (!args) SWIG_fail;
5143 swig_obj[0] = args;
5144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5145 if (!SWIG_IsOK(res1)) {
5146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5147 }
5148 arg1 = reinterpret_cast< wxBrush * >(argp1);
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (int)((wxBrush const *)arg1)->GetStyle();
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 resultobj = SWIG_From_int(static_cast< int >(result));
5156 return resultobj;
5157 fail:
5158 return NULL;
5159 }
5160
5161
5162 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5163 PyObject *resultobj = 0;
5164 wxBrush *arg1 = (wxBrush *) 0 ;
5165 wxBitmap *result = 0 ;
5166 void *argp1 = 0 ;
5167 int res1 = 0 ;
5168 PyObject *swig_obj[1] ;
5169
5170 if (!args) SWIG_fail;
5171 swig_obj[0] = args;
5172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5173 if (!SWIG_IsOK(res1)) {
5174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5175 }
5176 arg1 = reinterpret_cast< wxBrush * >(argp1);
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) SWIG_fail;
5182 }
5183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5191 PyObject *resultobj = 0;
5192 wxBrush *arg1 = (wxBrush *) 0 ;
5193 bool result;
5194 void *argp1 = 0 ;
5195 int res1 = 0 ;
5196 PyObject *swig_obj[1] ;
5197
5198 if (!args) SWIG_fail;
5199 swig_obj[0] = args;
5200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5201 if (!SWIG_IsOK(res1)) {
5202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5203 }
5204 arg1 = reinterpret_cast< wxBrush * >(argp1);
5205 {
5206 PyThreadState* __tstate = wxPyBeginAllowThreads();
5207 result = (bool)((wxBrush const *)arg1)->IsHatch();
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 {
5212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5213 }
5214 return resultobj;
5215 fail:
5216 return NULL;
5217 }
5218
5219
5220 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5221 PyObject *resultobj = 0;
5222 wxBrush *arg1 = (wxBrush *) 0 ;
5223 bool result;
5224 void *argp1 = 0 ;
5225 int res1 = 0 ;
5226 PyObject *swig_obj[1] ;
5227
5228 if (!args) SWIG_fail;
5229 swig_obj[0] = args;
5230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5231 if (!SWIG_IsOK(res1)) {
5232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5233 }
5234 arg1 = reinterpret_cast< wxBrush * >(argp1);
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 result = (bool)(arg1)->Ok();
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 {
5242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5243 }
5244 return resultobj;
5245 fail:
5246 return NULL;
5247 }
5248
5249
5250 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251 PyObject *resultobj = 0;
5252 wxBrush *arg1 = (wxBrush *) 0 ;
5253 short result;
5254 void *argp1 = 0 ;
5255 int res1 = 0 ;
5256 PyObject *swig_obj[1] ;
5257
5258 if (!args) SWIG_fail;
5259 swig_obj[0] = args;
5260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5261 if (!SWIG_IsOK(res1)) {
5262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5263 }
5264 arg1 = reinterpret_cast< wxBrush * >(argp1);
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (short)(arg1)->MacGetTheme();
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = SWIG_From_short(static_cast< short >(result));
5272 return resultobj;
5273 fail:
5274 return NULL;
5275 }
5276
5277
5278 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5279 PyObject *resultobj = 0;
5280 wxBrush *arg1 = (wxBrush *) 0 ;
5281 short arg2 ;
5282 void *argp1 = 0 ;
5283 int res1 = 0 ;
5284 short val2 ;
5285 int ecode2 = 0 ;
5286 PyObject * obj0 = 0 ;
5287 PyObject * obj1 = 0 ;
5288 char * kwnames[] = {
5289 (char *) "self",(char *) "macThemeBrush", NULL
5290 };
5291
5292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5294 if (!SWIG_IsOK(res1)) {
5295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5296 }
5297 arg1 = reinterpret_cast< wxBrush * >(argp1);
5298 ecode2 = SWIG_AsVal_short(obj1, &val2);
5299 if (!SWIG_IsOK(ecode2)) {
5300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5301 }
5302 arg2 = static_cast< short >(val2);
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 (arg1)->MacSetTheme(arg2);
5306 wxPyEndAllowThreads(__tstate);
5307 if (PyErr_Occurred()) SWIG_fail;
5308 }
5309 resultobj = SWIG_Py_Void();
5310 return resultobj;
5311 fail:
5312 return NULL;
5313 }
5314
5315
5316 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5317 PyObject *obj;
5318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5319 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5320 return SWIG_Py_Void();
5321 }
5322
5323 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5324 return SWIG_Python_InitShadowInstance(args);
5325 }
5326
5327 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxString *arg1 = 0 ;
5330 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5331 wxBitmap *result = 0 ;
5332 bool temp1 = false ;
5333 int val2 ;
5334 int ecode2 = 0 ;
5335 PyObject * obj0 = 0 ;
5336 PyObject * obj1 = 0 ;
5337 char * kwnames[] = {
5338 (char *) "name",(char *) "type", NULL
5339 };
5340
5341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5342 {
5343 arg1 = wxString_in_helper(obj0);
5344 if (arg1 == NULL) SWIG_fail;
5345 temp1 = true;
5346 }
5347 if (obj1) {
5348 ecode2 = SWIG_AsVal_int(obj1, &val2);
5349 if (!SWIG_IsOK(ecode2)) {
5350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5351 }
5352 arg2 = static_cast< wxBitmapType >(val2);
5353 }
5354 {
5355 if (!wxPyCheckForApp()) SWIG_fail;
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5362 {
5363 if (temp1)
5364 delete arg1;
5365 }
5366 return resultobj;
5367 fail:
5368 {
5369 if (temp1)
5370 delete arg1;
5371 }
5372 return NULL;
5373 }
5374
5375
5376 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5377 PyObject *resultobj = 0;
5378 wxBitmap *arg1 = (wxBitmap *) 0 ;
5379 void *argp1 = 0 ;
5380 int res1 = 0 ;
5381 PyObject *swig_obj[1] ;
5382
5383 if (!args) SWIG_fail;
5384 swig_obj[0] = args;
5385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5386 if (!SWIG_IsOK(res1)) {
5387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5388 }
5389 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 delete arg1;
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 resultobj = SWIG_Py_Void();
5398 return resultobj;
5399 fail:
5400 return NULL;
5401 }
5402
5403
5404 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj = 0;
5406 int arg1 ;
5407 int arg2 ;
5408 int arg3 = (int) -1 ;
5409 wxBitmap *result = 0 ;
5410 int val1 ;
5411 int ecode1 = 0 ;
5412 int val2 ;
5413 int ecode2 = 0 ;
5414 int val3 ;
5415 int ecode3 = 0 ;
5416 PyObject * obj0 = 0 ;
5417 PyObject * obj1 = 0 ;
5418 PyObject * obj2 = 0 ;
5419 char * kwnames[] = {
5420 (char *) "width",(char *) "height",(char *) "depth", NULL
5421 };
5422
5423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5424 ecode1 = SWIG_AsVal_int(obj0, &val1);
5425 if (!SWIG_IsOK(ecode1)) {
5426 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5427 }
5428 arg1 = static_cast< int >(val1);
5429 ecode2 = SWIG_AsVal_int(obj1, &val2);
5430 if (!SWIG_IsOK(ecode2)) {
5431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5432 }
5433 arg2 = static_cast< int >(val2);
5434 if (obj2) {
5435 ecode3 = SWIG_AsVal_int(obj2, &val3);
5436 if (!SWIG_IsOK(ecode3)) {
5437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5438 }
5439 arg3 = static_cast< int >(val3);
5440 }
5441 {
5442 if (!wxPyCheckForApp()) SWIG_fail;
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5449 return resultobj;
5450 fail:
5451 return NULL;
5452 }
5453
5454
5455 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxIcon *arg1 = 0 ;
5458 wxBitmap *result = 0 ;
5459 void *argp1 = 0 ;
5460 int res1 = 0 ;
5461 PyObject * obj0 = 0 ;
5462 char * kwnames[] = {
5463 (char *) "icon", NULL
5464 };
5465
5466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5467 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5468 if (!SWIG_IsOK(res1)) {
5469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5470 }
5471 if (!argp1) {
5472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5473 }
5474 arg1 = reinterpret_cast< wxIcon * >(argp1);
5475 {
5476 if (!wxPyCheckForApp()) SWIG_fail;
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5483 return resultobj;
5484 fail:
5485 return NULL;
5486 }
5487
5488
5489 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5490 PyObject *resultobj = 0;
5491 wxImage *arg1 = 0 ;
5492 int arg2 = (int) -1 ;
5493 wxBitmap *result = 0 ;
5494 void *argp1 = 0 ;
5495 int res1 = 0 ;
5496 int val2 ;
5497 int ecode2 = 0 ;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 char * kwnames[] = {
5501 (char *) "image",(char *) "depth", NULL
5502 };
5503
5504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5505 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5506 if (!SWIG_IsOK(res1)) {
5507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5508 }
5509 if (!argp1) {
5510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5511 }
5512 arg1 = reinterpret_cast< wxImage * >(argp1);
5513 if (obj1) {
5514 ecode2 = SWIG_AsVal_int(obj1, &val2);
5515 if (!SWIG_IsOK(ecode2)) {
5516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5517 }
5518 arg2 = static_cast< int >(val2);
5519 }
5520 {
5521 if (!wxPyCheckForApp()) SWIG_fail;
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj = 0;
5536 PyObject *arg1 = (PyObject *) 0 ;
5537 wxBitmap *result = 0 ;
5538 PyObject * obj0 = 0 ;
5539 char * kwnames[] = {
5540 (char *) "listOfStrings", NULL
5541 };
5542
5543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5544 arg1 = obj0;
5545 {
5546 if (!wxPyCheckForApp()) SWIG_fail;
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (wxBitmap *)new_wxBitmap(arg1);
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj = 0;
5561 PyObject *arg1 = (PyObject *) 0 ;
5562 int arg2 ;
5563 int arg3 ;
5564 int arg4 = (int) 1 ;
5565 wxBitmap *result = 0 ;
5566 int val2 ;
5567 int ecode2 = 0 ;
5568 int val3 ;
5569 int ecode3 = 0 ;
5570 int val4 ;
5571 int ecode4 = 0 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 PyObject * obj2 = 0 ;
5575 PyObject * obj3 = 0 ;
5576 char * kwnames[] = {
5577 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5578 };
5579
5580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5581 arg1 = obj0;
5582 ecode2 = SWIG_AsVal_int(obj1, &val2);
5583 if (!SWIG_IsOK(ecode2)) {
5584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5585 }
5586 arg2 = static_cast< int >(val2);
5587 ecode3 = SWIG_AsVal_int(obj2, &val3);
5588 if (!SWIG_IsOK(ecode3)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5590 }
5591 arg3 = static_cast< int >(val3);
5592 if (obj3) {
5593 ecode4 = SWIG_AsVal_int(obj3, &val4);
5594 if (!SWIG_IsOK(ecode4)) {
5595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5596 }
5597 arg4 = static_cast< int >(val4);
5598 }
5599 {
5600 if (!wxPyCheckForApp()) SWIG_fail;
5601 PyThreadState* __tstate = wxPyBeginAllowThreads();
5602 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5607 return resultobj;
5608 fail:
5609 return NULL;
5610 }
5611
5612
5613 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5614 PyObject *resultobj = 0;
5615 wxBitmap *arg1 = (wxBitmap *) 0 ;
5616 bool result;
5617 void *argp1 = 0 ;
5618 int res1 = 0 ;
5619 PyObject *swig_obj[1] ;
5620
5621 if (!args) SWIG_fail;
5622 swig_obj[0] = args;
5623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5624 if (!SWIG_IsOK(res1)) {
5625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5626 }
5627 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (bool)(arg1)->Ok();
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5636 }
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5644 PyObject *resultobj = 0;
5645 wxBitmap *arg1 = (wxBitmap *) 0 ;
5646 int result;
5647 void *argp1 = 0 ;
5648 int res1 = 0 ;
5649 PyObject *swig_obj[1] ;
5650
5651 if (!args) SWIG_fail;
5652 swig_obj[0] = args;
5653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5654 if (!SWIG_IsOK(res1)) {
5655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5656 }
5657 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 result = (int)(arg1)->GetWidth();
5661 wxPyEndAllowThreads(__tstate);
5662 if (PyErr_Occurred()) SWIG_fail;
5663 }
5664 resultobj = SWIG_From_int(static_cast< int >(result));
5665 return resultobj;
5666 fail:
5667 return NULL;
5668 }
5669
5670
5671 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5672 PyObject *resultobj = 0;
5673 wxBitmap *arg1 = (wxBitmap *) 0 ;
5674 int result;
5675 void *argp1 = 0 ;
5676 int res1 = 0 ;
5677 PyObject *swig_obj[1] ;
5678
5679 if (!args) SWIG_fail;
5680 swig_obj[0] = args;
5681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5682 if (!SWIG_IsOK(res1)) {
5683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5684 }
5685 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5686 {
5687 PyThreadState* __tstate = wxPyBeginAllowThreads();
5688 result = (int)(arg1)->GetHeight();
5689 wxPyEndAllowThreads(__tstate);
5690 if (PyErr_Occurred()) SWIG_fail;
5691 }
5692 resultobj = SWIG_From_int(static_cast< int >(result));
5693 return resultobj;
5694 fail:
5695 return NULL;
5696 }
5697
5698
5699 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5700 PyObject *resultobj = 0;
5701 wxBitmap *arg1 = (wxBitmap *) 0 ;
5702 int result;
5703 void *argp1 = 0 ;
5704 int res1 = 0 ;
5705 PyObject *swig_obj[1] ;
5706
5707 if (!args) SWIG_fail;
5708 swig_obj[0] = args;
5709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5710 if (!SWIG_IsOK(res1)) {
5711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5712 }
5713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (int)(arg1)->GetDepth();
5717 wxPyEndAllowThreads(__tstate);
5718 if (PyErr_Occurred()) SWIG_fail;
5719 }
5720 resultobj = SWIG_From_int(static_cast< int >(result));
5721 return resultobj;
5722 fail:
5723 return NULL;
5724 }
5725
5726
5727 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5728 PyObject *resultobj = 0;
5729 wxBitmap *arg1 = (wxBitmap *) 0 ;
5730 wxSize result;
5731 void *argp1 = 0 ;
5732 int res1 = 0 ;
5733 PyObject *swig_obj[1] ;
5734
5735 if (!args) SWIG_fail;
5736 swig_obj[0] = args;
5737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5738 if (!SWIG_IsOK(res1)) {
5739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5740 }
5741 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = wxBitmap_GetSize(arg1);
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5756 PyObject *resultobj = 0;
5757 wxBitmap *arg1 = (wxBitmap *) 0 ;
5758 SwigValueWrapper<wxImage > result;
5759 void *argp1 = 0 ;
5760 int res1 = 0 ;
5761 PyObject *swig_obj[1] ;
5762
5763 if (!args) SWIG_fail;
5764 swig_obj[0] = args;
5765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5766 if (!SWIG_IsOK(res1)) {
5767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5768 }
5769 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5770 {
5771 PyThreadState* __tstate = wxPyBeginAllowThreads();
5772 result = ((wxBitmap const *)arg1)->ConvertToImage();
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5784 PyObject *resultobj = 0;
5785 wxBitmap *arg1 = (wxBitmap *) 0 ;
5786 wxMask *result = 0 ;
5787 void *argp1 = 0 ;
5788 int res1 = 0 ;
5789 PyObject *swig_obj[1] ;
5790
5791 if (!args) SWIG_fail;
5792 swig_obj[0] = args;
5793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5794 if (!SWIG_IsOK(res1)) {
5795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5796 }
5797 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5801 wxPyEndAllowThreads(__tstate);
5802 if (PyErr_Occurred()) SWIG_fail;
5803 }
5804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5812 PyObject *resultobj = 0;
5813 wxBitmap *arg1 = (wxBitmap *) 0 ;
5814 wxMask *arg2 = (wxMask *) 0 ;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 int res2 = 0 ;
5818 PyObject * obj0 = 0 ;
5819 PyObject * obj1 = 0 ;
5820 char * kwnames[] = {
5821 (char *) "self",(char *) "mask", NULL
5822 };
5823
5824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5826 if (!SWIG_IsOK(res1)) {
5827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5828 }
5829 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5830 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5831 if (!SWIG_IsOK(res2)) {
5832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 (arg1)->SetMask(arg2);
5837 wxPyEndAllowThreads(__tstate);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 resultobj = SWIG_Py_Void();
5841 return resultobj;
5842 fail:
5843 return NULL;
5844 }
5845
5846
5847 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5848 PyObject *resultobj = 0;
5849 wxBitmap *arg1 = (wxBitmap *) 0 ;
5850 wxColour *arg2 = 0 ;
5851 void *argp1 = 0 ;
5852 int res1 = 0 ;
5853 wxColour temp2 ;
5854 PyObject * obj0 = 0 ;
5855 PyObject * obj1 = 0 ;
5856 char * kwnames[] = {
5857 (char *) "self",(char *) "colour", NULL
5858 };
5859
5860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5862 if (!SWIG_IsOK(res1)) {
5863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5864 }
5865 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5866 {
5867 arg2 = &temp2;
5868 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5869 }
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5873 wxPyEndAllowThreads(__tstate);
5874 if (PyErr_Occurred()) SWIG_fail;
5875 }
5876 resultobj = SWIG_Py_Void();
5877 return resultobj;
5878 fail:
5879 return NULL;
5880 }
5881
5882
5883 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5884 PyObject *resultobj = 0;
5885 wxBitmap *arg1 = (wxBitmap *) 0 ;
5886 wxRect *arg2 = 0 ;
5887 SwigValueWrapper<wxBitmap > result;
5888 void *argp1 = 0 ;
5889 int res1 = 0 ;
5890 wxRect temp2 ;
5891 PyObject * obj0 = 0 ;
5892 PyObject * obj1 = 0 ;
5893 char * kwnames[] = {
5894 (char *) "self",(char *) "rect", NULL
5895 };
5896
5897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5899 if (!SWIG_IsOK(res1)) {
5900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5901 }
5902 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5903 {
5904 arg2 = &temp2;
5905 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5906 }
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj = 0;
5922 wxBitmap *arg1 = (wxBitmap *) 0 ;
5923 wxString *arg2 = 0 ;
5924 wxBitmapType arg3 ;
5925 wxPalette *arg4 = (wxPalette *) NULL ;
5926 bool result;
5927 void *argp1 = 0 ;
5928 int res1 = 0 ;
5929 bool temp2 = false ;
5930 int val3 ;
5931 int ecode3 = 0 ;
5932 void *argp4 = 0 ;
5933 int res4 = 0 ;
5934 PyObject * obj0 = 0 ;
5935 PyObject * obj1 = 0 ;
5936 PyObject * obj2 = 0 ;
5937 PyObject * obj3 = 0 ;
5938 char * kwnames[] = {
5939 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5940 };
5941
5942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5944 if (!SWIG_IsOK(res1)) {
5945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5946 }
5947 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5948 {
5949 arg2 = wxString_in_helper(obj1);
5950 if (arg2 == NULL) SWIG_fail;
5951 temp2 = true;
5952 }
5953 ecode3 = SWIG_AsVal_int(obj2, &val3);
5954 if (!SWIG_IsOK(ecode3)) {
5955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5956 }
5957 arg3 = static_cast< wxBitmapType >(val3);
5958 if (obj3) {
5959 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5960 if (!SWIG_IsOK(res4)) {
5961 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5962 }
5963 arg4 = reinterpret_cast< wxPalette * >(argp4);
5964 }
5965 {
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 {
5972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5973 }
5974 {
5975 if (temp2)
5976 delete arg2;
5977 }
5978 return resultobj;
5979 fail:
5980 {
5981 if (temp2)
5982 delete arg2;
5983 }
5984 return NULL;
5985 }
5986
5987
5988 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5989 PyObject *resultobj = 0;
5990 wxBitmap *arg1 = (wxBitmap *) 0 ;
5991 wxString *arg2 = 0 ;
5992 wxBitmapType arg3 ;
5993 bool result;
5994 void *argp1 = 0 ;
5995 int res1 = 0 ;
5996 bool temp2 = false ;
5997 int val3 ;
5998 int ecode3 = 0 ;
5999 PyObject * obj0 = 0 ;
6000 PyObject * obj1 = 0 ;
6001 PyObject * obj2 = 0 ;
6002 char * kwnames[] = {
6003 (char *) "self",(char *) "name",(char *) "type", NULL
6004 };
6005
6006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6012 {
6013 arg2 = wxString_in_helper(obj1);
6014 if (arg2 == NULL) SWIG_fail;
6015 temp2 = true;
6016 }
6017 ecode3 = SWIG_AsVal_int(obj2, &val3);
6018 if (!SWIG_IsOK(ecode3)) {
6019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6020 }
6021 arg3 = static_cast< wxBitmapType >(val3);
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 {
6029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6030 }
6031 {
6032 if (temp2)
6033 delete arg2;
6034 }
6035 return resultobj;
6036 fail:
6037 {
6038 if (temp2)
6039 delete arg2;
6040 }
6041 return NULL;
6042 }
6043
6044
6045 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6046 PyObject *resultobj = 0;
6047 wxBitmap *arg1 = (wxBitmap *) 0 ;
6048 wxPalette *result = 0 ;
6049 void *argp1 = 0 ;
6050 int res1 = 0 ;
6051 PyObject *swig_obj[1] ;
6052
6053 if (!args) SWIG_fail;
6054 swig_obj[0] = args;
6055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6056 if (!SWIG_IsOK(res1)) {
6057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6058 }
6059 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj = 0;
6075 wxBitmap *arg1 = (wxBitmap *) 0 ;
6076 wxIcon *arg2 = 0 ;
6077 bool result;
6078 void *argp1 = 0 ;
6079 int res1 = 0 ;
6080 void *argp2 = 0 ;
6081 int res2 = 0 ;
6082 PyObject * obj0 = 0 ;
6083 PyObject * obj1 = 0 ;
6084 char * kwnames[] = {
6085 (char *) "self",(char *) "icon", NULL
6086 };
6087
6088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6090 if (!SWIG_IsOK(res1)) {
6091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6092 }
6093 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6095 if (!SWIG_IsOK(res2)) {
6096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6097 }
6098 if (!argp2) {
6099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6100 }
6101 arg2 = reinterpret_cast< wxIcon * >(argp2);
6102 {
6103 PyThreadState* __tstate = wxPyBeginAllowThreads();
6104 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6105 wxPyEndAllowThreads(__tstate);
6106 if (PyErr_Occurred()) SWIG_fail;
6107 }
6108 {
6109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6110 }
6111 return resultobj;
6112 fail:
6113 return NULL;
6114 }
6115
6116
6117 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6118 PyObject *resultobj = 0;
6119 wxBitmap *arg1 = (wxBitmap *) 0 ;
6120 int arg2 ;
6121 void *argp1 = 0 ;
6122 int res1 = 0 ;
6123 int val2 ;
6124 int ecode2 = 0 ;
6125 PyObject * obj0 = 0 ;
6126 PyObject * obj1 = 0 ;
6127 char * kwnames[] = {
6128 (char *) "self",(char *) "height", NULL
6129 };
6130
6131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6133 if (!SWIG_IsOK(res1)) {
6134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6135 }
6136 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6137 ecode2 = SWIG_AsVal_int(obj1, &val2);
6138 if (!SWIG_IsOK(ecode2)) {
6139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6140 }
6141 arg2 = static_cast< int >(val2);
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 (arg1)->SetHeight(arg2);
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 resultobj = SWIG_Py_Void();
6149 return resultobj;
6150 fail:
6151 return NULL;
6152 }
6153
6154
6155 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj = 0;
6157 wxBitmap *arg1 = (wxBitmap *) 0 ;
6158 int arg2 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 int val2 ;
6162 int ecode2 = 0 ;
6163 PyObject * obj0 = 0 ;
6164 PyObject * obj1 = 0 ;
6165 char * kwnames[] = {
6166 (char *) "self",(char *) "width", NULL
6167 };
6168
6169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6171 if (!SWIG_IsOK(res1)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6173 }
6174 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6175 ecode2 = SWIG_AsVal_int(obj1, &val2);
6176 if (!SWIG_IsOK(ecode2)) {
6177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6178 }
6179 arg2 = static_cast< int >(val2);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->SetWidth(arg2);
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_Py_Void();
6187 return resultobj;
6188 fail:
6189 return NULL;
6190 }
6191
6192
6193 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj = 0;
6195 wxBitmap *arg1 = (wxBitmap *) 0 ;
6196 int arg2 ;
6197 void *argp1 = 0 ;
6198 int res1 = 0 ;
6199 int val2 ;
6200 int ecode2 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char * kwnames[] = {
6204 (char *) "self",(char *) "depth", NULL
6205 };
6206
6207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6211 }
6212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6213 ecode2 = SWIG_AsVal_int(obj1, &val2);
6214 if (!SWIG_IsOK(ecode2)) {
6215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6216 }
6217 arg2 = static_cast< int >(val2);
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 (arg1)->SetDepth(arg2);
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 resultobj = SWIG_Py_Void();
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj = 0;
6233 wxBitmap *arg1 = (wxBitmap *) 0 ;
6234 wxSize *arg2 = 0 ;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 wxSize temp2 ;
6238 PyObject * obj0 = 0 ;
6239 PyObject * obj1 = 0 ;
6240 char * kwnames[] = {
6241 (char *) "self",(char *) "size", NULL
6242 };
6243
6244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6246 if (!SWIG_IsOK(res1)) {
6247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6248 }
6249 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6250 {
6251 arg2 = &temp2;
6252 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6253 }
6254 {
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 resultobj = SWIG_Py_Void();
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj = 0;
6269 wxBitmap *arg1 = (wxBitmap *) 0 ;
6270 wxBitmap *arg2 = (wxBitmap *) 0 ;
6271 bool result;
6272 void *argp1 = 0 ;
6273 int res1 = 0 ;
6274 void *argp2 = 0 ;
6275 int res2 = 0 ;
6276 PyObject * obj0 = 0 ;
6277 PyObject * obj1 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "self",(char *) "other", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6284 if (!SWIG_IsOK(res1)) {
6285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6286 }
6287 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res2)) {
6290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6291 }
6292 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6296 wxPyEndAllowThreads(__tstate);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 }
6299 {
6300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6301 }
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxBitmap *arg1 = (wxBitmap *) 0 ;
6311 wxBitmap *arg2 = (wxBitmap *) 0 ;
6312 bool result;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 void *argp2 = 0 ;
6316 int res2 = 0 ;
6317 PyObject * obj0 = 0 ;
6318 PyObject * obj1 = 0 ;
6319 char * kwnames[] = {
6320 (char *) "self",(char *) "other", NULL
6321 };
6322
6323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6325 if (!SWIG_IsOK(res1)) {
6326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6327 }
6328 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6329 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6330 if (!SWIG_IsOK(res2)) {
6331 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6332 }
6333 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6334 {
6335 PyThreadState* __tstate = wxPyBeginAllowThreads();
6336 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6337 wxPyEndAllowThreads(__tstate);
6338 if (PyErr_Occurred()) SWIG_fail;
6339 }
6340 {
6341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6342 }
6343 return resultobj;
6344 fail:
6345 return NULL;
6346 }
6347
6348
6349 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6350 PyObject *obj;
6351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6352 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6353 return SWIG_Py_Void();
6354 }
6355
6356 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 return SWIG_Python_InitShadowInstance(args);
6358 }
6359
6360 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj = 0;
6362 wxBitmap *arg1 = 0 ;
6363 wxColour const &arg2_defvalue = wxNullColour ;
6364 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6365 wxMask *result = 0 ;
6366 void *argp1 = 0 ;
6367 int res1 = 0 ;
6368 wxColour temp2 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "bitmap",(char *) "colour", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6376 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6377 if (!SWIG_IsOK(res1)) {
6378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6379 }
6380 if (!argp1) {
6381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6382 }
6383 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6384 if (obj1) {
6385 {
6386 arg2 = &temp2;
6387 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6388 }
6389 }
6390 {
6391 if (!wxPyCheckForApp()) SWIG_fail;
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6405 PyObject *resultobj = 0;
6406 wxMask *arg1 = (wxMask *) 0 ;
6407 void *argp1 = 0 ;
6408 int res1 = 0 ;
6409 PyObject *swig_obj[1] ;
6410
6411 if (!args) SWIG_fail;
6412 swig_obj[0] = args;
6413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6414 if (!SWIG_IsOK(res1)) {
6415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6416 }
6417 arg1 = reinterpret_cast< wxMask * >(argp1);
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 delete arg1;
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_Py_Void();
6426 return resultobj;
6427 fail:
6428 return NULL;
6429 }
6430
6431
6432 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6433 PyObject *obj;
6434 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6435 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6436 return SWIG_Py_Void();
6437 }
6438
6439 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6440 return SWIG_Python_InitShadowInstance(args);
6441 }
6442
6443 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj = 0;
6445 wxString *arg1 = 0 ;
6446 wxBitmapType arg2 ;
6447 int arg3 = (int) -1 ;
6448 int arg4 = (int) -1 ;
6449 wxIcon *result = 0 ;
6450 bool temp1 = false ;
6451 int val2 ;
6452 int ecode2 = 0 ;
6453 int val3 ;
6454 int ecode3 = 0 ;
6455 int val4 ;
6456 int ecode4 = 0 ;
6457 PyObject * obj0 = 0 ;
6458 PyObject * obj1 = 0 ;
6459 PyObject * obj2 = 0 ;
6460 PyObject * obj3 = 0 ;
6461 char * kwnames[] = {
6462 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6463 };
6464
6465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6466 {
6467 arg1 = wxString_in_helper(obj0);
6468 if (arg1 == NULL) SWIG_fail;
6469 temp1 = true;
6470 }
6471 ecode2 = SWIG_AsVal_int(obj1, &val2);
6472 if (!SWIG_IsOK(ecode2)) {
6473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6474 }
6475 arg2 = static_cast< wxBitmapType >(val2);
6476 if (obj2) {
6477 ecode3 = SWIG_AsVal_int(obj2, &val3);
6478 if (!SWIG_IsOK(ecode3)) {
6479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6480 }
6481 arg3 = static_cast< int >(val3);
6482 }
6483 if (obj3) {
6484 ecode4 = SWIG_AsVal_int(obj3, &val4);
6485 if (!SWIG_IsOK(ecode4)) {
6486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6487 }
6488 arg4 = static_cast< int >(val4);
6489 }
6490 {
6491 if (!wxPyCheckForApp()) SWIG_fail;
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6498 {
6499 if (temp1)
6500 delete arg1;
6501 }
6502 return resultobj;
6503 fail:
6504 {
6505 if (temp1)
6506 delete arg1;
6507 }
6508 return NULL;
6509 }
6510
6511
6512 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6513 PyObject *resultobj = 0;
6514 wxIcon *arg1 = (wxIcon *) 0 ;
6515 void *argp1 = 0 ;
6516 int res1 = 0 ;
6517 PyObject *swig_obj[1] ;
6518
6519 if (!args) SWIG_fail;
6520 swig_obj[0] = args;
6521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6522 if (!SWIG_IsOK(res1)) {
6523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6524 }
6525 arg1 = reinterpret_cast< wxIcon * >(argp1);
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 delete arg1;
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 resultobj = SWIG_Py_Void();
6534 return resultobj;
6535 fail:
6536 return NULL;
6537 }
6538
6539
6540 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6541 PyObject *resultobj = 0;
6542 wxIcon *result = 0 ;
6543
6544 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6545 {
6546 if (!wxPyCheckForApp()) SWIG_fail;
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 result = (wxIcon *)new wxIcon();
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj = 0;
6561 wxIconLocation *arg1 = 0 ;
6562 wxIcon *result = 0 ;
6563 void *argp1 = 0 ;
6564 int res1 = 0 ;
6565 PyObject * obj0 = 0 ;
6566 char * kwnames[] = {
6567 (char *) "loc", NULL
6568 };
6569
6570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6571 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6572 if (!SWIG_IsOK(res1)) {
6573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6574 }
6575 if (!argp1) {
6576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6577 }
6578 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6579 {
6580 if (!wxPyCheckForApp()) SWIG_fail;
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj = 0;
6595 wxBitmap *arg1 = 0 ;
6596 wxIcon *result = 0 ;
6597 void *argp1 = 0 ;
6598 int res1 = 0 ;
6599 PyObject * obj0 = 0 ;
6600 char * kwnames[] = {
6601 (char *) "bmp", NULL
6602 };
6603
6604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6605 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6606 if (!SWIG_IsOK(res1)) {
6607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6608 }
6609 if (!argp1) {
6610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6611 }
6612 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6613 {
6614 if (!wxPyCheckForApp()) SWIG_fail;
6615 PyThreadState* __tstate = wxPyBeginAllowThreads();
6616 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6617 wxPyEndAllowThreads(__tstate);
6618 if (PyErr_Occurred()) SWIG_fail;
6619 }
6620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6621 return resultobj;
6622 fail:
6623 return NULL;
6624 }
6625
6626
6627 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6628 PyObject *resultobj = 0;
6629 PyObject *arg1 = (PyObject *) 0 ;
6630 wxIcon *result = 0 ;
6631 PyObject * obj0 = 0 ;
6632 char * kwnames[] = {
6633 (char *) "listOfStrings", NULL
6634 };
6635
6636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6637 arg1 = obj0;
6638 {
6639 if (!wxPyCheckForApp()) SWIG_fail;
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 result = (wxIcon *)new_wxIcon(arg1);
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6653 PyObject *resultobj = 0;
6654 wxIcon *arg1 = (wxIcon *) 0 ;
6655 bool result;
6656 void *argp1 = 0 ;
6657 int res1 = 0 ;
6658 PyObject *swig_obj[1] ;
6659
6660 if (!args) SWIG_fail;
6661 swig_obj[0] = args;
6662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6663 if (!SWIG_IsOK(res1)) {
6664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6665 }
6666 arg1 = reinterpret_cast< wxIcon * >(argp1);
6667 {
6668 PyThreadState* __tstate = wxPyBeginAllowThreads();
6669 result = (bool)(arg1)->Ok();
6670 wxPyEndAllowThreads(__tstate);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 {
6674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6675 }
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6683 PyObject *resultobj = 0;
6684 wxIcon *arg1 = (wxIcon *) 0 ;
6685 int result;
6686 void *argp1 = 0 ;
6687 int res1 = 0 ;
6688 PyObject *swig_obj[1] ;
6689
6690 if (!args) SWIG_fail;
6691 swig_obj[0] = args;
6692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6693 if (!SWIG_IsOK(res1)) {
6694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6695 }
6696 arg1 = reinterpret_cast< wxIcon * >(argp1);
6697 {
6698 PyThreadState* __tstate = wxPyBeginAllowThreads();
6699 result = (int)(arg1)->GetWidth();
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 resultobj = SWIG_From_int(static_cast< int >(result));
6704 return resultobj;
6705 fail:
6706 return NULL;
6707 }
6708
6709
6710 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6711 PyObject *resultobj = 0;
6712 wxIcon *arg1 = (wxIcon *) 0 ;
6713 int result;
6714 void *argp1 = 0 ;
6715 int res1 = 0 ;
6716 PyObject *swig_obj[1] ;
6717
6718 if (!args) SWIG_fail;
6719 swig_obj[0] = args;
6720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6721 if (!SWIG_IsOK(res1)) {
6722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6723 }
6724 arg1 = reinterpret_cast< wxIcon * >(argp1);
6725 {
6726 PyThreadState* __tstate = wxPyBeginAllowThreads();
6727 result = (int)(arg1)->GetHeight();
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 resultobj = SWIG_From_int(static_cast< int >(result));
6732 return resultobj;
6733 fail:
6734 return NULL;
6735 }
6736
6737
6738 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6739 PyObject *resultobj = 0;
6740 wxIcon *arg1 = (wxIcon *) 0 ;
6741 int result;
6742 void *argp1 = 0 ;
6743 int res1 = 0 ;
6744 PyObject *swig_obj[1] ;
6745
6746 if (!args) SWIG_fail;
6747 swig_obj[0] = args;
6748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6749 if (!SWIG_IsOK(res1)) {
6750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6751 }
6752 arg1 = reinterpret_cast< wxIcon * >(argp1);
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 result = (int)(arg1)->GetDepth();
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 resultobj = SWIG_From_int(static_cast< int >(result));
6760 return resultobj;
6761 fail:
6762 return NULL;
6763 }
6764
6765
6766 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6767 PyObject *resultobj = 0;
6768 wxIcon *arg1 = (wxIcon *) 0 ;
6769 int arg2 ;
6770 void *argp1 = 0 ;
6771 int res1 = 0 ;
6772 int val2 ;
6773 int ecode2 = 0 ;
6774 PyObject * obj0 = 0 ;
6775 PyObject * obj1 = 0 ;
6776 char * kwnames[] = {
6777 (char *) "self",(char *) "w", NULL
6778 };
6779
6780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6782 if (!SWIG_IsOK(res1)) {
6783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6784 }
6785 arg1 = reinterpret_cast< wxIcon * >(argp1);
6786 ecode2 = SWIG_AsVal_int(obj1, &val2);
6787 if (!SWIG_IsOK(ecode2)) {
6788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6789 }
6790 arg2 = static_cast< int >(val2);
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 (arg1)->SetWidth(arg2);
6794 wxPyEndAllowThreads(__tstate);
6795 if (PyErr_Occurred()) SWIG_fail;
6796 }
6797 resultobj = SWIG_Py_Void();
6798 return resultobj;
6799 fail:
6800 return NULL;
6801 }
6802
6803
6804 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6805 PyObject *resultobj = 0;
6806 wxIcon *arg1 = (wxIcon *) 0 ;
6807 int arg2 ;
6808 void *argp1 = 0 ;
6809 int res1 = 0 ;
6810 int val2 ;
6811 int ecode2 = 0 ;
6812 PyObject * obj0 = 0 ;
6813 PyObject * obj1 = 0 ;
6814 char * kwnames[] = {
6815 (char *) "self",(char *) "h", NULL
6816 };
6817
6818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6820 if (!SWIG_IsOK(res1)) {
6821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6822 }
6823 arg1 = reinterpret_cast< wxIcon * >(argp1);
6824 ecode2 = SWIG_AsVal_int(obj1, &val2);
6825 if (!SWIG_IsOK(ecode2)) {
6826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6827 }
6828 arg2 = static_cast< int >(val2);
6829 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 (arg1)->SetHeight(arg2);
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 resultobj = SWIG_Py_Void();
6836 return resultobj;
6837 fail:
6838 return NULL;
6839 }
6840
6841
6842 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6843 PyObject *resultobj = 0;
6844 wxIcon *arg1 = (wxIcon *) 0 ;
6845 int arg2 ;
6846 void *argp1 = 0 ;
6847 int res1 = 0 ;
6848 int val2 ;
6849 int ecode2 = 0 ;
6850 PyObject * obj0 = 0 ;
6851 PyObject * obj1 = 0 ;
6852 char * kwnames[] = {
6853 (char *) "self",(char *) "d", NULL
6854 };
6855
6856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6858 if (!SWIG_IsOK(res1)) {
6859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6860 }
6861 arg1 = reinterpret_cast< wxIcon * >(argp1);
6862 ecode2 = SWIG_AsVal_int(obj1, &val2);
6863 if (!SWIG_IsOK(ecode2)) {
6864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6865 }
6866 arg2 = static_cast< int >(val2);
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 (arg1)->SetDepth(arg2);
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 resultobj = SWIG_Py_Void();
6874 return resultobj;
6875 fail:
6876 return NULL;
6877 }
6878
6879
6880 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6881 PyObject *resultobj = 0;
6882 wxIcon *arg1 = (wxIcon *) 0 ;
6883 wxBitmap *arg2 = 0 ;
6884 void *argp1 = 0 ;
6885 int res1 = 0 ;
6886 void *argp2 = 0 ;
6887 int res2 = 0 ;
6888 PyObject * obj0 = 0 ;
6889 PyObject * obj1 = 0 ;
6890 char * kwnames[] = {
6891 (char *) "self",(char *) "bmp", NULL
6892 };
6893
6894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6896 if (!SWIG_IsOK(res1)) {
6897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6898 }
6899 arg1 = reinterpret_cast< wxIcon * >(argp1);
6900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6901 if (!SWIG_IsOK(res2)) {
6902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6903 }
6904 if (!argp2) {
6905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6906 }
6907 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6908 {
6909 PyThreadState* __tstate = wxPyBeginAllowThreads();
6910 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6911 wxPyEndAllowThreads(__tstate);
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 resultobj = SWIG_Py_Void();
6915 return resultobj;
6916 fail:
6917 return NULL;
6918 }
6919
6920
6921 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6922 PyObject *obj;
6923 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6924 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6925 return SWIG_Py_Void();
6926 }
6927
6928 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6929 return SWIG_Python_InitShadowInstance(args);
6930 }
6931
6932 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj = 0;
6934 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6935 int arg2 = (int) 0 ;
6936 wxIconLocation *result = 0 ;
6937 bool temp1 = false ;
6938 int val2 ;
6939 int ecode2 = 0 ;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 char * kwnames[] = {
6943 (char *) "filename",(char *) "num", NULL
6944 };
6945
6946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6947 if (obj0) {
6948 {
6949 arg1 = wxString_in_helper(obj0);
6950 if (arg1 == NULL) SWIG_fail;
6951 temp1 = true;
6952 }
6953 }
6954 if (obj1) {
6955 ecode2 = SWIG_AsVal_int(obj1, &val2);
6956 if (!SWIG_IsOK(ecode2)) {
6957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6958 }
6959 arg2 = static_cast< int >(val2);
6960 }
6961 {
6962 PyThreadState* __tstate = wxPyBeginAllowThreads();
6963 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6968 {
6969 if (temp1)
6970 delete arg1;
6971 }
6972 return resultobj;
6973 fail:
6974 {
6975 if (temp1)
6976 delete arg1;
6977 }
6978 return NULL;
6979 }
6980
6981
6982 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6983 PyObject *resultobj = 0;
6984 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6985 void *argp1 = 0 ;
6986 int res1 = 0 ;
6987 PyObject *swig_obj[1] ;
6988
6989 if (!args) SWIG_fail;
6990 swig_obj[0] = args;
6991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
6992 if (!SWIG_IsOK(res1)) {
6993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
6994 }
6995 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6996 {
6997 PyThreadState* __tstate = wxPyBeginAllowThreads();
6998 delete arg1;
6999
7000 wxPyEndAllowThreads(__tstate);
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 resultobj = SWIG_Py_Void();
7004 return resultobj;
7005 fail:
7006 return NULL;
7007 }
7008
7009
7010 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7011 PyObject *resultobj = 0;
7012 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7013 bool result;
7014 void *argp1 = 0 ;
7015 int res1 = 0 ;
7016 PyObject *swig_obj[1] ;
7017
7018 if (!args) SWIG_fail;
7019 swig_obj[0] = args;
7020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7021 if (!SWIG_IsOK(res1)) {
7022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7023 }
7024 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 {
7032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7033 }
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj = 0;
7042 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7043 wxString *arg2 = 0 ;
7044 void *argp1 = 0 ;
7045 int res1 = 0 ;
7046 bool temp2 = false ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 char * kwnames[] = {
7050 (char *) "self",(char *) "filename", NULL
7051 };
7052
7053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7055 if (!SWIG_IsOK(res1)) {
7056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7057 }
7058 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7059 {
7060 arg2 = wxString_in_helper(obj1);
7061 if (arg2 == NULL) SWIG_fail;
7062 temp2 = true;
7063 }
7064 {
7065 PyThreadState* __tstate = wxPyBeginAllowThreads();
7066 (arg1)->SetFileName((wxString const &)*arg2);
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_Py_Void();
7071 {
7072 if (temp2)
7073 delete arg2;
7074 }
7075 return resultobj;
7076 fail:
7077 {
7078 if (temp2)
7079 delete arg2;
7080 }
7081 return NULL;
7082 }
7083
7084
7085 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7086 PyObject *resultobj = 0;
7087 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7088 wxString *result = 0 ;
7089 void *argp1 = 0 ;
7090 int res1 = 0 ;
7091 PyObject *swig_obj[1] ;
7092
7093 if (!args) SWIG_fail;
7094 swig_obj[0] = args;
7095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7096 if (!SWIG_IsOK(res1)) {
7097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7098 }
7099 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 {
7103 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7104 result = (wxString *) &_result_ref;
7105 }
7106 wxPyEndAllowThreads(__tstate);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 }
7109 {
7110 #if wxUSE_UNICODE
7111 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7112 #else
7113 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7114 #endif
7115 }
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj = 0;
7124 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7125 int arg2 ;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 int val2 ;
7129 int ecode2 = 0 ;
7130 PyObject * obj0 = 0 ;
7131 PyObject * obj1 = 0 ;
7132 char * kwnames[] = {
7133 (char *) "self",(char *) "num", NULL
7134 };
7135
7136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7138 if (!SWIG_IsOK(res1)) {
7139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7140 }
7141 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7142 ecode2 = SWIG_AsVal_int(obj1, &val2);
7143 if (!SWIG_IsOK(ecode2)) {
7144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7145 }
7146 arg2 = static_cast< int >(val2);
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 wxIconLocation_SetIndex(arg1,arg2);
7150 wxPyEndAllowThreads(__tstate);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 resultobj = SWIG_Py_Void();
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7161 PyObject *resultobj = 0;
7162 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7163 int result;
7164 void *argp1 = 0 ;
7165 int res1 = 0 ;
7166 PyObject *swig_obj[1] ;
7167
7168 if (!args) SWIG_fail;
7169 swig_obj[0] = args;
7170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7171 if (!SWIG_IsOK(res1)) {
7172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7173 }
7174 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7175 {
7176 PyThreadState* __tstate = wxPyBeginAllowThreads();
7177 result = (int)wxIconLocation_GetIndex(arg1);
7178 wxPyEndAllowThreads(__tstate);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 resultobj = SWIG_From_int(static_cast< int >(result));
7182 return resultobj;
7183 fail:
7184 return NULL;
7185 }
7186
7187
7188 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7189 PyObject *obj;
7190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7191 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7192 return SWIG_Py_Void();
7193 }
7194
7195 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 return SWIG_Python_InitShadowInstance(args);
7197 }
7198
7199 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7200 PyObject *resultobj = 0;
7201 wxIconBundle *result = 0 ;
7202
7203 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7204 {
7205 PyThreadState* __tstate = wxPyBeginAllowThreads();
7206 result = (wxIconBundle *)new wxIconBundle();
7207 wxPyEndAllowThreads(__tstate);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 }
7210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj = 0;
7219 wxString *arg1 = 0 ;
7220 long arg2 ;
7221 wxIconBundle *result = 0 ;
7222 bool temp1 = false ;
7223 long val2 ;
7224 int ecode2 = 0 ;
7225 PyObject * obj0 = 0 ;
7226 PyObject * obj1 = 0 ;
7227 char * kwnames[] = {
7228 (char *) "file",(char *) "type", NULL
7229 };
7230
7231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7232 {
7233 arg1 = wxString_in_helper(obj0);
7234 if (arg1 == NULL) SWIG_fail;
7235 temp1 = true;
7236 }
7237 ecode2 = SWIG_AsVal_long(obj1, &val2);
7238 if (!SWIG_IsOK(ecode2)) {
7239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7240 }
7241 arg2 = static_cast< long >(val2);
7242 {
7243 PyThreadState* __tstate = wxPyBeginAllowThreads();
7244 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7245 wxPyEndAllowThreads(__tstate);
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7249 {
7250 if (temp1)
7251 delete arg1;
7252 }
7253 return resultobj;
7254 fail:
7255 {
7256 if (temp1)
7257 delete arg1;
7258 }
7259 return NULL;
7260 }
7261
7262
7263 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7264 PyObject *resultobj = 0;
7265 wxIcon *arg1 = 0 ;
7266 wxIconBundle *result = 0 ;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject * obj0 = 0 ;
7270 char * kwnames[] = {
7271 (char *) "icon", NULL
7272 };
7273
7274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7275 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7276 if (!SWIG_IsOK(res1)) {
7277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7278 }
7279 if (!argp1) {
7280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7281 }
7282 arg1 = reinterpret_cast< wxIcon * >(argp1);
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7286 wxPyEndAllowThreads(__tstate);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7290 return resultobj;
7291 fail:
7292 return NULL;
7293 }
7294
7295
7296 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7297 PyObject *resultobj = 0;
7298 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7299 void *argp1 = 0 ;
7300 int res1 = 0 ;
7301 PyObject *swig_obj[1] ;
7302
7303 if (!args) SWIG_fail;
7304 swig_obj[0] = args;
7305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7306 if (!SWIG_IsOK(res1)) {
7307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7308 }
7309 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 delete arg1;
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = SWIG_Py_Void();
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj = 0;
7326 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7327 wxIcon *arg2 = 0 ;
7328 void *argp1 = 0 ;
7329 int res1 = 0 ;
7330 void *argp2 = 0 ;
7331 int res2 = 0 ;
7332 PyObject * obj0 = 0 ;
7333 PyObject * obj1 = 0 ;
7334 char * kwnames[] = {
7335 (char *) "self",(char *) "icon", NULL
7336 };
7337
7338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7342 }
7343 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7345 if (!SWIG_IsOK(res2)) {
7346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7347 }
7348 if (!argp2) {
7349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7350 }
7351 arg2 = reinterpret_cast< wxIcon * >(argp2);
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 (arg1)->AddIcon((wxIcon const &)*arg2);
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 resultobj = SWIG_Py_Void();
7359 return resultobj;
7360 fail:
7361 return NULL;
7362 }
7363
7364
7365 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7366 PyObject *resultobj = 0;
7367 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7368 wxString *arg2 = 0 ;
7369 long arg3 ;
7370 void *argp1 = 0 ;
7371 int res1 = 0 ;
7372 bool temp2 = false ;
7373 long val3 ;
7374 int ecode3 = 0 ;
7375 PyObject * obj0 = 0 ;
7376 PyObject * obj1 = 0 ;
7377 PyObject * obj2 = 0 ;
7378 char * kwnames[] = {
7379 (char *) "self",(char *) "file",(char *) "type", NULL
7380 };
7381
7382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7384 if (!SWIG_IsOK(res1)) {
7385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7386 }
7387 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7388 {
7389 arg2 = wxString_in_helper(obj1);
7390 if (arg2 == NULL) SWIG_fail;
7391 temp2 = true;
7392 }
7393 ecode3 = SWIG_AsVal_long(obj2, &val3);
7394 if (!SWIG_IsOK(ecode3)) {
7395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7396 }
7397 arg3 = static_cast< long >(val3);
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 resultobj = SWIG_Py_Void();
7405 {
7406 if (temp2)
7407 delete arg2;
7408 }
7409 return resultobj;
7410 fail:
7411 {
7412 if (temp2)
7413 delete arg2;
7414 }
7415 return NULL;
7416 }
7417
7418
7419 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj = 0;
7421 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7422 wxSize *arg2 = 0 ;
7423 wxIcon *result = 0 ;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 wxSize temp2 ;
7427 PyObject * obj0 = 0 ;
7428 PyObject * obj1 = 0 ;
7429 char * kwnames[] = {
7430 (char *) "self",(char *) "size", NULL
7431 };
7432
7433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7435 if (!SWIG_IsOK(res1)) {
7436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7437 }
7438 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7439 {
7440 arg2 = &temp2;
7441 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7442 }
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 {
7446 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7447 result = (wxIcon *) &_result_ref;
7448 }
7449 wxPyEndAllowThreads(__tstate);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 {
7453 wxIcon* resultptr = new wxIcon(*result);
7454 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7455 }
7456 return resultobj;
7457 fail:
7458 return NULL;
7459 }
7460
7461
7462 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7463 PyObject *obj;
7464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7465 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7466 return SWIG_Py_Void();
7467 }
7468
7469 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7470 return SWIG_Python_InitShadowInstance(args);
7471 }
7472
7473 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj = 0;
7475 wxString *arg1 = 0 ;
7476 long arg2 ;
7477 int arg3 = (int) 0 ;
7478 int arg4 = (int) 0 ;
7479 wxCursor *result = 0 ;
7480 bool temp1 = false ;
7481 long val2 ;
7482 int ecode2 = 0 ;
7483 int val3 ;
7484 int ecode3 = 0 ;
7485 int val4 ;
7486 int ecode4 = 0 ;
7487 PyObject * obj0 = 0 ;
7488 PyObject * obj1 = 0 ;
7489 PyObject * obj2 = 0 ;
7490 PyObject * obj3 = 0 ;
7491 char * kwnames[] = {
7492 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7493 };
7494
7495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7496 {
7497 arg1 = wxString_in_helper(obj0);
7498 if (arg1 == NULL) SWIG_fail;
7499 temp1 = true;
7500 }
7501 ecode2 = SWIG_AsVal_long(obj1, &val2);
7502 if (!SWIG_IsOK(ecode2)) {
7503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7504 }
7505 arg2 = static_cast< long >(val2);
7506 if (obj2) {
7507 ecode3 = SWIG_AsVal_int(obj2, &val3);
7508 if (!SWIG_IsOK(ecode3)) {
7509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7510 }
7511 arg3 = static_cast< int >(val3);
7512 }
7513 if (obj3) {
7514 ecode4 = SWIG_AsVal_int(obj3, &val4);
7515 if (!SWIG_IsOK(ecode4)) {
7516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7517 }
7518 arg4 = static_cast< int >(val4);
7519 }
7520 {
7521 if (!wxPyCheckForApp()) SWIG_fail;
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7528 {
7529 if (temp1)
7530 delete arg1;
7531 }
7532 return resultobj;
7533 fail:
7534 {
7535 if (temp1)
7536 delete arg1;
7537 }
7538 return NULL;
7539 }
7540
7541
7542 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7543 PyObject *resultobj = 0;
7544 wxCursor *arg1 = (wxCursor *) 0 ;
7545 void *argp1 = 0 ;
7546 int res1 = 0 ;
7547 PyObject *swig_obj[1] ;
7548
7549 if (!args) SWIG_fail;
7550 swig_obj[0] = args;
7551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7552 if (!SWIG_IsOK(res1)) {
7553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7554 }
7555 arg1 = reinterpret_cast< wxCursor * >(argp1);
7556 {
7557 PyThreadState* __tstate = wxPyBeginAllowThreads();
7558 delete arg1;
7559
7560 wxPyEndAllowThreads(__tstate);
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = SWIG_Py_Void();
7564 return resultobj;
7565 fail:
7566 return NULL;
7567 }
7568
7569
7570 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7571 PyObject *resultobj = 0;
7572 int arg1 ;
7573 wxCursor *result = 0 ;
7574 int val1 ;
7575 int ecode1 = 0 ;
7576 PyObject * obj0 = 0 ;
7577 char * kwnames[] = {
7578 (char *) "id", NULL
7579 };
7580
7581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7582 ecode1 = SWIG_AsVal_int(obj0, &val1);
7583 if (!SWIG_IsOK(ecode1)) {
7584 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7585 }
7586 arg1 = static_cast< int >(val1);
7587 {
7588 if (!wxPyCheckForApp()) SWIG_fail;
7589 PyThreadState* __tstate = wxPyBeginAllowThreads();
7590 result = (wxCursor *)new wxCursor(arg1);
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj = 0;
7603 wxImage *arg1 = 0 ;
7604 wxCursor *result = 0 ;
7605 void *argp1 = 0 ;
7606 int res1 = 0 ;
7607 PyObject * obj0 = 0 ;
7608 char * kwnames[] = {
7609 (char *) "image", NULL
7610 };
7611
7612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7613 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7614 if (!SWIG_IsOK(res1)) {
7615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7616 }
7617 if (!argp1) {
7618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7619 }
7620 arg1 = reinterpret_cast< wxImage * >(argp1);
7621 {
7622 if (!wxPyCheckForApp()) SWIG_fail;
7623 PyThreadState* __tstate = wxPyBeginAllowThreads();
7624 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7636 PyObject *resultobj = 0;
7637 wxCursor *arg1 = (wxCursor *) 0 ;
7638 bool result;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 PyObject *swig_obj[1] ;
7642
7643 if (!args) SWIG_fail;
7644 swig_obj[0] = args;
7645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7646 if (!SWIG_IsOK(res1)) {
7647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7648 }
7649 arg1 = reinterpret_cast< wxCursor * >(argp1);
7650 {
7651 PyThreadState* __tstate = wxPyBeginAllowThreads();
7652 result = (bool)(arg1)->Ok();
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 {
7657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7658 }
7659 return resultobj;
7660 fail:
7661 return NULL;
7662 }
7663
7664
7665 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7666 PyObject *obj;
7667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7668 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7669 return SWIG_Py_Void();
7670 }
7671
7672 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7673 return SWIG_Python_InitShadowInstance(args);
7674 }
7675
7676 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj = 0;
7678 int arg1 = (int) 0 ;
7679 int arg2 = (int) 0 ;
7680 int arg3 = (int) 0 ;
7681 int arg4 = (int) 0 ;
7682 wxRegion *result = 0 ;
7683 int val1 ;
7684 int ecode1 = 0 ;
7685 int val2 ;
7686 int ecode2 = 0 ;
7687 int val3 ;
7688 int ecode3 = 0 ;
7689 int val4 ;
7690 int ecode4 = 0 ;
7691 PyObject * obj0 = 0 ;
7692 PyObject * obj1 = 0 ;
7693 PyObject * obj2 = 0 ;
7694 PyObject * obj3 = 0 ;
7695 char * kwnames[] = {
7696 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7697 };
7698
7699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7700 if (obj0) {
7701 ecode1 = SWIG_AsVal_int(obj0, &val1);
7702 if (!SWIG_IsOK(ecode1)) {
7703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7704 }
7705 arg1 = static_cast< int >(val1);
7706 }
7707 if (obj1) {
7708 ecode2 = SWIG_AsVal_int(obj1, &val2);
7709 if (!SWIG_IsOK(ecode2)) {
7710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7711 }
7712 arg2 = static_cast< int >(val2);
7713 }
7714 if (obj2) {
7715 ecode3 = SWIG_AsVal_int(obj2, &val3);
7716 if (!SWIG_IsOK(ecode3)) {
7717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7718 }
7719 arg3 = static_cast< int >(val3);
7720 }
7721 if (obj3) {
7722 ecode4 = SWIG_AsVal_int(obj3, &val4);
7723 if (!SWIG_IsOK(ecode4)) {
7724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7725 }
7726 arg4 = static_cast< int >(val4);
7727 }
7728 {
7729 if (!wxPyCheckForApp()) SWIG_fail;
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7736 return resultobj;
7737 fail:
7738 return NULL;
7739 }
7740
7741
7742 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj = 0;
7744 wxBitmap *arg1 = 0 ;
7745 wxRegion *result = 0 ;
7746 void *argp1 = 0 ;
7747 int res1 = 0 ;
7748 PyObject * obj0 = 0 ;
7749 char * kwnames[] = {
7750 (char *) "bmp", NULL
7751 };
7752
7753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7757 }
7758 if (!argp1) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7760 }
7761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7762 {
7763 if (!wxPyCheckForApp()) SWIG_fail;
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7770 return resultobj;
7771 fail:
7772 return NULL;
7773 }
7774
7775
7776 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7777 PyObject *resultobj = 0;
7778 wxBitmap *arg1 = 0 ;
7779 wxColour *arg2 = 0 ;
7780 int arg3 = (int) 0 ;
7781 wxRegion *result = 0 ;
7782 void *argp1 = 0 ;
7783 int res1 = 0 ;
7784 wxColour temp2 ;
7785 int val3 ;
7786 int ecode3 = 0 ;
7787 PyObject * obj0 = 0 ;
7788 PyObject * obj1 = 0 ;
7789 PyObject * obj2 = 0 ;
7790 char * kwnames[] = {
7791 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7792 };
7793
7794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7795 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7796 if (!SWIG_IsOK(res1)) {
7797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7798 }
7799 if (!argp1) {
7800 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7801 }
7802 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7803 {
7804 arg2 = &temp2;
7805 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7806 }
7807 if (obj2) {
7808 ecode3 = SWIG_AsVal_int(obj2, &val3);
7809 if (!SWIG_IsOK(ecode3)) {
7810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7811 }
7812 arg3 = static_cast< int >(val3);
7813 }
7814 {
7815 if (!wxPyCheckForApp()) SWIG_fail;
7816 PyThreadState* __tstate = wxPyBeginAllowThreads();
7817 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj = 0;
7830 int arg1 ;
7831 wxPoint *arg2 = (wxPoint *) 0 ;
7832 int arg3 = (int) wxWINDING_RULE ;
7833 wxRegion *result = 0 ;
7834 int val3 ;
7835 int ecode3 = 0 ;
7836 PyObject * obj0 = 0 ;
7837 PyObject * obj1 = 0 ;
7838 char * kwnames[] = {
7839 (char *) "points",(char *) "fillStyle", NULL
7840 };
7841
7842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7843 {
7844 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7845 if (arg2 == NULL) SWIG_fail;
7846 }
7847 if (obj1) {
7848 ecode3 = SWIG_AsVal_int(obj1, &val3);
7849 if (!SWIG_IsOK(ecode3)) {
7850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7851 }
7852 arg3 = static_cast< int >(val3);
7853 }
7854 {
7855 if (!wxPyCheckForApp()) SWIG_fail;
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7862 {
7863 if (arg2) delete [] arg2;
7864 }
7865 return resultobj;
7866 fail:
7867 {
7868 if (arg2) delete [] arg2;
7869 }
7870 return NULL;
7871 }
7872
7873
7874 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7875 PyObject *resultobj = 0;
7876 wxRegion *arg1 = (wxRegion *) 0 ;
7877 void *argp1 = 0 ;
7878 int res1 = 0 ;
7879 PyObject *swig_obj[1] ;
7880
7881 if (!args) SWIG_fail;
7882 swig_obj[0] = args;
7883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7884 if (!SWIG_IsOK(res1)) {
7885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7886 }
7887 arg1 = reinterpret_cast< wxRegion * >(argp1);
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 delete arg1;
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 resultobj = SWIG_Py_Void();
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7903 PyObject *resultobj = 0;
7904 wxRegion *arg1 = (wxRegion *) 0 ;
7905 void *argp1 = 0 ;
7906 int res1 = 0 ;
7907 PyObject *swig_obj[1] ;
7908
7909 if (!args) SWIG_fail;
7910 swig_obj[0] = args;
7911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7912 if (!SWIG_IsOK(res1)) {
7913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7914 }
7915 arg1 = reinterpret_cast< wxRegion * >(argp1);
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 (arg1)->Clear();
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_Py_Void();
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj = 0;
7931 wxRegion *arg1 = (wxRegion *) 0 ;
7932 int arg2 ;
7933 int arg3 ;
7934 bool result;
7935 void *argp1 = 0 ;
7936 int res1 = 0 ;
7937 int val2 ;
7938 int ecode2 = 0 ;
7939 int val3 ;
7940 int ecode3 = 0 ;
7941 PyObject * obj0 = 0 ;
7942 PyObject * obj1 = 0 ;
7943 PyObject * obj2 = 0 ;
7944 char * kwnames[] = {
7945 (char *) "self",(char *) "x",(char *) "y", NULL
7946 };
7947
7948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7950 if (!SWIG_IsOK(res1)) {
7951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7952 }
7953 arg1 = reinterpret_cast< wxRegion * >(argp1);
7954 ecode2 = SWIG_AsVal_int(obj1, &val2);
7955 if (!SWIG_IsOK(ecode2)) {
7956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7957 }
7958 arg2 = static_cast< int >(val2);
7959 ecode3 = SWIG_AsVal_int(obj2, &val3);
7960 if (!SWIG_IsOK(ecode3)) {
7961 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7962 }
7963 arg3 = static_cast< int >(val3);
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = (bool)(arg1)->Offset(arg2,arg3);
7967 wxPyEndAllowThreads(__tstate);
7968 if (PyErr_Occurred()) SWIG_fail;
7969 }
7970 {
7971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7972 }
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj = 0;
7981 wxRegion *arg1 = (wxRegion *) 0 ;
7982 int arg2 ;
7983 int arg3 ;
7984 wxRegionContain result;
7985 void *argp1 = 0 ;
7986 int res1 = 0 ;
7987 int val2 ;
7988 int ecode2 = 0 ;
7989 int val3 ;
7990 int ecode3 = 0 ;
7991 PyObject * obj0 = 0 ;
7992 PyObject * obj1 = 0 ;
7993 PyObject * obj2 = 0 ;
7994 char * kwnames[] = {
7995 (char *) "self",(char *) "x",(char *) "y", NULL
7996 };
7997
7998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8000 if (!SWIG_IsOK(res1)) {
8001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8002 }
8003 arg1 = reinterpret_cast< wxRegion * >(argp1);
8004 ecode2 = SWIG_AsVal_int(obj1, &val2);
8005 if (!SWIG_IsOK(ecode2)) {
8006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8007 }
8008 arg2 = static_cast< int >(val2);
8009 ecode3 = SWIG_AsVal_int(obj2, &val3);
8010 if (!SWIG_IsOK(ecode3)) {
8011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8012 }
8013 arg3 = static_cast< int >(val3);
8014 {
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_From_int(static_cast< int >(result));
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj = 0;
8029 wxRegion *arg1 = (wxRegion *) 0 ;
8030 wxPoint *arg2 = 0 ;
8031 wxRegionContain result;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034 wxPoint temp2 ;
8035 PyObject * obj0 = 0 ;
8036 PyObject * obj1 = 0 ;
8037 char * kwnames[] = {
8038 (char *) "self",(char *) "pt", NULL
8039 };
8040
8041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8043 if (!SWIG_IsOK(res1)) {
8044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8045 }
8046 arg1 = reinterpret_cast< wxRegion * >(argp1);
8047 {
8048 arg2 = &temp2;
8049 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8050 }
8051 {
8052 PyThreadState* __tstate = wxPyBeginAllowThreads();
8053 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 resultobj = SWIG_From_int(static_cast< int >(result));
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxRegion *arg1 = (wxRegion *) 0 ;
8067 wxRect *arg2 = 0 ;
8068 wxRegionContain result;
8069 void *argp1 = 0 ;
8070 int res1 = 0 ;
8071 wxRect temp2 ;
8072 PyObject * obj0 = 0 ;
8073 PyObject * obj1 = 0 ;
8074 char * kwnames[] = {
8075 (char *) "self",(char *) "rect", NULL
8076 };
8077
8078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8080 if (!SWIG_IsOK(res1)) {
8081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8082 }
8083 arg1 = reinterpret_cast< wxRegion * >(argp1);
8084 {
8085 arg2 = &temp2;
8086 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8087 }
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8091 wxPyEndAllowThreads(__tstate);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 }
8094 resultobj = SWIG_From_int(static_cast< int >(result));
8095 return resultobj;
8096 fail:
8097 return NULL;
8098 }
8099
8100
8101 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8102 PyObject *resultobj = 0;
8103 wxRegion *arg1 = (wxRegion *) 0 ;
8104 int arg2 ;
8105 int arg3 ;
8106 int arg4 ;
8107 int arg5 ;
8108 wxRegionContain result;
8109 void *argp1 = 0 ;
8110 int res1 = 0 ;
8111 int val2 ;
8112 int ecode2 = 0 ;
8113 int val3 ;
8114 int ecode3 = 0 ;
8115 int val4 ;
8116 int ecode4 = 0 ;
8117 int val5 ;
8118 int ecode5 = 0 ;
8119 PyObject * obj0 = 0 ;
8120 PyObject * obj1 = 0 ;
8121 PyObject * obj2 = 0 ;
8122 PyObject * obj3 = 0 ;
8123 PyObject * obj4 = 0 ;
8124 char * kwnames[] = {
8125 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8126 };
8127
8128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8130 if (!SWIG_IsOK(res1)) {
8131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8132 }
8133 arg1 = reinterpret_cast< wxRegion * >(argp1);
8134 ecode2 = SWIG_AsVal_int(obj1, &val2);
8135 if (!SWIG_IsOK(ecode2)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8137 }
8138 arg2 = static_cast< int >(val2);
8139 ecode3 = SWIG_AsVal_int(obj2, &val3);
8140 if (!SWIG_IsOK(ecode3)) {
8141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8142 }
8143 arg3 = static_cast< int >(val3);
8144 ecode4 = SWIG_AsVal_int(obj3, &val4);
8145 if (!SWIG_IsOK(ecode4)) {
8146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8147 }
8148 arg4 = static_cast< int >(val4);
8149 ecode5 = SWIG_AsVal_int(obj4, &val5);
8150 if (!SWIG_IsOK(ecode5)) {
8151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8152 }
8153 arg5 = static_cast< int >(val5);
8154 {
8155 PyThreadState* __tstate = wxPyBeginAllowThreads();
8156 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8157 wxPyEndAllowThreads(__tstate);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 }
8160 resultobj = SWIG_From_int(static_cast< int >(result));
8161 return resultobj;
8162 fail:
8163 return NULL;
8164 }
8165
8166
8167 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8168 PyObject *resultobj = 0;
8169 wxRegion *arg1 = (wxRegion *) 0 ;
8170 wxRect result;
8171 void *argp1 = 0 ;
8172 int res1 = 0 ;
8173 PyObject *swig_obj[1] ;
8174
8175 if (!args) SWIG_fail;
8176 swig_obj[0] = args;
8177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8178 if (!SWIG_IsOK(res1)) {
8179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8180 }
8181 arg1 = reinterpret_cast< wxRegion * >(argp1);
8182 {
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 result = (arg1)->GetBox();
8185 wxPyEndAllowThreads(__tstate);
8186 if (PyErr_Occurred()) SWIG_fail;
8187 }
8188 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8189 return resultobj;
8190 fail:
8191 return NULL;
8192 }
8193
8194
8195 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8196 PyObject *resultobj = 0;
8197 wxRegion *arg1 = (wxRegion *) 0 ;
8198 int arg2 ;
8199 int arg3 ;
8200 int arg4 ;
8201 int arg5 ;
8202 bool result;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 int val2 ;
8206 int ecode2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 int val4 ;
8210 int ecode4 = 0 ;
8211 int val5 ;
8212 int ecode5 = 0 ;
8213 PyObject * obj0 = 0 ;
8214 PyObject * obj1 = 0 ;
8215 PyObject * obj2 = 0 ;
8216 PyObject * obj3 = 0 ;
8217 PyObject * obj4 = 0 ;
8218 char * kwnames[] = {
8219 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8220 };
8221
8222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8224 if (!SWIG_IsOK(res1)) {
8225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8226 }
8227 arg1 = reinterpret_cast< wxRegion * >(argp1);
8228 ecode2 = SWIG_AsVal_int(obj1, &val2);
8229 if (!SWIG_IsOK(ecode2)) {
8230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8231 }
8232 arg2 = static_cast< int >(val2);
8233 ecode3 = SWIG_AsVal_int(obj2, &val3);
8234 if (!SWIG_IsOK(ecode3)) {
8235 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8236 }
8237 arg3 = static_cast< int >(val3);
8238 ecode4 = SWIG_AsVal_int(obj3, &val4);
8239 if (!SWIG_IsOK(ecode4)) {
8240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8241 }
8242 arg4 = static_cast< int >(val4);
8243 ecode5 = SWIG_AsVal_int(obj4, &val5);
8244 if (!SWIG_IsOK(ecode5)) {
8245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8246 }
8247 arg5 = static_cast< int >(val5);
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8251 wxPyEndAllowThreads(__tstate);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 {
8255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8256 }
8257 return resultobj;
8258 fail:
8259 return NULL;
8260 }
8261
8262
8263 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj = 0;
8265 wxRegion *arg1 = (wxRegion *) 0 ;
8266 wxRect *arg2 = 0 ;
8267 bool result;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270 wxRect temp2 ;
8271 PyObject * obj0 = 0 ;
8272 PyObject * obj1 = 0 ;
8273 char * kwnames[] = {
8274 (char *) "self",(char *) "rect", NULL
8275 };
8276
8277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8279 if (!SWIG_IsOK(res1)) {
8280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8281 }
8282 arg1 = reinterpret_cast< wxRegion * >(argp1);
8283 {
8284 arg2 = &temp2;
8285 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8286 }
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 {
8294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8295 }
8296 return resultobj;
8297 fail:
8298 return NULL;
8299 }
8300
8301
8302 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8303 PyObject *resultobj = 0;
8304 wxRegion *arg1 = (wxRegion *) 0 ;
8305 wxRegion *arg2 = 0 ;
8306 bool result;
8307 void *argp1 = 0 ;
8308 int res1 = 0 ;
8309 void *argp2 = 0 ;
8310 int res2 = 0 ;
8311 PyObject * obj0 = 0 ;
8312 PyObject * obj1 = 0 ;
8313 char * kwnames[] = {
8314 (char *) "self",(char *) "region", NULL
8315 };
8316
8317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8319 if (!SWIG_IsOK(res1)) {
8320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8321 }
8322 arg1 = reinterpret_cast< wxRegion * >(argp1);
8323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8324 if (!SWIG_IsOK(res2)) {
8325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8326 }
8327 if (!argp2) {
8328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8329 }
8330 arg2 = reinterpret_cast< wxRegion * >(argp2);
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 {
8338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8339 }
8340 return resultobj;
8341 fail:
8342 return NULL;
8343 }
8344
8345
8346 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8347 PyObject *resultobj = 0;
8348 wxRegion *arg1 = (wxRegion *) 0 ;
8349 bool result;
8350 void *argp1 = 0 ;
8351 int res1 = 0 ;
8352 PyObject *swig_obj[1] ;
8353
8354 if (!args) SWIG_fail;
8355 swig_obj[0] = args;
8356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8357 if (!SWIG_IsOK(res1)) {
8358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8359 }
8360 arg1 = reinterpret_cast< wxRegion * >(argp1);
8361 {
8362 PyThreadState* __tstate = wxPyBeginAllowThreads();
8363 result = (bool)(arg1)->IsEmpty();
8364 wxPyEndAllowThreads(__tstate);
8365 if (PyErr_Occurred()) SWIG_fail;
8366 }
8367 {
8368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8369 }
8370 return resultobj;
8371 fail:
8372 return NULL;
8373 }
8374
8375
8376 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8377 PyObject *resultobj = 0;
8378 wxRegion *arg1 = (wxRegion *) 0 ;
8379 int arg2 ;
8380 int arg3 ;
8381 int arg4 ;
8382 int arg5 ;
8383 bool result;
8384 void *argp1 = 0 ;
8385 int res1 = 0 ;
8386 int val2 ;
8387 int ecode2 = 0 ;
8388 int val3 ;
8389 int ecode3 = 0 ;
8390 int val4 ;
8391 int ecode4 = 0 ;
8392 int val5 ;
8393 int ecode5 = 0 ;
8394 PyObject * obj0 = 0 ;
8395 PyObject * obj1 = 0 ;
8396 PyObject * obj2 = 0 ;
8397 PyObject * obj3 = 0 ;
8398 PyObject * obj4 = 0 ;
8399 char * kwnames[] = {
8400 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8401 };
8402
8403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8405 if (!SWIG_IsOK(res1)) {
8406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8407 }
8408 arg1 = reinterpret_cast< wxRegion * >(argp1);
8409 ecode2 = SWIG_AsVal_int(obj1, &val2);
8410 if (!SWIG_IsOK(ecode2)) {
8411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8412 }
8413 arg2 = static_cast< int >(val2);
8414 ecode3 = SWIG_AsVal_int(obj2, &val3);
8415 if (!SWIG_IsOK(ecode3)) {
8416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8417 }
8418 arg3 = static_cast< int >(val3);
8419 ecode4 = SWIG_AsVal_int(obj3, &val4);
8420 if (!SWIG_IsOK(ecode4)) {
8421 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8422 }
8423 arg4 = static_cast< int >(val4);
8424 ecode5 = SWIG_AsVal_int(obj4, &val5);
8425 if (!SWIG_IsOK(ecode5)) {
8426 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8427 }
8428 arg5 = static_cast< int >(val5);
8429 {
8430 PyThreadState* __tstate = wxPyBeginAllowThreads();
8431 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8437 }
8438 return resultobj;
8439 fail:
8440 return NULL;
8441 }
8442
8443
8444 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj = 0;
8446 wxRegion *arg1 = (wxRegion *) 0 ;
8447 wxRect *arg2 = 0 ;
8448 bool result;
8449 void *argp1 = 0 ;
8450 int res1 = 0 ;
8451 wxRect temp2 ;
8452 PyObject * obj0 = 0 ;
8453 PyObject * obj1 = 0 ;
8454 char * kwnames[] = {
8455 (char *) "self",(char *) "rect", NULL
8456 };
8457
8458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8460 if (!SWIG_IsOK(res1)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8462 }
8463 arg1 = reinterpret_cast< wxRegion * >(argp1);
8464 {
8465 arg2 = &temp2;
8466 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8467 }
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 {
8475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8476 }
8477 return resultobj;
8478 fail:
8479 return NULL;
8480 }
8481
8482
8483 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj = 0;
8485 wxRegion *arg1 = (wxRegion *) 0 ;
8486 wxRegion *arg2 = 0 ;
8487 bool result;
8488 void *argp1 = 0 ;
8489 int res1 = 0 ;
8490 void *argp2 = 0 ;
8491 int res2 = 0 ;
8492 PyObject * obj0 = 0 ;
8493 PyObject * obj1 = 0 ;
8494 char * kwnames[] = {
8495 (char *) "self",(char *) "region", NULL
8496 };
8497
8498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8500 if (!SWIG_IsOK(res1)) {
8501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8502 }
8503 arg1 = reinterpret_cast< wxRegion * >(argp1);
8504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8505 if (!SWIG_IsOK(res2)) {
8506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8507 }
8508 if (!argp2) {
8509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8510 }
8511 arg2 = reinterpret_cast< wxRegion * >(argp2);
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8515 wxPyEndAllowThreads(__tstate);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 {
8519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8520 }
8521 return resultobj;
8522 fail:
8523 return NULL;
8524 }
8525
8526
8527 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj = 0;
8529 wxRegion *arg1 = (wxRegion *) 0 ;
8530 int arg2 ;
8531 int arg3 ;
8532 int arg4 ;
8533 int arg5 ;
8534 bool result;
8535 void *argp1 = 0 ;
8536 int res1 = 0 ;
8537 int val2 ;
8538 int ecode2 = 0 ;
8539 int val3 ;
8540 int ecode3 = 0 ;
8541 int val4 ;
8542 int ecode4 = 0 ;
8543 int val5 ;
8544 int ecode5 = 0 ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 PyObject * obj2 = 0 ;
8548 PyObject * obj3 = 0 ;
8549 PyObject * obj4 = 0 ;
8550 char * kwnames[] = {
8551 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8552 };
8553
8554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8556 if (!SWIG_IsOK(res1)) {
8557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8558 }
8559 arg1 = reinterpret_cast< wxRegion * >(argp1);
8560 ecode2 = SWIG_AsVal_int(obj1, &val2);
8561 if (!SWIG_IsOK(ecode2)) {
8562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8563 }
8564 arg2 = static_cast< int >(val2);
8565 ecode3 = SWIG_AsVal_int(obj2, &val3);
8566 if (!SWIG_IsOK(ecode3)) {
8567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8568 }
8569 arg3 = static_cast< int >(val3);
8570 ecode4 = SWIG_AsVal_int(obj3, &val4);
8571 if (!SWIG_IsOK(ecode4)) {
8572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8573 }
8574 arg4 = static_cast< int >(val4);
8575 ecode5 = SWIG_AsVal_int(obj4, &val5);
8576 if (!SWIG_IsOK(ecode5)) {
8577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8578 }
8579 arg5 = static_cast< int >(val5);
8580 {
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) SWIG_fail;
8585 }
8586 {
8587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8588 }
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj = 0;
8597 wxRegion *arg1 = (wxRegion *) 0 ;
8598 wxRect *arg2 = 0 ;
8599 bool result;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 wxRect temp2 ;
8603 PyObject * obj0 = 0 ;
8604 PyObject * obj1 = 0 ;
8605 char * kwnames[] = {
8606 (char *) "self",(char *) "rect", NULL
8607 };
8608
8609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8613 }
8614 arg1 = reinterpret_cast< wxRegion * >(argp1);
8615 {
8616 arg2 = &temp2;
8617 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8618 }
8619 {
8620 PyThreadState* __tstate = wxPyBeginAllowThreads();
8621 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8622 wxPyEndAllowThreads(__tstate);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 {
8626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8627 }
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj = 0;
8636 wxRegion *arg1 = (wxRegion *) 0 ;
8637 wxRegion *arg2 = 0 ;
8638 bool result;
8639 void *argp1 = 0 ;
8640 int res1 = 0 ;
8641 void *argp2 = 0 ;
8642 int res2 = 0 ;
8643 PyObject * obj0 = 0 ;
8644 PyObject * obj1 = 0 ;
8645 char * kwnames[] = {
8646 (char *) "self",(char *) "region", NULL
8647 };
8648
8649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8651 if (!SWIG_IsOK(res1)) {
8652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8653 }
8654 arg1 = reinterpret_cast< wxRegion * >(argp1);
8655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8656 if (!SWIG_IsOK(res2)) {
8657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8658 }
8659 if (!argp2) {
8660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8661 }
8662 arg2 = reinterpret_cast< wxRegion * >(argp2);
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8666 wxPyEndAllowThreads(__tstate);
8667 if (PyErr_Occurred()) SWIG_fail;
8668 }
8669 {
8670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8671 }
8672 return resultobj;
8673 fail:
8674 return NULL;
8675 }
8676
8677
8678 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj = 0;
8680 wxRegion *arg1 = (wxRegion *) 0 ;
8681 int arg2 ;
8682 int arg3 ;
8683 int arg4 ;
8684 int arg5 ;
8685 bool result;
8686 void *argp1 = 0 ;
8687 int res1 = 0 ;
8688 int val2 ;
8689 int ecode2 = 0 ;
8690 int val3 ;
8691 int ecode3 = 0 ;
8692 int val4 ;
8693 int ecode4 = 0 ;
8694 int val5 ;
8695 int ecode5 = 0 ;
8696 PyObject * obj0 = 0 ;
8697 PyObject * obj1 = 0 ;
8698 PyObject * obj2 = 0 ;
8699 PyObject * obj3 = 0 ;
8700 PyObject * obj4 = 0 ;
8701 char * kwnames[] = {
8702 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8703 };
8704
8705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8707 if (!SWIG_IsOK(res1)) {
8708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8709 }
8710 arg1 = reinterpret_cast< wxRegion * >(argp1);
8711 ecode2 = SWIG_AsVal_int(obj1, &val2);
8712 if (!SWIG_IsOK(ecode2)) {
8713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8714 }
8715 arg2 = static_cast< int >(val2);
8716 ecode3 = SWIG_AsVal_int(obj2, &val3);
8717 if (!SWIG_IsOK(ecode3)) {
8718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8719 }
8720 arg3 = static_cast< int >(val3);
8721 ecode4 = SWIG_AsVal_int(obj3, &val4);
8722 if (!SWIG_IsOK(ecode4)) {
8723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8724 }
8725 arg4 = static_cast< int >(val4);
8726 ecode5 = SWIG_AsVal_int(obj4, &val5);
8727 if (!SWIG_IsOK(ecode5)) {
8728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8729 }
8730 arg5 = static_cast< int >(val5);
8731 {
8732 PyThreadState* __tstate = wxPyBeginAllowThreads();
8733 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8734 wxPyEndAllowThreads(__tstate);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 {
8738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8739 }
8740 return resultobj;
8741 fail:
8742 return NULL;
8743 }
8744
8745
8746 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj = 0;
8748 wxRegion *arg1 = (wxRegion *) 0 ;
8749 wxRect *arg2 = 0 ;
8750 bool result;
8751 void *argp1 = 0 ;
8752 int res1 = 0 ;
8753 wxRect temp2 ;
8754 PyObject * obj0 = 0 ;
8755 PyObject * obj1 = 0 ;
8756 char * kwnames[] = {
8757 (char *) "self",(char *) "rect", NULL
8758 };
8759
8760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8762 if (!SWIG_IsOK(res1)) {
8763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8764 }
8765 arg1 = reinterpret_cast< wxRegion * >(argp1);
8766 {
8767 arg2 = &temp2;
8768 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8769 }
8770 {
8771 PyThreadState* __tstate = wxPyBeginAllowThreads();
8772 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 {
8777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8778 }
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj = 0;
8787 wxRegion *arg1 = (wxRegion *) 0 ;
8788 wxRegion *arg2 = 0 ;
8789 bool result;
8790 void *argp1 = 0 ;
8791 int res1 = 0 ;
8792 void *argp2 = 0 ;
8793 int res2 = 0 ;
8794 PyObject * obj0 = 0 ;
8795 PyObject * obj1 = 0 ;
8796 char * kwnames[] = {
8797 (char *) "self",(char *) "region", NULL
8798 };
8799
8800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8802 if (!SWIG_IsOK(res1)) {
8803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8804 }
8805 arg1 = reinterpret_cast< wxRegion * >(argp1);
8806 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8807 if (!SWIG_IsOK(res2)) {
8808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8809 }
8810 if (!argp2) {
8811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8812 }
8813 arg2 = reinterpret_cast< wxRegion * >(argp2);
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 {
8821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8822 }
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8830 PyObject *resultobj = 0;
8831 wxRegion *arg1 = (wxRegion *) 0 ;
8832 SwigValueWrapper<wxBitmap > result;
8833 void *argp1 = 0 ;
8834 int res1 = 0 ;
8835 PyObject *swig_obj[1] ;
8836
8837 if (!args) SWIG_fail;
8838 swig_obj[0] = args;
8839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8840 if (!SWIG_IsOK(res1)) {
8841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8842 }
8843 arg1 = reinterpret_cast< wxRegion * >(argp1);
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (arg1)->ConvertToBitmap();
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8851 return resultobj;
8852 fail:
8853 return NULL;
8854 }
8855
8856
8857 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj = 0;
8859 wxRegion *arg1 = (wxRegion *) 0 ;
8860 wxBitmap *arg2 = 0 ;
8861 bool result;
8862 void *argp1 = 0 ;
8863 int res1 = 0 ;
8864 void *argp2 = 0 ;
8865 int res2 = 0 ;
8866 PyObject * obj0 = 0 ;
8867 PyObject * obj1 = 0 ;
8868 char * kwnames[] = {
8869 (char *) "self",(char *) "bmp", NULL
8870 };
8871
8872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8874 if (!SWIG_IsOK(res1)) {
8875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8876 }
8877 arg1 = reinterpret_cast< wxRegion * >(argp1);
8878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8879 if (!SWIG_IsOK(res2)) {
8880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8881 }
8882 if (!argp2) {
8883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8884 }
8885 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8886 {
8887 PyThreadState* __tstate = wxPyBeginAllowThreads();
8888 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 {
8893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8894 }
8895 return resultobj;
8896 fail:
8897 return NULL;
8898 }
8899
8900
8901 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8902 PyObject *resultobj = 0;
8903 wxRegion *arg1 = (wxRegion *) 0 ;
8904 wxBitmap *arg2 = 0 ;
8905 wxColour *arg3 = 0 ;
8906 int arg4 = (int) 0 ;
8907 bool result;
8908 void *argp1 = 0 ;
8909 int res1 = 0 ;
8910 void *argp2 = 0 ;
8911 int res2 = 0 ;
8912 wxColour temp3 ;
8913 int val4 ;
8914 int ecode4 = 0 ;
8915 PyObject * obj0 = 0 ;
8916 PyObject * obj1 = 0 ;
8917 PyObject * obj2 = 0 ;
8918 PyObject * obj3 = 0 ;
8919 char * kwnames[] = {
8920 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8921 };
8922
8923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8925 if (!SWIG_IsOK(res1)) {
8926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8927 }
8928 arg1 = reinterpret_cast< wxRegion * >(argp1);
8929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8930 if (!SWIG_IsOK(res2)) {
8931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8932 }
8933 if (!argp2) {
8934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8935 }
8936 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8937 {
8938 arg3 = &temp3;
8939 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8940 }
8941 if (obj3) {
8942 ecode4 = SWIG_AsVal_int(obj3, &val4);
8943 if (!SWIG_IsOK(ecode4)) {
8944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8945 }
8946 arg4 = static_cast< int >(val4);
8947 }
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 {
8955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8956 }
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964 PyObject *obj;
8965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8966 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8967 return SWIG_Py_Void();
8968 }
8969
8970 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 return SWIG_Python_InitShadowInstance(args);
8972 }
8973
8974 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8975 PyObject *resultobj = 0;
8976 wxRegion *arg1 = 0 ;
8977 wxRegionIterator *result = 0 ;
8978 void *argp1 = 0 ;
8979 int res1 = 0 ;
8980 PyObject * obj0 = 0 ;
8981 char * kwnames[] = {
8982 (char *) "region", NULL
8983 };
8984
8985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8987 if (!SWIG_IsOK(res1)) {
8988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8989 }
8990 if (!argp1) {
8991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8992 }
8993 arg1 = reinterpret_cast< wxRegion * >(argp1);
8994 {
8995 if (!wxPyCheckForApp()) SWIG_fail;
8996 PyThreadState* __tstate = wxPyBeginAllowThreads();
8997 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9009 PyObject *resultobj = 0;
9010 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 PyObject *swig_obj[1] ;
9014
9015 if (!args) SWIG_fail;
9016 swig_obj[0] = args;
9017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9020 }
9021 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 delete arg1;
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 resultobj = SWIG_Py_Void();
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9037 PyObject *resultobj = 0;
9038 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9039 int result;
9040 void *argp1 = 0 ;
9041 int res1 = 0 ;
9042 PyObject *swig_obj[1] ;
9043
9044 if (!args) SWIG_fail;
9045 swig_obj[0] = args;
9046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9047 if (!SWIG_IsOK(res1)) {
9048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9049 }
9050 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 result = (int)(arg1)->GetX();
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 resultobj = SWIG_From_int(static_cast< int >(result));
9058 return resultobj;
9059 fail:
9060 return NULL;
9061 }
9062
9063
9064 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9065 PyObject *resultobj = 0;
9066 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9067 int result;
9068 void *argp1 = 0 ;
9069 int res1 = 0 ;
9070 PyObject *swig_obj[1] ;
9071
9072 if (!args) SWIG_fail;
9073 swig_obj[0] = args;
9074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9075 if (!SWIG_IsOK(res1)) {
9076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9077 }
9078 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 result = (int)(arg1)->GetY();
9082 wxPyEndAllowThreads(__tstate);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 }
9085 resultobj = SWIG_From_int(static_cast< int >(result));
9086 return resultobj;
9087 fail:
9088 return NULL;
9089 }
9090
9091
9092 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9093 PyObject *resultobj = 0;
9094 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9095 int result;
9096 void *argp1 = 0 ;
9097 int res1 = 0 ;
9098 PyObject *swig_obj[1] ;
9099
9100 if (!args) SWIG_fail;
9101 swig_obj[0] = args;
9102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9103 if (!SWIG_IsOK(res1)) {
9104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9105 }
9106 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 result = (int)(arg1)->GetW();
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_From_int(static_cast< int >(result));
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9121 PyObject *resultobj = 0;
9122 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9123 int result;
9124 void *argp1 = 0 ;
9125 int res1 = 0 ;
9126 PyObject *swig_obj[1] ;
9127
9128 if (!args) SWIG_fail;
9129 swig_obj[0] = args;
9130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9131 if (!SWIG_IsOK(res1)) {
9132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9133 }
9134 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9135 {
9136 PyThreadState* __tstate = wxPyBeginAllowThreads();
9137 result = (int)(arg1)->GetWidth();
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 resultobj = SWIG_From_int(static_cast< int >(result));
9142 return resultobj;
9143 fail:
9144 return NULL;
9145 }
9146
9147
9148 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9149 PyObject *resultobj = 0;
9150 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9151 int result;
9152 void *argp1 = 0 ;
9153 int res1 = 0 ;
9154 PyObject *swig_obj[1] ;
9155
9156 if (!args) SWIG_fail;
9157 swig_obj[0] = args;
9158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9159 if (!SWIG_IsOK(res1)) {
9160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9161 }
9162 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 result = (int)(arg1)->GetH();
9166 wxPyEndAllowThreads(__tstate);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 }
9169 resultobj = SWIG_From_int(static_cast< int >(result));
9170 return resultobj;
9171 fail:
9172 return NULL;
9173 }
9174
9175
9176 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9177 PyObject *resultobj = 0;
9178 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9179 int result;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 PyObject *swig_obj[1] ;
9183
9184 if (!args) SWIG_fail;
9185 swig_obj[0] = args;
9186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9189 }
9190 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9191 {
9192 PyThreadState* __tstate = wxPyBeginAllowThreads();
9193 result = (int)(arg1)->GetHeight();
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 resultobj = SWIG_From_int(static_cast< int >(result));
9198 return resultobj;
9199 fail:
9200 return NULL;
9201 }
9202
9203
9204 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9205 PyObject *resultobj = 0;
9206 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9207 wxRect result;
9208 void *argp1 = 0 ;
9209 int res1 = 0 ;
9210 PyObject *swig_obj[1] ;
9211
9212 if (!args) SWIG_fail;
9213 swig_obj[0] = args;
9214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9215 if (!SWIG_IsOK(res1)) {
9216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9217 }
9218 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 result = (arg1)->GetRect();
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9226 return resultobj;
9227 fail:
9228 return NULL;
9229 }
9230
9231
9232 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9233 PyObject *resultobj = 0;
9234 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9235 bool result;
9236 void *argp1 = 0 ;
9237 int res1 = 0 ;
9238 PyObject *swig_obj[1] ;
9239
9240 if (!args) SWIG_fail;
9241 swig_obj[0] = args;
9242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9243 if (!SWIG_IsOK(res1)) {
9244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9245 }
9246 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (bool)(arg1)->HaveRects();
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9255 }
9256 return resultobj;
9257 fail:
9258 return NULL;
9259 }
9260
9261
9262 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9263 PyObject *resultobj = 0;
9264 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9265 void *argp1 = 0 ;
9266 int res1 = 0 ;
9267 PyObject *swig_obj[1] ;
9268
9269 if (!args) SWIG_fail;
9270 swig_obj[0] = args;
9271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9272 if (!SWIG_IsOK(res1)) {
9273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9274 }
9275 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9276 {
9277 PyThreadState* __tstate = wxPyBeginAllowThreads();
9278 (arg1)->Reset();
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 resultobj = SWIG_Py_Void();
9283 return resultobj;
9284 fail:
9285 return NULL;
9286 }
9287
9288
9289 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9290 PyObject *resultobj = 0;
9291 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9292 void *argp1 = 0 ;
9293 int res1 = 0 ;
9294 PyObject *swig_obj[1] ;
9295
9296 if (!args) SWIG_fail;
9297 swig_obj[0] = args;
9298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9299 if (!SWIG_IsOK(res1)) {
9300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9301 }
9302 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 wxRegionIterator_Next(arg1);
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 resultobj = SWIG_Py_Void();
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9317 PyObject *resultobj = 0;
9318 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9319 bool result;
9320 void *argp1 = 0 ;
9321 int res1 = 0 ;
9322 PyObject *swig_obj[1] ;
9323
9324 if (!args) SWIG_fail;
9325 swig_obj[0] = args;
9326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9327 if (!SWIG_IsOK(res1)) {
9328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9329 }
9330 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9331 {
9332 PyThreadState* __tstate = wxPyBeginAllowThreads();
9333 result = (bool)wxRegionIterator___nonzero__(arg1);
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 {
9338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9339 }
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9347 PyObject *obj;
9348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9349 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9350 return SWIG_Py_Void();
9351 }
9352
9353 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 return SWIG_Python_InitShadowInstance(args);
9355 }
9356
9357 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9358 PyObject *resultobj = 0;
9359 wxNativeFontInfo *result = 0 ;
9360
9361 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9376 PyObject *resultobj = 0;
9377 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9378 void *argp1 = 0 ;
9379 int res1 = 0 ;
9380 PyObject *swig_obj[1] ;
9381
9382 if (!args) SWIG_fail;
9383 swig_obj[0] = args;
9384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9385 if (!SWIG_IsOK(res1)) {
9386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9387 }
9388 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9389 {
9390 PyThreadState* __tstate = wxPyBeginAllowThreads();
9391 delete arg1;
9392
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 resultobj = SWIG_Py_Void();
9397 return resultobj;
9398 fail:
9399 return NULL;
9400 }
9401
9402
9403 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9404 PyObject *resultobj = 0;
9405 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9406 void *argp1 = 0 ;
9407 int res1 = 0 ;
9408 PyObject *swig_obj[1] ;
9409
9410 if (!args) SWIG_fail;
9411 swig_obj[0] = args;
9412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9413 if (!SWIG_IsOK(res1)) {
9414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9415 }
9416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 (arg1)->Init();
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_Py_Void();
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj = 0;
9432 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9433 wxFont *arg2 = 0 ;
9434 void *argp1 = 0 ;
9435 int res1 = 0 ;
9436 void *argp2 = 0 ;
9437 int res2 = 0 ;
9438 PyObject * obj0 = 0 ;
9439 PyObject * obj1 = 0 ;
9440 char * kwnames[] = {
9441 (char *) "self",(char *) "font", NULL
9442 };
9443
9444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9448 }
9449 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9451 if (!SWIG_IsOK(res2)) {
9452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9453 }
9454 if (!argp2) {
9455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9456 }
9457 arg2 = reinterpret_cast< wxFont * >(argp2);
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 (arg1)->InitFromFont((wxFont const &)*arg2);
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 resultobj = SWIG_Py_Void();
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9472 PyObject *resultobj = 0;
9473 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9474 int result;
9475 void *argp1 = 0 ;
9476 int res1 = 0 ;
9477 PyObject *swig_obj[1] ;
9478
9479 if (!args) SWIG_fail;
9480 swig_obj[0] = args;
9481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9482 if (!SWIG_IsOK(res1)) {
9483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9484 }
9485 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = SWIG_From_int(static_cast< int >(result));
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9500 PyObject *resultobj = 0;
9501 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9502 wxFontStyle result;
9503 void *argp1 = 0 ;
9504 int res1 = 0 ;
9505 PyObject *swig_obj[1] ;
9506
9507 if (!args) SWIG_fail;
9508 swig_obj[0] = args;
9509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9510 if (!SWIG_IsOK(res1)) {
9511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9512 }
9513 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_From_int(static_cast< int >(result));
9521 return resultobj;
9522 fail:
9523 return NULL;
9524 }
9525
9526
9527 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9528 PyObject *resultobj = 0;
9529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9530 wxFontWeight result;
9531 void *argp1 = 0 ;
9532 int res1 = 0 ;
9533 PyObject *swig_obj[1] ;
9534
9535 if (!args) SWIG_fail;
9536 swig_obj[0] = args;
9537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9540 }
9541 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 resultobj = SWIG_From_int(static_cast< int >(result));
9549 return resultobj;
9550 fail:
9551 return NULL;
9552 }
9553
9554
9555 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9556 PyObject *resultobj = 0;
9557 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9558 bool result;
9559 void *argp1 = 0 ;
9560 int res1 = 0 ;
9561 PyObject *swig_obj[1] ;
9562
9563 if (!args) SWIG_fail;
9564 swig_obj[0] = args;
9565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9566 if (!SWIG_IsOK(res1)) {
9567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9568 }
9569 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9570 {
9571 PyThreadState* __tstate = wxPyBeginAllowThreads();
9572 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 {
9577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9578 }
9579 return resultobj;
9580 fail:
9581 return NULL;
9582 }
9583
9584
9585 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9586 PyObject *resultobj = 0;
9587 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9588 wxString result;
9589 void *argp1 = 0 ;
9590 int res1 = 0 ;
9591 PyObject *swig_obj[1] ;
9592
9593 if (!args) SWIG_fail;
9594 swig_obj[0] = args;
9595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9596 if (!SWIG_IsOK(res1)) {
9597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9598 }
9599 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 {
9607 #if wxUSE_UNICODE
9608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9609 #else
9610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9611 #endif
9612 }
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9620 PyObject *resultobj = 0;
9621 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9622 wxFontFamily result;
9623 void *argp1 = 0 ;
9624 int res1 = 0 ;
9625 PyObject *swig_obj[1] ;
9626
9627 if (!args) SWIG_fail;
9628 swig_obj[0] = args;
9629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9630 if (!SWIG_IsOK(res1)) {
9631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9632 }
9633 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 resultobj = SWIG_From_int(static_cast< int >(result));
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9648 PyObject *resultobj = 0;
9649 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9650 wxFontEncoding result;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 PyObject *swig_obj[1] ;
9654
9655 if (!args) SWIG_fail;
9656 swig_obj[0] = args;
9657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9658 if (!SWIG_IsOK(res1)) {
9659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9660 }
9661 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 resultobj = SWIG_From_int(static_cast< int >(result));
9669 return resultobj;
9670 fail:
9671 return NULL;
9672 }
9673
9674
9675 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9676 PyObject *resultobj = 0;
9677 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9678 int arg2 ;
9679 void *argp1 = 0 ;
9680 int res1 = 0 ;
9681 int val2 ;
9682 int ecode2 = 0 ;
9683 PyObject * obj0 = 0 ;
9684 PyObject * obj1 = 0 ;
9685 char * kwnames[] = {
9686 (char *) "self",(char *) "pointsize", NULL
9687 };
9688
9689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9691 if (!SWIG_IsOK(res1)) {
9692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9693 }
9694 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9695 ecode2 = SWIG_AsVal_int(obj1, &val2);
9696 if (!SWIG_IsOK(ecode2)) {
9697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9698 }
9699 arg2 = static_cast< int >(val2);
9700 {
9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
9702 (arg1)->SetPointSize(arg2);
9703 wxPyEndAllowThreads(__tstate);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 resultobj = SWIG_Py_Void();
9707 return resultobj;
9708 fail:
9709 return NULL;
9710 }
9711
9712
9713 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj = 0;
9715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9716 wxFontStyle arg2 ;
9717 void *argp1 = 0 ;
9718 int res1 = 0 ;
9719 int val2 ;
9720 int ecode2 = 0 ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 char * kwnames[] = {
9724 (char *) "self",(char *) "style", NULL
9725 };
9726
9727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9729 if (!SWIG_IsOK(res1)) {
9730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9731 }
9732 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9733 ecode2 = SWIG_AsVal_int(obj1, &val2);
9734 if (!SWIG_IsOK(ecode2)) {
9735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9736 }
9737 arg2 = static_cast< wxFontStyle >(val2);
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 (arg1)->SetStyle(arg2);
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 resultobj = SWIG_Py_Void();
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj = 0;
9753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9754 wxFontWeight arg2 ;
9755 void *argp1 = 0 ;
9756 int res1 = 0 ;
9757 int val2 ;
9758 int ecode2 = 0 ;
9759 PyObject * obj0 = 0 ;
9760 PyObject * obj1 = 0 ;
9761 char * kwnames[] = {
9762 (char *) "self",(char *) "weight", NULL
9763 };
9764
9765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9767 if (!SWIG_IsOK(res1)) {
9768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9769 }
9770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9771 ecode2 = SWIG_AsVal_int(obj1, &val2);
9772 if (!SWIG_IsOK(ecode2)) {
9773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9774 }
9775 arg2 = static_cast< wxFontWeight >(val2);
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 (arg1)->SetWeight(arg2);
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 resultobj = SWIG_Py_Void();
9783 return resultobj;
9784 fail:
9785 return NULL;
9786 }
9787
9788
9789 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9790 PyObject *resultobj = 0;
9791 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9792 bool arg2 ;
9793 void *argp1 = 0 ;
9794 int res1 = 0 ;
9795 bool val2 ;
9796 int ecode2 = 0 ;
9797 PyObject * obj0 = 0 ;
9798 PyObject * obj1 = 0 ;
9799 char * kwnames[] = {
9800 (char *) "self",(char *) "underlined", NULL
9801 };
9802
9803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9805 if (!SWIG_IsOK(res1)) {
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9807 }
9808 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9809 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9810 if (!SWIG_IsOK(ecode2)) {
9811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9812 }
9813 arg2 = static_cast< bool >(val2);
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 (arg1)->SetUnderlined(arg2);
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 resultobj = SWIG_Py_Void();
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj = 0;
9829 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9830 wxString arg2 ;
9831 void *argp1 = 0 ;
9832 int res1 = 0 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 char * kwnames[] = {
9836 (char *) "self",(char *) "facename", NULL
9837 };
9838
9839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9841 if (!SWIG_IsOK(res1)) {
9842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9843 }
9844 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9845 {
9846 wxString* sptr = wxString_in_helper(obj1);
9847 if (sptr == NULL) SWIG_fail;
9848 arg2 = *sptr;
9849 delete sptr;
9850 }
9851 {
9852 PyThreadState* __tstate = wxPyBeginAllowThreads();
9853 (arg1)->SetFaceName(arg2);
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 resultobj = SWIG_Py_Void();
9858 return resultobj;
9859 fail:
9860 return NULL;
9861 }
9862
9863
9864 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9865 PyObject *resultobj = 0;
9866 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9867 wxFontFamily arg2 ;
9868 void *argp1 = 0 ;
9869 int res1 = 0 ;
9870 int val2 ;
9871 int ecode2 = 0 ;
9872 PyObject * obj0 = 0 ;
9873 PyObject * obj1 = 0 ;
9874 char * kwnames[] = {
9875 (char *) "self",(char *) "family", NULL
9876 };
9877
9878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9880 if (!SWIG_IsOK(res1)) {
9881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9882 }
9883 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9884 ecode2 = SWIG_AsVal_int(obj1, &val2);
9885 if (!SWIG_IsOK(ecode2)) {
9886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9887 }
9888 arg2 = static_cast< wxFontFamily >(val2);
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 (arg1)->SetFamily(arg2);
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 resultobj = SWIG_Py_Void();
9896 return resultobj;
9897 fail:
9898 return NULL;
9899 }
9900
9901
9902 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9903 PyObject *resultobj = 0;
9904 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9905 wxFontEncoding arg2 ;
9906 void *argp1 = 0 ;
9907 int res1 = 0 ;
9908 int val2 ;
9909 int ecode2 = 0 ;
9910 PyObject * obj0 = 0 ;
9911 PyObject * obj1 = 0 ;
9912 char * kwnames[] = {
9913 (char *) "self",(char *) "encoding", NULL
9914 };
9915
9916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9920 }
9921 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9922 ecode2 = SWIG_AsVal_int(obj1, &val2);
9923 if (!SWIG_IsOK(ecode2)) {
9924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9925 }
9926 arg2 = static_cast< wxFontEncoding >(val2);
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 (arg1)->SetEncoding(arg2);
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_Py_Void();
9934 return resultobj;
9935 fail:
9936 return NULL;
9937 }
9938
9939
9940 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9941 PyObject *resultobj = 0;
9942 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9943 wxString *arg2 = 0 ;
9944 bool result;
9945 void *argp1 = 0 ;
9946 int res1 = 0 ;
9947 bool temp2 = false ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 char * kwnames[] = {
9951 (char *) "self",(char *) "s", NULL
9952 };
9953
9954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9956 if (!SWIG_IsOK(res1)) {
9957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9958 }
9959 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9960 {
9961 arg2 = wxString_in_helper(obj1);
9962 if (arg2 == NULL) SWIG_fail;
9963 temp2 = true;
9964 }
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) SWIG_fail;
9970 }
9971 {
9972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9973 }
9974 {
9975 if (temp2)
9976 delete arg2;
9977 }
9978 return resultobj;
9979 fail:
9980 {
9981 if (temp2)
9982 delete arg2;
9983 }
9984 return NULL;
9985 }
9986
9987
9988 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989 PyObject *resultobj = 0;
9990 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9991 wxString result;
9992 void *argp1 = 0 ;
9993 int res1 = 0 ;
9994 PyObject *swig_obj[1] ;
9995
9996 if (!args) SWIG_fail;
9997 swig_obj[0] = args;
9998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9999 if (!SWIG_IsOK(res1)) {
10000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10001 }
10002 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10003 {
10004 PyThreadState* __tstate = wxPyBeginAllowThreads();
10005 result = ((wxNativeFontInfo const *)arg1)->ToString();
10006 wxPyEndAllowThreads(__tstate);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 }
10009 {
10010 #if wxUSE_UNICODE
10011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10012 #else
10013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10014 #endif
10015 }
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10023 PyObject *resultobj = 0;
10024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10025 wxString result;
10026 void *argp1 = 0 ;
10027 int res1 = 0 ;
10028 PyObject *swig_obj[1] ;
10029
10030 if (!args) SWIG_fail;
10031 swig_obj[0] = args;
10032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10033 if (!SWIG_IsOK(res1)) {
10034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10035 }
10036 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10037 {
10038 PyThreadState* __tstate = wxPyBeginAllowThreads();
10039 result = wxNativeFontInfo___str__(arg1);
10040 wxPyEndAllowThreads(__tstate);
10041 if (PyErr_Occurred()) SWIG_fail;
10042 }
10043 {
10044 #if wxUSE_UNICODE
10045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10046 #else
10047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10048 #endif
10049 }
10050 return resultobj;
10051 fail:
10052 return NULL;
10053 }
10054
10055
10056 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj = 0;
10058 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10059 wxString *arg2 = 0 ;
10060 bool result;
10061 void *argp1 = 0 ;
10062 int res1 = 0 ;
10063 bool temp2 = false ;
10064 PyObject * obj0 = 0 ;
10065 PyObject * obj1 = 0 ;
10066 char * kwnames[] = {
10067 (char *) "self",(char *) "s", NULL
10068 };
10069
10070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10072 if (!SWIG_IsOK(res1)) {
10073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10074 }
10075 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10076 {
10077 arg2 = wxString_in_helper(obj1);
10078 if (arg2 == NULL) SWIG_fail;
10079 temp2 = true;
10080 }
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10084 wxPyEndAllowThreads(__tstate);
10085 if (PyErr_Occurred()) SWIG_fail;
10086 }
10087 {
10088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10089 }
10090 {
10091 if (temp2)
10092 delete arg2;
10093 }
10094 return resultobj;
10095 fail:
10096 {
10097 if (temp2)
10098 delete arg2;
10099 }
10100 return NULL;
10101 }
10102
10103
10104 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10105 PyObject *resultobj = 0;
10106 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10107 wxString result;
10108 void *argp1 = 0 ;
10109 int res1 = 0 ;
10110 PyObject *swig_obj[1] ;
10111
10112 if (!args) SWIG_fail;
10113 swig_obj[0] = args;
10114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10115 if (!SWIG_IsOK(res1)) {
10116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10117 }
10118 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10119 {
10120 PyThreadState* __tstate = wxPyBeginAllowThreads();
10121 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 {
10126 #if wxUSE_UNICODE
10127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10128 #else
10129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10130 #endif
10131 }
10132 return resultobj;
10133 fail:
10134 return NULL;
10135 }
10136
10137
10138 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10139 PyObject *obj;
10140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10141 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10142 return SWIG_Py_Void();
10143 }
10144
10145 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10146 return SWIG_Python_InitShadowInstance(args);
10147 }
10148
10149 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10150 PyObject *resultobj = 0;
10151 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10152 wxString *arg2 = (wxString *) 0 ;
10153 void *argp1 = 0 ;
10154 int res1 = 0 ;
10155 bool temp2 = false ;
10156 PyObject *swig_obj[2] ;
10157
10158 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10160 if (!SWIG_IsOK(res1)) {
10161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10162 }
10163 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10164 {
10165 arg2 = wxString_in_helper(swig_obj[1]);
10166 if (arg2 == NULL) SWIG_fail;
10167 temp2 = true;
10168 }
10169 if (arg1) (arg1)->facename = *arg2;
10170
10171 resultobj = SWIG_Py_Void();
10172 {
10173 if (temp2)
10174 delete arg2;
10175 }
10176 return resultobj;
10177 fail:
10178 {
10179 if (temp2)
10180 delete arg2;
10181 }
10182 return NULL;
10183 }
10184
10185
10186 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10187 PyObject *resultobj = 0;
10188 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10189 wxString *result = 0 ;
10190 void *argp1 = 0 ;
10191 int res1 = 0 ;
10192 PyObject *swig_obj[1] ;
10193
10194 if (!args) SWIG_fail;
10195 swig_obj[0] = args;
10196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10197 if (!SWIG_IsOK(res1)) {
10198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10199 }
10200 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10201 result = (wxString *)& ((arg1)->facename);
10202 {
10203 #if wxUSE_UNICODE
10204 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10205 #else
10206 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10207 #endif
10208 }
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10216 PyObject *resultobj = 0;
10217 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10218 wxFontEncoding arg2 ;
10219 void *argp1 = 0 ;
10220 int res1 = 0 ;
10221 int val2 ;
10222 int ecode2 = 0 ;
10223 PyObject *swig_obj[2] ;
10224
10225 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10227 if (!SWIG_IsOK(res1)) {
10228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10229 }
10230 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10231 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10232 if (!SWIG_IsOK(ecode2)) {
10233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10234 }
10235 arg2 = static_cast< wxFontEncoding >(val2);
10236 if (arg1) (arg1)->encoding = arg2;
10237
10238 resultobj = SWIG_Py_Void();
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10246 PyObject *resultobj = 0;
10247 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10248 wxFontEncoding result;
10249 void *argp1 = 0 ;
10250 int res1 = 0 ;
10251 PyObject *swig_obj[1] ;
10252
10253 if (!args) SWIG_fail;
10254 swig_obj[0] = args;
10255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10256 if (!SWIG_IsOK(res1)) {
10257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10258 }
10259 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10260 result = (wxFontEncoding) ((arg1)->encoding);
10261 resultobj = SWIG_From_int(static_cast< int >(result));
10262 return resultobj;
10263 fail:
10264 return NULL;
10265 }
10266
10267
10268 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10269 PyObject *resultobj = 0;
10270 wxNativeEncodingInfo *result = 0 ;
10271
10272 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10276 wxPyEndAllowThreads(__tstate);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10280 return resultobj;
10281 fail:
10282 return NULL;
10283 }
10284
10285
10286 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10287 PyObject *resultobj = 0;
10288 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10289 void *argp1 = 0 ;
10290 int res1 = 0 ;
10291 PyObject *swig_obj[1] ;
10292
10293 if (!args) SWIG_fail;
10294 swig_obj[0] = args;
10295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10298 }
10299 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 delete arg1;
10303
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 resultobj = SWIG_Py_Void();
10308 return resultobj;
10309 fail:
10310 return NULL;
10311 }
10312
10313
10314 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10315 PyObject *resultobj = 0;
10316 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10317 wxString *arg2 = 0 ;
10318 bool result;
10319 void *argp1 = 0 ;
10320 int res1 = 0 ;
10321 bool temp2 = false ;
10322 PyObject * obj0 = 0 ;
10323 PyObject * obj1 = 0 ;
10324 char * kwnames[] = {
10325 (char *) "self",(char *) "s", NULL
10326 };
10327
10328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10330 if (!SWIG_IsOK(res1)) {
10331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10332 }
10333 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10334 {
10335 arg2 = wxString_in_helper(obj1);
10336 if (arg2 == NULL) SWIG_fail;
10337 temp2 = true;
10338 }
10339 {
10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
10341 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10342 wxPyEndAllowThreads(__tstate);
10343 if (PyErr_Occurred()) SWIG_fail;
10344 }
10345 {
10346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10347 }
10348 {
10349 if (temp2)
10350 delete arg2;
10351 }
10352 return resultobj;
10353 fail:
10354 {
10355 if (temp2)
10356 delete arg2;
10357 }
10358 return NULL;
10359 }
10360
10361
10362 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10363 PyObject *resultobj = 0;
10364 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10365 wxString result;
10366 void *argp1 = 0 ;
10367 int res1 = 0 ;
10368 PyObject *swig_obj[1] ;
10369
10370 if (!args) SWIG_fail;
10371 swig_obj[0] = args;
10372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10373 if (!SWIG_IsOK(res1)) {
10374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10375 }
10376 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 {
10384 #if wxUSE_UNICODE
10385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10386 #else
10387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10388 #endif
10389 }
10390 return resultobj;
10391 fail:
10392 return NULL;
10393 }
10394
10395
10396 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10397 PyObject *obj;
10398 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10399 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10400 return SWIG_Py_Void();
10401 }
10402
10403 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10404 return SWIG_Python_InitShadowInstance(args);
10405 }
10406
10407 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10408 PyObject *resultobj = 0;
10409 wxFontEncoding arg1 ;
10410 wxNativeEncodingInfo *result = 0 ;
10411 int val1 ;
10412 int ecode1 = 0 ;
10413 PyObject * obj0 = 0 ;
10414 char * kwnames[] = {
10415 (char *) "encoding", NULL
10416 };
10417
10418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10419 ecode1 = SWIG_AsVal_int(obj0, &val1);
10420 if (!SWIG_IsOK(ecode1)) {
10421 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10422 }
10423 arg1 = static_cast< wxFontEncoding >(val1);
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10431 return resultobj;
10432 fail:
10433 return NULL;
10434 }
10435
10436
10437 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10438 PyObject *resultobj = 0;
10439 wxNativeEncodingInfo *arg1 = 0 ;
10440 bool result;
10441 void *argp1 = 0 ;
10442 int res1 = 0 ;
10443 PyObject * obj0 = 0 ;
10444 char * kwnames[] = {
10445 (char *) "info", NULL
10446 };
10447
10448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10449 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10450 if (!SWIG_IsOK(res1)) {
10451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10452 }
10453 if (!argp1) {
10454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10455 }
10456 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 {
10464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10465 }
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10473 PyObject *resultobj = 0;
10474 wxFontMapper *result = 0 ;
10475
10476 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10477 {
10478 PyThreadState* __tstate = wxPyBeginAllowThreads();
10479 result = (wxFontMapper *)new wxFontMapper();
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10484 return resultobj;
10485 fail:
10486 return NULL;
10487 }
10488
10489
10490 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10491 PyObject *resultobj = 0;
10492 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10493 void *argp1 = 0 ;
10494 int res1 = 0 ;
10495 PyObject *swig_obj[1] ;
10496
10497 if (!args) SWIG_fail;
10498 swig_obj[0] = args;
10499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10500 if (!SWIG_IsOK(res1)) {
10501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10502 }
10503 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 delete arg1;
10507
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_Py_Void();
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10519 PyObject *resultobj = 0;
10520 wxFontMapper *result = 0 ;
10521
10522 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10523 {
10524 PyThreadState* __tstate = wxPyBeginAllowThreads();
10525 result = (wxFontMapper *)wxFontMapper::Get();
10526 wxPyEndAllowThreads(__tstate);
10527 if (PyErr_Occurred()) SWIG_fail;
10528 }
10529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10530 return resultobj;
10531 fail:
10532 return NULL;
10533 }
10534
10535
10536 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10537 PyObject *resultobj = 0;
10538 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10539 wxFontMapper *result = 0 ;
10540 void *argp1 = 0 ;
10541 int res1 = 0 ;
10542 PyObject * obj0 = 0 ;
10543 char * kwnames[] = {
10544 (char *) "mapper", NULL
10545 };
10546
10547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10549 if (!SWIG_IsOK(res1)) {
10550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10551 }
10552 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10553 {
10554 PyThreadState* __tstate = wxPyBeginAllowThreads();
10555 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10556 wxPyEndAllowThreads(__tstate);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 }
10559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10560 return resultobj;
10561 fail:
10562 return NULL;
10563 }
10564
10565
10566 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10567 PyObject *resultobj = 0;
10568 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10569 wxString *arg2 = 0 ;
10570 bool arg3 = (bool) true ;
10571 wxFontEncoding result;
10572 void *argp1 = 0 ;
10573 int res1 = 0 ;
10574 bool temp2 = false ;
10575 bool val3 ;
10576 int ecode3 = 0 ;
10577 PyObject * obj0 = 0 ;
10578 PyObject * obj1 = 0 ;
10579 PyObject * obj2 = 0 ;
10580 char * kwnames[] = {
10581 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10582 };
10583
10584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10586 if (!SWIG_IsOK(res1)) {
10587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10588 }
10589 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10590 {
10591 arg2 = wxString_in_helper(obj1);
10592 if (arg2 == NULL) SWIG_fail;
10593 temp2 = true;
10594 }
10595 if (obj2) {
10596 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10597 if (!SWIG_IsOK(ecode3)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10599 }
10600 arg3 = static_cast< bool >(val3);
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 resultobj = SWIG_From_int(static_cast< int >(result));
10609 {
10610 if (temp2)
10611 delete arg2;
10612 }
10613 return resultobj;
10614 fail:
10615 {
10616 if (temp2)
10617 delete arg2;
10618 }
10619 return NULL;
10620 }
10621
10622
10623 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10624 PyObject *resultobj = 0;
10625 size_t result;
10626
10627 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10628 {
10629 PyThreadState* __tstate = wxPyBeginAllowThreads();
10630 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10635 return resultobj;
10636 fail:
10637 return NULL;
10638 }
10639
10640
10641 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj = 0;
10643 size_t arg1 ;
10644 wxFontEncoding result;
10645 size_t val1 ;
10646 int ecode1 = 0 ;
10647 PyObject * obj0 = 0 ;
10648 char * kwnames[] = {
10649 (char *) "n", NULL
10650 };
10651
10652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10653 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10654 if (!SWIG_IsOK(ecode1)) {
10655 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10656 }
10657 arg1 = static_cast< size_t >(val1);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_From_int(static_cast< int >(result));
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj = 0;
10673 wxFontEncoding arg1 ;
10674 wxString result;
10675 int val1 ;
10676 int ecode1 = 0 ;
10677 PyObject * obj0 = 0 ;
10678 char * kwnames[] = {
10679 (char *) "encoding", NULL
10680 };
10681
10682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10683 ecode1 = SWIG_AsVal_int(obj0, &val1);
10684 if (!SWIG_IsOK(ecode1)) {
10685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10686 }
10687 arg1 = static_cast< wxFontEncoding >(val1);
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 result = wxFontMapper::GetEncodingName(arg1);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 {
10695 #if wxUSE_UNICODE
10696 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10697 #else
10698 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10699 #endif
10700 }
10701 return resultobj;
10702 fail:
10703 return NULL;
10704 }
10705
10706
10707 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj = 0;
10709 wxFontEncoding arg1 ;
10710 wxString result;
10711 int val1 ;
10712 int ecode1 = 0 ;
10713 PyObject * obj0 = 0 ;
10714 char * kwnames[] = {
10715 (char *) "encoding", NULL
10716 };
10717
10718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10719 ecode1 = SWIG_AsVal_int(obj0, &val1);
10720 if (!SWIG_IsOK(ecode1)) {
10721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10722 }
10723 arg1 = static_cast< wxFontEncoding >(val1);
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 result = wxFontMapper::GetEncodingDescription(arg1);
10727 wxPyEndAllowThreads(__tstate);
10728 if (PyErr_Occurred()) SWIG_fail;
10729 }
10730 {
10731 #if wxUSE_UNICODE
10732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10733 #else
10734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10735 #endif
10736 }
10737 return resultobj;
10738 fail:
10739 return NULL;
10740 }
10741
10742
10743 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10744 PyObject *resultobj = 0;
10745 wxString *arg1 = 0 ;
10746 wxFontEncoding result;
10747 bool temp1 = false ;
10748 PyObject * obj0 = 0 ;
10749 char * kwnames[] = {
10750 (char *) "name", NULL
10751 };
10752
10753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10754 {
10755 arg1 = wxString_in_helper(obj0);
10756 if (arg1 == NULL) SWIG_fail;
10757 temp1 = true;
10758 }
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 resultobj = SWIG_From_int(static_cast< int >(result));
10766 {
10767 if (temp1)
10768 delete arg1;
10769 }
10770 return resultobj;
10771 fail:
10772 {
10773 if (temp1)
10774 delete arg1;
10775 }
10776 return NULL;
10777 }
10778
10779
10780 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10783 wxString *arg2 = 0 ;
10784 void *argp1 = 0 ;
10785 int res1 = 0 ;
10786 bool temp2 = false ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char * kwnames[] = {
10790 (char *) "self",(char *) "prefix", NULL
10791 };
10792
10793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10797 }
10798 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10799 {
10800 arg2 = wxString_in_helper(obj1);
10801 if (arg2 == NULL) SWIG_fail;
10802 temp2 = true;
10803 }
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->SetConfigPath((wxString const &)*arg2);
10807 wxPyEndAllowThreads(__tstate);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 resultobj = SWIG_Py_Void();
10811 {
10812 if (temp2)
10813 delete arg2;
10814 }
10815 return resultobj;
10816 fail:
10817 {
10818 if (temp2)
10819 delete arg2;
10820 }
10821 return NULL;
10822 }
10823
10824
10825 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10826 PyObject *resultobj = 0;
10827 wxString result;
10828
10829 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 result = wxFontMapper::GetDefaultConfigPath();
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 {
10837 #if wxUSE_UNICODE
10838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10839 #else
10840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10841 #endif
10842 }
10843 return resultobj;
10844 fail:
10845 return NULL;
10846 }
10847
10848
10849 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj = 0;
10851 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10852 wxFontEncoding arg2 ;
10853 wxString const &arg3_defvalue = wxPyEmptyString ;
10854 wxString *arg3 = (wxString *) &arg3_defvalue ;
10855 bool arg4 = (bool) true ;
10856 PyObject *result = 0 ;
10857 void *argp1 = 0 ;
10858 int res1 = 0 ;
10859 int val2 ;
10860 int ecode2 = 0 ;
10861 bool temp3 = false ;
10862 bool val4 ;
10863 int ecode4 = 0 ;
10864 PyObject * obj0 = 0 ;
10865 PyObject * obj1 = 0 ;
10866 PyObject * obj2 = 0 ;
10867 PyObject * obj3 = 0 ;
10868 char * kwnames[] = {
10869 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10870 };
10871
10872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10874 if (!SWIG_IsOK(res1)) {
10875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10876 }
10877 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10878 ecode2 = SWIG_AsVal_int(obj1, &val2);
10879 if (!SWIG_IsOK(ecode2)) {
10880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10881 }
10882 arg2 = static_cast< wxFontEncoding >(val2);
10883 if (obj2) {
10884 {
10885 arg3 = wxString_in_helper(obj2);
10886 if (arg3 == NULL) SWIG_fail;
10887 temp3 = true;
10888 }
10889 }
10890 if (obj3) {
10891 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10892 if (!SWIG_IsOK(ecode4)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10894 }
10895 arg4 = static_cast< bool >(val4);
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = result;
10904 {
10905 if (temp3)
10906 delete arg3;
10907 }
10908 return resultobj;
10909 fail:
10910 {
10911 if (temp3)
10912 delete arg3;
10913 }
10914 return NULL;
10915 }
10916
10917
10918 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj = 0;
10920 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10921 wxFontEncoding arg2 ;
10922 wxString const &arg3_defvalue = wxPyEmptyString ;
10923 wxString *arg3 = (wxString *) &arg3_defvalue ;
10924 bool result;
10925 void *argp1 = 0 ;
10926 int res1 = 0 ;
10927 int val2 ;
10928 int ecode2 = 0 ;
10929 bool temp3 = false ;
10930 PyObject * obj0 = 0 ;
10931 PyObject * obj1 = 0 ;
10932 PyObject * obj2 = 0 ;
10933 char * kwnames[] = {
10934 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10935 };
10936
10937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10939 if (!SWIG_IsOK(res1)) {
10940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10941 }
10942 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10943 ecode2 = SWIG_AsVal_int(obj1, &val2);
10944 if (!SWIG_IsOK(ecode2)) {
10945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10946 }
10947 arg2 = static_cast< wxFontEncoding >(val2);
10948 if (obj2) {
10949 {
10950 arg3 = wxString_in_helper(obj2);
10951 if (arg3 == NULL) SWIG_fail;
10952 temp3 = true;
10953 }
10954 }
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 {
10962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10963 }
10964 {
10965 if (temp3)
10966 delete arg3;
10967 }
10968 return resultobj;
10969 fail:
10970 {
10971 if (temp3)
10972 delete arg3;
10973 }
10974 return NULL;
10975 }
10976
10977
10978 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10979 PyObject *resultobj = 0;
10980 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10981 wxWindow *arg2 = (wxWindow *) 0 ;
10982 void *argp1 = 0 ;
10983 int res1 = 0 ;
10984 void *argp2 = 0 ;
10985 int res2 = 0 ;
10986 PyObject * obj0 = 0 ;
10987 PyObject * obj1 = 0 ;
10988 char * kwnames[] = {
10989 (char *) "self",(char *) "parent", NULL
10990 };
10991
10992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
10993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10994 if (!SWIG_IsOK(res1)) {
10995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10996 }
10997 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10999 if (!SWIG_IsOK(res2)) {
11000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11001 }
11002 arg2 = reinterpret_cast< wxWindow * >(argp2);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 (arg1)->SetDialogParent(arg2);
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 resultobj = SWIG_Py_Void();
11010 return resultobj;
11011 fail:
11012 return NULL;
11013 }
11014
11015
11016 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11017 PyObject *resultobj = 0;
11018 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11019 wxString *arg2 = 0 ;
11020 void *argp1 = 0 ;
11021 int res1 = 0 ;
11022 bool temp2 = false ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11025 char * kwnames[] = {
11026 (char *) "self",(char *) "title", NULL
11027 };
11028
11029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11031 if (!SWIG_IsOK(res1)) {
11032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11033 }
11034 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11035 {
11036 arg2 = wxString_in_helper(obj1);
11037 if (arg2 == NULL) SWIG_fail;
11038 temp2 = true;
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 (arg1)->SetDialogTitle((wxString const &)*arg2);
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 resultobj = SWIG_Py_Void();
11047 {
11048 if (temp2)
11049 delete arg2;
11050 }
11051 return resultobj;
11052 fail:
11053 {
11054 if (temp2)
11055 delete arg2;
11056 }
11057 return NULL;
11058 }
11059
11060
11061 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11062 PyObject *obj;
11063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11064 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11065 return SWIG_Py_Void();
11066 }
11067
11068 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11069 return SWIG_Python_InitShadowInstance(args);
11070 }
11071
11072 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11073 PyObject *resultobj = 0;
11074 int arg1 ;
11075 int arg2 ;
11076 int arg3 ;
11077 int arg4 ;
11078 bool arg5 = (bool) false ;
11079 wxString const &arg6_defvalue = wxPyEmptyString ;
11080 wxString *arg6 = (wxString *) &arg6_defvalue ;
11081 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11082 wxFont *result = 0 ;
11083 int val1 ;
11084 int ecode1 = 0 ;
11085 int val2 ;
11086 int ecode2 = 0 ;
11087 int val3 ;
11088 int ecode3 = 0 ;
11089 int val4 ;
11090 int ecode4 = 0 ;
11091 bool val5 ;
11092 int ecode5 = 0 ;
11093 bool temp6 = false ;
11094 int val7 ;
11095 int ecode7 = 0 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 PyObject * obj2 = 0 ;
11099 PyObject * obj3 = 0 ;
11100 PyObject * obj4 = 0 ;
11101 PyObject * obj5 = 0 ;
11102 PyObject * obj6 = 0 ;
11103 char * kwnames[] = {
11104 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11105 };
11106
11107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11108 ecode1 = SWIG_AsVal_int(obj0, &val1);
11109 if (!SWIG_IsOK(ecode1)) {
11110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11111 }
11112 arg1 = static_cast< int >(val1);
11113 ecode2 = SWIG_AsVal_int(obj1, &val2);
11114 if (!SWIG_IsOK(ecode2)) {
11115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11116 }
11117 arg2 = static_cast< int >(val2);
11118 ecode3 = SWIG_AsVal_int(obj2, &val3);
11119 if (!SWIG_IsOK(ecode3)) {
11120 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11121 }
11122 arg3 = static_cast< int >(val3);
11123 ecode4 = SWIG_AsVal_int(obj3, &val4);
11124 if (!SWIG_IsOK(ecode4)) {
11125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11126 }
11127 arg4 = static_cast< int >(val4);
11128 if (obj4) {
11129 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11130 if (!SWIG_IsOK(ecode5)) {
11131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11132 }
11133 arg5 = static_cast< bool >(val5);
11134 }
11135 if (obj5) {
11136 {
11137 arg6 = wxString_in_helper(obj5);
11138 if (arg6 == NULL) SWIG_fail;
11139 temp6 = true;
11140 }
11141 }
11142 if (obj6) {
11143 ecode7 = SWIG_AsVal_int(obj6, &val7);
11144 if (!SWIG_IsOK(ecode7)) {
11145 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11146 }
11147 arg7 = static_cast< wxFontEncoding >(val7);
11148 }
11149 {
11150 if (!wxPyCheckForApp()) SWIG_fail;
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11157 {
11158 if (temp6)
11159 delete arg6;
11160 }
11161 return resultobj;
11162 fail:
11163 {
11164 if (temp6)
11165 delete arg6;
11166 }
11167 return NULL;
11168 }
11169
11170
11171 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11172 PyObject *resultobj = 0;
11173 wxFont *arg1 = (wxFont *) 0 ;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 PyObject *swig_obj[1] ;
11177
11178 if (!args) SWIG_fail;
11179 swig_obj[0] = args;
11180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11181 if (!SWIG_IsOK(res1)) {
11182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11183 }
11184 arg1 = reinterpret_cast< wxFont * >(argp1);
11185 {
11186 PyThreadState* __tstate = wxPyBeginAllowThreads();
11187 delete arg1;
11188
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 resultobj = SWIG_Py_Void();
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxNativeFontInfo *arg1 = 0 ;
11202 wxFont *result = 0 ;
11203 void *argp1 = 0 ;
11204 int res1 = 0 ;
11205 PyObject * obj0 = 0 ;
11206 char * kwnames[] = {
11207 (char *) "info", NULL
11208 };
11209
11210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11211 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11212 if (!SWIG_IsOK(res1)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11214 }
11215 if (!argp1) {
11216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11217 }
11218 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11219 {
11220 if (!wxPyCheckForApp()) SWIG_fail;
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11223 wxPyEndAllowThreads(__tstate);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11227 return resultobj;
11228 fail:
11229 return NULL;
11230 }
11231
11232
11233 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11234 PyObject *resultobj = 0;
11235 wxString *arg1 = 0 ;
11236 wxFont *result = 0 ;
11237 bool temp1 = false ;
11238 PyObject * obj0 = 0 ;
11239 char * kwnames[] = {
11240 (char *) "info", NULL
11241 };
11242
11243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11244 {
11245 arg1 = wxString_in_helper(obj0);
11246 if (arg1 == NULL) SWIG_fail;
11247 temp1 = true;
11248 }
11249 {
11250 if (!wxPyCheckForApp()) SWIG_fail;
11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
11252 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11253 wxPyEndAllowThreads(__tstate);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 }
11256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11257 {
11258 if (temp1)
11259 delete arg1;
11260 }
11261 return resultobj;
11262 fail:
11263 {
11264 if (temp1)
11265 delete arg1;
11266 }
11267 return NULL;
11268 }
11269
11270
11271 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj = 0;
11273 int arg1 ;
11274 wxFontFamily arg2 ;
11275 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11276 wxString const &arg4_defvalue = wxPyEmptyString ;
11277 wxString *arg4 = (wxString *) &arg4_defvalue ;
11278 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11279 wxFont *result = 0 ;
11280 int val1 ;
11281 int ecode1 = 0 ;
11282 int val2 ;
11283 int ecode2 = 0 ;
11284 int val3 ;
11285 int ecode3 = 0 ;
11286 bool temp4 = false ;
11287 int val5 ;
11288 int ecode5 = 0 ;
11289 PyObject * obj0 = 0 ;
11290 PyObject * obj1 = 0 ;
11291 PyObject * obj2 = 0 ;
11292 PyObject * obj3 = 0 ;
11293 PyObject * obj4 = 0 ;
11294 char * kwnames[] = {
11295 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11296 };
11297
11298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11299 ecode1 = SWIG_AsVal_int(obj0, &val1);
11300 if (!SWIG_IsOK(ecode1)) {
11301 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11302 }
11303 arg1 = static_cast< int >(val1);
11304 ecode2 = SWIG_AsVal_int(obj1, &val2);
11305 if (!SWIG_IsOK(ecode2)) {
11306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11307 }
11308 arg2 = static_cast< wxFontFamily >(val2);
11309 if (obj2) {
11310 ecode3 = SWIG_AsVal_int(obj2, &val3);
11311 if (!SWIG_IsOK(ecode3)) {
11312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11313 }
11314 arg3 = static_cast< int >(val3);
11315 }
11316 if (obj3) {
11317 {
11318 arg4 = wxString_in_helper(obj3);
11319 if (arg4 == NULL) SWIG_fail;
11320 temp4 = true;
11321 }
11322 }
11323 if (obj4) {
11324 ecode5 = SWIG_AsVal_int(obj4, &val5);
11325 if (!SWIG_IsOK(ecode5)) {
11326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11327 }
11328 arg5 = static_cast< wxFontEncoding >(val5);
11329 }
11330 {
11331 if (!wxPyCheckForApp()) SWIG_fail;
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11334 wxPyEndAllowThreads(__tstate);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 }
11337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11338 {
11339 if (temp4)
11340 delete arg4;
11341 }
11342 return resultobj;
11343 fail:
11344 {
11345 if (temp4)
11346 delete arg4;
11347 }
11348 return NULL;
11349 }
11350
11351
11352 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj = 0;
11354 wxSize *arg1 = 0 ;
11355 int arg2 ;
11356 int arg3 ;
11357 int arg4 ;
11358 bool arg5 = (bool) false ;
11359 wxString const &arg6_defvalue = wxEmptyString ;
11360 wxString *arg6 = (wxString *) &arg6_defvalue ;
11361 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11362 wxFont *result = 0 ;
11363 wxSize temp1 ;
11364 int val2 ;
11365 int ecode2 = 0 ;
11366 int val3 ;
11367 int ecode3 = 0 ;
11368 int val4 ;
11369 int ecode4 = 0 ;
11370 bool val5 ;
11371 int ecode5 = 0 ;
11372 bool temp6 = false ;
11373 int val7 ;
11374 int ecode7 = 0 ;
11375 PyObject * obj0 = 0 ;
11376 PyObject * obj1 = 0 ;
11377 PyObject * obj2 = 0 ;
11378 PyObject * obj3 = 0 ;
11379 PyObject * obj4 = 0 ;
11380 PyObject * obj5 = 0 ;
11381 PyObject * obj6 = 0 ;
11382 char * kwnames[] = {
11383 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11384 };
11385
11386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11387 {
11388 arg1 = &temp1;
11389 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11390 }
11391 ecode2 = SWIG_AsVal_int(obj1, &val2);
11392 if (!SWIG_IsOK(ecode2)) {
11393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11394 }
11395 arg2 = static_cast< int >(val2);
11396 ecode3 = SWIG_AsVal_int(obj2, &val3);
11397 if (!SWIG_IsOK(ecode3)) {
11398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11399 }
11400 arg3 = static_cast< int >(val3);
11401 ecode4 = SWIG_AsVal_int(obj3, &val4);
11402 if (!SWIG_IsOK(ecode4)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11404 }
11405 arg4 = static_cast< int >(val4);
11406 if (obj4) {
11407 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11408 if (!SWIG_IsOK(ecode5)) {
11409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11410 }
11411 arg5 = static_cast< bool >(val5);
11412 }
11413 if (obj5) {
11414 {
11415 arg6 = wxString_in_helper(obj5);
11416 if (arg6 == NULL) SWIG_fail;
11417 temp6 = true;
11418 }
11419 }
11420 if (obj6) {
11421 ecode7 = SWIG_AsVal_int(obj6, &val7);
11422 if (!SWIG_IsOK(ecode7)) {
11423 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11424 }
11425 arg7 = static_cast< wxFontEncoding >(val7);
11426 }
11427 {
11428 if (!wxPyCheckForApp()) SWIG_fail;
11429 PyThreadState* __tstate = wxPyBeginAllowThreads();
11430 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11435 {
11436 if (temp6)
11437 delete arg6;
11438 }
11439 return resultobj;
11440 fail:
11441 {
11442 if (temp6)
11443 delete arg6;
11444 }
11445 return NULL;
11446 }
11447
11448
11449 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11450 PyObject *resultobj = 0;
11451 wxSize *arg1 = 0 ;
11452 wxFontFamily arg2 ;
11453 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11454 wxString const &arg4_defvalue = wxEmptyString ;
11455 wxString *arg4 = (wxString *) &arg4_defvalue ;
11456 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11457 wxFont *result = 0 ;
11458 wxSize temp1 ;
11459 int val2 ;
11460 int ecode2 = 0 ;
11461 int val3 ;
11462 int ecode3 = 0 ;
11463 bool temp4 = false ;
11464 int val5 ;
11465 int ecode5 = 0 ;
11466 PyObject * obj0 = 0 ;
11467 PyObject * obj1 = 0 ;
11468 PyObject * obj2 = 0 ;
11469 PyObject * obj3 = 0 ;
11470 PyObject * obj4 = 0 ;
11471 char * kwnames[] = {
11472 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11473 };
11474
11475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11476 {
11477 arg1 = &temp1;
11478 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11479 }
11480 ecode2 = SWIG_AsVal_int(obj1, &val2);
11481 if (!SWIG_IsOK(ecode2)) {
11482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11483 }
11484 arg2 = static_cast< wxFontFamily >(val2);
11485 if (obj2) {
11486 ecode3 = SWIG_AsVal_int(obj2, &val3);
11487 if (!SWIG_IsOK(ecode3)) {
11488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11489 }
11490 arg3 = static_cast< int >(val3);
11491 }
11492 if (obj3) {
11493 {
11494 arg4 = wxString_in_helper(obj3);
11495 if (arg4 == NULL) SWIG_fail;
11496 temp4 = true;
11497 }
11498 }
11499 if (obj4) {
11500 ecode5 = SWIG_AsVal_int(obj4, &val5);
11501 if (!SWIG_IsOK(ecode5)) {
11502 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11503 }
11504 arg5 = static_cast< wxFontEncoding >(val5);
11505 }
11506 {
11507 if (!wxPyCheckForApp()) SWIG_fail;
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11514 {
11515 if (temp4)
11516 delete arg4;
11517 }
11518 return resultobj;
11519 fail:
11520 {
11521 if (temp4)
11522 delete arg4;
11523 }
11524 return NULL;
11525 }
11526
11527
11528 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11529 PyObject *resultobj = 0;
11530 wxFont *arg1 = (wxFont *) 0 ;
11531 bool result;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 PyObject *swig_obj[1] ;
11535
11536 if (!args) SWIG_fail;
11537 swig_obj[0] = args;
11538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11539 if (!SWIG_IsOK(res1)) {
11540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11541 }
11542 arg1 = reinterpret_cast< wxFont * >(argp1);
11543 {
11544 PyThreadState* __tstate = wxPyBeginAllowThreads();
11545 result = (bool)((wxFont const *)arg1)->Ok();
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 {
11550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11551 }
11552 return resultobj;
11553 fail:
11554 return NULL;
11555 }
11556
11557
11558 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11559 PyObject *resultobj = 0;
11560 wxFont *arg1 = (wxFont *) 0 ;
11561 wxFont *arg2 = (wxFont *) 0 ;
11562 bool result;
11563 void *argp1 = 0 ;
11564 int res1 = 0 ;
11565 void *argp2 = 0 ;
11566 int res2 = 0 ;
11567 PyObject * obj0 = 0 ;
11568 PyObject * obj1 = 0 ;
11569 char * kwnames[] = {
11570 (char *) "self",(char *) "other", NULL
11571 };
11572
11573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11575 if (!SWIG_IsOK(res1)) {
11576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11577 }
11578 arg1 = reinterpret_cast< wxFont * >(argp1);
11579 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11580 if (!SWIG_IsOK(res2)) {
11581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11582 }
11583 arg2 = reinterpret_cast< wxFont * >(argp2);
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 {
11591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11592 }
11593 return resultobj;
11594 fail:
11595 return NULL;
11596 }
11597
11598
11599 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj = 0;
11601 wxFont *arg1 = (wxFont *) 0 ;
11602 wxFont *arg2 = (wxFont *) 0 ;
11603 bool result;
11604 void *argp1 = 0 ;
11605 int res1 = 0 ;
11606 void *argp2 = 0 ;
11607 int res2 = 0 ;
11608 PyObject * obj0 = 0 ;
11609 PyObject * obj1 = 0 ;
11610 char * kwnames[] = {
11611 (char *) "self",(char *) "other", NULL
11612 };
11613
11614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11616 if (!SWIG_IsOK(res1)) {
11617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11618 }
11619 arg1 = reinterpret_cast< wxFont * >(argp1);
11620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11621 if (!SWIG_IsOK(res2)) {
11622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11623 }
11624 arg2 = reinterpret_cast< wxFont * >(argp2);
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 {
11632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11633 }
11634 return resultobj;
11635 fail:
11636 return NULL;
11637 }
11638
11639
11640 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11641 PyObject *resultobj = 0;
11642 wxFont *arg1 = (wxFont *) 0 ;
11643 int result;
11644 void *argp1 = 0 ;
11645 int res1 = 0 ;
11646 PyObject *swig_obj[1] ;
11647
11648 if (!args) SWIG_fail;
11649 swig_obj[0] = args;
11650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11651 if (!SWIG_IsOK(res1)) {
11652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11653 }
11654 arg1 = reinterpret_cast< wxFont * >(argp1);
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 result = (int)((wxFont const *)arg1)->GetPointSize();
11658 wxPyEndAllowThreads(__tstate);
11659 if (PyErr_Occurred()) SWIG_fail;
11660 }
11661 resultobj = SWIG_From_int(static_cast< int >(result));
11662 return resultobj;
11663 fail:
11664 return NULL;
11665 }
11666
11667
11668 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11669 PyObject *resultobj = 0;
11670 wxFont *arg1 = (wxFont *) 0 ;
11671 wxSize result;
11672 void *argp1 = 0 ;
11673 int res1 = 0 ;
11674 PyObject *swig_obj[1] ;
11675
11676 if (!args) SWIG_fail;
11677 swig_obj[0] = args;
11678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11679 if (!SWIG_IsOK(res1)) {
11680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11681 }
11682 arg1 = reinterpret_cast< wxFont * >(argp1);
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 result = ((wxFont const *)arg1)->GetPixelSize();
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11690 return resultobj;
11691 fail:
11692 return NULL;
11693 }
11694
11695
11696 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11697 PyObject *resultobj = 0;
11698 wxFont *arg1 = (wxFont *) 0 ;
11699 bool result;
11700 void *argp1 = 0 ;
11701 int res1 = 0 ;
11702 PyObject *swig_obj[1] ;
11703
11704 if (!args) SWIG_fail;
11705 swig_obj[0] = args;
11706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11707 if (!SWIG_IsOK(res1)) {
11708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11709 }
11710 arg1 = reinterpret_cast< wxFont * >(argp1);
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 {
11718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11719 }
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11727 PyObject *resultobj = 0;
11728 wxFont *arg1 = (wxFont *) 0 ;
11729 int result;
11730 void *argp1 = 0 ;
11731 int res1 = 0 ;
11732 PyObject *swig_obj[1] ;
11733
11734 if (!args) SWIG_fail;
11735 swig_obj[0] = args;
11736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11737 if (!SWIG_IsOK(res1)) {
11738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11739 }
11740 arg1 = reinterpret_cast< wxFont * >(argp1);
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (int)((wxFont const *)arg1)->GetFamily();
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = SWIG_From_int(static_cast< int >(result));
11748 return resultobj;
11749 fail:
11750 return NULL;
11751 }
11752
11753
11754 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11755 PyObject *resultobj = 0;
11756 wxFont *arg1 = (wxFont *) 0 ;
11757 int result;
11758 void *argp1 = 0 ;
11759 int res1 = 0 ;
11760 PyObject *swig_obj[1] ;
11761
11762 if (!args) SWIG_fail;
11763 swig_obj[0] = args;
11764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11765 if (!SWIG_IsOK(res1)) {
11766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11767 }
11768 arg1 = reinterpret_cast< wxFont * >(argp1);
11769 {
11770 PyThreadState* __tstate = wxPyBeginAllowThreads();
11771 result = (int)((wxFont const *)arg1)->GetStyle();
11772 wxPyEndAllowThreads(__tstate);
11773 if (PyErr_Occurred()) SWIG_fail;
11774 }
11775 resultobj = SWIG_From_int(static_cast< int >(result));
11776 return resultobj;
11777 fail:
11778 return NULL;
11779 }
11780
11781
11782 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11783 PyObject *resultobj = 0;
11784 wxFont *arg1 = (wxFont *) 0 ;
11785 int result;
11786 void *argp1 = 0 ;
11787 int res1 = 0 ;
11788 PyObject *swig_obj[1] ;
11789
11790 if (!args) SWIG_fail;
11791 swig_obj[0] = args;
11792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11793 if (!SWIG_IsOK(res1)) {
11794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11795 }
11796 arg1 = reinterpret_cast< wxFont * >(argp1);
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = (int)((wxFont const *)arg1)->GetWeight();
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_From_int(static_cast< int >(result));
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11811 PyObject *resultobj = 0;
11812 wxFont *arg1 = (wxFont *) 0 ;
11813 bool result;
11814 void *argp1 = 0 ;
11815 int res1 = 0 ;
11816 PyObject *swig_obj[1] ;
11817
11818 if (!args) SWIG_fail;
11819 swig_obj[0] = args;
11820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11821 if (!SWIG_IsOK(res1)) {
11822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11823 }
11824 arg1 = reinterpret_cast< wxFont * >(argp1);
11825 {
11826 PyThreadState* __tstate = wxPyBeginAllowThreads();
11827 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11828 wxPyEndAllowThreads(__tstate);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 }
11831 {
11832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11833 }
11834 return resultobj;
11835 fail:
11836 return NULL;
11837 }
11838
11839
11840 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11841 PyObject *resultobj = 0;
11842 wxFont *arg1 = (wxFont *) 0 ;
11843 wxString result;
11844 void *argp1 = 0 ;
11845 int res1 = 0 ;
11846 PyObject *swig_obj[1] ;
11847
11848 if (!args) SWIG_fail;
11849 swig_obj[0] = args;
11850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11851 if (!SWIG_IsOK(res1)) {
11852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11853 }
11854 arg1 = reinterpret_cast< wxFont * >(argp1);
11855 {
11856 PyThreadState* __tstate = wxPyBeginAllowThreads();
11857 result = ((wxFont const *)arg1)->GetFaceName();
11858 wxPyEndAllowThreads(__tstate);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 {
11862 #if wxUSE_UNICODE
11863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11864 #else
11865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11866 #endif
11867 }
11868 return resultobj;
11869 fail:
11870 return NULL;
11871 }
11872
11873
11874 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11875 PyObject *resultobj = 0;
11876 wxFont *arg1 = (wxFont *) 0 ;
11877 wxFontEncoding result;
11878 void *argp1 = 0 ;
11879 int res1 = 0 ;
11880 PyObject *swig_obj[1] ;
11881
11882 if (!args) SWIG_fail;
11883 swig_obj[0] = args;
11884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11887 }
11888 arg1 = reinterpret_cast< wxFont * >(argp1);
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 resultobj = SWIG_From_int(static_cast< int >(result));
11896 return resultobj;
11897 fail:
11898 return NULL;
11899 }
11900
11901
11902 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11903 PyObject *resultobj = 0;
11904 wxFont *arg1 = (wxFont *) 0 ;
11905 wxNativeFontInfo *result = 0 ;
11906 void *argp1 = 0 ;
11907 int res1 = 0 ;
11908 PyObject *swig_obj[1] ;
11909
11910 if (!args) SWIG_fail;
11911 swig_obj[0] = args;
11912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11915 }
11916 arg1 = reinterpret_cast< wxFont * >(argp1);
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11931 PyObject *resultobj = 0;
11932 wxFont *arg1 = (wxFont *) 0 ;
11933 bool result;
11934 void *argp1 = 0 ;
11935 int res1 = 0 ;
11936 PyObject *swig_obj[1] ;
11937
11938 if (!args) SWIG_fail;
11939 swig_obj[0] = args;
11940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11941 if (!SWIG_IsOK(res1)) {
11942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11943 }
11944 arg1 = reinterpret_cast< wxFont * >(argp1);
11945 {
11946 PyThreadState* __tstate = wxPyBeginAllowThreads();
11947 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 {
11952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11953 }
11954 return resultobj;
11955 fail:
11956 return NULL;
11957 }
11958
11959
11960 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11961 PyObject *resultobj = 0;
11962 wxFont *arg1 = (wxFont *) 0 ;
11963 wxString result;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11973 }
11974 arg1 = reinterpret_cast< wxFont * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 #if wxUSE_UNICODE
11983 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11984 #else
11985 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11986 #endif
11987 }
11988 return resultobj;
11989 fail:
11990 return NULL;
11991 }
11992
11993
11994 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11995 PyObject *resultobj = 0;
11996 wxFont *arg1 = (wxFont *) 0 ;
11997 wxString result;
11998 void *argp1 = 0 ;
11999 int res1 = 0 ;
12000 PyObject *swig_obj[1] ;
12001
12002 if (!args) SWIG_fail;
12003 swig_obj[0] = args;
12004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12005 if (!SWIG_IsOK(res1)) {
12006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12007 }
12008 arg1 = reinterpret_cast< wxFont * >(argp1);
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 {
12016 #if wxUSE_UNICODE
12017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12018 #else
12019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12020 #endif
12021 }
12022 return resultobj;
12023 fail:
12024 return NULL;
12025 }
12026
12027
12028 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12029 PyObject *resultobj = 0;
12030 wxFont *arg1 = (wxFont *) 0 ;
12031 int arg2 ;
12032 void *argp1 = 0 ;
12033 int res1 = 0 ;
12034 int val2 ;
12035 int ecode2 = 0 ;
12036 PyObject * obj0 = 0 ;
12037 PyObject * obj1 = 0 ;
12038 char * kwnames[] = {
12039 (char *) "self",(char *) "pointSize", NULL
12040 };
12041
12042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12044 if (!SWIG_IsOK(res1)) {
12045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12046 }
12047 arg1 = reinterpret_cast< wxFont * >(argp1);
12048 ecode2 = SWIG_AsVal_int(obj1, &val2);
12049 if (!SWIG_IsOK(ecode2)) {
12050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12051 }
12052 arg2 = static_cast< int >(val2);
12053 {
12054 PyThreadState* __tstate = wxPyBeginAllowThreads();
12055 (arg1)->SetPointSize(arg2);
12056 wxPyEndAllowThreads(__tstate);
12057 if (PyErr_Occurred()) SWIG_fail;
12058 }
12059 resultobj = SWIG_Py_Void();
12060 return resultobj;
12061 fail:
12062 return NULL;
12063 }
12064
12065
12066 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj = 0;
12068 wxFont *arg1 = (wxFont *) 0 ;
12069 wxSize *arg2 = 0 ;
12070 void *argp1 = 0 ;
12071 int res1 = 0 ;
12072 wxSize temp2 ;
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
12075 char * kwnames[] = {
12076 (char *) "self",(char *) "pixelSize", NULL
12077 };
12078
12079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12081 if (!SWIG_IsOK(res1)) {
12082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12083 }
12084 arg1 = reinterpret_cast< wxFont * >(argp1);
12085 {
12086 arg2 = &temp2;
12087 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12088 }
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 (arg1)->SetPixelSize((wxSize const &)*arg2);
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 resultobj = SWIG_Py_Void();
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12103 PyObject *resultobj = 0;
12104 wxFont *arg1 = (wxFont *) 0 ;
12105 int arg2 ;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 int val2 ;
12109 int ecode2 = 0 ;
12110 PyObject * obj0 = 0 ;
12111 PyObject * obj1 = 0 ;
12112 char * kwnames[] = {
12113 (char *) "self",(char *) "family", NULL
12114 };
12115
12116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12118 if (!SWIG_IsOK(res1)) {
12119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12120 }
12121 arg1 = reinterpret_cast< wxFont * >(argp1);
12122 ecode2 = SWIG_AsVal_int(obj1, &val2);
12123 if (!SWIG_IsOK(ecode2)) {
12124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12125 }
12126 arg2 = static_cast< int >(val2);
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 (arg1)->SetFamily(arg2);
12130 wxPyEndAllowThreads(__tstate);
12131 if (PyErr_Occurred()) SWIG_fail;
12132 }
12133 resultobj = SWIG_Py_Void();
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12141 PyObject *resultobj = 0;
12142 wxFont *arg1 = (wxFont *) 0 ;
12143 int arg2 ;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 int val2 ;
12147 int ecode2 = 0 ;
12148 PyObject * obj0 = 0 ;
12149 PyObject * obj1 = 0 ;
12150 char * kwnames[] = {
12151 (char *) "self",(char *) "style", NULL
12152 };
12153
12154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12158 }
12159 arg1 = reinterpret_cast< wxFont * >(argp1);
12160 ecode2 = SWIG_AsVal_int(obj1, &val2);
12161 if (!SWIG_IsOK(ecode2)) {
12162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12163 }
12164 arg2 = static_cast< int >(val2);
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 (arg1)->SetStyle(arg2);
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 resultobj = SWIG_Py_Void();
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12179 PyObject *resultobj = 0;
12180 wxFont *arg1 = (wxFont *) 0 ;
12181 int arg2 ;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 int val2 ;
12185 int ecode2 = 0 ;
12186 PyObject * obj0 = 0 ;
12187 PyObject * obj1 = 0 ;
12188 char * kwnames[] = {
12189 (char *) "self",(char *) "weight", NULL
12190 };
12191
12192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12194 if (!SWIG_IsOK(res1)) {
12195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12196 }
12197 arg1 = reinterpret_cast< wxFont * >(argp1);
12198 ecode2 = SWIG_AsVal_int(obj1, &val2);
12199 if (!SWIG_IsOK(ecode2)) {
12200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12201 }
12202 arg2 = static_cast< int >(val2);
12203 {
12204 PyThreadState* __tstate = wxPyBeginAllowThreads();
12205 (arg1)->SetWeight(arg2);
12206 wxPyEndAllowThreads(__tstate);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 }
12209 resultobj = SWIG_Py_Void();
12210 return resultobj;
12211 fail:
12212 return NULL;
12213 }
12214
12215
12216 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12217 PyObject *resultobj = 0;
12218 wxFont *arg1 = (wxFont *) 0 ;
12219 wxString *arg2 = 0 ;
12220 void *argp1 = 0 ;
12221 int res1 = 0 ;
12222 bool temp2 = false ;
12223 PyObject * obj0 = 0 ;
12224 PyObject * obj1 = 0 ;
12225 char * kwnames[] = {
12226 (char *) "self",(char *) "faceName", NULL
12227 };
12228
12229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12231 if (!SWIG_IsOK(res1)) {
12232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12233 }
12234 arg1 = reinterpret_cast< wxFont * >(argp1);
12235 {
12236 arg2 = wxString_in_helper(obj1);
12237 if (arg2 == NULL) SWIG_fail;
12238 temp2 = true;
12239 }
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 (arg1)->SetFaceName((wxString const &)*arg2);
12243 wxPyEndAllowThreads(__tstate);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 resultobj = SWIG_Py_Void();
12247 {
12248 if (temp2)
12249 delete arg2;
12250 }
12251 return resultobj;
12252 fail:
12253 {
12254 if (temp2)
12255 delete arg2;
12256 }
12257 return NULL;
12258 }
12259
12260
12261 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12262 PyObject *resultobj = 0;
12263 wxFont *arg1 = (wxFont *) 0 ;
12264 bool arg2 ;
12265 void *argp1 = 0 ;
12266 int res1 = 0 ;
12267 bool val2 ;
12268 int ecode2 = 0 ;
12269 PyObject * obj0 = 0 ;
12270 PyObject * obj1 = 0 ;
12271 char * kwnames[] = {
12272 (char *) "self",(char *) "underlined", NULL
12273 };
12274
12275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12277 if (!SWIG_IsOK(res1)) {
12278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12279 }
12280 arg1 = reinterpret_cast< wxFont * >(argp1);
12281 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12282 if (!SWIG_IsOK(ecode2)) {
12283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12284 }
12285 arg2 = static_cast< bool >(val2);
12286 {
12287 PyThreadState* __tstate = wxPyBeginAllowThreads();
12288 (arg1)->SetUnderlined(arg2);
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 resultobj = SWIG_Py_Void();
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj = 0;
12301 wxFont *arg1 = (wxFont *) 0 ;
12302 wxFontEncoding arg2 ;
12303 void *argp1 = 0 ;
12304 int res1 = 0 ;
12305 int val2 ;
12306 int ecode2 = 0 ;
12307 PyObject * obj0 = 0 ;
12308 PyObject * obj1 = 0 ;
12309 char * kwnames[] = {
12310 (char *) "self",(char *) "encoding", NULL
12311 };
12312
12313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12315 if (!SWIG_IsOK(res1)) {
12316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12317 }
12318 arg1 = reinterpret_cast< wxFont * >(argp1);
12319 ecode2 = SWIG_AsVal_int(obj1, &val2);
12320 if (!SWIG_IsOK(ecode2)) {
12321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12322 }
12323 arg2 = static_cast< wxFontEncoding >(val2);
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->SetEncoding(arg2);
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 resultobj = SWIG_Py_Void();
12331 return resultobj;
12332 fail:
12333 return NULL;
12334 }
12335
12336
12337 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj = 0;
12339 wxFont *arg1 = (wxFont *) 0 ;
12340 wxNativeFontInfo *arg2 = 0 ;
12341 void *argp1 = 0 ;
12342 int res1 = 0 ;
12343 void *argp2 = 0 ;
12344 int res2 = 0 ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 char * kwnames[] = {
12348 (char *) "self",(char *) "info", NULL
12349 };
12350
12351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12353 if (!SWIG_IsOK(res1)) {
12354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12355 }
12356 arg1 = reinterpret_cast< wxFont * >(argp1);
12357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12358 if (!SWIG_IsOK(res2)) {
12359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12360 }
12361 if (!argp2) {
12362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12363 }
12364 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_Py_Void();
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12379 PyObject *resultobj = 0;
12380 wxFont *arg1 = (wxFont *) 0 ;
12381 wxString *arg2 = 0 ;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 bool temp2 = false ;
12385 PyObject * obj0 = 0 ;
12386 PyObject * obj1 = 0 ;
12387 char * kwnames[] = {
12388 (char *) "self",(char *) "info", NULL
12389 };
12390
12391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12393 if (!SWIG_IsOK(res1)) {
12394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12395 }
12396 arg1 = reinterpret_cast< wxFont * >(argp1);
12397 {
12398 arg2 = wxString_in_helper(obj1);
12399 if (arg2 == NULL) SWIG_fail;
12400 temp2 = true;
12401 }
12402 {
12403 PyThreadState* __tstate = wxPyBeginAllowThreads();
12404 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 resultobj = SWIG_Py_Void();
12409 {
12410 if (temp2)
12411 delete arg2;
12412 }
12413 return resultobj;
12414 fail:
12415 {
12416 if (temp2)
12417 delete arg2;
12418 }
12419 return NULL;
12420 }
12421
12422
12423 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12424 PyObject *resultobj = 0;
12425 wxFont *arg1 = (wxFont *) 0 ;
12426 wxString *arg2 = 0 ;
12427 void *argp1 = 0 ;
12428 int res1 = 0 ;
12429 bool temp2 = false ;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char * kwnames[] = {
12433 (char *) "self",(char *) "info", NULL
12434 };
12435
12436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12440 }
12441 arg1 = reinterpret_cast< wxFont * >(argp1);
12442 {
12443 arg2 = wxString_in_helper(obj1);
12444 if (arg2 == NULL) SWIG_fail;
12445 temp2 = true;
12446 }
12447 {
12448 PyThreadState* __tstate = wxPyBeginAllowThreads();
12449 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 resultobj = SWIG_Py_Void();
12454 {
12455 if (temp2)
12456 delete arg2;
12457 }
12458 return resultobj;
12459 fail:
12460 {
12461 if (temp2)
12462 delete arg2;
12463 }
12464 return NULL;
12465 }
12466
12467
12468 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12469 PyObject *resultobj = 0;
12470 wxFont *arg1 = (wxFont *) 0 ;
12471 wxString result;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 PyObject *swig_obj[1] ;
12475
12476 if (!args) SWIG_fail;
12477 swig_obj[0] = args;
12478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12479 if (!SWIG_IsOK(res1)) {
12480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12481 }
12482 arg1 = reinterpret_cast< wxFont * >(argp1);
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 result = ((wxFont const *)arg1)->GetFamilyString();
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 {
12490 #if wxUSE_UNICODE
12491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12492 #else
12493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12494 #endif
12495 }
12496 return resultobj;
12497 fail:
12498 return NULL;
12499 }
12500
12501
12502 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12503 PyObject *resultobj = 0;
12504 wxFont *arg1 = (wxFont *) 0 ;
12505 wxString result;
12506 void *argp1 = 0 ;
12507 int res1 = 0 ;
12508 PyObject *swig_obj[1] ;
12509
12510 if (!args) SWIG_fail;
12511 swig_obj[0] = args;
12512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12513 if (!SWIG_IsOK(res1)) {
12514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12515 }
12516 arg1 = reinterpret_cast< wxFont * >(argp1);
12517 {
12518 PyThreadState* __tstate = wxPyBeginAllowThreads();
12519 result = ((wxFont const *)arg1)->GetStyleString();
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 {
12524 #if wxUSE_UNICODE
12525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12526 #else
12527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12528 #endif
12529 }
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12537 PyObject *resultobj = 0;
12538 wxFont *arg1 = (wxFont *) 0 ;
12539 wxString result;
12540 void *argp1 = 0 ;
12541 int res1 = 0 ;
12542 PyObject *swig_obj[1] ;
12543
12544 if (!args) SWIG_fail;
12545 swig_obj[0] = args;
12546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12547 if (!SWIG_IsOK(res1)) {
12548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12549 }
12550 arg1 = reinterpret_cast< wxFont * >(argp1);
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 result = ((wxFont const *)arg1)->GetWeightString();
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 {
12558 #if wxUSE_UNICODE
12559 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12560 #else
12561 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12562 #endif
12563 }
12564 return resultobj;
12565 fail:
12566 return NULL;
12567 }
12568
12569
12570 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12571 PyObject *resultobj = 0;
12572 wxFont *arg1 = (wxFont *) 0 ;
12573 bool arg2 = (bool) true ;
12574 void *argp1 = 0 ;
12575 int res1 = 0 ;
12576 bool val2 ;
12577 int ecode2 = 0 ;
12578 PyObject * obj0 = 0 ;
12579 PyObject * obj1 = 0 ;
12580 char * kwnames[] = {
12581 (char *) "self",(char *) "no", NULL
12582 };
12583
12584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12586 if (!SWIG_IsOK(res1)) {
12587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12588 }
12589 arg1 = reinterpret_cast< wxFont * >(argp1);
12590 if (obj1) {
12591 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12592 if (!SWIG_IsOK(ecode2)) {
12593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12594 }
12595 arg2 = static_cast< bool >(val2);
12596 }
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 (arg1)->SetNoAntiAliasing(arg2);
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_Py_Void();
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12611 PyObject *resultobj = 0;
12612 wxFont *arg1 = (wxFont *) 0 ;
12613 bool result;
12614 void *argp1 = 0 ;
12615 int res1 = 0 ;
12616 PyObject *swig_obj[1] ;
12617
12618 if (!args) SWIG_fail;
12619 swig_obj[0] = args;
12620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12621 if (!SWIG_IsOK(res1)) {
12622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12623 }
12624 arg1 = reinterpret_cast< wxFont * >(argp1);
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 {
12632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12633 }
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12641 PyObject *resultobj = 0;
12642 wxFontEncoding result;
12643
12644 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12645 {
12646 if (!wxPyCheckForApp()) SWIG_fail;
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 resultobj = SWIG_From_int(static_cast< int >(result));
12653 return resultobj;
12654 fail:
12655 return NULL;
12656 }
12657
12658
12659 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj = 0;
12661 wxFontEncoding arg1 ;
12662 int val1 ;
12663 int ecode1 = 0 ;
12664 PyObject * obj0 = 0 ;
12665 char * kwnames[] = {
12666 (char *) "encoding", NULL
12667 };
12668
12669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12670 ecode1 = SWIG_AsVal_int(obj0, &val1);
12671 if (!SWIG_IsOK(ecode1)) {
12672 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12673 }
12674 arg1 = static_cast< wxFontEncoding >(val1);
12675 {
12676 if (!wxPyCheckForApp()) SWIG_fail;
12677 PyThreadState* __tstate = wxPyBeginAllowThreads();
12678 wxFont::SetDefaultEncoding(arg1);
12679 wxPyEndAllowThreads(__tstate);
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 resultobj = SWIG_Py_Void();
12683 return resultobj;
12684 fail:
12685 return NULL;
12686 }
12687
12688
12689 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12690 PyObject *obj;
12691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12692 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12693 return SWIG_Py_Void();
12694 }
12695
12696 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12697 return SWIG_Python_InitShadowInstance(args);
12698 }
12699
12700 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12701 PyObject *resultobj = 0;
12702 wxPyFontEnumerator *result = 0 ;
12703
12704 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12705 {
12706 if (!wxPyCheckForApp()) SWIG_fail;
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12713 return resultobj;
12714 fail:
12715 return NULL;
12716 }
12717
12718
12719 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12720 PyObject *resultobj = 0;
12721 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 PyObject *swig_obj[1] ;
12725
12726 if (!args) SWIG_fail;
12727 swig_obj[0] = args;
12728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12731 }
12732 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 delete arg1;
12736
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 resultobj = SWIG_Py_Void();
12741 return resultobj;
12742 fail:
12743 return NULL;
12744 }
12745
12746
12747 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj = 0;
12749 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12750 PyObject *arg2 = (PyObject *) 0 ;
12751 PyObject *arg3 = (PyObject *) 0 ;
12752 bool arg4 ;
12753 void *argp1 = 0 ;
12754 int res1 = 0 ;
12755 bool val4 ;
12756 int ecode4 = 0 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 PyObject * obj2 = 0 ;
12760 PyObject * obj3 = 0 ;
12761 char * kwnames[] = {
12762 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12763 };
12764
12765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12769 }
12770 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12771 arg2 = obj1;
12772 arg3 = obj2;
12773 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12774 if (!SWIG_IsOK(ecode4)) {
12775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12776 }
12777 arg4 = static_cast< bool >(val4);
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 resultobj = SWIG_Py_Void();
12785 return resultobj;
12786 fail:
12787 return NULL;
12788 }
12789
12790
12791 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12792 PyObject *resultobj = 0;
12793 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12794 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12795 bool arg3 = (bool) false ;
12796 bool result;
12797 void *argp1 = 0 ;
12798 int res1 = 0 ;
12799 int val2 ;
12800 int ecode2 = 0 ;
12801 bool val3 ;
12802 int ecode3 = 0 ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 PyObject * obj2 = 0 ;
12806 char * kwnames[] = {
12807 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12808 };
12809
12810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12812 if (!SWIG_IsOK(res1)) {
12813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12814 }
12815 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12816 if (obj1) {
12817 ecode2 = SWIG_AsVal_int(obj1, &val2);
12818 if (!SWIG_IsOK(ecode2)) {
12819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12820 }
12821 arg2 = static_cast< wxFontEncoding >(val2);
12822 }
12823 if (obj2) {
12824 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12825 if (!SWIG_IsOK(ecode3)) {
12826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12827 }
12828 arg3 = static_cast< bool >(val3);
12829 }
12830 {
12831 PyThreadState* __tstate = wxPyBeginAllowThreads();
12832 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12833 wxPyEndAllowThreads(__tstate);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 }
12836 {
12837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12838 }
12839 return resultobj;
12840 fail:
12841 return NULL;
12842 }
12843
12844
12845 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12846 PyObject *resultobj = 0;
12847 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12848 wxString const &arg2_defvalue = wxPyEmptyString ;
12849 wxString *arg2 = (wxString *) &arg2_defvalue ;
12850 bool result;
12851 void *argp1 = 0 ;
12852 int res1 = 0 ;
12853 bool temp2 = false ;
12854 PyObject * obj0 = 0 ;
12855 PyObject * obj1 = 0 ;
12856 char * kwnames[] = {
12857 (char *) "self",(char *) "facename", NULL
12858 };
12859
12860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12864 }
12865 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12866 if (obj1) {
12867 {
12868 arg2 = wxString_in_helper(obj1);
12869 if (arg2 == NULL) SWIG_fail;
12870 temp2 = true;
12871 }
12872 }
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 {
12880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12881 }
12882 {
12883 if (temp2)
12884 delete arg2;
12885 }
12886 return resultobj;
12887 fail:
12888 {
12889 if (temp2)
12890 delete arg2;
12891 }
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12897 PyObject *resultobj = 0;
12898 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12899 PyObject *result = 0 ;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 PyObject *swig_obj[1] ;
12903
12904 if (!args) SWIG_fail;
12905 swig_obj[0] = args;
12906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12907 if (!SWIG_IsOK(res1)) {
12908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12909 }
12910 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 resultobj = result;
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12925 PyObject *resultobj = 0;
12926 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12927 PyObject *result = 0 ;
12928 void *argp1 = 0 ;
12929 int res1 = 0 ;
12930 PyObject *swig_obj[1] ;
12931
12932 if (!args) SWIG_fail;
12933 swig_obj[0] = args;
12934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12937 }
12938 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12942 wxPyEndAllowThreads(__tstate);
12943 if (PyErr_Occurred()) SWIG_fail;
12944 }
12945 resultobj = result;
12946 return resultobj;
12947 fail:
12948 return NULL;
12949 }
12950
12951
12952 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12953 PyObject *obj;
12954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12956 return SWIG_Py_Void();
12957 }
12958
12959 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12960 return SWIG_Python_InitShadowInstance(args);
12961 }
12962
12963 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12964 PyObject *resultobj = 0;
12965 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12966 int arg2 ;
12967 void *argp1 = 0 ;
12968 int res1 = 0 ;
12969 int val2 ;
12970 int ecode2 = 0 ;
12971 PyObject *swig_obj[2] ;
12972
12973 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12975 if (!SWIG_IsOK(res1)) {
12976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12977 }
12978 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12979 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12980 if (!SWIG_IsOK(ecode2)) {
12981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12982 }
12983 arg2 = static_cast< int >(val2);
12984 if (arg1) (arg1)->Language = arg2;
12985
12986 resultobj = SWIG_Py_Void();
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12994 PyObject *resultobj = 0;
12995 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12996 int result;
12997 void *argp1 = 0 ;
12998 int res1 = 0 ;
12999 PyObject *swig_obj[1] ;
13000
13001 if (!args) SWIG_fail;
13002 swig_obj[0] = args;
13003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13004 if (!SWIG_IsOK(res1)) {
13005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13006 }
13007 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13008 result = (int) ((arg1)->Language);
13009 resultobj = SWIG_From_int(static_cast< int >(result));
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13017 PyObject *resultobj = 0;
13018 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13019 wxString *arg2 = (wxString *) 0 ;
13020 void *argp1 = 0 ;
13021 int res1 = 0 ;
13022 bool temp2 = false ;
13023 PyObject *swig_obj[2] ;
13024
13025 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13027 if (!SWIG_IsOK(res1)) {
13028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13029 }
13030 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13031 {
13032 arg2 = wxString_in_helper(swig_obj[1]);
13033 if (arg2 == NULL) SWIG_fail;
13034 temp2 = true;
13035 }
13036 if (arg1) (arg1)->CanonicalName = *arg2;
13037
13038 resultobj = SWIG_Py_Void();
13039 {
13040 if (temp2)
13041 delete arg2;
13042 }
13043 return resultobj;
13044 fail:
13045 {
13046 if (temp2)
13047 delete arg2;
13048 }
13049 return NULL;
13050 }
13051
13052
13053 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13054 PyObject *resultobj = 0;
13055 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13056 wxString *result = 0 ;
13057 void *argp1 = 0 ;
13058 int res1 = 0 ;
13059 PyObject *swig_obj[1] ;
13060
13061 if (!args) SWIG_fail;
13062 swig_obj[0] = args;
13063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13064 if (!SWIG_IsOK(res1)) {
13065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13066 }
13067 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13068 result = (wxString *)& ((arg1)->CanonicalName);
13069 {
13070 #if wxUSE_UNICODE
13071 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13072 #else
13073 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13074 #endif
13075 }
13076 return resultobj;
13077 fail:
13078 return NULL;
13079 }
13080
13081
13082 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13083 PyObject *resultobj = 0;
13084 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13085 wxString *arg2 = (wxString *) 0 ;
13086 void *argp1 = 0 ;
13087 int res1 = 0 ;
13088 bool temp2 = false ;
13089 PyObject *swig_obj[2] ;
13090
13091 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13093 if (!SWIG_IsOK(res1)) {
13094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13095 }
13096 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13097 {
13098 arg2 = wxString_in_helper(swig_obj[1]);
13099 if (arg2 == NULL) SWIG_fail;
13100 temp2 = true;
13101 }
13102 if (arg1) (arg1)->Description = *arg2;
13103
13104 resultobj = SWIG_Py_Void();
13105 {
13106 if (temp2)
13107 delete arg2;
13108 }
13109 return resultobj;
13110 fail:
13111 {
13112 if (temp2)
13113 delete arg2;
13114 }
13115 return NULL;
13116 }
13117
13118
13119 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13120 PyObject *resultobj = 0;
13121 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13122 wxString *result = 0 ;
13123 void *argp1 = 0 ;
13124 int res1 = 0 ;
13125 PyObject *swig_obj[1] ;
13126
13127 if (!args) SWIG_fail;
13128 swig_obj[0] = args;
13129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13130 if (!SWIG_IsOK(res1)) {
13131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13132 }
13133 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13134 result = (wxString *)& ((arg1)->Description);
13135 {
13136 #if wxUSE_UNICODE
13137 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13138 #else
13139 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13140 #endif
13141 }
13142 return resultobj;
13143 fail:
13144 return NULL;
13145 }
13146
13147
13148 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13149 PyObject *obj;
13150 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13151 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13152 return SWIG_Py_Void();
13153 }
13154
13155 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13156 PyObject *resultobj = 0;
13157 int arg1 = (int) -1 ;
13158 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13159 wxLocale *result = 0 ;
13160 int val1 ;
13161 int ecode1 = 0 ;
13162 int val2 ;
13163 int ecode2 = 0 ;
13164 PyObject * obj0 = 0 ;
13165 PyObject * obj1 = 0 ;
13166 char * kwnames[] = {
13167 (char *) "language",(char *) "flags", NULL
13168 };
13169
13170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13171 if (obj0) {
13172 ecode1 = SWIG_AsVal_int(obj0, &val1);
13173 if (!SWIG_IsOK(ecode1)) {
13174 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13175 }
13176 arg1 = static_cast< int >(val1);
13177 }
13178 if (obj1) {
13179 ecode2 = SWIG_AsVal_int(obj1, &val2);
13180 if (!SWIG_IsOK(ecode2)) {
13181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13182 }
13183 arg2 = static_cast< int >(val2);
13184 }
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 result = (wxLocale *)new_wxLocale(arg1,arg2);
13188 wxPyEndAllowThreads(__tstate);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13192 return resultobj;
13193 fail:
13194 return NULL;
13195 }
13196
13197
13198 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13199 PyObject *resultobj = 0;
13200 wxLocale *arg1 = (wxLocale *) 0 ;
13201 void *argp1 = 0 ;
13202 int res1 = 0 ;
13203 PyObject *swig_obj[1] ;
13204
13205 if (!args) SWIG_fail;
13206 swig_obj[0] = args;
13207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13208 if (!SWIG_IsOK(res1)) {
13209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13210 }
13211 arg1 = reinterpret_cast< wxLocale * >(argp1);
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 delete arg1;
13215
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = SWIG_Py_Void();
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj = 0;
13228 wxLocale *arg1 = (wxLocale *) 0 ;
13229 wxString *arg2 = 0 ;
13230 wxString const &arg3_defvalue = wxPyEmptyString ;
13231 wxString *arg3 = (wxString *) &arg3_defvalue ;
13232 wxString const &arg4_defvalue = wxPyEmptyString ;
13233 wxString *arg4 = (wxString *) &arg4_defvalue ;
13234 bool arg5 = (bool) true ;
13235 bool arg6 = (bool) false ;
13236 bool result;
13237 void *argp1 = 0 ;
13238 int res1 = 0 ;
13239 bool temp2 = false ;
13240 bool temp3 = false ;
13241 bool temp4 = false ;
13242 bool val5 ;
13243 int ecode5 = 0 ;
13244 bool val6 ;
13245 int ecode6 = 0 ;
13246 PyObject * obj0 = 0 ;
13247 PyObject * obj1 = 0 ;
13248 PyObject * obj2 = 0 ;
13249 PyObject * obj3 = 0 ;
13250 PyObject * obj4 = 0 ;
13251 PyObject * obj5 = 0 ;
13252 char * kwnames[] = {
13253 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13254 };
13255
13256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13258 if (!SWIG_IsOK(res1)) {
13259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13260 }
13261 arg1 = reinterpret_cast< wxLocale * >(argp1);
13262 {
13263 arg2 = wxString_in_helper(obj1);
13264 if (arg2 == NULL) SWIG_fail;
13265 temp2 = true;
13266 }
13267 if (obj2) {
13268 {
13269 arg3 = wxString_in_helper(obj2);
13270 if (arg3 == NULL) SWIG_fail;
13271 temp3 = true;
13272 }
13273 }
13274 if (obj3) {
13275 {
13276 arg4 = wxString_in_helper(obj3);
13277 if (arg4 == NULL) SWIG_fail;
13278 temp4 = true;
13279 }
13280 }
13281 if (obj4) {
13282 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13283 if (!SWIG_IsOK(ecode5)) {
13284 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13285 }
13286 arg5 = static_cast< bool >(val5);
13287 }
13288 if (obj5) {
13289 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13290 if (!SWIG_IsOK(ecode6)) {
13291 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13292 }
13293 arg6 = static_cast< bool >(val6);
13294 }
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13298 wxPyEndAllowThreads(__tstate);
13299 if (PyErr_Occurred()) SWIG_fail;
13300 }
13301 {
13302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13303 }
13304 {
13305 if (temp2)
13306 delete arg2;
13307 }
13308 {
13309 if (temp3)
13310 delete arg3;
13311 }
13312 {
13313 if (temp4)
13314 delete arg4;
13315 }
13316 return resultobj;
13317 fail:
13318 {
13319 if (temp2)
13320 delete arg2;
13321 }
13322 {
13323 if (temp3)
13324 delete arg3;
13325 }
13326 {
13327 if (temp4)
13328 delete arg4;
13329 }
13330 return NULL;
13331 }
13332
13333
13334 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13335 PyObject *resultobj = 0;
13336 wxLocale *arg1 = (wxLocale *) 0 ;
13337 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13338 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13339 bool result;
13340 void *argp1 = 0 ;
13341 int res1 = 0 ;
13342 int val2 ;
13343 int ecode2 = 0 ;
13344 int val3 ;
13345 int ecode3 = 0 ;
13346 PyObject * obj0 = 0 ;
13347 PyObject * obj1 = 0 ;
13348 PyObject * obj2 = 0 ;
13349 char * kwnames[] = {
13350 (char *) "self",(char *) "language",(char *) "flags", NULL
13351 };
13352
13353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13355 if (!SWIG_IsOK(res1)) {
13356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13357 }
13358 arg1 = reinterpret_cast< wxLocale * >(argp1);
13359 if (obj1) {
13360 ecode2 = SWIG_AsVal_int(obj1, &val2);
13361 if (!SWIG_IsOK(ecode2)) {
13362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13363 }
13364 arg2 = static_cast< int >(val2);
13365 }
13366 if (obj2) {
13367 ecode3 = SWIG_AsVal_int(obj2, &val3);
13368 if (!SWIG_IsOK(ecode3)) {
13369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13370 }
13371 arg3 = static_cast< int >(val3);
13372 }
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 {
13380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13381 }
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13389 PyObject *resultobj = 0;
13390 int result;
13391
13392 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = (int)wxLocale::GetSystemLanguage();
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = SWIG_From_int(static_cast< int >(result));
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 PyObject *resultobj = 0;
13408 wxFontEncoding result;
13409
13410 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13414 wxPyEndAllowThreads(__tstate);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 }
13417 resultobj = SWIG_From_int(static_cast< int >(result));
13418 return resultobj;
13419 fail:
13420 return NULL;
13421 }
13422
13423
13424 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *resultobj = 0;
13426 wxString result;
13427
13428 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 result = wxLocale::GetSystemEncodingName();
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 {
13436 #if wxUSE_UNICODE
13437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13438 #else
13439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13440 #endif
13441 }
13442 return resultobj;
13443 fail:
13444 return NULL;
13445 }
13446
13447
13448 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13449 PyObject *resultobj = 0;
13450 wxLocale *arg1 = (wxLocale *) 0 ;
13451 bool result;
13452 void *argp1 = 0 ;
13453 int res1 = 0 ;
13454 PyObject *swig_obj[1] ;
13455
13456 if (!args) SWIG_fail;
13457 swig_obj[0] = args;
13458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13459 if (!SWIG_IsOK(res1)) {
13460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13461 }
13462 arg1 = reinterpret_cast< wxLocale * >(argp1);
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 result = (bool)((wxLocale const *)arg1)->IsOk();
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 {
13470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13471 }
13472 return resultobj;
13473 fail:
13474 return NULL;
13475 }
13476
13477
13478 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13479 PyObject *resultobj = 0;
13480 wxLocale *arg1 = (wxLocale *) 0 ;
13481 wxString result;
13482 void *argp1 = 0 ;
13483 int res1 = 0 ;
13484 PyObject *swig_obj[1] ;
13485
13486 if (!args) SWIG_fail;
13487 swig_obj[0] = args;
13488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13489 if (!SWIG_IsOK(res1)) {
13490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13491 }
13492 arg1 = reinterpret_cast< wxLocale * >(argp1);
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = ((wxLocale const *)arg1)->GetLocale();
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 {
13500 #if wxUSE_UNICODE
13501 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13502 #else
13503 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13504 #endif
13505 }
13506 return resultobj;
13507 fail:
13508 return NULL;
13509 }
13510
13511
13512 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13513 PyObject *resultobj = 0;
13514 wxLocale *arg1 = (wxLocale *) 0 ;
13515 int result;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 PyObject *swig_obj[1] ;
13519
13520 if (!args) SWIG_fail;
13521 swig_obj[0] = args;
13522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13525 }
13526 arg1 = reinterpret_cast< wxLocale * >(argp1);
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 result = (int)((wxLocale const *)arg1)->GetLanguage();
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = SWIG_From_int(static_cast< int >(result));
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13541 PyObject *resultobj = 0;
13542 wxLocale *arg1 = (wxLocale *) 0 ;
13543 wxString result;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 PyObject *swig_obj[1] ;
13547
13548 if (!args) SWIG_fail;
13549 swig_obj[0] = args;
13550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13553 }
13554 arg1 = reinterpret_cast< wxLocale * >(argp1);
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 result = ((wxLocale const *)arg1)->GetSysName();
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 {
13562 #if wxUSE_UNICODE
13563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13564 #else
13565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13566 #endif
13567 }
13568 return resultobj;
13569 fail:
13570 return NULL;
13571 }
13572
13573
13574 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13575 PyObject *resultobj = 0;
13576 wxLocale *arg1 = (wxLocale *) 0 ;
13577 wxString result;
13578 void *argp1 = 0 ;
13579 int res1 = 0 ;
13580 PyObject *swig_obj[1] ;
13581
13582 if (!args) SWIG_fail;
13583 swig_obj[0] = args;
13584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13585 if (!SWIG_IsOK(res1)) {
13586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13587 }
13588 arg1 = reinterpret_cast< wxLocale * >(argp1);
13589 {
13590 PyThreadState* __tstate = wxPyBeginAllowThreads();
13591 result = ((wxLocale const *)arg1)->GetCanonicalName();
13592 wxPyEndAllowThreads(__tstate);
13593 if (PyErr_Occurred()) SWIG_fail;
13594 }
13595 {
13596 #if wxUSE_UNICODE
13597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13598 #else
13599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13600 #endif
13601 }
13602 return resultobj;
13603 fail:
13604 return NULL;
13605 }
13606
13607
13608 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj = 0;
13610 wxString *arg1 = 0 ;
13611 bool temp1 = false ;
13612 PyObject * obj0 = 0 ;
13613 char * kwnames[] = {
13614 (char *) "prefix", NULL
13615 };
13616
13617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13618 {
13619 arg1 = wxString_in_helper(obj0);
13620 if (arg1 == NULL) SWIG_fail;
13621 temp1 = true;
13622 }
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13626 wxPyEndAllowThreads(__tstate);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 }
13629 resultobj = SWIG_Py_Void();
13630 {
13631 if (temp1)
13632 delete arg1;
13633 }
13634 return resultobj;
13635 fail:
13636 {
13637 if (temp1)
13638 delete arg1;
13639 }
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(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_AddCatalog",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_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
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)(arg1)->AddCatalog((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_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13693 PyObject *resultobj = 0;
13694 wxLocale *arg1 = (wxLocale *) 0 ;
13695 wxString *arg2 = 0 ;
13696 bool result;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 bool temp2 = false ;
13700 PyObject * obj0 = 0 ;
13701 PyObject * obj1 = 0 ;
13702 char * kwnames[] = {
13703 (char *) "self",(char *) "szDomain", NULL
13704 };
13705
13706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13708 if (!SWIG_IsOK(res1)) {
13709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13710 }
13711 arg1 = reinterpret_cast< wxLocale * >(argp1);
13712 {
13713 arg2 = wxString_in_helper(obj1);
13714 if (arg2 == NULL) SWIG_fail;
13715 temp2 = true;
13716 }
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 {
13724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13725 }
13726 {
13727 if (temp2)
13728 delete arg2;
13729 }
13730 return resultobj;
13731 fail:
13732 {
13733 if (temp2)
13734 delete arg2;
13735 }
13736 return NULL;
13737 }
13738
13739
13740 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13741 PyObject *resultobj = 0;
13742 int arg1 ;
13743 wxLanguageInfo *result = 0 ;
13744 int val1 ;
13745 int ecode1 = 0 ;
13746 PyObject * obj0 = 0 ;
13747 char * kwnames[] = {
13748 (char *) "lang", NULL
13749 };
13750
13751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13752 ecode1 = SWIG_AsVal_int(obj0, &val1);
13753 if (!SWIG_IsOK(ecode1)) {
13754 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13755 }
13756 arg1 = static_cast< int >(val1);
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13764 return resultobj;
13765 fail:
13766 return NULL;
13767 }
13768
13769
13770 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj = 0;
13772 int arg1 ;
13773 wxString result;
13774 int val1 ;
13775 int ecode1 = 0 ;
13776 PyObject * obj0 = 0 ;
13777 char * kwnames[] = {
13778 (char *) "lang", NULL
13779 };
13780
13781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13782 ecode1 = SWIG_AsVal_int(obj0, &val1);
13783 if (!SWIG_IsOK(ecode1)) {
13784 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13785 }
13786 arg1 = static_cast< int >(val1);
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 result = wxLocale::GetLanguageName(arg1);
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 {
13794 #if wxUSE_UNICODE
13795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13796 #else
13797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13798 #endif
13799 }
13800 return resultobj;
13801 fail:
13802 return NULL;
13803 }
13804
13805
13806 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13807 PyObject *resultobj = 0;
13808 wxString *arg1 = 0 ;
13809 wxLanguageInfo *result = 0 ;
13810 bool temp1 = false ;
13811 PyObject * obj0 = 0 ;
13812 char * kwnames[] = {
13813 (char *) "locale", NULL
13814 };
13815
13816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13817 {
13818 arg1 = wxString_in_helper(obj0);
13819 if (arg1 == NULL) SWIG_fail;
13820 temp1 = true;
13821 }
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13825 wxPyEndAllowThreads(__tstate);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13829 {
13830 if (temp1)
13831 delete arg1;
13832 }
13833 return resultobj;
13834 fail:
13835 {
13836 if (temp1)
13837 delete arg1;
13838 }
13839 return NULL;
13840 }
13841
13842
13843 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj = 0;
13845 wxLanguageInfo *arg1 = 0 ;
13846 void *argp1 = 0 ;
13847 int res1 = 0 ;
13848 PyObject * obj0 = 0 ;
13849 char * kwnames[] = {
13850 (char *) "info", NULL
13851 };
13852
13853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13854 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13855 if (!SWIG_IsOK(res1)) {
13856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13857 }
13858 if (!argp1) {
13859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13860 }
13861 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13865 wxPyEndAllowThreads(__tstate);
13866 if (PyErr_Occurred()) SWIG_fail;
13867 }
13868 resultobj = SWIG_Py_Void();
13869 return resultobj;
13870 fail:
13871 return NULL;
13872 }
13873
13874
13875 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13876 PyObject *resultobj = 0;
13877 wxLocale *arg1 = (wxLocale *) 0 ;
13878 wxString *arg2 = 0 ;
13879 wxString const &arg3_defvalue = wxPyEmptyString ;
13880 wxString *arg3 = (wxString *) &arg3_defvalue ;
13881 wxString result;
13882 void *argp1 = 0 ;
13883 int res1 = 0 ;
13884 bool temp2 = false ;
13885 bool temp3 = false ;
13886 PyObject * obj0 = 0 ;
13887 PyObject * obj1 = 0 ;
13888 PyObject * obj2 = 0 ;
13889 char * kwnames[] = {
13890 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13891 };
13892
13893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13895 if (!SWIG_IsOK(res1)) {
13896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13897 }
13898 arg1 = reinterpret_cast< wxLocale * >(argp1);
13899 {
13900 arg2 = wxString_in_helper(obj1);
13901 if (arg2 == NULL) SWIG_fail;
13902 temp2 = true;
13903 }
13904 if (obj2) {
13905 {
13906 arg3 = wxString_in_helper(obj2);
13907 if (arg3 == NULL) SWIG_fail;
13908 temp3 = true;
13909 }
13910 }
13911 {
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13914 wxPyEndAllowThreads(__tstate);
13915 if (PyErr_Occurred()) SWIG_fail;
13916 }
13917 {
13918 #if wxUSE_UNICODE
13919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13920 #else
13921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13922 #endif
13923 }
13924 {
13925 if (temp2)
13926 delete arg2;
13927 }
13928 {
13929 if (temp3)
13930 delete arg3;
13931 }
13932 return resultobj;
13933 fail:
13934 {
13935 if (temp2)
13936 delete arg2;
13937 }
13938 {
13939 if (temp3)
13940 delete arg3;
13941 }
13942 return NULL;
13943 }
13944
13945
13946 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13947 PyObject *resultobj = 0;
13948 wxLocale *arg1 = (wxLocale *) 0 ;
13949 wxString *result = 0 ;
13950 void *argp1 = 0 ;
13951 int res1 = 0 ;
13952 PyObject *swig_obj[1] ;
13953
13954 if (!args) SWIG_fail;
13955 swig_obj[0] = args;
13956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13957 if (!SWIG_IsOK(res1)) {
13958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13959 }
13960 arg1 = reinterpret_cast< wxLocale * >(argp1);
13961 {
13962 PyThreadState* __tstate = wxPyBeginAllowThreads();
13963 {
13964 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13965 result = (wxString *) &_result_ref;
13966 }
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 {
13971 #if wxUSE_UNICODE
13972 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13973 #else
13974 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13975 #endif
13976 }
13977 return resultobj;
13978 fail:
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13984 PyObject *obj;
13985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13986 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
13987 return SWIG_Py_Void();
13988 }
13989
13990 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13991 return SWIG_Python_InitShadowInstance(args);
13992 }
13993
13994 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13995 PyObject *resultobj = 0;
13996 wxLocale *result = 0 ;
13997
13998 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 result = (wxLocale *)wxGetLocale();
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14013 PyObject *resultobj = 0;
14014 wxString *arg1 = 0 ;
14015 wxString result;
14016 bool temp1 = false ;
14017
14018 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14019 {
14020 arg1 = wxString_in_helper(swig_obj[0]);
14021 if (arg1 == NULL) SWIG_fail;
14022 temp1 = true;
14023 }
14024 {
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = wxGetTranslation((wxString const &)*arg1);
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 {
14031 #if wxUSE_UNICODE
14032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14033 #else
14034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14035 #endif
14036 }
14037 {
14038 if (temp1)
14039 delete arg1;
14040 }
14041 return resultobj;
14042 fail:
14043 {
14044 if (temp1)
14045 delete arg1;
14046 }
14047 return NULL;
14048 }
14049
14050
14051 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14052 PyObject *resultobj = 0;
14053 wxString *arg1 = 0 ;
14054 wxString *arg2 = 0 ;
14055 size_t arg3 ;
14056 wxString result;
14057 bool temp1 = false ;
14058 bool temp2 = false ;
14059 size_t val3 ;
14060 int ecode3 = 0 ;
14061
14062 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14063 {
14064 arg1 = wxString_in_helper(swig_obj[0]);
14065 if (arg1 == NULL) SWIG_fail;
14066 temp1 = true;
14067 }
14068 {
14069 arg2 = wxString_in_helper(swig_obj[1]);
14070 if (arg2 == NULL) SWIG_fail;
14071 temp2 = true;
14072 }
14073 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14074 if (!SWIG_IsOK(ecode3)) {
14075 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14076 }
14077 arg3 = static_cast< size_t >(val3);
14078 {
14079 PyThreadState* __tstate = wxPyBeginAllowThreads();
14080 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 {
14085 #if wxUSE_UNICODE
14086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14087 #else
14088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14089 #endif
14090 }
14091 {
14092 if (temp1)
14093 delete arg1;
14094 }
14095 {
14096 if (temp2)
14097 delete arg2;
14098 }
14099 return resultobj;
14100 fail:
14101 {
14102 if (temp1)
14103 delete arg1;
14104 }
14105 {
14106 if (temp2)
14107 delete arg2;
14108 }
14109 return NULL;
14110 }
14111
14112
14113 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14114 int argc;
14115 PyObject *argv[4];
14116
14117 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14118 --argc;
14119 if (argc == 1) {
14120 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14121 }
14122 if (argc == 3) {
14123 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14124 }
14125
14126 fail:
14127 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14128 return NULL;
14129 }
14130
14131
14132 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14133 PyObject *resultobj = 0;
14134 wxEncodingConverter *result = 0 ;
14135
14136 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14137 {
14138 PyThreadState* __tstate = wxPyBeginAllowThreads();
14139 result = (wxEncodingConverter *)new wxEncodingConverter();
14140 wxPyEndAllowThreads(__tstate);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14144 return resultobj;
14145 fail:
14146 return NULL;
14147 }
14148
14149
14150 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14151 PyObject *resultobj = 0;
14152 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14153 void *argp1 = 0 ;
14154 int res1 = 0 ;
14155 PyObject *swig_obj[1] ;
14156
14157 if (!args) SWIG_fail;
14158 swig_obj[0] = args;
14159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14160 if (!SWIG_IsOK(res1)) {
14161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14162 }
14163 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 delete arg1;
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 resultobj = SWIG_Py_Void();
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj = 0;
14180 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14181 wxFontEncoding arg2 ;
14182 wxFontEncoding arg3 ;
14183 int arg4 = (int) wxCONVERT_STRICT ;
14184 bool result;
14185 void *argp1 = 0 ;
14186 int res1 = 0 ;
14187 int val2 ;
14188 int ecode2 = 0 ;
14189 int val3 ;
14190 int ecode3 = 0 ;
14191 int val4 ;
14192 int ecode4 = 0 ;
14193 PyObject * obj0 = 0 ;
14194 PyObject * obj1 = 0 ;
14195 PyObject * obj2 = 0 ;
14196 PyObject * obj3 = 0 ;
14197 char * kwnames[] = {
14198 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14199 };
14200
14201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14203 if (!SWIG_IsOK(res1)) {
14204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14205 }
14206 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14207 ecode2 = SWIG_AsVal_int(obj1, &val2);
14208 if (!SWIG_IsOK(ecode2)) {
14209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14210 }
14211 arg2 = static_cast< wxFontEncoding >(val2);
14212 ecode3 = SWIG_AsVal_int(obj2, &val3);
14213 if (!SWIG_IsOK(ecode3)) {
14214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14215 }
14216 arg3 = static_cast< wxFontEncoding >(val3);
14217 if (obj3) {
14218 ecode4 = SWIG_AsVal_int(obj3, &val4);
14219 if (!SWIG_IsOK(ecode4)) {
14220 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14221 }
14222 arg4 = static_cast< int >(val4);
14223 }
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14232 }
14233 return resultobj;
14234 fail:
14235 return NULL;
14236 }
14237
14238
14239 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14240 PyObject *resultobj = 0;
14241 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14242 wxString *arg2 = 0 ;
14243 wxString result;
14244 void *argp1 = 0 ;
14245 int res1 = 0 ;
14246 bool temp2 = false ;
14247 PyObject * obj0 = 0 ;
14248 PyObject * obj1 = 0 ;
14249 char * kwnames[] = {
14250 (char *) "self",(char *) "input", NULL
14251 };
14252
14253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14255 if (!SWIG_IsOK(res1)) {
14256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14257 }
14258 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14259 {
14260 arg2 = wxString_in_helper(obj1);
14261 if (arg2 == NULL) SWIG_fail;
14262 temp2 = true;
14263 }
14264 {
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 result = (arg1)->Convert((wxString const &)*arg2);
14267 wxPyEndAllowThreads(__tstate);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 {
14271 #if wxUSE_UNICODE
14272 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14273 #else
14274 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14275 #endif
14276 }
14277 {
14278 if (temp2)
14279 delete arg2;
14280 }
14281 return resultobj;
14282 fail:
14283 {
14284 if (temp2)
14285 delete arg2;
14286 }
14287 return NULL;
14288 }
14289
14290
14291 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14292 PyObject *resultobj = 0;
14293 wxFontEncoding arg1 ;
14294 int arg2 = (int) wxPLATFORM_CURRENT ;
14295 wxFontEncodingArray result;
14296 int val1 ;
14297 int ecode1 = 0 ;
14298 int val2 ;
14299 int ecode2 = 0 ;
14300 PyObject * obj0 = 0 ;
14301 PyObject * obj1 = 0 ;
14302 char * kwnames[] = {
14303 (char *) "enc",(char *) "platform", NULL
14304 };
14305
14306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14307 ecode1 = SWIG_AsVal_int(obj0, &val1);
14308 if (!SWIG_IsOK(ecode1)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14310 }
14311 arg1 = static_cast< wxFontEncoding >(val1);
14312 if (obj1) {
14313 ecode2 = SWIG_AsVal_int(obj1, &val2);
14314 if (!SWIG_IsOK(ecode2)) {
14315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14316 }
14317 arg2 = static_cast< int >(val2);
14318 }
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 {
14326 resultobj = PyList_New(0);
14327 for (size_t i=0; i < (&result)->GetCount(); i++) {
14328 PyObject* number = PyInt_FromLong((&result)->Item(i));
14329 PyList_Append(resultobj, number);
14330 Py_DECREF(number);
14331 }
14332 }
14333 return resultobj;
14334 fail:
14335 return NULL;
14336 }
14337
14338
14339 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14340 PyObject *resultobj = 0;
14341 wxFontEncoding arg1 ;
14342 wxFontEncodingArray result;
14343 int val1 ;
14344 int ecode1 = 0 ;
14345 PyObject * obj0 = 0 ;
14346 char * kwnames[] = {
14347 (char *) "enc", NULL
14348 };
14349
14350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14351 ecode1 = SWIG_AsVal_int(obj0, &val1);
14352 if (!SWIG_IsOK(ecode1)) {
14353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14354 }
14355 arg1 = static_cast< wxFontEncoding >(val1);
14356 {
14357 PyThreadState* __tstate = wxPyBeginAllowThreads();
14358 result = wxEncodingConverter::GetAllEquivalents(arg1);
14359 wxPyEndAllowThreads(__tstate);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 {
14363 resultobj = PyList_New(0);
14364 for (size_t i=0; i < (&result)->GetCount(); i++) {
14365 PyObject* number = PyInt_FromLong((&result)->Item(i));
14366 PyList_Append(resultobj, number);
14367 Py_DECREF(number);
14368 }
14369 }
14370 return resultobj;
14371 fail:
14372 return NULL;
14373 }
14374
14375
14376 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14377 PyObject *resultobj = 0;
14378 wxFontEncoding arg1 ;
14379 wxFontEncoding arg2 ;
14380 bool result;
14381 int val1 ;
14382 int ecode1 = 0 ;
14383 int val2 ;
14384 int ecode2 = 0 ;
14385 PyObject * obj0 = 0 ;
14386 PyObject * obj1 = 0 ;
14387 char * kwnames[] = {
14388 (char *) "encIn",(char *) "encOut", NULL
14389 };
14390
14391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14392 ecode1 = SWIG_AsVal_int(obj0, &val1);
14393 if (!SWIG_IsOK(ecode1)) {
14394 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14395 }
14396 arg1 = static_cast< wxFontEncoding >(val1);
14397 ecode2 = SWIG_AsVal_int(obj1, &val2);
14398 if (!SWIG_IsOK(ecode2)) {
14399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14400 }
14401 arg2 = static_cast< wxFontEncoding >(val2);
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14418 PyObject *obj;
14419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14420 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14421 return SWIG_Py_Void();
14422 }
14423
14424 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14425 return SWIG_Python_InitShadowInstance(args);
14426 }
14427
14428 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14429 PyObject *resultobj = 0;
14430 wxDC *arg1 = (wxDC *) 0 ;
14431 void *argp1 = 0 ;
14432 int res1 = 0 ;
14433 PyObject *swig_obj[1] ;
14434
14435 if (!args) SWIG_fail;
14436 swig_obj[0] = args;
14437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14438 if (!SWIG_IsOK(res1)) {
14439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14440 }
14441 arg1 = reinterpret_cast< wxDC * >(argp1);
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 delete arg1;
14445
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 resultobj = SWIG_Py_Void();
14450 return resultobj;
14451 fail:
14452 return NULL;
14453 }
14454
14455
14456 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj = 0;
14458 wxDC *arg1 = (wxDC *) 0 ;
14459 int arg2 ;
14460 int arg3 ;
14461 wxColour *arg4 = 0 ;
14462 int arg5 = (int) wxFLOOD_SURFACE ;
14463 bool result;
14464 void *argp1 = 0 ;
14465 int res1 = 0 ;
14466 int val2 ;
14467 int ecode2 = 0 ;
14468 int val3 ;
14469 int ecode3 = 0 ;
14470 wxColour temp4 ;
14471 int val5 ;
14472 int ecode5 = 0 ;
14473 PyObject * obj0 = 0 ;
14474 PyObject * obj1 = 0 ;
14475 PyObject * obj2 = 0 ;
14476 PyObject * obj3 = 0 ;
14477 PyObject * obj4 = 0 ;
14478 char * kwnames[] = {
14479 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14480 };
14481
14482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14484 if (!SWIG_IsOK(res1)) {
14485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14486 }
14487 arg1 = reinterpret_cast< wxDC * >(argp1);
14488 ecode2 = SWIG_AsVal_int(obj1, &val2);
14489 if (!SWIG_IsOK(ecode2)) {
14490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14491 }
14492 arg2 = static_cast< int >(val2);
14493 ecode3 = SWIG_AsVal_int(obj2, &val3);
14494 if (!SWIG_IsOK(ecode3)) {
14495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14496 }
14497 arg3 = static_cast< int >(val3);
14498 {
14499 arg4 = &temp4;
14500 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14501 }
14502 if (obj4) {
14503 ecode5 = SWIG_AsVal_int(obj4, &val5);
14504 if (!SWIG_IsOK(ecode5)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14506 }
14507 arg5 = static_cast< int >(val5);
14508 }
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 {
14516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14517 }
14518 return resultobj;
14519 fail:
14520 return NULL;
14521 }
14522
14523
14524 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14525 PyObject *resultobj = 0;
14526 wxDC *arg1 = (wxDC *) 0 ;
14527 wxPoint *arg2 = 0 ;
14528 wxColour *arg3 = 0 ;
14529 int arg4 = (int) wxFLOOD_SURFACE ;
14530 bool result;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 wxPoint temp2 ;
14534 wxColour temp3 ;
14535 int val4 ;
14536 int ecode4 = 0 ;
14537 PyObject * obj0 = 0 ;
14538 PyObject * obj1 = 0 ;
14539 PyObject * obj2 = 0 ;
14540 PyObject * obj3 = 0 ;
14541 char * kwnames[] = {
14542 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14543 };
14544
14545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14547 if (!SWIG_IsOK(res1)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14549 }
14550 arg1 = reinterpret_cast< wxDC * >(argp1);
14551 {
14552 arg2 = &temp2;
14553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14554 }
14555 {
14556 arg3 = &temp3;
14557 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14558 }
14559 if (obj3) {
14560 ecode4 = SWIG_AsVal_int(obj3, &val4);
14561 if (!SWIG_IsOK(ecode4)) {
14562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14563 }
14564 arg4 = static_cast< int >(val4);
14565 }
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 {
14573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14574 }
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj = 0;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 wxRect *arg2 = 0 ;
14585 wxColour *arg3 = 0 ;
14586 wxColour *arg4 = 0 ;
14587 wxPoint *arg5 = 0 ;
14588 void *argp1 = 0 ;
14589 int res1 = 0 ;
14590 wxRect temp2 ;
14591 wxColour temp3 ;
14592 wxColour temp4 ;
14593 wxPoint temp5 ;
14594 PyObject * obj0 = 0 ;
14595 PyObject * obj1 = 0 ;
14596 PyObject * obj2 = 0 ;
14597 PyObject * obj3 = 0 ;
14598 PyObject * obj4 = 0 ;
14599 char * kwnames[] = {
14600 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14601 };
14602
14603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14605 if (!SWIG_IsOK(res1)) {
14606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14607 }
14608 arg1 = reinterpret_cast< wxDC * >(argp1);
14609 {
14610 arg2 = &temp2;
14611 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14612 }
14613 {
14614 arg3 = &temp3;
14615 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14616 }
14617 {
14618 arg4 = &temp4;
14619 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14620 }
14621 {
14622 arg5 = &temp5;
14623 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14624 }
14625 {
14626 PyThreadState* __tstate = wxPyBeginAllowThreads();
14627 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_Py_Void();
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj = 0;
14640 wxDC *arg1 = (wxDC *) 0 ;
14641 wxRect *arg2 = 0 ;
14642 wxColour *arg3 = 0 ;
14643 wxColour *arg4 = 0 ;
14644 wxDirection arg5 = (wxDirection) wxEAST ;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 wxRect temp2 ;
14648 wxColour temp3 ;
14649 wxColour temp4 ;
14650 int val5 ;
14651 int ecode5 = 0 ;
14652 PyObject * obj0 = 0 ;
14653 PyObject * obj1 = 0 ;
14654 PyObject * obj2 = 0 ;
14655 PyObject * obj3 = 0 ;
14656 PyObject * obj4 = 0 ;
14657 char * kwnames[] = {
14658 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14659 };
14660
14661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14663 if (!SWIG_IsOK(res1)) {
14664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14665 }
14666 arg1 = reinterpret_cast< wxDC * >(argp1);
14667 {
14668 arg2 = &temp2;
14669 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14670 }
14671 {
14672 arg3 = &temp3;
14673 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14674 }
14675 {
14676 arg4 = &temp4;
14677 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14678 }
14679 if (obj4) {
14680 ecode5 = SWIG_AsVal_int(obj4, &val5);
14681 if (!SWIG_IsOK(ecode5)) {
14682 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14683 }
14684 arg5 = static_cast< wxDirection >(val5);
14685 }
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_Py_Void();
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj = 0;
14701 wxDC *arg1 = (wxDC *) 0 ;
14702 int arg2 ;
14703 int arg3 ;
14704 wxColour result;
14705 void *argp1 = 0 ;
14706 int res1 = 0 ;
14707 int val2 ;
14708 int ecode2 = 0 ;
14709 int val3 ;
14710 int ecode3 = 0 ;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 PyObject * obj2 = 0 ;
14714 char * kwnames[] = {
14715 (char *) "self",(char *) "x",(char *) "y", NULL
14716 };
14717
14718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14720 if (!SWIG_IsOK(res1)) {
14721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14722 }
14723 arg1 = reinterpret_cast< wxDC * >(argp1);
14724 ecode2 = SWIG_AsVal_int(obj1, &val2);
14725 if (!SWIG_IsOK(ecode2)) {
14726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14727 }
14728 arg2 = static_cast< int >(val2);
14729 ecode3 = SWIG_AsVal_int(obj2, &val3);
14730 if (!SWIG_IsOK(ecode3)) {
14731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14732 }
14733 arg3 = static_cast< int >(val3);
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = wxDC_GetPixel(arg1,arg2,arg3);
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14741 return resultobj;
14742 fail:
14743 return NULL;
14744 }
14745
14746
14747 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14748 PyObject *resultobj = 0;
14749 wxDC *arg1 = (wxDC *) 0 ;
14750 wxPoint *arg2 = 0 ;
14751 wxColour result;
14752 void *argp1 = 0 ;
14753 int res1 = 0 ;
14754 wxPoint temp2 ;
14755 PyObject * obj0 = 0 ;
14756 PyObject * obj1 = 0 ;
14757 char * kwnames[] = {
14758 (char *) "self",(char *) "pt", NULL
14759 };
14760
14761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14763 if (!SWIG_IsOK(res1)) {
14764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14765 }
14766 arg1 = reinterpret_cast< wxDC * >(argp1);
14767 {
14768 arg2 = &temp2;
14769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14770 }
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14778 return resultobj;
14779 fail:
14780 return NULL;
14781 }
14782
14783
14784 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14785 PyObject *resultobj = 0;
14786 wxDC *arg1 = (wxDC *) 0 ;
14787 int arg2 ;
14788 int arg3 ;
14789 int arg4 ;
14790 int arg5 ;
14791 void *argp1 = 0 ;
14792 int res1 = 0 ;
14793 int val2 ;
14794 int ecode2 = 0 ;
14795 int val3 ;
14796 int ecode3 = 0 ;
14797 int val4 ;
14798 int ecode4 = 0 ;
14799 int val5 ;
14800 int ecode5 = 0 ;
14801 PyObject * obj0 = 0 ;
14802 PyObject * obj1 = 0 ;
14803 PyObject * obj2 = 0 ;
14804 PyObject * obj3 = 0 ;
14805 PyObject * obj4 = 0 ;
14806 char * kwnames[] = {
14807 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14808 };
14809
14810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14812 if (!SWIG_IsOK(res1)) {
14813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14814 }
14815 arg1 = reinterpret_cast< wxDC * >(argp1);
14816 ecode2 = SWIG_AsVal_int(obj1, &val2);
14817 if (!SWIG_IsOK(ecode2)) {
14818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14819 }
14820 arg2 = static_cast< int >(val2);
14821 ecode3 = SWIG_AsVal_int(obj2, &val3);
14822 if (!SWIG_IsOK(ecode3)) {
14823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14824 }
14825 arg3 = static_cast< int >(val3);
14826 ecode4 = SWIG_AsVal_int(obj3, &val4);
14827 if (!SWIG_IsOK(ecode4)) {
14828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14829 }
14830 arg4 = static_cast< int >(val4);
14831 ecode5 = SWIG_AsVal_int(obj4, &val5);
14832 if (!SWIG_IsOK(ecode5)) {
14833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14834 }
14835 arg5 = static_cast< int >(val5);
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14839 wxPyEndAllowThreads(__tstate);
14840 if (PyErr_Occurred()) SWIG_fail;
14841 }
14842 resultobj = SWIG_Py_Void();
14843 return resultobj;
14844 fail:
14845 return NULL;
14846 }
14847
14848
14849 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14850 PyObject *resultobj = 0;
14851 wxDC *arg1 = (wxDC *) 0 ;
14852 wxPoint *arg2 = 0 ;
14853 wxPoint *arg3 = 0 ;
14854 void *argp1 = 0 ;
14855 int res1 = 0 ;
14856 wxPoint temp2 ;
14857 wxPoint temp3 ;
14858 PyObject * obj0 = 0 ;
14859 PyObject * obj1 = 0 ;
14860 PyObject * obj2 = 0 ;
14861 char * kwnames[] = {
14862 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14863 };
14864
14865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14867 if (!SWIG_IsOK(res1)) {
14868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14869 }
14870 arg1 = reinterpret_cast< wxDC * >(argp1);
14871 {
14872 arg2 = &temp2;
14873 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14874 }
14875 {
14876 arg3 = &temp3;
14877 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14878 }
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 resultobj = SWIG_Py_Void();
14886 return resultobj;
14887 fail:
14888 return NULL;
14889 }
14890
14891
14892 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14893 PyObject *resultobj = 0;
14894 wxDC *arg1 = (wxDC *) 0 ;
14895 int arg2 ;
14896 int arg3 ;
14897 void *argp1 = 0 ;
14898 int res1 = 0 ;
14899 int val2 ;
14900 int ecode2 = 0 ;
14901 int val3 ;
14902 int ecode3 = 0 ;
14903 PyObject * obj0 = 0 ;
14904 PyObject * obj1 = 0 ;
14905 PyObject * obj2 = 0 ;
14906 char * kwnames[] = {
14907 (char *) "self",(char *) "x",(char *) "y", NULL
14908 };
14909
14910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14912 if (!SWIG_IsOK(res1)) {
14913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14914 }
14915 arg1 = reinterpret_cast< wxDC * >(argp1);
14916 ecode2 = SWIG_AsVal_int(obj1, &val2);
14917 if (!SWIG_IsOK(ecode2)) {
14918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14919 }
14920 arg2 = static_cast< int >(val2);
14921 ecode3 = SWIG_AsVal_int(obj2, &val3);
14922 if (!SWIG_IsOK(ecode3)) {
14923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14924 }
14925 arg3 = static_cast< int >(val3);
14926 {
14927 PyThreadState* __tstate = wxPyBeginAllowThreads();
14928 (arg1)->CrossHair(arg2,arg3);
14929 wxPyEndAllowThreads(__tstate);
14930 if (PyErr_Occurred()) SWIG_fail;
14931 }
14932 resultobj = SWIG_Py_Void();
14933 return resultobj;
14934 fail:
14935 return NULL;
14936 }
14937
14938
14939 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14940 PyObject *resultobj = 0;
14941 wxDC *arg1 = (wxDC *) 0 ;
14942 wxPoint *arg2 = 0 ;
14943 void *argp1 = 0 ;
14944 int res1 = 0 ;
14945 wxPoint temp2 ;
14946 PyObject * obj0 = 0 ;
14947 PyObject * obj1 = 0 ;
14948 char * kwnames[] = {
14949 (char *) "self",(char *) "pt", NULL
14950 };
14951
14952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14954 if (!SWIG_IsOK(res1)) {
14955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14956 }
14957 arg1 = reinterpret_cast< wxDC * >(argp1);
14958 {
14959 arg2 = &temp2;
14960 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14961 }
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 (arg1)->CrossHair((wxPoint const &)*arg2);
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_Py_Void();
14969 return resultobj;
14970 fail:
14971 return NULL;
14972 }
14973
14974
14975 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj = 0;
14977 wxDC *arg1 = (wxDC *) 0 ;
14978 int arg2 ;
14979 int arg3 ;
14980 int arg4 ;
14981 int arg5 ;
14982 int arg6 ;
14983 int arg7 ;
14984 void *argp1 = 0 ;
14985 int res1 = 0 ;
14986 int val2 ;
14987 int ecode2 = 0 ;
14988 int val3 ;
14989 int ecode3 = 0 ;
14990 int val4 ;
14991 int ecode4 = 0 ;
14992 int val5 ;
14993 int ecode5 = 0 ;
14994 int val6 ;
14995 int ecode6 = 0 ;
14996 int val7 ;
14997 int ecode7 = 0 ;
14998 PyObject * obj0 = 0 ;
14999 PyObject * obj1 = 0 ;
15000 PyObject * obj2 = 0 ;
15001 PyObject * obj3 = 0 ;
15002 PyObject * obj4 = 0 ;
15003 PyObject * obj5 = 0 ;
15004 PyObject * obj6 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15011 if (!SWIG_IsOK(res1)) {
15012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15013 }
15014 arg1 = reinterpret_cast< wxDC * >(argp1);
15015 ecode2 = SWIG_AsVal_int(obj1, &val2);
15016 if (!SWIG_IsOK(ecode2)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15018 }
15019 arg2 = static_cast< int >(val2);
15020 ecode3 = SWIG_AsVal_int(obj2, &val3);
15021 if (!SWIG_IsOK(ecode3)) {
15022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15023 }
15024 arg3 = static_cast< int >(val3);
15025 ecode4 = SWIG_AsVal_int(obj3, &val4);
15026 if (!SWIG_IsOK(ecode4)) {
15027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15028 }
15029 arg4 = static_cast< int >(val4);
15030 ecode5 = SWIG_AsVal_int(obj4, &val5);
15031 if (!SWIG_IsOK(ecode5)) {
15032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15033 }
15034 arg5 = static_cast< int >(val5);
15035 ecode6 = SWIG_AsVal_int(obj5, &val6);
15036 if (!SWIG_IsOK(ecode6)) {
15037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15038 }
15039 arg6 = static_cast< int >(val6);
15040 ecode7 = SWIG_AsVal_int(obj6, &val7);
15041 if (!SWIG_IsOK(ecode7)) {
15042 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15043 }
15044 arg7 = static_cast< int >(val7);
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_Py_Void();
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj = 0;
15060 wxDC *arg1 = (wxDC *) 0 ;
15061 wxPoint *arg2 = 0 ;
15062 wxPoint *arg3 = 0 ;
15063 wxPoint *arg4 = 0 ;
15064 void *argp1 = 0 ;
15065 int res1 = 0 ;
15066 wxPoint temp2 ;
15067 wxPoint temp3 ;
15068 wxPoint temp4 ;
15069 PyObject * obj0 = 0 ;
15070 PyObject * obj1 = 0 ;
15071 PyObject * obj2 = 0 ;
15072 PyObject * obj3 = 0 ;
15073 char * kwnames[] = {
15074 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15075 };
15076
15077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15079 if (!SWIG_IsOK(res1)) {
15080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15081 }
15082 arg1 = reinterpret_cast< wxDC * >(argp1);
15083 {
15084 arg2 = &temp2;
15085 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15086 }
15087 {
15088 arg3 = &temp3;
15089 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15090 }
15091 {
15092 arg4 = &temp4;
15093 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15094 }
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15098 wxPyEndAllowThreads(__tstate);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
15101 resultobj = SWIG_Py_Void();
15102 return resultobj;
15103 fail:
15104 return NULL;
15105 }
15106
15107
15108 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15109 PyObject *resultobj = 0;
15110 wxDC *arg1 = (wxDC *) 0 ;
15111 int arg2 ;
15112 int arg3 ;
15113 int arg4 ;
15114 int arg5 ;
15115 void *argp1 = 0 ;
15116 int res1 = 0 ;
15117 int val2 ;
15118 int ecode2 = 0 ;
15119 int val3 ;
15120 int ecode3 = 0 ;
15121 int val4 ;
15122 int ecode4 = 0 ;
15123 int val5 ;
15124 int ecode5 = 0 ;
15125 PyObject * obj0 = 0 ;
15126 PyObject * obj1 = 0 ;
15127 PyObject * obj2 = 0 ;
15128 PyObject * obj3 = 0 ;
15129 PyObject * obj4 = 0 ;
15130 char * kwnames[] = {
15131 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15132 };
15133
15134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15136 if (!SWIG_IsOK(res1)) {
15137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15138 }
15139 arg1 = reinterpret_cast< wxDC * >(argp1);
15140 ecode2 = SWIG_AsVal_int(obj1, &val2);
15141 if (!SWIG_IsOK(ecode2)) {
15142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15143 }
15144 arg2 = static_cast< int >(val2);
15145 ecode3 = SWIG_AsVal_int(obj2, &val3);
15146 if (!SWIG_IsOK(ecode3)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15148 }
15149 arg3 = static_cast< int >(val3);
15150 ecode4 = SWIG_AsVal_int(obj3, &val4);
15151 if (!SWIG_IsOK(ecode4)) {
15152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15153 }
15154 arg4 = static_cast< int >(val4);
15155 ecode5 = SWIG_AsVal_int(obj4, &val5);
15156 if (!SWIG_IsOK(ecode5)) {
15157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15158 }
15159 arg5 = static_cast< int >(val5);
15160 {
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 resultobj = SWIG_Py_Void();
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj = 0;
15175 wxDC *arg1 = (wxDC *) 0 ;
15176 wxRect *arg2 = 0 ;
15177 void *argp1 = 0 ;
15178 int res1 = 0 ;
15179 wxRect temp2 ;
15180 PyObject * obj0 = 0 ;
15181 PyObject * obj1 = 0 ;
15182 char * kwnames[] = {
15183 (char *) "self",(char *) "rect", NULL
15184 };
15185
15186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15188 if (!SWIG_IsOK(res1)) {
15189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15190 }
15191 arg1 = reinterpret_cast< wxDC * >(argp1);
15192 {
15193 arg2 = &temp2;
15194 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15195 }
15196 {
15197 PyThreadState* __tstate = wxPyBeginAllowThreads();
15198 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15199 wxPyEndAllowThreads(__tstate);
15200 if (PyErr_Occurred()) SWIG_fail;
15201 }
15202 resultobj = SWIG_Py_Void();
15203 return resultobj;
15204 fail:
15205 return NULL;
15206 }
15207
15208
15209 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15210 PyObject *resultobj = 0;
15211 wxDC *arg1 = (wxDC *) 0 ;
15212 int arg2 ;
15213 int arg3 ;
15214 int arg4 ;
15215 int arg5 ;
15216 double arg6 ;
15217 double arg7 ;
15218 void *argp1 = 0 ;
15219 int res1 = 0 ;
15220 int val2 ;
15221 int ecode2 = 0 ;
15222 int val3 ;
15223 int ecode3 = 0 ;
15224 int val4 ;
15225 int ecode4 = 0 ;
15226 int val5 ;
15227 int ecode5 = 0 ;
15228 double val6 ;
15229 int ecode6 = 0 ;
15230 double val7 ;
15231 int ecode7 = 0 ;
15232 PyObject * obj0 = 0 ;
15233 PyObject * obj1 = 0 ;
15234 PyObject * obj2 = 0 ;
15235 PyObject * obj3 = 0 ;
15236 PyObject * obj4 = 0 ;
15237 PyObject * obj5 = 0 ;
15238 PyObject * obj6 = 0 ;
15239 char * kwnames[] = {
15240 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15241 };
15242
15243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15245 if (!SWIG_IsOK(res1)) {
15246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15247 }
15248 arg1 = reinterpret_cast< wxDC * >(argp1);
15249 ecode2 = SWIG_AsVal_int(obj1, &val2);
15250 if (!SWIG_IsOK(ecode2)) {
15251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15252 }
15253 arg2 = static_cast< int >(val2);
15254 ecode3 = SWIG_AsVal_int(obj2, &val3);
15255 if (!SWIG_IsOK(ecode3)) {
15256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15257 }
15258 arg3 = static_cast< int >(val3);
15259 ecode4 = SWIG_AsVal_int(obj3, &val4);
15260 if (!SWIG_IsOK(ecode4)) {
15261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15262 }
15263 arg4 = static_cast< int >(val4);
15264 ecode5 = SWIG_AsVal_int(obj4, &val5);
15265 if (!SWIG_IsOK(ecode5)) {
15266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15267 }
15268 arg5 = static_cast< int >(val5);
15269 ecode6 = SWIG_AsVal_double(obj5, &val6);
15270 if (!SWIG_IsOK(ecode6)) {
15271 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15272 }
15273 arg6 = static_cast< double >(val6);
15274 ecode7 = SWIG_AsVal_double(obj6, &val7);
15275 if (!SWIG_IsOK(ecode7)) {
15276 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15277 }
15278 arg7 = static_cast< double >(val7);
15279 {
15280 PyThreadState* __tstate = wxPyBeginAllowThreads();
15281 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15282 wxPyEndAllowThreads(__tstate);
15283 if (PyErr_Occurred()) SWIG_fail;
15284 }
15285 resultobj = SWIG_Py_Void();
15286 return resultobj;
15287 fail:
15288 return NULL;
15289 }
15290
15291
15292 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15293 PyObject *resultobj = 0;
15294 wxDC *arg1 = (wxDC *) 0 ;
15295 wxPoint *arg2 = 0 ;
15296 wxSize *arg3 = 0 ;
15297 double arg4 ;
15298 double arg5 ;
15299 void *argp1 = 0 ;
15300 int res1 = 0 ;
15301 wxPoint temp2 ;
15302 wxSize temp3 ;
15303 double val4 ;
15304 int ecode4 = 0 ;
15305 double val5 ;
15306 int ecode5 = 0 ;
15307 PyObject * obj0 = 0 ;
15308 PyObject * obj1 = 0 ;
15309 PyObject * obj2 = 0 ;
15310 PyObject * obj3 = 0 ;
15311 PyObject * obj4 = 0 ;
15312 char * kwnames[] = {
15313 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15314 };
15315
15316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15318 if (!SWIG_IsOK(res1)) {
15319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15320 }
15321 arg1 = reinterpret_cast< wxDC * >(argp1);
15322 {
15323 arg2 = &temp2;
15324 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15325 }
15326 {
15327 arg3 = &temp3;
15328 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15329 }
15330 ecode4 = SWIG_AsVal_double(obj3, &val4);
15331 if (!SWIG_IsOK(ecode4)) {
15332 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15333 }
15334 arg4 = static_cast< double >(val4);
15335 ecode5 = SWIG_AsVal_double(obj4, &val5);
15336 if (!SWIG_IsOK(ecode5)) {
15337 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15338 }
15339 arg5 = static_cast< double >(val5);
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 resultobj = SWIG_Py_Void();
15347 return resultobj;
15348 fail:
15349 return NULL;
15350 }
15351
15352
15353 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15354 PyObject *resultobj = 0;
15355 wxDC *arg1 = (wxDC *) 0 ;
15356 int arg2 ;
15357 int arg3 ;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 int val2 ;
15361 int ecode2 = 0 ;
15362 int val3 ;
15363 int ecode3 = 0 ;
15364 PyObject * obj0 = 0 ;
15365 PyObject * obj1 = 0 ;
15366 PyObject * obj2 = 0 ;
15367 char * kwnames[] = {
15368 (char *) "self",(char *) "x",(char *) "y", NULL
15369 };
15370
15371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15373 if (!SWIG_IsOK(res1)) {
15374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15375 }
15376 arg1 = reinterpret_cast< wxDC * >(argp1);
15377 ecode2 = SWIG_AsVal_int(obj1, &val2);
15378 if (!SWIG_IsOK(ecode2)) {
15379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15380 }
15381 arg2 = static_cast< int >(val2);
15382 ecode3 = SWIG_AsVal_int(obj2, &val3);
15383 if (!SWIG_IsOK(ecode3)) {
15384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15385 }
15386 arg3 = static_cast< int >(val3);
15387 {
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 (arg1)->DrawPoint(arg2,arg3);
15390 wxPyEndAllowThreads(__tstate);
15391 if (PyErr_Occurred()) SWIG_fail;
15392 }
15393 resultobj = SWIG_Py_Void();
15394 return resultobj;
15395 fail:
15396 return NULL;
15397 }
15398
15399
15400 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15401 PyObject *resultobj = 0;
15402 wxDC *arg1 = (wxDC *) 0 ;
15403 wxPoint *arg2 = 0 ;
15404 void *argp1 = 0 ;
15405 int res1 = 0 ;
15406 wxPoint temp2 ;
15407 PyObject * obj0 = 0 ;
15408 PyObject * obj1 = 0 ;
15409 char * kwnames[] = {
15410 (char *) "self",(char *) "pt", NULL
15411 };
15412
15413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15415 if (!SWIG_IsOK(res1)) {
15416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15417 }
15418 arg1 = reinterpret_cast< wxDC * >(argp1);
15419 {
15420 arg2 = &temp2;
15421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15422 }
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 (arg1)->DrawPoint((wxPoint const &)*arg2);
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = SWIG_Py_Void();
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15437 PyObject *resultobj = 0;
15438 wxDC *arg1 = (wxDC *) 0 ;
15439 int arg2 ;
15440 int arg3 ;
15441 int arg4 ;
15442 int arg5 ;
15443 void *argp1 = 0 ;
15444 int res1 = 0 ;
15445 int val2 ;
15446 int ecode2 = 0 ;
15447 int val3 ;
15448 int ecode3 = 0 ;
15449 int val4 ;
15450 int ecode4 = 0 ;
15451 int val5 ;
15452 int ecode5 = 0 ;
15453 PyObject * obj0 = 0 ;
15454 PyObject * obj1 = 0 ;
15455 PyObject * obj2 = 0 ;
15456 PyObject * obj3 = 0 ;
15457 PyObject * obj4 = 0 ;
15458 char * kwnames[] = {
15459 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15460 };
15461
15462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15464 if (!SWIG_IsOK(res1)) {
15465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15466 }
15467 arg1 = reinterpret_cast< wxDC * >(argp1);
15468 ecode2 = SWIG_AsVal_int(obj1, &val2);
15469 if (!SWIG_IsOK(ecode2)) {
15470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15471 }
15472 arg2 = static_cast< int >(val2);
15473 ecode3 = SWIG_AsVal_int(obj2, &val3);
15474 if (!SWIG_IsOK(ecode3)) {
15475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15476 }
15477 arg3 = static_cast< int >(val3);
15478 ecode4 = SWIG_AsVal_int(obj3, &val4);
15479 if (!SWIG_IsOK(ecode4)) {
15480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15481 }
15482 arg4 = static_cast< int >(val4);
15483 ecode5 = SWIG_AsVal_int(obj4, &val5);
15484 if (!SWIG_IsOK(ecode5)) {
15485 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15486 }
15487 arg5 = static_cast< int >(val5);
15488 {
15489 PyThreadState* __tstate = wxPyBeginAllowThreads();
15490 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 resultobj = SWIG_Py_Void();
15495 return resultobj;
15496 fail:
15497 return NULL;
15498 }
15499
15500
15501 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15502 PyObject *resultobj = 0;
15503 wxDC *arg1 = (wxDC *) 0 ;
15504 wxRect *arg2 = 0 ;
15505 void *argp1 = 0 ;
15506 int res1 = 0 ;
15507 wxRect temp2 ;
15508 PyObject * obj0 = 0 ;
15509 PyObject * obj1 = 0 ;
15510 char * kwnames[] = {
15511 (char *) "self",(char *) "rect", NULL
15512 };
15513
15514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15516 if (!SWIG_IsOK(res1)) {
15517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15518 }
15519 arg1 = reinterpret_cast< wxDC * >(argp1);
15520 {
15521 arg2 = &temp2;
15522 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15523 }
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 (arg1)->DrawRectangle((wxRect const &)*arg2);
15527 wxPyEndAllowThreads(__tstate);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 resultobj = SWIG_Py_Void();
15531 return resultobj;
15532 fail:
15533 return NULL;
15534 }
15535
15536
15537 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj = 0;
15539 wxDC *arg1 = (wxDC *) 0 ;
15540 wxPoint *arg2 = 0 ;
15541 wxSize *arg3 = 0 ;
15542 void *argp1 = 0 ;
15543 int res1 = 0 ;
15544 wxPoint temp2 ;
15545 wxSize temp3 ;
15546 PyObject * obj0 = 0 ;
15547 PyObject * obj1 = 0 ;
15548 PyObject * obj2 = 0 ;
15549 char * kwnames[] = {
15550 (char *) "self",(char *) "pt",(char *) "sz", NULL
15551 };
15552
15553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15555 if (!SWIG_IsOK(res1)) {
15556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15557 }
15558 arg1 = reinterpret_cast< wxDC * >(argp1);
15559 {
15560 arg2 = &temp2;
15561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15562 }
15563 {
15564 arg3 = &temp3;
15565 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15566 }
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15570 wxPyEndAllowThreads(__tstate);
15571 if (PyErr_Occurred()) SWIG_fail;
15572 }
15573 resultobj = SWIG_Py_Void();
15574 return resultobj;
15575 fail:
15576 return NULL;
15577 }
15578
15579
15580 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15581 PyObject *resultobj = 0;
15582 wxDC *arg1 = (wxDC *) 0 ;
15583 int arg2 ;
15584 int arg3 ;
15585 int arg4 ;
15586 int arg5 ;
15587 double arg6 ;
15588 void *argp1 = 0 ;
15589 int res1 = 0 ;
15590 int val2 ;
15591 int ecode2 = 0 ;
15592 int val3 ;
15593 int ecode3 = 0 ;
15594 int val4 ;
15595 int ecode4 = 0 ;
15596 int val5 ;
15597 int ecode5 = 0 ;
15598 double val6 ;
15599 int ecode6 = 0 ;
15600 PyObject * obj0 = 0 ;
15601 PyObject * obj1 = 0 ;
15602 PyObject * obj2 = 0 ;
15603 PyObject * obj3 = 0 ;
15604 PyObject * obj4 = 0 ;
15605 PyObject * obj5 = 0 ;
15606 char * kwnames[] = {
15607 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15608 };
15609
15610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15612 if (!SWIG_IsOK(res1)) {
15613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15614 }
15615 arg1 = reinterpret_cast< wxDC * >(argp1);
15616 ecode2 = SWIG_AsVal_int(obj1, &val2);
15617 if (!SWIG_IsOK(ecode2)) {
15618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15619 }
15620 arg2 = static_cast< int >(val2);
15621 ecode3 = SWIG_AsVal_int(obj2, &val3);
15622 if (!SWIG_IsOK(ecode3)) {
15623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15624 }
15625 arg3 = static_cast< int >(val3);
15626 ecode4 = SWIG_AsVal_int(obj3, &val4);
15627 if (!SWIG_IsOK(ecode4)) {
15628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15629 }
15630 arg4 = static_cast< int >(val4);
15631 ecode5 = SWIG_AsVal_int(obj4, &val5);
15632 if (!SWIG_IsOK(ecode5)) {
15633 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15634 }
15635 arg5 = static_cast< int >(val5);
15636 ecode6 = SWIG_AsVal_double(obj5, &val6);
15637 if (!SWIG_IsOK(ecode6)) {
15638 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15639 }
15640 arg6 = static_cast< double >(val6);
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 resultobj = SWIG_Py_Void();
15648 return resultobj;
15649 fail:
15650 return NULL;
15651 }
15652
15653
15654 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15655 PyObject *resultobj = 0;
15656 wxDC *arg1 = (wxDC *) 0 ;
15657 wxRect *arg2 = 0 ;
15658 double arg3 ;
15659 void *argp1 = 0 ;
15660 int res1 = 0 ;
15661 wxRect temp2 ;
15662 double val3 ;
15663 int ecode3 = 0 ;
15664 PyObject * obj0 = 0 ;
15665 PyObject * obj1 = 0 ;
15666 PyObject * obj2 = 0 ;
15667 char * kwnames[] = {
15668 (char *) "self",(char *) "r",(char *) "radius", NULL
15669 };
15670
15671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) 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_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15675 }
15676 arg1 = reinterpret_cast< wxDC * >(argp1);
15677 {
15678 arg2 = &temp2;
15679 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15680 }
15681 ecode3 = SWIG_AsVal_double(obj2, &val3);
15682 if (!SWIG_IsOK(ecode3)) {
15683 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15684 }
15685 arg3 = static_cast< double >(val3);
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15689 wxPyEndAllowThreads(__tstate);
15690 if (PyErr_Occurred()) SWIG_fail;
15691 }
15692 resultobj = SWIG_Py_Void();
15693 return resultobj;
15694 fail:
15695 return NULL;
15696 }
15697
15698
15699 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15700 PyObject *resultobj = 0;
15701 wxDC *arg1 = (wxDC *) 0 ;
15702 wxPoint *arg2 = 0 ;
15703 wxSize *arg3 = 0 ;
15704 double arg4 ;
15705 void *argp1 = 0 ;
15706 int res1 = 0 ;
15707 wxPoint temp2 ;
15708 wxSize temp3 ;
15709 double val4 ;
15710 int ecode4 = 0 ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713 PyObject * obj2 = 0 ;
15714 PyObject * obj3 = 0 ;
15715 char * kwnames[] = {
15716 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15717 };
15718
15719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15721 if (!SWIG_IsOK(res1)) {
15722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15723 }
15724 arg1 = reinterpret_cast< wxDC * >(argp1);
15725 {
15726 arg2 = &temp2;
15727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15728 }
15729 {
15730 arg3 = &temp3;
15731 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15732 }
15733 ecode4 = SWIG_AsVal_double(obj3, &val4);
15734 if (!SWIG_IsOK(ecode4)) {
15735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15736 }
15737 arg4 = static_cast< double >(val4);
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 resultobj = SWIG_Py_Void();
15745 return resultobj;
15746 fail:
15747 return NULL;
15748 }
15749
15750
15751 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15752 PyObject *resultobj = 0;
15753 wxDC *arg1 = (wxDC *) 0 ;
15754 int arg2 ;
15755 int arg3 ;
15756 int arg4 ;
15757 void *argp1 = 0 ;
15758 int res1 = 0 ;
15759 int val2 ;
15760 int ecode2 = 0 ;
15761 int val3 ;
15762 int ecode3 = 0 ;
15763 int val4 ;
15764 int ecode4 = 0 ;
15765 PyObject * obj0 = 0 ;
15766 PyObject * obj1 = 0 ;
15767 PyObject * obj2 = 0 ;
15768 PyObject * obj3 = 0 ;
15769 char * kwnames[] = {
15770 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15771 };
15772
15773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15775 if (!SWIG_IsOK(res1)) {
15776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15777 }
15778 arg1 = reinterpret_cast< wxDC * >(argp1);
15779 ecode2 = SWIG_AsVal_int(obj1, &val2);
15780 if (!SWIG_IsOK(ecode2)) {
15781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15782 }
15783 arg2 = static_cast< int >(val2);
15784 ecode3 = SWIG_AsVal_int(obj2, &val3);
15785 if (!SWIG_IsOK(ecode3)) {
15786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15787 }
15788 arg3 = static_cast< int >(val3);
15789 ecode4 = SWIG_AsVal_int(obj3, &val4);
15790 if (!SWIG_IsOK(ecode4)) {
15791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15792 }
15793 arg4 = static_cast< int >(val4);
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 (arg1)->DrawCircle(arg2,arg3,arg4);
15797 wxPyEndAllowThreads(__tstate);
15798 if (PyErr_Occurred()) SWIG_fail;
15799 }
15800 resultobj = SWIG_Py_Void();
15801 return resultobj;
15802 fail:
15803 return NULL;
15804 }
15805
15806
15807 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15808 PyObject *resultobj = 0;
15809 wxDC *arg1 = (wxDC *) 0 ;
15810 wxPoint *arg2 = 0 ;
15811 int arg3 ;
15812 void *argp1 = 0 ;
15813 int res1 = 0 ;
15814 wxPoint temp2 ;
15815 int val3 ;
15816 int ecode3 = 0 ;
15817 PyObject * obj0 = 0 ;
15818 PyObject * obj1 = 0 ;
15819 PyObject * obj2 = 0 ;
15820 char * kwnames[] = {
15821 (char *) "self",(char *) "pt",(char *) "radius", NULL
15822 };
15823
15824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15826 if (!SWIG_IsOK(res1)) {
15827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15828 }
15829 arg1 = reinterpret_cast< wxDC * >(argp1);
15830 {
15831 arg2 = &temp2;
15832 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15833 }
15834 ecode3 = SWIG_AsVal_int(obj2, &val3);
15835 if (!SWIG_IsOK(ecode3)) {
15836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15837 }
15838 arg3 = static_cast< int >(val3);
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
15845 resultobj = SWIG_Py_Void();
15846 return resultobj;
15847 fail:
15848 return NULL;
15849 }
15850
15851
15852 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15853 PyObject *resultobj = 0;
15854 wxDC *arg1 = (wxDC *) 0 ;
15855 int arg2 ;
15856 int arg3 ;
15857 int arg4 ;
15858 int arg5 ;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 int val2 ;
15862 int ecode2 = 0 ;
15863 int val3 ;
15864 int ecode3 = 0 ;
15865 int val4 ;
15866 int ecode4 = 0 ;
15867 int val5 ;
15868 int ecode5 = 0 ;
15869 PyObject * obj0 = 0 ;
15870 PyObject * obj1 = 0 ;
15871 PyObject * obj2 = 0 ;
15872 PyObject * obj3 = 0 ;
15873 PyObject * obj4 = 0 ;
15874 char * kwnames[] = {
15875 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15876 };
15877
15878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15882 }
15883 arg1 = reinterpret_cast< wxDC * >(argp1);
15884 ecode2 = SWIG_AsVal_int(obj1, &val2);
15885 if (!SWIG_IsOK(ecode2)) {
15886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15887 }
15888 arg2 = static_cast< int >(val2);
15889 ecode3 = SWIG_AsVal_int(obj2, &val3);
15890 if (!SWIG_IsOK(ecode3)) {
15891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15892 }
15893 arg3 = static_cast< int >(val3);
15894 ecode4 = SWIG_AsVal_int(obj3, &val4);
15895 if (!SWIG_IsOK(ecode4)) {
15896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15897 }
15898 arg4 = static_cast< int >(val4);
15899 ecode5 = SWIG_AsVal_int(obj4, &val5);
15900 if (!SWIG_IsOK(ecode5)) {
15901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15902 }
15903 arg5 = static_cast< int >(val5);
15904 {
15905 PyThreadState* __tstate = wxPyBeginAllowThreads();
15906 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 resultobj = SWIG_Py_Void();
15911 return resultobj;
15912 fail:
15913 return NULL;
15914 }
15915
15916
15917 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj = 0;
15919 wxDC *arg1 = (wxDC *) 0 ;
15920 wxRect *arg2 = 0 ;
15921 void *argp1 = 0 ;
15922 int res1 = 0 ;
15923 wxRect temp2 ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 char * kwnames[] = {
15927 (char *) "self",(char *) "rect", NULL
15928 };
15929
15930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15932 if (!SWIG_IsOK(res1)) {
15933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15934 }
15935 arg1 = reinterpret_cast< wxDC * >(argp1);
15936 {
15937 arg2 = &temp2;
15938 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15939 }
15940 {
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 (arg1)->DrawEllipse((wxRect const &)*arg2);
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 resultobj = SWIG_Py_Void();
15947 return resultobj;
15948 fail:
15949 return NULL;
15950 }
15951
15952
15953 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15954 PyObject *resultobj = 0;
15955 wxDC *arg1 = (wxDC *) 0 ;
15956 wxPoint *arg2 = 0 ;
15957 wxSize *arg3 = 0 ;
15958 void *argp1 = 0 ;
15959 int res1 = 0 ;
15960 wxPoint temp2 ;
15961 wxSize temp3 ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 PyObject * obj2 = 0 ;
15965 char * kwnames[] = {
15966 (char *) "self",(char *) "pt",(char *) "sz", NULL
15967 };
15968
15969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15971 if (!SWIG_IsOK(res1)) {
15972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15973 }
15974 arg1 = reinterpret_cast< wxDC * >(argp1);
15975 {
15976 arg2 = &temp2;
15977 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15978 }
15979 {
15980 arg3 = &temp3;
15981 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15982 }
15983 {
15984 PyThreadState* __tstate = wxPyBeginAllowThreads();
15985 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 resultobj = SWIG_Py_Void();
15990 return resultobj;
15991 fail:
15992 return NULL;
15993 }
15994
15995
15996 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj = 0;
15998 wxDC *arg1 = (wxDC *) 0 ;
15999 wxIcon *arg2 = 0 ;
16000 int arg3 ;
16001 int arg4 ;
16002 void *argp1 = 0 ;
16003 int res1 = 0 ;
16004 void *argp2 = 0 ;
16005 int res2 = 0 ;
16006 int val3 ;
16007 int ecode3 = 0 ;
16008 int val4 ;
16009 int ecode4 = 0 ;
16010 PyObject * obj0 = 0 ;
16011 PyObject * obj1 = 0 ;
16012 PyObject * obj2 = 0 ;
16013 PyObject * obj3 = 0 ;
16014 char * kwnames[] = {
16015 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16016 };
16017
16018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16020 if (!SWIG_IsOK(res1)) {
16021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16022 }
16023 arg1 = reinterpret_cast< wxDC * >(argp1);
16024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16025 if (!SWIG_IsOK(res2)) {
16026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16027 }
16028 if (!argp2) {
16029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16030 }
16031 arg2 = reinterpret_cast< wxIcon * >(argp2);
16032 ecode3 = SWIG_AsVal_int(obj2, &val3);
16033 if (!SWIG_IsOK(ecode3)) {
16034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16035 }
16036 arg3 = static_cast< int >(val3);
16037 ecode4 = SWIG_AsVal_int(obj3, &val4);
16038 if (!SWIG_IsOK(ecode4)) {
16039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16040 }
16041 arg4 = static_cast< int >(val4);
16042 {
16043 PyThreadState* __tstate = wxPyBeginAllowThreads();
16044 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
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_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj = 0;
16057 wxDC *arg1 = (wxDC *) 0 ;
16058 wxIcon *arg2 = 0 ;
16059 wxPoint *arg3 = 0 ;
16060 void *argp1 = 0 ;
16061 int res1 = 0 ;
16062 void *argp2 = 0 ;
16063 int res2 = 0 ;
16064 wxPoint temp3 ;
16065 PyObject * obj0 = 0 ;
16066 PyObject * obj1 = 0 ;
16067 PyObject * obj2 = 0 ;
16068 char * kwnames[] = {
16069 (char *) "self",(char *) "icon",(char *) "pt", NULL
16070 };
16071
16072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16074 if (!SWIG_IsOK(res1)) {
16075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16076 }
16077 arg1 = reinterpret_cast< wxDC * >(argp1);
16078 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16079 if (!SWIG_IsOK(res2)) {
16080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16081 }
16082 if (!argp2) {
16083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16084 }
16085 arg2 = reinterpret_cast< wxIcon * >(argp2);
16086 {
16087 arg3 = &temp3;
16088 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16089 }
16090 {
16091 PyThreadState* __tstate = wxPyBeginAllowThreads();
16092 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16093 wxPyEndAllowThreads(__tstate);
16094 if (PyErr_Occurred()) SWIG_fail;
16095 }
16096 resultobj = SWIG_Py_Void();
16097 return resultobj;
16098 fail:
16099 return NULL;
16100 }
16101
16102
16103 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16104 PyObject *resultobj = 0;
16105 wxDC *arg1 = (wxDC *) 0 ;
16106 wxBitmap *arg2 = 0 ;
16107 int arg3 ;
16108 int arg4 ;
16109 bool arg5 = (bool) false ;
16110 void *argp1 = 0 ;
16111 int res1 = 0 ;
16112 void *argp2 = 0 ;
16113 int res2 = 0 ;
16114 int val3 ;
16115 int ecode3 = 0 ;
16116 int val4 ;
16117 int ecode4 = 0 ;
16118 bool val5 ;
16119 int ecode5 = 0 ;
16120 PyObject * obj0 = 0 ;
16121 PyObject * obj1 = 0 ;
16122 PyObject * obj2 = 0 ;
16123 PyObject * obj3 = 0 ;
16124 PyObject * obj4 = 0 ;
16125 char * kwnames[] = {
16126 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16127 };
16128
16129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16131 if (!SWIG_IsOK(res1)) {
16132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16133 }
16134 arg1 = reinterpret_cast< wxDC * >(argp1);
16135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16136 if (!SWIG_IsOK(res2)) {
16137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16138 }
16139 if (!argp2) {
16140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16141 }
16142 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16143 ecode3 = SWIG_AsVal_int(obj2, &val3);
16144 if (!SWIG_IsOK(ecode3)) {
16145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16146 }
16147 arg3 = static_cast< int >(val3);
16148 ecode4 = SWIG_AsVal_int(obj3, &val4);
16149 if (!SWIG_IsOK(ecode4)) {
16150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16151 }
16152 arg4 = static_cast< int >(val4);
16153 if (obj4) {
16154 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16155 if (!SWIG_IsOK(ecode5)) {
16156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16157 }
16158 arg5 = static_cast< bool >(val5);
16159 }
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 resultobj = SWIG_Py_Void();
16167 return resultobj;
16168 fail:
16169 return NULL;
16170 }
16171
16172
16173 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj = 0;
16175 wxDC *arg1 = (wxDC *) 0 ;
16176 wxBitmap *arg2 = 0 ;
16177 wxPoint *arg3 = 0 ;
16178 bool arg4 = (bool) false ;
16179 void *argp1 = 0 ;
16180 int res1 = 0 ;
16181 void *argp2 = 0 ;
16182 int res2 = 0 ;
16183 wxPoint temp3 ;
16184 bool val4 ;
16185 int ecode4 = 0 ;
16186 PyObject * obj0 = 0 ;
16187 PyObject * obj1 = 0 ;
16188 PyObject * obj2 = 0 ;
16189 PyObject * obj3 = 0 ;
16190 char * kwnames[] = {
16191 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16192 };
16193
16194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16196 if (!SWIG_IsOK(res1)) {
16197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16198 }
16199 arg1 = reinterpret_cast< wxDC * >(argp1);
16200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16201 if (!SWIG_IsOK(res2)) {
16202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16203 }
16204 if (!argp2) {
16205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16206 }
16207 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16208 {
16209 arg3 = &temp3;
16210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16211 }
16212 if (obj3) {
16213 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16214 if (!SWIG_IsOK(ecode4)) {
16215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16216 }
16217 arg4 = static_cast< bool >(val4);
16218 }
16219 {
16220 PyThreadState* __tstate = wxPyBeginAllowThreads();
16221 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 resultobj = SWIG_Py_Void();
16226 return resultobj;
16227 fail:
16228 return NULL;
16229 }
16230
16231
16232 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj = 0;
16234 wxDC *arg1 = (wxDC *) 0 ;
16235 wxString *arg2 = 0 ;
16236 int arg3 ;
16237 int arg4 ;
16238 void *argp1 = 0 ;
16239 int res1 = 0 ;
16240 bool temp2 = false ;
16241 int val3 ;
16242 int ecode3 = 0 ;
16243 int val4 ;
16244 int ecode4 = 0 ;
16245 PyObject * obj0 = 0 ;
16246 PyObject * obj1 = 0 ;
16247 PyObject * obj2 = 0 ;
16248 PyObject * obj3 = 0 ;
16249 char * kwnames[] = {
16250 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16251 };
16252
16253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16255 if (!SWIG_IsOK(res1)) {
16256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16257 }
16258 arg1 = reinterpret_cast< wxDC * >(argp1);
16259 {
16260 arg2 = wxString_in_helper(obj1);
16261 if (arg2 == NULL) SWIG_fail;
16262 temp2 = true;
16263 }
16264 ecode3 = SWIG_AsVal_int(obj2, &val3);
16265 if (!SWIG_IsOK(ecode3)) {
16266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16267 }
16268 arg3 = static_cast< int >(val3);
16269 ecode4 = SWIG_AsVal_int(obj3, &val4);
16270 if (!SWIG_IsOK(ecode4)) {
16271 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16272 }
16273 arg4 = static_cast< int >(val4);
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16277 wxPyEndAllowThreads(__tstate);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 }
16280 resultobj = SWIG_Py_Void();
16281 {
16282 if (temp2)
16283 delete arg2;
16284 }
16285 return resultobj;
16286 fail:
16287 {
16288 if (temp2)
16289 delete arg2;
16290 }
16291 return NULL;
16292 }
16293
16294
16295 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj = 0;
16297 wxDC *arg1 = (wxDC *) 0 ;
16298 wxString *arg2 = 0 ;
16299 wxPoint *arg3 = 0 ;
16300 void *argp1 = 0 ;
16301 int res1 = 0 ;
16302 bool temp2 = false ;
16303 wxPoint temp3 ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 PyObject * obj2 = 0 ;
16307 char * kwnames[] = {
16308 (char *) "self",(char *) "text",(char *) "pt", NULL
16309 };
16310
16311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16313 if (!SWIG_IsOK(res1)) {
16314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16315 }
16316 arg1 = reinterpret_cast< wxDC * >(argp1);
16317 {
16318 arg2 = wxString_in_helper(obj1);
16319 if (arg2 == NULL) SWIG_fail;
16320 temp2 = true;
16321 }
16322 {
16323 arg3 = &temp3;
16324 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16325 }
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 resultobj = SWIG_Py_Void();
16333 {
16334 if (temp2)
16335 delete arg2;
16336 }
16337 return resultobj;
16338 fail:
16339 {
16340 if (temp2)
16341 delete arg2;
16342 }
16343 return NULL;
16344 }
16345
16346
16347 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj = 0;
16349 wxDC *arg1 = (wxDC *) 0 ;
16350 wxString *arg2 = 0 ;
16351 int arg3 ;
16352 int arg4 ;
16353 double arg5 ;
16354 void *argp1 = 0 ;
16355 int res1 = 0 ;
16356 bool temp2 = false ;
16357 int val3 ;
16358 int ecode3 = 0 ;
16359 int val4 ;
16360 int ecode4 = 0 ;
16361 double val5 ;
16362 int ecode5 = 0 ;
16363 PyObject * obj0 = 0 ;
16364 PyObject * obj1 = 0 ;
16365 PyObject * obj2 = 0 ;
16366 PyObject * obj3 = 0 ;
16367 PyObject * obj4 = 0 ;
16368 char * kwnames[] = {
16369 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16370 };
16371
16372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16374 if (!SWIG_IsOK(res1)) {
16375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16376 }
16377 arg1 = reinterpret_cast< wxDC * >(argp1);
16378 {
16379 arg2 = wxString_in_helper(obj1);
16380 if (arg2 == NULL) SWIG_fail;
16381 temp2 = true;
16382 }
16383 ecode3 = SWIG_AsVal_int(obj2, &val3);
16384 if (!SWIG_IsOK(ecode3)) {
16385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16386 }
16387 arg3 = static_cast< int >(val3);
16388 ecode4 = SWIG_AsVal_int(obj3, &val4);
16389 if (!SWIG_IsOK(ecode4)) {
16390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16391 }
16392 arg4 = static_cast< int >(val4);
16393 ecode5 = SWIG_AsVal_double(obj4, &val5);
16394 if (!SWIG_IsOK(ecode5)) {
16395 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16396 }
16397 arg5 = static_cast< double >(val5);
16398 {
16399 PyThreadState* __tstate = wxPyBeginAllowThreads();
16400 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 resultobj = SWIG_Py_Void();
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return resultobj;
16410 fail:
16411 {
16412 if (temp2)
16413 delete arg2;
16414 }
16415 return NULL;
16416 }
16417
16418
16419 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj = 0;
16421 wxDC *arg1 = (wxDC *) 0 ;
16422 wxString *arg2 = 0 ;
16423 wxPoint *arg3 = 0 ;
16424 double arg4 ;
16425 void *argp1 = 0 ;
16426 int res1 = 0 ;
16427 bool temp2 = false ;
16428 wxPoint temp3 ;
16429 double val4 ;
16430 int ecode4 = 0 ;
16431 PyObject * obj0 = 0 ;
16432 PyObject * obj1 = 0 ;
16433 PyObject * obj2 = 0 ;
16434 PyObject * obj3 = 0 ;
16435 char * kwnames[] = {
16436 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16437 };
16438
16439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16441 if (!SWIG_IsOK(res1)) {
16442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16443 }
16444 arg1 = reinterpret_cast< wxDC * >(argp1);
16445 {
16446 arg2 = wxString_in_helper(obj1);
16447 if (arg2 == NULL) SWIG_fail;
16448 temp2 = true;
16449 }
16450 {
16451 arg3 = &temp3;
16452 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16453 }
16454 ecode4 = SWIG_AsVal_double(obj3, &val4);
16455 if (!SWIG_IsOK(ecode4)) {
16456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16457 }
16458 arg4 = static_cast< double >(val4);
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16462 wxPyEndAllowThreads(__tstate);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 }
16465 resultobj = SWIG_Py_Void();
16466 {
16467 if (temp2)
16468 delete arg2;
16469 }
16470 return resultobj;
16471 fail:
16472 {
16473 if (temp2)
16474 delete arg2;
16475 }
16476 return NULL;
16477 }
16478
16479
16480 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj = 0;
16482 wxDC *arg1 = (wxDC *) 0 ;
16483 int arg2 ;
16484 int arg3 ;
16485 int arg4 ;
16486 int arg5 ;
16487 wxDC *arg6 = (wxDC *) 0 ;
16488 int arg7 ;
16489 int arg8 ;
16490 int arg9 = (int) wxCOPY ;
16491 bool arg10 = (bool) false ;
16492 int arg11 = (int) -1 ;
16493 int arg12 = (int) -1 ;
16494 bool result;
16495 void *argp1 = 0 ;
16496 int res1 = 0 ;
16497 int val2 ;
16498 int ecode2 = 0 ;
16499 int val3 ;
16500 int ecode3 = 0 ;
16501 int val4 ;
16502 int ecode4 = 0 ;
16503 int val5 ;
16504 int ecode5 = 0 ;
16505 void *argp6 = 0 ;
16506 int res6 = 0 ;
16507 int val7 ;
16508 int ecode7 = 0 ;
16509 int val8 ;
16510 int ecode8 = 0 ;
16511 int val9 ;
16512 int ecode9 = 0 ;
16513 bool val10 ;
16514 int ecode10 = 0 ;
16515 int val11 ;
16516 int ecode11 = 0 ;
16517 int val12 ;
16518 int ecode12 = 0 ;
16519 PyObject * obj0 = 0 ;
16520 PyObject * obj1 = 0 ;
16521 PyObject * obj2 = 0 ;
16522 PyObject * obj3 = 0 ;
16523 PyObject * obj4 = 0 ;
16524 PyObject * obj5 = 0 ;
16525 PyObject * obj6 = 0 ;
16526 PyObject * obj7 = 0 ;
16527 PyObject * obj8 = 0 ;
16528 PyObject * obj9 = 0 ;
16529 PyObject * obj10 = 0 ;
16530 PyObject * obj11 = 0 ;
16531 char * kwnames[] = {
16532 (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
16533 };
16534
16535 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;
16536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16537 if (!SWIG_IsOK(res1)) {
16538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16539 }
16540 arg1 = reinterpret_cast< wxDC * >(argp1);
16541 ecode2 = SWIG_AsVal_int(obj1, &val2);
16542 if (!SWIG_IsOK(ecode2)) {
16543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16544 }
16545 arg2 = static_cast< int >(val2);
16546 ecode3 = SWIG_AsVal_int(obj2, &val3);
16547 if (!SWIG_IsOK(ecode3)) {
16548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16549 }
16550 arg3 = static_cast< int >(val3);
16551 ecode4 = SWIG_AsVal_int(obj3, &val4);
16552 if (!SWIG_IsOK(ecode4)) {
16553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16554 }
16555 arg4 = static_cast< int >(val4);
16556 ecode5 = SWIG_AsVal_int(obj4, &val5);
16557 if (!SWIG_IsOK(ecode5)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16559 }
16560 arg5 = static_cast< int >(val5);
16561 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16562 if (!SWIG_IsOK(res6)) {
16563 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16564 }
16565 arg6 = reinterpret_cast< wxDC * >(argp6);
16566 ecode7 = SWIG_AsVal_int(obj6, &val7);
16567 if (!SWIG_IsOK(ecode7)) {
16568 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16569 }
16570 arg7 = static_cast< int >(val7);
16571 ecode8 = SWIG_AsVal_int(obj7, &val8);
16572 if (!SWIG_IsOK(ecode8)) {
16573 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16574 }
16575 arg8 = static_cast< int >(val8);
16576 if (obj8) {
16577 ecode9 = SWIG_AsVal_int(obj8, &val9);
16578 if (!SWIG_IsOK(ecode9)) {
16579 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16580 }
16581 arg9 = static_cast< int >(val9);
16582 }
16583 if (obj9) {
16584 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16585 if (!SWIG_IsOK(ecode10)) {
16586 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16587 }
16588 arg10 = static_cast< bool >(val10);
16589 }
16590 if (obj10) {
16591 ecode11 = SWIG_AsVal_int(obj10, &val11);
16592 if (!SWIG_IsOK(ecode11)) {
16593 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16594 }
16595 arg11 = static_cast< int >(val11);
16596 }
16597 if (obj11) {
16598 ecode12 = SWIG_AsVal_int(obj11, &val12);
16599 if (!SWIG_IsOK(ecode12)) {
16600 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16601 }
16602 arg12 = static_cast< int >(val12);
16603 }
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16607 wxPyEndAllowThreads(__tstate);
16608 if (PyErr_Occurred()) SWIG_fail;
16609 }
16610 {
16611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16612 }
16613 return resultobj;
16614 fail:
16615 return NULL;
16616 }
16617
16618
16619 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16620 PyObject *resultobj = 0;
16621 wxDC *arg1 = (wxDC *) 0 ;
16622 wxPoint *arg2 = 0 ;
16623 wxSize *arg3 = 0 ;
16624 wxDC *arg4 = (wxDC *) 0 ;
16625 wxPoint *arg5 = 0 ;
16626 int arg6 = (int) wxCOPY ;
16627 bool arg7 = (bool) false ;
16628 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16629 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16630 bool result;
16631 void *argp1 = 0 ;
16632 int res1 = 0 ;
16633 wxPoint temp2 ;
16634 wxSize temp3 ;
16635 void *argp4 = 0 ;
16636 int res4 = 0 ;
16637 wxPoint temp5 ;
16638 int val6 ;
16639 int ecode6 = 0 ;
16640 bool val7 ;
16641 int ecode7 = 0 ;
16642 wxPoint temp8 ;
16643 PyObject * obj0 = 0 ;
16644 PyObject * obj1 = 0 ;
16645 PyObject * obj2 = 0 ;
16646 PyObject * obj3 = 0 ;
16647 PyObject * obj4 = 0 ;
16648 PyObject * obj5 = 0 ;
16649 PyObject * obj6 = 0 ;
16650 PyObject * obj7 = 0 ;
16651 char * kwnames[] = {
16652 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16653 };
16654
16655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16657 if (!SWIG_IsOK(res1)) {
16658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16659 }
16660 arg1 = reinterpret_cast< wxDC * >(argp1);
16661 {
16662 arg2 = &temp2;
16663 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16664 }
16665 {
16666 arg3 = &temp3;
16667 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16668 }
16669 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16670 if (!SWIG_IsOK(res4)) {
16671 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16672 }
16673 arg4 = reinterpret_cast< wxDC * >(argp4);
16674 {
16675 arg5 = &temp5;
16676 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16677 }
16678 if (obj5) {
16679 ecode6 = SWIG_AsVal_int(obj5, &val6);
16680 if (!SWIG_IsOK(ecode6)) {
16681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16682 }
16683 arg6 = static_cast< int >(val6);
16684 }
16685 if (obj6) {
16686 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16687 if (!SWIG_IsOK(ecode7)) {
16688 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16689 }
16690 arg7 = static_cast< bool >(val7);
16691 }
16692 if (obj7) {
16693 {
16694 arg8 = &temp8;
16695 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16696 }
16697 }
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16706 }
16707 return resultobj;
16708 fail:
16709 return NULL;
16710 }
16711
16712
16713 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj = 0;
16715 wxDC *arg1 = (wxDC *) 0 ;
16716 int arg2 ;
16717 int arg3 ;
16718 int arg4 ;
16719 int arg5 ;
16720 void *argp1 = 0 ;
16721 int res1 = 0 ;
16722 int val2 ;
16723 int ecode2 = 0 ;
16724 int val3 ;
16725 int ecode3 = 0 ;
16726 int val4 ;
16727 int ecode4 = 0 ;
16728 int val5 ;
16729 int ecode5 = 0 ;
16730 PyObject * obj0 = 0 ;
16731 PyObject * obj1 = 0 ;
16732 PyObject * obj2 = 0 ;
16733 PyObject * obj3 = 0 ;
16734 PyObject * obj4 = 0 ;
16735 char * kwnames[] = {
16736 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16737 };
16738
16739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16741 if (!SWIG_IsOK(res1)) {
16742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16743 }
16744 arg1 = reinterpret_cast< wxDC * >(argp1);
16745 ecode2 = SWIG_AsVal_int(obj1, &val2);
16746 if (!SWIG_IsOK(ecode2)) {
16747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16748 }
16749 arg2 = static_cast< int >(val2);
16750 ecode3 = SWIG_AsVal_int(obj2, &val3);
16751 if (!SWIG_IsOK(ecode3)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16753 }
16754 arg3 = static_cast< int >(val3);
16755 ecode4 = SWIG_AsVal_int(obj3, &val4);
16756 if (!SWIG_IsOK(ecode4)) {
16757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16758 }
16759 arg4 = static_cast< int >(val4);
16760 ecode5 = SWIG_AsVal_int(obj4, &val5);
16761 if (!SWIG_IsOK(ecode5)) {
16762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16763 }
16764 arg5 = static_cast< int >(val5);
16765 {
16766 PyThreadState* __tstate = wxPyBeginAllowThreads();
16767 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16768 wxPyEndAllowThreads(__tstate);
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 resultobj = SWIG_Py_Void();
16772 return resultobj;
16773 fail:
16774 return NULL;
16775 }
16776
16777
16778 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16779 PyObject *resultobj = 0;
16780 wxDC *arg1 = (wxDC *) 0 ;
16781 wxPoint *arg2 = 0 ;
16782 wxSize *arg3 = 0 ;
16783 void *argp1 = 0 ;
16784 int res1 = 0 ;
16785 wxPoint temp2 ;
16786 wxSize temp3 ;
16787 PyObject * obj0 = 0 ;
16788 PyObject * obj1 = 0 ;
16789 PyObject * obj2 = 0 ;
16790 char * kwnames[] = {
16791 (char *) "self",(char *) "pt",(char *) "sz", NULL
16792 };
16793
16794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16796 if (!SWIG_IsOK(res1)) {
16797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16798 }
16799 arg1 = reinterpret_cast< wxDC * >(argp1);
16800 {
16801 arg2 = &temp2;
16802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16803 }
16804 {
16805 arg3 = &temp3;
16806 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16807 }
16808 {
16809 PyThreadState* __tstate = wxPyBeginAllowThreads();
16810 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16811 wxPyEndAllowThreads(__tstate);
16812 if (PyErr_Occurred()) SWIG_fail;
16813 }
16814 resultobj = SWIG_Py_Void();
16815 return resultobj;
16816 fail:
16817 return NULL;
16818 }
16819
16820
16821 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16822 PyObject *resultobj = 0;
16823 wxDC *arg1 = (wxDC *) 0 ;
16824 wxRegion *arg2 = 0 ;
16825 void *argp1 = 0 ;
16826 int res1 = 0 ;
16827 void *argp2 = 0 ;
16828 int res2 = 0 ;
16829 PyObject * obj0 = 0 ;
16830 PyObject * obj1 = 0 ;
16831 char * kwnames[] = {
16832 (char *) "self",(char *) "region", NULL
16833 };
16834
16835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16837 if (!SWIG_IsOK(res1)) {
16838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16839 }
16840 arg1 = reinterpret_cast< wxDC * >(argp1);
16841 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16842 if (!SWIG_IsOK(res2)) {
16843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16844 }
16845 if (!argp2) {
16846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16847 }
16848 arg2 = reinterpret_cast< wxRegion * >(argp2);
16849 {
16850 PyThreadState* __tstate = wxPyBeginAllowThreads();
16851 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 resultobj = SWIG_Py_Void();
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16863 PyObject *resultobj = 0;
16864 wxDC *arg1 = (wxDC *) 0 ;
16865 wxRect *arg2 = 0 ;
16866 void *argp1 = 0 ;
16867 int res1 = 0 ;
16868 wxRect temp2 ;
16869 PyObject * obj0 = 0 ;
16870 PyObject * obj1 = 0 ;
16871 char * kwnames[] = {
16872 (char *) "self",(char *) "rect", NULL
16873 };
16874
16875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16877 if (!SWIG_IsOK(res1)) {
16878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16879 }
16880 arg1 = reinterpret_cast< wxDC * >(argp1);
16881 {
16882 arg2 = &temp2;
16883 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16884 }
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 resultobj = SWIG_Py_Void();
16892 return resultobj;
16893 fail:
16894 return NULL;
16895 }
16896
16897
16898 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16899 PyObject *resultobj = 0;
16900 wxDC *arg1 = (wxDC *) 0 ;
16901 int arg2 ;
16902 wxPoint *arg3 = (wxPoint *) 0 ;
16903 int arg4 = (int) 0 ;
16904 int arg5 = (int) 0 ;
16905 void *argp1 = 0 ;
16906 int res1 = 0 ;
16907 int val4 ;
16908 int ecode4 = 0 ;
16909 int val5 ;
16910 int ecode5 = 0 ;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 PyObject * obj2 = 0 ;
16914 PyObject * obj3 = 0 ;
16915 char * kwnames[] = {
16916 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16917 };
16918
16919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16921 if (!SWIG_IsOK(res1)) {
16922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16923 }
16924 arg1 = reinterpret_cast< wxDC * >(argp1);
16925 {
16926 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16927 if (arg3 == NULL) SWIG_fail;
16928 }
16929 if (obj2) {
16930 ecode4 = SWIG_AsVal_int(obj2, &val4);
16931 if (!SWIG_IsOK(ecode4)) {
16932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16933 }
16934 arg4 = static_cast< int >(val4);
16935 }
16936 if (obj3) {
16937 ecode5 = SWIG_AsVal_int(obj3, &val5);
16938 if (!SWIG_IsOK(ecode5)) {
16939 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16940 }
16941 arg5 = static_cast< int >(val5);
16942 }
16943 {
16944 PyThreadState* __tstate = wxPyBeginAllowThreads();
16945 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 resultobj = SWIG_Py_Void();
16950 {
16951 if (arg3) delete [] arg3;
16952 }
16953 return resultobj;
16954 fail:
16955 {
16956 if (arg3) delete [] arg3;
16957 }
16958 return NULL;
16959 }
16960
16961
16962 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj = 0;
16964 wxDC *arg1 = (wxDC *) 0 ;
16965 int arg2 ;
16966 wxPoint *arg3 = (wxPoint *) 0 ;
16967 int arg4 = (int) 0 ;
16968 int arg5 = (int) 0 ;
16969 int arg6 = (int) wxODDEVEN_RULE ;
16970 void *argp1 = 0 ;
16971 int res1 = 0 ;
16972 int val4 ;
16973 int ecode4 = 0 ;
16974 int val5 ;
16975 int ecode5 = 0 ;
16976 int val6 ;
16977 int ecode6 = 0 ;
16978 PyObject * obj0 = 0 ;
16979 PyObject * obj1 = 0 ;
16980 PyObject * obj2 = 0 ;
16981 PyObject * obj3 = 0 ;
16982 PyObject * obj4 = 0 ;
16983 char * kwnames[] = {
16984 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
16985 };
16986
16987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16989 if (!SWIG_IsOK(res1)) {
16990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
16991 }
16992 arg1 = reinterpret_cast< wxDC * >(argp1);
16993 {
16994 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16995 if (arg3 == NULL) SWIG_fail;
16996 }
16997 if (obj2) {
16998 ecode4 = SWIG_AsVal_int(obj2, &val4);
16999 if (!SWIG_IsOK(ecode4)) {
17000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17001 }
17002 arg4 = static_cast< int >(val4);
17003 }
17004 if (obj3) {
17005 ecode5 = SWIG_AsVal_int(obj3, &val5);
17006 if (!SWIG_IsOK(ecode5)) {
17007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17008 }
17009 arg5 = static_cast< int >(val5);
17010 }
17011 if (obj4) {
17012 ecode6 = SWIG_AsVal_int(obj4, &val6);
17013 if (!SWIG_IsOK(ecode6)) {
17014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17015 }
17016 arg6 = static_cast< int >(val6);
17017 }
17018 {
17019 PyThreadState* __tstate = wxPyBeginAllowThreads();
17020 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17021 wxPyEndAllowThreads(__tstate);
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
17024 resultobj = SWIG_Py_Void();
17025 {
17026 if (arg3) delete [] arg3;
17027 }
17028 return resultobj;
17029 fail:
17030 {
17031 if (arg3) delete [] arg3;
17032 }
17033 return NULL;
17034 }
17035
17036
17037 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17038 PyObject *resultobj = 0;
17039 wxDC *arg1 = (wxDC *) 0 ;
17040 wxString *arg2 = 0 ;
17041 wxRect *arg3 = 0 ;
17042 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17043 int arg5 = (int) -1 ;
17044 void *argp1 = 0 ;
17045 int res1 = 0 ;
17046 bool temp2 = false ;
17047 wxRect temp3 ;
17048 int val4 ;
17049 int ecode4 = 0 ;
17050 int val5 ;
17051 int ecode5 = 0 ;
17052 PyObject * obj0 = 0 ;
17053 PyObject * obj1 = 0 ;
17054 PyObject * obj2 = 0 ;
17055 PyObject * obj3 = 0 ;
17056 PyObject * obj4 = 0 ;
17057 char * kwnames[] = {
17058 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17059 };
17060
17061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17063 if (!SWIG_IsOK(res1)) {
17064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17065 }
17066 arg1 = reinterpret_cast< wxDC * >(argp1);
17067 {
17068 arg2 = wxString_in_helper(obj1);
17069 if (arg2 == NULL) SWIG_fail;
17070 temp2 = true;
17071 }
17072 {
17073 arg3 = &temp3;
17074 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17075 }
17076 if (obj3) {
17077 ecode4 = SWIG_AsVal_int(obj3, &val4);
17078 if (!SWIG_IsOK(ecode4)) {
17079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17080 }
17081 arg4 = static_cast< int >(val4);
17082 }
17083 if (obj4) {
17084 ecode5 = SWIG_AsVal_int(obj4, &val5);
17085 if (!SWIG_IsOK(ecode5)) {
17086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17087 }
17088 arg5 = static_cast< int >(val5);
17089 }
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17093 wxPyEndAllowThreads(__tstate);
17094 if (PyErr_Occurred()) SWIG_fail;
17095 }
17096 resultobj = SWIG_Py_Void();
17097 {
17098 if (temp2)
17099 delete arg2;
17100 }
17101 return resultobj;
17102 fail:
17103 {
17104 if (temp2)
17105 delete arg2;
17106 }
17107 return NULL;
17108 }
17109
17110
17111 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17112 PyObject *resultobj = 0;
17113 wxDC *arg1 = (wxDC *) 0 ;
17114 wxString *arg2 = 0 ;
17115 wxBitmap *arg3 = 0 ;
17116 wxRect *arg4 = 0 ;
17117 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17118 int arg6 = (int) -1 ;
17119 wxRect result;
17120 void *argp1 = 0 ;
17121 int res1 = 0 ;
17122 bool temp2 = false ;
17123 void *argp3 = 0 ;
17124 int res3 = 0 ;
17125 wxRect temp4 ;
17126 int val5 ;
17127 int ecode5 = 0 ;
17128 int val6 ;
17129 int ecode6 = 0 ;
17130 PyObject * obj0 = 0 ;
17131 PyObject * obj1 = 0 ;
17132 PyObject * obj2 = 0 ;
17133 PyObject * obj3 = 0 ;
17134 PyObject * obj4 = 0 ;
17135 PyObject * obj5 = 0 ;
17136 char * kwnames[] = {
17137 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17138 };
17139
17140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17142 if (!SWIG_IsOK(res1)) {
17143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17144 }
17145 arg1 = reinterpret_cast< wxDC * >(argp1);
17146 {
17147 arg2 = wxString_in_helper(obj1);
17148 if (arg2 == NULL) SWIG_fail;
17149 temp2 = true;
17150 }
17151 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17152 if (!SWIG_IsOK(res3)) {
17153 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17154 }
17155 if (!argp3) {
17156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17157 }
17158 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17159 {
17160 arg4 = &temp4;
17161 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17162 }
17163 if (obj4) {
17164 ecode5 = SWIG_AsVal_int(obj4, &val5);
17165 if (!SWIG_IsOK(ecode5)) {
17166 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17167 }
17168 arg5 = static_cast< int >(val5);
17169 }
17170 if (obj5) {
17171 ecode6 = SWIG_AsVal_int(obj5, &val6);
17172 if (!SWIG_IsOK(ecode6)) {
17173 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17174 }
17175 arg6 = static_cast< int >(val6);
17176 }
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17184 {
17185 if (temp2)
17186 delete arg2;
17187 }
17188 return resultobj;
17189 fail:
17190 {
17191 if (temp2)
17192 delete arg2;
17193 }
17194 return NULL;
17195 }
17196
17197
17198 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17199 PyObject *resultobj = 0;
17200 wxDC *arg1 = (wxDC *) 0 ;
17201 int arg2 ;
17202 wxPoint *arg3 = (wxPoint *) 0 ;
17203 void *argp1 = 0 ;
17204 int res1 = 0 ;
17205 PyObject * obj0 = 0 ;
17206 PyObject * obj1 = 0 ;
17207 char * kwnames[] = {
17208 (char *) "self",(char *) "points", NULL
17209 };
17210
17211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17213 if (!SWIG_IsOK(res1)) {
17214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17215 }
17216 arg1 = reinterpret_cast< wxDC * >(argp1);
17217 {
17218 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17219 if (arg3 == NULL) SWIG_fail;
17220 }
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 (arg1)->DrawSpline(arg2,arg3);
17224 wxPyEndAllowThreads(__tstate);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 resultobj = SWIG_Py_Void();
17228 {
17229 if (arg3) delete [] arg3;
17230 }
17231 return resultobj;
17232 fail:
17233 {
17234 if (arg3) delete [] arg3;
17235 }
17236 return NULL;
17237 }
17238
17239
17240 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17241 PyObject *resultobj = 0;
17242 wxDC *arg1 = (wxDC *) 0 ;
17243 void *argp1 = 0 ;
17244 int res1 = 0 ;
17245 PyObject *swig_obj[1] ;
17246
17247 if (!args) SWIG_fail;
17248 swig_obj[0] = args;
17249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17250 if (!SWIG_IsOK(res1)) {
17251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17252 }
17253 arg1 = reinterpret_cast< wxDC * >(argp1);
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
17256 (arg1)->Clear();
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 resultobj = SWIG_Py_Void();
17261 return resultobj;
17262 fail:
17263 return NULL;
17264 }
17265
17266
17267 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17268 PyObject *resultobj = 0;
17269 wxDC *arg1 = (wxDC *) 0 ;
17270 wxString *arg2 = 0 ;
17271 bool result;
17272 void *argp1 = 0 ;
17273 int res1 = 0 ;
17274 bool temp2 = false ;
17275 PyObject * obj0 = 0 ;
17276 PyObject * obj1 = 0 ;
17277 char * kwnames[] = {
17278 (char *) "self",(char *) "message", NULL
17279 };
17280
17281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17283 if (!SWIG_IsOK(res1)) {
17284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17285 }
17286 arg1 = reinterpret_cast< wxDC * >(argp1);
17287 {
17288 arg2 = wxString_in_helper(obj1);
17289 if (arg2 == NULL) SWIG_fail;
17290 temp2 = true;
17291 }
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 {
17299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17300 }
17301 {
17302 if (temp2)
17303 delete arg2;
17304 }
17305 return resultobj;
17306 fail:
17307 {
17308 if (temp2)
17309 delete arg2;
17310 }
17311 return NULL;
17312 }
17313
17314
17315 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17316 PyObject *resultobj = 0;
17317 wxDC *arg1 = (wxDC *) 0 ;
17318 void *argp1 = 0 ;
17319 int res1 = 0 ;
17320 PyObject *swig_obj[1] ;
17321
17322 if (!args) SWIG_fail;
17323 swig_obj[0] = args;
17324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17325 if (!SWIG_IsOK(res1)) {
17326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17327 }
17328 arg1 = reinterpret_cast< wxDC * >(argp1);
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 (arg1)->EndDoc();
17332 wxPyEndAllowThreads(__tstate);
17333 if (PyErr_Occurred()) SWIG_fail;
17334 }
17335 resultobj = SWIG_Py_Void();
17336 return resultobj;
17337 fail:
17338 return NULL;
17339 }
17340
17341
17342 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17343 PyObject *resultobj = 0;
17344 wxDC *arg1 = (wxDC *) 0 ;
17345 void *argp1 = 0 ;
17346 int res1 = 0 ;
17347 PyObject *swig_obj[1] ;
17348
17349 if (!args) SWIG_fail;
17350 swig_obj[0] = args;
17351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17352 if (!SWIG_IsOK(res1)) {
17353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17354 }
17355 arg1 = reinterpret_cast< wxDC * >(argp1);
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 (arg1)->StartPage();
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 resultobj = SWIG_Py_Void();
17363 return resultobj;
17364 fail:
17365 return NULL;
17366 }
17367
17368
17369 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17370 PyObject *resultobj = 0;
17371 wxDC *arg1 = (wxDC *) 0 ;
17372 void *argp1 = 0 ;
17373 int res1 = 0 ;
17374 PyObject *swig_obj[1] ;
17375
17376 if (!args) SWIG_fail;
17377 swig_obj[0] = args;
17378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17381 }
17382 arg1 = reinterpret_cast< wxDC * >(argp1);
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 (arg1)->EndPage();
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 resultobj = SWIG_Py_Void();
17390 return resultobj;
17391 fail:
17392 return NULL;
17393 }
17394
17395
17396 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17397 PyObject *resultobj = 0;
17398 wxDC *arg1 = (wxDC *) 0 ;
17399 wxFont *arg2 = 0 ;
17400 void *argp1 = 0 ;
17401 int res1 = 0 ;
17402 void *argp2 = 0 ;
17403 int res2 = 0 ;
17404 PyObject * obj0 = 0 ;
17405 PyObject * obj1 = 0 ;
17406 char * kwnames[] = {
17407 (char *) "self",(char *) "font", NULL
17408 };
17409
17410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17412 if (!SWIG_IsOK(res1)) {
17413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17414 }
17415 arg1 = reinterpret_cast< wxDC * >(argp1);
17416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17417 if (!SWIG_IsOK(res2)) {
17418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17419 }
17420 if (!argp2) {
17421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17422 }
17423 arg2 = reinterpret_cast< wxFont * >(argp2);
17424 {
17425 PyThreadState* __tstate = wxPyBeginAllowThreads();
17426 (arg1)->SetFont((wxFont const &)*arg2);
17427 wxPyEndAllowThreads(__tstate);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 resultobj = SWIG_Py_Void();
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj = 0;
17439 wxDC *arg1 = (wxDC *) 0 ;
17440 wxPen *arg2 = 0 ;
17441 void *argp1 = 0 ;
17442 int res1 = 0 ;
17443 void *argp2 = 0 ;
17444 int res2 = 0 ;
17445 PyObject * obj0 = 0 ;
17446 PyObject * obj1 = 0 ;
17447 char * kwnames[] = {
17448 (char *) "self",(char *) "pen", NULL
17449 };
17450
17451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17453 if (!SWIG_IsOK(res1)) {
17454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17455 }
17456 arg1 = reinterpret_cast< wxDC * >(argp1);
17457 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17458 if (!SWIG_IsOK(res2)) {
17459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17460 }
17461 if (!argp2) {
17462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17463 }
17464 arg2 = reinterpret_cast< wxPen * >(argp2);
17465 {
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 (arg1)->SetPen((wxPen const &)*arg2);
17468 wxPyEndAllowThreads(__tstate);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 }
17471 resultobj = SWIG_Py_Void();
17472 return resultobj;
17473 fail:
17474 return NULL;
17475 }
17476
17477
17478 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17479 PyObject *resultobj = 0;
17480 wxDC *arg1 = (wxDC *) 0 ;
17481 wxBrush *arg2 = 0 ;
17482 void *argp1 = 0 ;
17483 int res1 = 0 ;
17484 void *argp2 = 0 ;
17485 int res2 = 0 ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 char * kwnames[] = {
17489 (char *) "self",(char *) "brush", NULL
17490 };
17491
17492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17494 if (!SWIG_IsOK(res1)) {
17495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17496 }
17497 arg1 = reinterpret_cast< wxDC * >(argp1);
17498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17499 if (!SWIG_IsOK(res2)) {
17500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17501 }
17502 if (!argp2) {
17503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17504 }
17505 arg2 = reinterpret_cast< wxBrush * >(argp2);
17506 {
17507 PyThreadState* __tstate = wxPyBeginAllowThreads();
17508 (arg1)->SetBrush((wxBrush const &)*arg2);
17509 wxPyEndAllowThreads(__tstate);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 }
17512 resultobj = SWIG_Py_Void();
17513 return resultobj;
17514 fail:
17515 return NULL;
17516 }
17517
17518
17519 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj = 0;
17521 wxDC *arg1 = (wxDC *) 0 ;
17522 wxBrush *arg2 = 0 ;
17523 void *argp1 = 0 ;
17524 int res1 = 0 ;
17525 void *argp2 = 0 ;
17526 int res2 = 0 ;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 char * kwnames[] = {
17530 (char *) "self",(char *) "brush", NULL
17531 };
17532
17533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17535 if (!SWIG_IsOK(res1)) {
17536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17537 }
17538 arg1 = reinterpret_cast< wxDC * >(argp1);
17539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17540 if (!SWIG_IsOK(res2)) {
17541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17542 }
17543 if (!argp2) {
17544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17545 }
17546 arg2 = reinterpret_cast< wxBrush * >(argp2);
17547 {
17548 PyThreadState* __tstate = wxPyBeginAllowThreads();
17549 (arg1)->SetBackground((wxBrush const &)*arg2);
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 resultobj = SWIG_Py_Void();
17554 return resultobj;
17555 fail:
17556 return NULL;
17557 }
17558
17559
17560 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj = 0;
17562 wxDC *arg1 = (wxDC *) 0 ;
17563 int arg2 ;
17564 void *argp1 = 0 ;
17565 int res1 = 0 ;
17566 int val2 ;
17567 int ecode2 = 0 ;
17568 PyObject * obj0 = 0 ;
17569 PyObject * obj1 = 0 ;
17570 char * kwnames[] = {
17571 (char *) "self",(char *) "mode", NULL
17572 };
17573
17574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17576 if (!SWIG_IsOK(res1)) {
17577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17578 }
17579 arg1 = reinterpret_cast< wxDC * >(argp1);
17580 ecode2 = SWIG_AsVal_int(obj1, &val2);
17581 if (!SWIG_IsOK(ecode2)) {
17582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17583 }
17584 arg2 = static_cast< int >(val2);
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 (arg1)->SetBackgroundMode(arg2);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 resultobj = SWIG_Py_Void();
17592 return resultobj;
17593 fail:
17594 return NULL;
17595 }
17596
17597
17598 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17599 PyObject *resultobj = 0;
17600 wxDC *arg1 = (wxDC *) 0 ;
17601 wxPalette *arg2 = 0 ;
17602 void *argp1 = 0 ;
17603 int res1 = 0 ;
17604 void *argp2 = 0 ;
17605 int res2 = 0 ;
17606 PyObject * obj0 = 0 ;
17607 PyObject * obj1 = 0 ;
17608 char * kwnames[] = {
17609 (char *) "self",(char *) "palette", NULL
17610 };
17611
17612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17614 if (!SWIG_IsOK(res1)) {
17615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17616 }
17617 arg1 = reinterpret_cast< wxDC * >(argp1);
17618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17619 if (!SWIG_IsOK(res2)) {
17620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17621 }
17622 if (!argp2) {
17623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17624 }
17625 arg2 = reinterpret_cast< wxPalette * >(argp2);
17626 {
17627 PyThreadState* __tstate = wxPyBeginAllowThreads();
17628 (arg1)->SetPalette((wxPalette const &)*arg2);
17629 wxPyEndAllowThreads(__tstate);
17630 if (PyErr_Occurred()) SWIG_fail;
17631 }
17632 resultobj = SWIG_Py_Void();
17633 return resultobj;
17634 fail:
17635 return NULL;
17636 }
17637
17638
17639 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17640 PyObject *resultobj = 0;
17641 wxDC *arg1 = (wxDC *) 0 ;
17642 void *argp1 = 0 ;
17643 int res1 = 0 ;
17644 PyObject *swig_obj[1] ;
17645
17646 if (!args) SWIG_fail;
17647 swig_obj[0] = args;
17648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17649 if (!SWIG_IsOK(res1)) {
17650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17651 }
17652 arg1 = reinterpret_cast< wxDC * >(argp1);
17653 {
17654 PyThreadState* __tstate = wxPyBeginAllowThreads();
17655 (arg1)->DestroyClippingRegion();
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 resultobj = SWIG_Py_Void();
17660 return resultobj;
17661 fail:
17662 return NULL;
17663 }
17664
17665
17666 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17667 PyObject *resultobj = 0;
17668 wxDC *arg1 = (wxDC *) 0 ;
17669 int *arg2 = (int *) 0 ;
17670 int *arg3 = (int *) 0 ;
17671 int *arg4 = (int *) 0 ;
17672 int *arg5 = (int *) 0 ;
17673 void *argp1 = 0 ;
17674 int res1 = 0 ;
17675 int temp2 ;
17676 int res2 = SWIG_TMPOBJ ;
17677 int temp3 ;
17678 int res3 = SWIG_TMPOBJ ;
17679 int temp4 ;
17680 int res4 = SWIG_TMPOBJ ;
17681 int temp5 ;
17682 int res5 = SWIG_TMPOBJ ;
17683 PyObject *swig_obj[1] ;
17684
17685 arg2 = &temp2;
17686 arg3 = &temp3;
17687 arg4 = &temp4;
17688 arg5 = &temp5;
17689 if (!args) SWIG_fail;
17690 swig_obj[0] = args;
17691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17692 if (!SWIG_IsOK(res1)) {
17693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17694 }
17695 arg1 = reinterpret_cast< wxDC * >(argp1);
17696 {
17697 PyThreadState* __tstate = wxPyBeginAllowThreads();
17698 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17699 wxPyEndAllowThreads(__tstate);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 }
17702 resultobj = SWIG_Py_Void();
17703 if (SWIG_IsTmpObj(res2)) {
17704 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17705 } else {
17706 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17707 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17708 }
17709 if (SWIG_IsTmpObj(res3)) {
17710 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17711 } else {
17712 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17713 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17714 }
17715 if (SWIG_IsTmpObj(res4)) {
17716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17717 } else {
17718 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17720 }
17721 if (SWIG_IsTmpObj(res5)) {
17722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17723 } else {
17724 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17726 }
17727 return resultobj;
17728 fail:
17729 return NULL;
17730 }
17731
17732
17733 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17734 PyObject *resultobj = 0;
17735 wxDC *arg1 = (wxDC *) 0 ;
17736 wxRect result;
17737 void *argp1 = 0 ;
17738 int res1 = 0 ;
17739 PyObject *swig_obj[1] ;
17740
17741 if (!args) SWIG_fail;
17742 swig_obj[0] = args;
17743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17744 if (!SWIG_IsOK(res1)) {
17745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17746 }
17747 arg1 = reinterpret_cast< wxDC * >(argp1);
17748 {
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 result = wxDC_GetClippingRect(arg1);
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17755 return resultobj;
17756 fail:
17757 return NULL;
17758 }
17759
17760
17761 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17762 PyObject *resultobj = 0;
17763 wxDC *arg1 = (wxDC *) 0 ;
17764 int result;
17765 void *argp1 = 0 ;
17766 int res1 = 0 ;
17767 PyObject *swig_obj[1] ;
17768
17769 if (!args) SWIG_fail;
17770 swig_obj[0] = args;
17771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17772 if (!SWIG_IsOK(res1)) {
17773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17774 }
17775 arg1 = reinterpret_cast< wxDC * >(argp1);
17776 {
17777 PyThreadState* __tstate = wxPyBeginAllowThreads();
17778 result = (int)((wxDC const *)arg1)->GetCharHeight();
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 resultobj = SWIG_From_int(static_cast< int >(result));
17783 return resultobj;
17784 fail:
17785 return NULL;
17786 }
17787
17788
17789 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17790 PyObject *resultobj = 0;
17791 wxDC *arg1 = (wxDC *) 0 ;
17792 int result;
17793 void *argp1 = 0 ;
17794 int res1 = 0 ;
17795 PyObject *swig_obj[1] ;
17796
17797 if (!args) SWIG_fail;
17798 swig_obj[0] = args;
17799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17800 if (!SWIG_IsOK(res1)) {
17801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17802 }
17803 arg1 = reinterpret_cast< wxDC * >(argp1);
17804 {
17805 PyThreadState* __tstate = wxPyBeginAllowThreads();
17806 result = (int)((wxDC const *)arg1)->GetCharWidth();
17807 wxPyEndAllowThreads(__tstate);
17808 if (PyErr_Occurred()) SWIG_fail;
17809 }
17810 resultobj = SWIG_From_int(static_cast< int >(result));
17811 return resultobj;
17812 fail:
17813 return NULL;
17814 }
17815
17816
17817 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17818 PyObject *resultobj = 0;
17819 wxDC *arg1 = (wxDC *) 0 ;
17820 wxString *arg2 = 0 ;
17821 int *arg3 = (int *) 0 ;
17822 int *arg4 = (int *) 0 ;
17823 void *argp1 = 0 ;
17824 int res1 = 0 ;
17825 bool temp2 = false ;
17826 int temp3 ;
17827 int res3 = SWIG_TMPOBJ ;
17828 int temp4 ;
17829 int res4 = SWIG_TMPOBJ ;
17830 PyObject * obj0 = 0 ;
17831 PyObject * obj1 = 0 ;
17832 char * kwnames[] = {
17833 (char *) "self",(char *) "string", NULL
17834 };
17835
17836 arg3 = &temp3;
17837 arg4 = &temp4;
17838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17840 if (!SWIG_IsOK(res1)) {
17841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17842 }
17843 arg1 = reinterpret_cast< wxDC * >(argp1);
17844 {
17845 arg2 = wxString_in_helper(obj1);
17846 if (arg2 == NULL) SWIG_fail;
17847 temp2 = true;
17848 }
17849 {
17850 PyThreadState* __tstate = wxPyBeginAllowThreads();
17851 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17852 wxPyEndAllowThreads(__tstate);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 resultobj = SWIG_Py_Void();
17856 if (SWIG_IsTmpObj(res3)) {
17857 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17858 } else {
17859 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17860 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17861 }
17862 if (SWIG_IsTmpObj(res4)) {
17863 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17864 } else {
17865 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17866 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17867 }
17868 {
17869 if (temp2)
17870 delete arg2;
17871 }
17872 return resultobj;
17873 fail:
17874 {
17875 if (temp2)
17876 delete arg2;
17877 }
17878 return NULL;
17879 }
17880
17881
17882 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17883 PyObject *resultobj = 0;
17884 wxDC *arg1 = (wxDC *) 0 ;
17885 wxString *arg2 = 0 ;
17886 int *arg3 = (int *) 0 ;
17887 int *arg4 = (int *) 0 ;
17888 int *arg5 = (int *) 0 ;
17889 int *arg6 = (int *) 0 ;
17890 wxFont *arg7 = (wxFont *) NULL ;
17891 void *argp1 = 0 ;
17892 int res1 = 0 ;
17893 bool temp2 = false ;
17894 int temp3 ;
17895 int res3 = SWIG_TMPOBJ ;
17896 int temp4 ;
17897 int res4 = SWIG_TMPOBJ ;
17898 int temp5 ;
17899 int res5 = SWIG_TMPOBJ ;
17900 int temp6 ;
17901 int res6 = SWIG_TMPOBJ ;
17902 void *argp7 = 0 ;
17903 int res7 = 0 ;
17904 PyObject * obj0 = 0 ;
17905 PyObject * obj1 = 0 ;
17906 PyObject * obj2 = 0 ;
17907 char * kwnames[] = {
17908 (char *) "self",(char *) "string",(char *) "font", NULL
17909 };
17910
17911 arg3 = &temp3;
17912 arg4 = &temp4;
17913 arg5 = &temp5;
17914 arg6 = &temp6;
17915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17917 if (!SWIG_IsOK(res1)) {
17918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17919 }
17920 arg1 = reinterpret_cast< wxDC * >(argp1);
17921 {
17922 arg2 = wxString_in_helper(obj1);
17923 if (arg2 == NULL) SWIG_fail;
17924 temp2 = true;
17925 }
17926 if (obj2) {
17927 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17928 if (!SWIG_IsOK(res7)) {
17929 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17930 }
17931 arg7 = reinterpret_cast< wxFont * >(argp7);
17932 }
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_Py_Void();
17940 if (SWIG_IsTmpObj(res3)) {
17941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17942 } else {
17943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17945 }
17946 if (SWIG_IsTmpObj(res4)) {
17947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17948 } else {
17949 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17951 }
17952 if (SWIG_IsTmpObj(res5)) {
17953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17954 } else {
17955 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17957 }
17958 if (SWIG_IsTmpObj(res6)) {
17959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17960 } else {
17961 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17963 }
17964 {
17965 if (temp2)
17966 delete arg2;
17967 }
17968 return resultobj;
17969 fail:
17970 {
17971 if (temp2)
17972 delete arg2;
17973 }
17974 return NULL;
17975 }
17976
17977
17978 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj = 0;
17980 wxDC *arg1 = (wxDC *) 0 ;
17981 wxString *arg2 = 0 ;
17982 int *arg3 = (int *) 0 ;
17983 int *arg4 = (int *) 0 ;
17984 int *arg5 = (int *) 0 ;
17985 wxFont *arg6 = (wxFont *) NULL ;
17986 void *argp1 = 0 ;
17987 int res1 = 0 ;
17988 bool temp2 = false ;
17989 int temp3 ;
17990 int res3 = SWIG_TMPOBJ ;
17991 int temp4 ;
17992 int res4 = SWIG_TMPOBJ ;
17993 int temp5 ;
17994 int res5 = SWIG_TMPOBJ ;
17995 void *argp6 = 0 ;
17996 int res6 = 0 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18000 char * kwnames[] = {
18001 (char *) "self",(char *) "text",(char *) "font", NULL
18002 };
18003
18004 arg3 = &temp3;
18005 arg4 = &temp4;
18006 arg5 = &temp5;
18007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18009 if (!SWIG_IsOK(res1)) {
18010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18011 }
18012 arg1 = reinterpret_cast< wxDC * >(argp1);
18013 {
18014 arg2 = wxString_in_helper(obj1);
18015 if (arg2 == NULL) SWIG_fail;
18016 temp2 = true;
18017 }
18018 if (obj2) {
18019 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18020 if (!SWIG_IsOK(res6)) {
18021 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18022 }
18023 arg6 = reinterpret_cast< wxFont * >(argp6);
18024 }
18025 {
18026 PyThreadState* __tstate = wxPyBeginAllowThreads();
18027 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18028 wxPyEndAllowThreads(__tstate);
18029 if (PyErr_Occurred()) SWIG_fail;
18030 }
18031 resultobj = SWIG_Py_Void();
18032 if (SWIG_IsTmpObj(res3)) {
18033 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18034 } else {
18035 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18036 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18037 }
18038 if (SWIG_IsTmpObj(res4)) {
18039 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18040 } else {
18041 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18042 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18043 }
18044 if (SWIG_IsTmpObj(res5)) {
18045 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18046 } else {
18047 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18049 }
18050 {
18051 if (temp2)
18052 delete arg2;
18053 }
18054 return resultobj;
18055 fail:
18056 {
18057 if (temp2)
18058 delete arg2;
18059 }
18060 return NULL;
18061 }
18062
18063
18064 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18065 PyObject *resultobj = 0;
18066 wxDC *arg1 = (wxDC *) 0 ;
18067 wxString *arg2 = 0 ;
18068 wxArrayInt result;
18069 void *argp1 = 0 ;
18070 int res1 = 0 ;
18071 bool temp2 = false ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char * kwnames[] = {
18075 (char *) "self",(char *) "text", NULL
18076 };
18077
18078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18080 if (!SWIG_IsOK(res1)) {
18081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18082 }
18083 arg1 = reinterpret_cast< wxDC * >(argp1);
18084 {
18085 arg2 = wxString_in_helper(obj1);
18086 if (arg2 == NULL) SWIG_fail;
18087 temp2 = true;
18088 }
18089 {
18090 PyThreadState* __tstate = wxPyBeginAllowThreads();
18091 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 {
18096 resultobj = PyList_New(0);
18097 size_t idx;
18098 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18099 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18100 PyList_Append(resultobj, val);
18101 Py_DECREF(val);
18102 }
18103 }
18104 {
18105 if (temp2)
18106 delete arg2;
18107 }
18108 return resultobj;
18109 fail:
18110 {
18111 if (temp2)
18112 delete arg2;
18113 }
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18119 PyObject *resultobj = 0;
18120 wxDC *arg1 = (wxDC *) 0 ;
18121 wxSize result;
18122 void *argp1 = 0 ;
18123 int res1 = 0 ;
18124 PyObject *swig_obj[1] ;
18125
18126 if (!args) SWIG_fail;
18127 swig_obj[0] = args;
18128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18129 if (!SWIG_IsOK(res1)) {
18130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18131 }
18132 arg1 = reinterpret_cast< wxDC * >(argp1);
18133 {
18134 PyThreadState* __tstate = wxPyBeginAllowThreads();
18135 result = (arg1)->GetSize();
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18147 PyObject *resultobj = 0;
18148 wxDC *arg1 = (wxDC *) 0 ;
18149 int *arg2 = (int *) 0 ;
18150 int *arg3 = (int *) 0 ;
18151 void *argp1 = 0 ;
18152 int res1 = 0 ;
18153 int temp2 ;
18154 int res2 = SWIG_TMPOBJ ;
18155 int temp3 ;
18156 int res3 = SWIG_TMPOBJ ;
18157 PyObject *swig_obj[1] ;
18158
18159 arg2 = &temp2;
18160 arg3 = &temp3;
18161 if (!args) SWIG_fail;
18162 swig_obj[0] = args;
18163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18164 if (!SWIG_IsOK(res1)) {
18165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18166 }
18167 arg1 = reinterpret_cast< wxDC * >(argp1);
18168 {
18169 PyThreadState* __tstate = wxPyBeginAllowThreads();
18170 (arg1)->GetSize(arg2,arg3);
18171 wxPyEndAllowThreads(__tstate);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 }
18174 resultobj = SWIG_Py_Void();
18175 if (SWIG_IsTmpObj(res2)) {
18176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18177 } else {
18178 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18180 }
18181 if (SWIG_IsTmpObj(res3)) {
18182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18183 } else {
18184 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18186 }
18187 return resultobj;
18188 fail:
18189 return NULL;
18190 }
18191
18192
18193 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18194 PyObject *resultobj = 0;
18195 wxDC *arg1 = (wxDC *) 0 ;
18196 wxSize result;
18197 void *argp1 = 0 ;
18198 int res1 = 0 ;
18199 PyObject *swig_obj[1] ;
18200
18201 if (!args) SWIG_fail;
18202 swig_obj[0] = args;
18203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18204 if (!SWIG_IsOK(res1)) {
18205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18206 }
18207 arg1 = reinterpret_cast< wxDC * >(argp1);
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 result = ((wxDC const *)arg1)->GetSizeMM();
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18215 return resultobj;
18216 fail:
18217 return NULL;
18218 }
18219
18220
18221 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18222 PyObject *resultobj = 0;
18223 wxDC *arg1 = (wxDC *) 0 ;
18224 int *arg2 = (int *) 0 ;
18225 int *arg3 = (int *) 0 ;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 int temp2 ;
18229 int res2 = SWIG_TMPOBJ ;
18230 int temp3 ;
18231 int res3 = SWIG_TMPOBJ ;
18232 PyObject *swig_obj[1] ;
18233
18234 arg2 = &temp2;
18235 arg3 = &temp3;
18236 if (!args) SWIG_fail;
18237 swig_obj[0] = args;
18238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18239 if (!SWIG_IsOK(res1)) {
18240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18241 }
18242 arg1 = reinterpret_cast< wxDC * >(argp1);
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_Py_Void();
18250 if (SWIG_IsTmpObj(res2)) {
18251 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18252 } else {
18253 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18254 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18255 }
18256 if (SWIG_IsTmpObj(res3)) {
18257 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18258 } else {
18259 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18260 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18261 }
18262 return resultobj;
18263 fail:
18264 return NULL;
18265 }
18266
18267
18268 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18269 PyObject *resultobj = 0;
18270 wxDC *arg1 = (wxDC *) 0 ;
18271 int arg2 ;
18272 int result;
18273 void *argp1 = 0 ;
18274 int res1 = 0 ;
18275 int val2 ;
18276 int ecode2 = 0 ;
18277 PyObject * obj0 = 0 ;
18278 PyObject * obj1 = 0 ;
18279 char * kwnames[] = {
18280 (char *) "self",(char *) "x", NULL
18281 };
18282
18283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18285 if (!SWIG_IsOK(res1)) {
18286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18287 }
18288 arg1 = reinterpret_cast< wxDC * >(argp1);
18289 ecode2 = SWIG_AsVal_int(obj1, &val2);
18290 if (!SWIG_IsOK(ecode2)) {
18291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18292 }
18293 arg2 = static_cast< int >(val2);
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18297 wxPyEndAllowThreads(__tstate);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
18300 resultobj = SWIG_From_int(static_cast< int >(result));
18301 return resultobj;
18302 fail:
18303 return NULL;
18304 }
18305
18306
18307 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18308 PyObject *resultobj = 0;
18309 wxDC *arg1 = (wxDC *) 0 ;
18310 int arg2 ;
18311 int result;
18312 void *argp1 = 0 ;
18313 int res1 = 0 ;
18314 int val2 ;
18315 int ecode2 = 0 ;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "y", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18336 wxPyEndAllowThreads(__tstate);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 }
18339 resultobj = SWIG_From_int(static_cast< int >(result));
18340 return resultobj;
18341 fail:
18342 return NULL;
18343 }
18344
18345
18346 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18347 PyObject *resultobj = 0;
18348 wxDC *arg1 = (wxDC *) 0 ;
18349 int arg2 ;
18350 int result;
18351 void *argp1 = 0 ;
18352 int res1 = 0 ;
18353 int val2 ;
18354 int ecode2 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 char * kwnames[] = {
18358 (char *) "self",(char *) "x", NULL
18359 };
18360
18361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18363 if (!SWIG_IsOK(res1)) {
18364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18365 }
18366 arg1 = reinterpret_cast< wxDC * >(argp1);
18367 ecode2 = SWIG_AsVal_int(obj1, &val2);
18368 if (!SWIG_IsOK(ecode2)) {
18369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18370 }
18371 arg2 = static_cast< int >(val2);
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 resultobj = SWIG_From_int(static_cast< int >(result));
18379 return resultobj;
18380 fail:
18381 return NULL;
18382 }
18383
18384
18385 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18386 PyObject *resultobj = 0;
18387 wxDC *arg1 = (wxDC *) 0 ;
18388 int arg2 ;
18389 int result;
18390 void *argp1 = 0 ;
18391 int res1 = 0 ;
18392 int val2 ;
18393 int ecode2 = 0 ;
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 char * kwnames[] = {
18397 (char *) "self",(char *) "y", NULL
18398 };
18399
18400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18402 if (!SWIG_IsOK(res1)) {
18403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18404 }
18405 arg1 = reinterpret_cast< wxDC * >(argp1);
18406 ecode2 = SWIG_AsVal_int(obj1, &val2);
18407 if (!SWIG_IsOK(ecode2)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18409 }
18410 arg2 = static_cast< int >(val2);
18411 {
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_From_int(static_cast< int >(result));
18418 return resultobj;
18419 fail:
18420 return NULL;
18421 }
18422
18423
18424 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj = 0;
18426 wxDC *arg1 = (wxDC *) 0 ;
18427 int arg2 ;
18428 int result;
18429 void *argp1 = 0 ;
18430 int res1 = 0 ;
18431 int val2 ;
18432 int ecode2 = 0 ;
18433 PyObject * obj0 = 0 ;
18434 PyObject * obj1 = 0 ;
18435 char * kwnames[] = {
18436 (char *) "self",(char *) "x", NULL
18437 };
18438
18439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18441 if (!SWIG_IsOK(res1)) {
18442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18443 }
18444 arg1 = reinterpret_cast< wxDC * >(argp1);
18445 ecode2 = SWIG_AsVal_int(obj1, &val2);
18446 if (!SWIG_IsOK(ecode2)) {
18447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18448 }
18449 arg2 = static_cast< int >(val2);
18450 {
18451 PyThreadState* __tstate = wxPyBeginAllowThreads();
18452 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18453 wxPyEndAllowThreads(__tstate);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 }
18456 resultobj = SWIG_From_int(static_cast< int >(result));
18457 return resultobj;
18458 fail:
18459 return NULL;
18460 }
18461
18462
18463 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18464 PyObject *resultobj = 0;
18465 wxDC *arg1 = (wxDC *) 0 ;
18466 int arg2 ;
18467 int result;
18468 void *argp1 = 0 ;
18469 int res1 = 0 ;
18470 int val2 ;
18471 int ecode2 = 0 ;
18472 PyObject * obj0 = 0 ;
18473 PyObject * obj1 = 0 ;
18474 char * kwnames[] = {
18475 (char *) "self",(char *) "y", NULL
18476 };
18477
18478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18482 }
18483 arg1 = reinterpret_cast< wxDC * >(argp1);
18484 ecode2 = SWIG_AsVal_int(obj1, &val2);
18485 if (!SWIG_IsOK(ecode2)) {
18486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18487 }
18488 arg2 = static_cast< int >(val2);
18489 {
18490 PyThreadState* __tstate = wxPyBeginAllowThreads();
18491 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 resultobj = SWIG_From_int(static_cast< int >(result));
18496 return resultobj;
18497 fail:
18498 return NULL;
18499 }
18500
18501
18502 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18503 PyObject *resultobj = 0;
18504 wxDC *arg1 = (wxDC *) 0 ;
18505 int arg2 ;
18506 int result;
18507 void *argp1 = 0 ;
18508 int res1 = 0 ;
18509 int val2 ;
18510 int ecode2 = 0 ;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 char * kwnames[] = {
18514 (char *) "self",(char *) "x", NULL
18515 };
18516
18517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18521 }
18522 arg1 = reinterpret_cast< wxDC * >(argp1);
18523 ecode2 = SWIG_AsVal_int(obj1, &val2);
18524 if (!SWIG_IsOK(ecode2)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18526 }
18527 arg2 = static_cast< int >(val2);
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_From_int(static_cast< int >(result));
18535 return resultobj;
18536 fail:
18537 return NULL;
18538 }
18539
18540
18541 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 int arg2 ;
18545 int result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 int val2 ;
18549 int ecode2 = 0 ;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 char * kwnames[] = {
18553 (char *) "self",(char *) "y", NULL
18554 };
18555
18556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18558 if (!SWIG_IsOK(res1)) {
18559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18560 }
18561 arg1 = reinterpret_cast< wxDC * >(argp1);
18562 ecode2 = SWIG_AsVal_int(obj1, &val2);
18563 if (!SWIG_IsOK(ecode2)) {
18564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18565 }
18566 arg2 = static_cast< int >(val2);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_From_int(static_cast< int >(result));
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18581 PyObject *resultobj = 0;
18582 wxDC *arg1 = (wxDC *) 0 ;
18583 bool result;
18584 void *argp1 = 0 ;
18585 int res1 = 0 ;
18586 PyObject *swig_obj[1] ;
18587
18588 if (!args) SWIG_fail;
18589 swig_obj[0] = args;
18590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18591 if (!SWIG_IsOK(res1)) {
18592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18593 }
18594 arg1 = reinterpret_cast< wxDC * >(argp1);
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 {
18602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18603 }
18604 return resultobj;
18605 fail:
18606 return NULL;
18607 }
18608
18609
18610 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18611 PyObject *resultobj = 0;
18612 wxDC *arg1 = (wxDC *) 0 ;
18613 bool result;
18614 void *argp1 = 0 ;
18615 int res1 = 0 ;
18616 PyObject *swig_obj[1] ;
18617
18618 if (!args) SWIG_fail;
18619 swig_obj[0] = args;
18620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18621 if (!SWIG_IsOK(res1)) {
18622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18623 }
18624 arg1 = reinterpret_cast< wxDC * >(argp1);
18625 {
18626 PyThreadState* __tstate = wxPyBeginAllowThreads();
18627 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 {
18632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18633 }
18634 return resultobj;
18635 fail:
18636 return NULL;
18637 }
18638
18639
18640 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18641 PyObject *resultobj = 0;
18642 wxDC *arg1 = (wxDC *) 0 ;
18643 int result;
18644 void *argp1 = 0 ;
18645 int res1 = 0 ;
18646 PyObject *swig_obj[1] ;
18647
18648 if (!args) SWIG_fail;
18649 swig_obj[0] = args;
18650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18651 if (!SWIG_IsOK(res1)) {
18652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18653 }
18654 arg1 = reinterpret_cast< wxDC * >(argp1);
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 result = (int)((wxDC const *)arg1)->GetDepth();
18658 wxPyEndAllowThreads(__tstate);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 resultobj = SWIG_From_int(static_cast< int >(result));
18662 return resultobj;
18663 fail:
18664 return NULL;
18665 }
18666
18667
18668 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18669 PyObject *resultobj = 0;
18670 wxDC *arg1 = (wxDC *) 0 ;
18671 wxSize result;
18672 void *argp1 = 0 ;
18673 int res1 = 0 ;
18674 PyObject *swig_obj[1] ;
18675
18676 if (!args) SWIG_fail;
18677 swig_obj[0] = args;
18678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18679 if (!SWIG_IsOK(res1)) {
18680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18681 }
18682 arg1 = reinterpret_cast< wxDC * >(argp1);
18683 {
18684 PyThreadState* __tstate = wxPyBeginAllowThreads();
18685 result = ((wxDC const *)arg1)->GetPPI();
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18690 return resultobj;
18691 fail:
18692 return NULL;
18693 }
18694
18695
18696 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18697 PyObject *resultobj = 0;
18698 wxDC *arg1 = (wxDC *) 0 ;
18699 bool result;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 PyObject *swig_obj[1] ;
18703
18704 if (!args) SWIG_fail;
18705 swig_obj[0] = args;
18706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18707 if (!SWIG_IsOK(res1)) {
18708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18709 }
18710 arg1 = reinterpret_cast< wxDC * >(argp1);
18711 {
18712 PyThreadState* __tstate = wxPyBeginAllowThreads();
18713 result = (bool)((wxDC const *)arg1)->Ok();
18714 wxPyEndAllowThreads(__tstate);
18715 if (PyErr_Occurred()) SWIG_fail;
18716 }
18717 {
18718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18719 }
18720 return resultobj;
18721 fail:
18722 return NULL;
18723 }
18724
18725
18726 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18727 PyObject *resultobj = 0;
18728 wxDC *arg1 = (wxDC *) 0 ;
18729 int result;
18730 void *argp1 = 0 ;
18731 int res1 = 0 ;
18732 PyObject *swig_obj[1] ;
18733
18734 if (!args) SWIG_fail;
18735 swig_obj[0] = args;
18736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18737 if (!SWIG_IsOK(res1)) {
18738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18739 }
18740 arg1 = reinterpret_cast< wxDC * >(argp1);
18741 {
18742 PyThreadState* __tstate = wxPyBeginAllowThreads();
18743 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18744 wxPyEndAllowThreads(__tstate);
18745 if (PyErr_Occurred()) SWIG_fail;
18746 }
18747 resultobj = SWIG_From_int(static_cast< int >(result));
18748 return resultobj;
18749 fail:
18750 return NULL;
18751 }
18752
18753
18754 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18755 PyObject *resultobj = 0;
18756 wxDC *arg1 = (wxDC *) 0 ;
18757 wxBrush *result = 0 ;
18758 void *argp1 = 0 ;
18759 int res1 = 0 ;
18760 PyObject *swig_obj[1] ;
18761
18762 if (!args) SWIG_fail;
18763 swig_obj[0] = args;
18764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18765 if (!SWIG_IsOK(res1)) {
18766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18767 }
18768 arg1 = reinterpret_cast< wxDC * >(argp1);
18769 {
18770 PyThreadState* __tstate = wxPyBeginAllowThreads();
18771 {
18772 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18773 result = (wxBrush *) &_result_ref;
18774 }
18775 wxPyEndAllowThreads(__tstate);
18776 if (PyErr_Occurred()) SWIG_fail;
18777 }
18778 {
18779 wxBrush* resultptr = new wxBrush(*result);
18780 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18781 }
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18789 PyObject *resultobj = 0;
18790 wxDC *arg1 = (wxDC *) 0 ;
18791 wxBrush *result = 0 ;
18792 void *argp1 = 0 ;
18793 int res1 = 0 ;
18794 PyObject *swig_obj[1] ;
18795
18796 if (!args) SWIG_fail;
18797 swig_obj[0] = args;
18798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18799 if (!SWIG_IsOK(res1)) {
18800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18801 }
18802 arg1 = reinterpret_cast< wxDC * >(argp1);
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 {
18806 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18807 result = (wxBrush *) &_result_ref;
18808 }
18809 wxPyEndAllowThreads(__tstate);
18810 if (PyErr_Occurred()) SWIG_fail;
18811 }
18812 {
18813 wxBrush* resultptr = new wxBrush(*result);
18814 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18815 }
18816 return resultobj;
18817 fail:
18818 return NULL;
18819 }
18820
18821
18822 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18823 PyObject *resultobj = 0;
18824 wxDC *arg1 = (wxDC *) 0 ;
18825 wxFont *result = 0 ;
18826 void *argp1 = 0 ;
18827 int res1 = 0 ;
18828 PyObject *swig_obj[1] ;
18829
18830 if (!args) SWIG_fail;
18831 swig_obj[0] = args;
18832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18833 if (!SWIG_IsOK(res1)) {
18834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18835 }
18836 arg1 = reinterpret_cast< wxDC * >(argp1);
18837 {
18838 PyThreadState* __tstate = wxPyBeginAllowThreads();
18839 {
18840 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18841 result = (wxFont *) &_result_ref;
18842 }
18843 wxPyEndAllowThreads(__tstate);
18844 if (PyErr_Occurred()) SWIG_fail;
18845 }
18846 {
18847 wxFont* resultptr = new wxFont(*result);
18848 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18849 }
18850 return resultobj;
18851 fail:
18852 return NULL;
18853 }
18854
18855
18856 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18857 PyObject *resultobj = 0;
18858 wxDC *arg1 = (wxDC *) 0 ;
18859 wxPen *result = 0 ;
18860 void *argp1 = 0 ;
18861 int res1 = 0 ;
18862 PyObject *swig_obj[1] ;
18863
18864 if (!args) SWIG_fail;
18865 swig_obj[0] = args;
18866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18867 if (!SWIG_IsOK(res1)) {
18868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18869 }
18870 arg1 = reinterpret_cast< wxDC * >(argp1);
18871 {
18872 PyThreadState* __tstate = wxPyBeginAllowThreads();
18873 {
18874 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18875 result = (wxPen *) &_result_ref;
18876 }
18877 wxPyEndAllowThreads(__tstate);
18878 if (PyErr_Occurred()) SWIG_fail;
18879 }
18880 {
18881 wxPen* resultptr = new wxPen(*result);
18882 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18883 }
18884 return resultobj;
18885 fail:
18886 return NULL;
18887 }
18888
18889
18890 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18891 PyObject *resultobj = 0;
18892 wxDC *arg1 = (wxDC *) 0 ;
18893 wxColour *result = 0 ;
18894 void *argp1 = 0 ;
18895 int res1 = 0 ;
18896 PyObject *swig_obj[1] ;
18897
18898 if (!args) SWIG_fail;
18899 swig_obj[0] = args;
18900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18901 if (!SWIG_IsOK(res1)) {
18902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18903 }
18904 arg1 = reinterpret_cast< wxDC * >(argp1);
18905 {
18906 PyThreadState* __tstate = wxPyBeginAllowThreads();
18907 {
18908 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18909 result = (wxColour *) &_result_ref;
18910 }
18911 wxPyEndAllowThreads(__tstate);
18912 if (PyErr_Occurred()) SWIG_fail;
18913 }
18914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18915 return resultobj;
18916 fail:
18917 return NULL;
18918 }
18919
18920
18921 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18922 PyObject *resultobj = 0;
18923 wxDC *arg1 = (wxDC *) 0 ;
18924 wxColour *result = 0 ;
18925 void *argp1 = 0 ;
18926 int res1 = 0 ;
18927 PyObject *swig_obj[1] ;
18928
18929 if (!args) SWIG_fail;
18930 swig_obj[0] = args;
18931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18932 if (!SWIG_IsOK(res1)) {
18933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18934 }
18935 arg1 = reinterpret_cast< wxDC * >(argp1);
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 {
18939 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18940 result = (wxColour *) &_result_ref;
18941 }
18942 wxPyEndAllowThreads(__tstate);
18943 if (PyErr_Occurred()) SWIG_fail;
18944 }
18945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18946 return resultobj;
18947 fail:
18948 return NULL;
18949 }
18950
18951
18952 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18953 PyObject *resultobj = 0;
18954 wxDC *arg1 = (wxDC *) 0 ;
18955 wxColour *arg2 = 0 ;
18956 void *argp1 = 0 ;
18957 int res1 = 0 ;
18958 wxColour temp2 ;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char * kwnames[] = {
18962 (char *) "self",(char *) "colour", NULL
18963 };
18964
18965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18969 }
18970 arg1 = reinterpret_cast< wxDC * >(argp1);
18971 {
18972 arg2 = &temp2;
18973 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18974 }
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 (arg1)->SetTextForeground((wxColour const &)*arg2);
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 resultobj = SWIG_Py_Void();
18982 return resultobj;
18983 fail:
18984 return NULL;
18985 }
18986
18987
18988 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj = 0;
18990 wxDC *arg1 = (wxDC *) 0 ;
18991 wxColour *arg2 = 0 ;
18992 void *argp1 = 0 ;
18993 int res1 = 0 ;
18994 wxColour temp2 ;
18995 PyObject * obj0 = 0 ;
18996 PyObject * obj1 = 0 ;
18997 char * kwnames[] = {
18998 (char *) "self",(char *) "colour", NULL
18999 };
19000
19001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19003 if (!SWIG_IsOK(res1)) {
19004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19005 }
19006 arg1 = reinterpret_cast< wxDC * >(argp1);
19007 {
19008 arg2 = &temp2;
19009 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19010 }
19011 {
19012 PyThreadState* __tstate = wxPyBeginAllowThreads();
19013 (arg1)->SetTextBackground((wxColour const &)*arg2);
19014 wxPyEndAllowThreads(__tstate);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 resultobj = SWIG_Py_Void();
19018 return resultobj;
19019 fail:
19020 return NULL;
19021 }
19022
19023
19024 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19025 PyObject *resultobj = 0;
19026 wxDC *arg1 = (wxDC *) 0 ;
19027 int result;
19028 void *argp1 = 0 ;
19029 int res1 = 0 ;
19030 PyObject *swig_obj[1] ;
19031
19032 if (!args) SWIG_fail;
19033 swig_obj[0] = args;
19034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19035 if (!SWIG_IsOK(res1)) {
19036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19037 }
19038 arg1 = reinterpret_cast< wxDC * >(argp1);
19039 {
19040 PyThreadState* __tstate = wxPyBeginAllowThreads();
19041 result = (int)((wxDC const *)arg1)->GetMapMode();
19042 wxPyEndAllowThreads(__tstate);
19043 if (PyErr_Occurred()) SWIG_fail;
19044 }
19045 resultobj = SWIG_From_int(static_cast< int >(result));
19046 return resultobj;
19047 fail:
19048 return NULL;
19049 }
19050
19051
19052 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19053 PyObject *resultobj = 0;
19054 wxDC *arg1 = (wxDC *) 0 ;
19055 int arg2 ;
19056 void *argp1 = 0 ;
19057 int res1 = 0 ;
19058 int val2 ;
19059 int ecode2 = 0 ;
19060 PyObject * obj0 = 0 ;
19061 PyObject * obj1 = 0 ;
19062 char * kwnames[] = {
19063 (char *) "self",(char *) "mode", NULL
19064 };
19065
19066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19068 if (!SWIG_IsOK(res1)) {
19069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19070 }
19071 arg1 = reinterpret_cast< wxDC * >(argp1);
19072 ecode2 = SWIG_AsVal_int(obj1, &val2);
19073 if (!SWIG_IsOK(ecode2)) {
19074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19075 }
19076 arg2 = static_cast< int >(val2);
19077 {
19078 PyThreadState* __tstate = wxPyBeginAllowThreads();
19079 (arg1)->SetMapMode(arg2);
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 resultobj = SWIG_Py_Void();
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19091 PyObject *resultobj = 0;
19092 wxDC *arg1 = (wxDC *) 0 ;
19093 double *arg2 = (double *) 0 ;
19094 double *arg3 = (double *) 0 ;
19095 void *argp1 = 0 ;
19096 int res1 = 0 ;
19097 double temp2 ;
19098 int res2 = SWIG_TMPOBJ ;
19099 double temp3 ;
19100 int res3 = SWIG_TMPOBJ ;
19101 PyObject *swig_obj[1] ;
19102
19103 arg2 = &temp2;
19104 arg3 = &temp3;
19105 if (!args) SWIG_fail;
19106 swig_obj[0] = args;
19107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19110 }
19111 arg1 = reinterpret_cast< wxDC * >(argp1);
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 resultobj = SWIG_Py_Void();
19119 if (SWIG_IsTmpObj(res2)) {
19120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19121 } else {
19122 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19124 }
19125 if (SWIG_IsTmpObj(res3)) {
19126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19127 } else {
19128 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19130 }
19131 return resultobj;
19132 fail:
19133 return NULL;
19134 }
19135
19136
19137 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19138 PyObject *resultobj = 0;
19139 wxDC *arg1 = (wxDC *) 0 ;
19140 double arg2 ;
19141 double arg3 ;
19142 void *argp1 = 0 ;
19143 int res1 = 0 ;
19144 double val2 ;
19145 int ecode2 = 0 ;
19146 double val3 ;
19147 int ecode3 = 0 ;
19148 PyObject * obj0 = 0 ;
19149 PyObject * obj1 = 0 ;
19150 PyObject * obj2 = 0 ;
19151 char * kwnames[] = {
19152 (char *) "self",(char *) "x",(char *) "y", NULL
19153 };
19154
19155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19157 if (!SWIG_IsOK(res1)) {
19158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19159 }
19160 arg1 = reinterpret_cast< wxDC * >(argp1);
19161 ecode2 = SWIG_AsVal_double(obj1, &val2);
19162 if (!SWIG_IsOK(ecode2)) {
19163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19164 }
19165 arg2 = static_cast< double >(val2);
19166 ecode3 = SWIG_AsVal_double(obj2, &val3);
19167 if (!SWIG_IsOK(ecode3)) {
19168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19169 }
19170 arg3 = static_cast< double >(val3);
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 (arg1)->SetUserScale(arg2,arg3);
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_Py_Void();
19178 return resultobj;
19179 fail:
19180 return NULL;
19181 }
19182
19183
19184 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 double *arg2 = (double *) 0 ;
19188 double *arg3 = (double *) 0 ;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 double temp2 ;
19192 int res2 = SWIG_TMPOBJ ;
19193 double temp3 ;
19194 int res3 = SWIG_TMPOBJ ;
19195 PyObject *swig_obj[1] ;
19196
19197 arg2 = &temp2;
19198 arg3 = &temp3;
19199 if (!args) SWIG_fail;
19200 swig_obj[0] = args;
19201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19204 }
19205 arg1 = reinterpret_cast< wxDC * >(argp1);
19206 {
19207 PyThreadState* __tstate = wxPyBeginAllowThreads();
19208 (arg1)->GetLogicalScale(arg2,arg3);
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 resultobj = SWIG_Py_Void();
19213 if (SWIG_IsTmpObj(res2)) {
19214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19215 } else {
19216 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19218 }
19219 if (SWIG_IsTmpObj(res3)) {
19220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19221 } else {
19222 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19232 PyObject *resultobj = 0;
19233 wxDC *arg1 = (wxDC *) 0 ;
19234 double arg2 ;
19235 double arg3 ;
19236 void *argp1 = 0 ;
19237 int res1 = 0 ;
19238 double val2 ;
19239 int ecode2 = 0 ;
19240 double val3 ;
19241 int ecode3 = 0 ;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 PyObject * obj2 = 0 ;
19245 char * kwnames[] = {
19246 (char *) "self",(char *) "x",(char *) "y", NULL
19247 };
19248
19249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19251 if (!SWIG_IsOK(res1)) {
19252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19253 }
19254 arg1 = reinterpret_cast< wxDC * >(argp1);
19255 ecode2 = SWIG_AsVal_double(obj1, &val2);
19256 if (!SWIG_IsOK(ecode2)) {
19257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19258 }
19259 arg2 = static_cast< double >(val2);
19260 ecode3 = SWIG_AsVal_double(obj2, &val3);
19261 if (!SWIG_IsOK(ecode3)) {
19262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19263 }
19264 arg3 = static_cast< double >(val3);
19265 {
19266 PyThreadState* __tstate = wxPyBeginAllowThreads();
19267 (arg1)->SetLogicalScale(arg2,arg3);
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 resultobj = SWIG_Py_Void();
19272 return resultobj;
19273 fail:
19274 return NULL;
19275 }
19276
19277
19278 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19279 PyObject *resultobj = 0;
19280 wxDC *arg1 = (wxDC *) 0 ;
19281 wxPoint result;
19282 void *argp1 = 0 ;
19283 int res1 = 0 ;
19284 PyObject *swig_obj[1] ;
19285
19286 if (!args) SWIG_fail;
19287 swig_obj[0] = args;
19288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19289 if (!SWIG_IsOK(res1)) {
19290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19291 }
19292 arg1 = reinterpret_cast< wxDC * >(argp1);
19293 {
19294 PyThreadState* __tstate = wxPyBeginAllowThreads();
19295 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19296 wxPyEndAllowThreads(__tstate);
19297 if (PyErr_Occurred()) SWIG_fail;
19298 }
19299 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19300 return resultobj;
19301 fail:
19302 return NULL;
19303 }
19304
19305
19306 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19307 PyObject *resultobj = 0;
19308 wxDC *arg1 = (wxDC *) 0 ;
19309 int *arg2 = (int *) 0 ;
19310 int *arg3 = (int *) 0 ;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 int temp2 ;
19314 int res2 = SWIG_TMPOBJ ;
19315 int temp3 ;
19316 int res3 = SWIG_TMPOBJ ;
19317 PyObject *swig_obj[1] ;
19318
19319 arg2 = &temp2;
19320 arg3 = &temp3;
19321 if (!args) SWIG_fail;
19322 swig_obj[0] = args;
19323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19324 if (!SWIG_IsOK(res1)) {
19325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19326 }
19327 arg1 = reinterpret_cast< wxDC * >(argp1);
19328 {
19329 PyThreadState* __tstate = wxPyBeginAllowThreads();
19330 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19331 wxPyEndAllowThreads(__tstate);
19332 if (PyErr_Occurred()) SWIG_fail;
19333 }
19334 resultobj = SWIG_Py_Void();
19335 if (SWIG_IsTmpObj(res2)) {
19336 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19337 } else {
19338 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19339 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19340 }
19341 if (SWIG_IsTmpObj(res3)) {
19342 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19343 } else {
19344 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19345 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19346 }
19347 return resultobj;
19348 fail:
19349 return NULL;
19350 }
19351
19352
19353 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 int arg2 ;
19357 int arg3 ;
19358 void *argp1 = 0 ;
19359 int res1 = 0 ;
19360 int val2 ;
19361 int ecode2 = 0 ;
19362 int val3 ;
19363 int ecode3 = 0 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 PyObject * obj2 = 0 ;
19367 char * kwnames[] = {
19368 (char *) "self",(char *) "x",(char *) "y", NULL
19369 };
19370
19371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19373 if (!SWIG_IsOK(res1)) {
19374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19375 }
19376 arg1 = reinterpret_cast< wxDC * >(argp1);
19377 ecode2 = SWIG_AsVal_int(obj1, &val2);
19378 if (!SWIG_IsOK(ecode2)) {
19379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19380 }
19381 arg2 = static_cast< int >(val2);
19382 ecode3 = SWIG_AsVal_int(obj2, &val3);
19383 if (!SWIG_IsOK(ecode3)) {
19384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19385 }
19386 arg3 = static_cast< int >(val3);
19387 {
19388 PyThreadState* __tstate = wxPyBeginAllowThreads();
19389 (arg1)->SetLogicalOrigin(arg2,arg3);
19390 wxPyEndAllowThreads(__tstate);
19391 if (PyErr_Occurred()) SWIG_fail;
19392 }
19393 resultobj = SWIG_Py_Void();
19394 return resultobj;
19395 fail:
19396 return NULL;
19397 }
19398
19399
19400 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj = 0;
19402 wxDC *arg1 = (wxDC *) 0 ;
19403 wxPoint *arg2 = 0 ;
19404 void *argp1 = 0 ;
19405 int res1 = 0 ;
19406 wxPoint temp2 ;
19407 PyObject * obj0 = 0 ;
19408 PyObject * obj1 = 0 ;
19409 char * kwnames[] = {
19410 (char *) "self",(char *) "point", NULL
19411 };
19412
19413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19417 }
19418 arg1 = reinterpret_cast< wxDC * >(argp1);
19419 {
19420 arg2 = &temp2;
19421 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19437 PyObject *resultobj = 0;
19438 wxDC *arg1 = (wxDC *) 0 ;
19439 wxPoint result;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 PyObject *swig_obj[1] ;
19443
19444 if (!args) SWIG_fail;
19445 swig_obj[0] = args;
19446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19449 }
19450 arg1 = reinterpret_cast< wxDC * >(argp1);
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19458 return resultobj;
19459 fail:
19460 return NULL;
19461 }
19462
19463
19464 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19465 PyObject *resultobj = 0;
19466 wxDC *arg1 = (wxDC *) 0 ;
19467 int *arg2 = (int *) 0 ;
19468 int *arg3 = (int *) 0 ;
19469 void *argp1 = 0 ;
19470 int res1 = 0 ;
19471 int temp2 ;
19472 int res2 = SWIG_TMPOBJ ;
19473 int temp3 ;
19474 int res3 = SWIG_TMPOBJ ;
19475 PyObject *swig_obj[1] ;
19476
19477 arg2 = &temp2;
19478 arg3 = &temp3;
19479 if (!args) SWIG_fail;
19480 swig_obj[0] = args;
19481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19482 if (!SWIG_IsOK(res1)) {
19483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19484 }
19485 arg1 = reinterpret_cast< wxDC * >(argp1);
19486 {
19487 PyThreadState* __tstate = wxPyBeginAllowThreads();
19488 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
19492 resultobj = SWIG_Py_Void();
19493 if (SWIG_IsTmpObj(res2)) {
19494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19495 } else {
19496 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19498 }
19499 if (SWIG_IsTmpObj(res3)) {
19500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19501 } else {
19502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19504 }
19505 return resultobj;
19506 fail:
19507 return NULL;
19508 }
19509
19510
19511 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj = 0;
19513 wxDC *arg1 = (wxDC *) 0 ;
19514 int arg2 ;
19515 int arg3 ;
19516 void *argp1 = 0 ;
19517 int res1 = 0 ;
19518 int val2 ;
19519 int ecode2 = 0 ;
19520 int val3 ;
19521 int ecode3 = 0 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 PyObject * obj2 = 0 ;
19525 char * kwnames[] = {
19526 (char *) "self",(char *) "x",(char *) "y", NULL
19527 };
19528
19529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19531 if (!SWIG_IsOK(res1)) {
19532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19533 }
19534 arg1 = reinterpret_cast< wxDC * >(argp1);
19535 ecode2 = SWIG_AsVal_int(obj1, &val2);
19536 if (!SWIG_IsOK(ecode2)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19538 }
19539 arg2 = static_cast< int >(val2);
19540 ecode3 = SWIG_AsVal_int(obj2, &val3);
19541 if (!SWIG_IsOK(ecode3)) {
19542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19543 }
19544 arg3 = static_cast< int >(val3);
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 (arg1)->SetDeviceOrigin(arg2,arg3);
19548 wxPyEndAllowThreads(__tstate);
19549 if (PyErr_Occurred()) SWIG_fail;
19550 }
19551 resultobj = SWIG_Py_Void();
19552 return resultobj;
19553 fail:
19554 return NULL;
19555 }
19556
19557
19558 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj = 0;
19560 wxDC *arg1 = (wxDC *) 0 ;
19561 wxPoint *arg2 = 0 ;
19562 void *argp1 = 0 ;
19563 int res1 = 0 ;
19564 wxPoint temp2 ;
19565 PyObject * obj0 = 0 ;
19566 PyObject * obj1 = 0 ;
19567 char * kwnames[] = {
19568 (char *) "self",(char *) "point", NULL
19569 };
19570
19571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19573 if (!SWIG_IsOK(res1)) {
19574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19575 }
19576 arg1 = reinterpret_cast< wxDC * >(argp1);
19577 {
19578 arg2 = &temp2;
19579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19580 }
19581 {
19582 PyThreadState* __tstate = wxPyBeginAllowThreads();
19583 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19584 wxPyEndAllowThreads(__tstate);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 }
19587 resultobj = SWIG_Py_Void();
19588 return resultobj;
19589 fail:
19590 return NULL;
19591 }
19592
19593
19594 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19595 PyObject *resultobj = 0;
19596 wxDC *arg1 = (wxDC *) 0 ;
19597 bool arg2 ;
19598 bool arg3 ;
19599 void *argp1 = 0 ;
19600 int res1 = 0 ;
19601 bool val2 ;
19602 int ecode2 = 0 ;
19603 bool val3 ;
19604 int ecode3 = 0 ;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 PyObject * obj2 = 0 ;
19608 char * kwnames[] = {
19609 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19610 };
19611
19612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19616 }
19617 arg1 = reinterpret_cast< wxDC * >(argp1);
19618 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19619 if (!SWIG_IsOK(ecode2)) {
19620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19621 }
19622 arg2 = static_cast< bool >(val2);
19623 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19624 if (!SWIG_IsOK(ecode3)) {
19625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19626 }
19627 arg3 = static_cast< bool >(val3);
19628 {
19629 PyThreadState* __tstate = wxPyBeginAllowThreads();
19630 (arg1)->SetAxisOrientation(arg2,arg3);
19631 wxPyEndAllowThreads(__tstate);
19632 if (PyErr_Occurred()) SWIG_fail;
19633 }
19634 resultobj = SWIG_Py_Void();
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19642 PyObject *resultobj = 0;
19643 wxDC *arg1 = (wxDC *) 0 ;
19644 int result;
19645 void *argp1 = 0 ;
19646 int res1 = 0 ;
19647 PyObject *swig_obj[1] ;
19648
19649 if (!args) SWIG_fail;
19650 swig_obj[0] = args;
19651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19652 if (!SWIG_IsOK(res1)) {
19653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19654 }
19655 arg1 = reinterpret_cast< wxDC * >(argp1);
19656 {
19657 PyThreadState* __tstate = wxPyBeginAllowThreads();
19658 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19659 wxPyEndAllowThreads(__tstate);
19660 if (PyErr_Occurred()) SWIG_fail;
19661 }
19662 resultobj = SWIG_From_int(static_cast< int >(result));
19663 return resultobj;
19664 fail:
19665 return NULL;
19666 }
19667
19668
19669 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19670 PyObject *resultobj = 0;
19671 wxDC *arg1 = (wxDC *) 0 ;
19672 int arg2 ;
19673 void *argp1 = 0 ;
19674 int res1 = 0 ;
19675 int val2 ;
19676 int ecode2 = 0 ;
19677 PyObject * obj0 = 0 ;
19678 PyObject * obj1 = 0 ;
19679 char * kwnames[] = {
19680 (char *) "self",(char *) "function", NULL
19681 };
19682
19683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19685 if (!SWIG_IsOK(res1)) {
19686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19687 }
19688 arg1 = reinterpret_cast< wxDC * >(argp1);
19689 ecode2 = SWIG_AsVal_int(obj1, &val2);
19690 if (!SWIG_IsOK(ecode2)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19692 }
19693 arg2 = static_cast< int >(val2);
19694 {
19695 PyThreadState* __tstate = wxPyBeginAllowThreads();
19696 (arg1)->SetLogicalFunction(arg2);
19697 wxPyEndAllowThreads(__tstate);
19698 if (PyErr_Occurred()) SWIG_fail;
19699 }
19700 resultobj = SWIG_Py_Void();
19701 return resultobj;
19702 fail:
19703 return NULL;
19704 }
19705
19706
19707 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19708 PyObject *resultobj = 0;
19709 wxDC *arg1 = (wxDC *) 0 ;
19710 void *argp1 = 0 ;
19711 int res1 = 0 ;
19712 PyObject *swig_obj[1] ;
19713
19714 if (!args) SWIG_fail;
19715 swig_obj[0] = args;
19716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19719 }
19720 arg1 = reinterpret_cast< wxDC * >(argp1);
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 (arg1)->ComputeScaleAndOrigin();
19724 wxPyEndAllowThreads(__tstate);
19725 if (PyErr_Occurred()) SWIG_fail;
19726 }
19727 resultobj = SWIG_Py_Void();
19728 return resultobj;
19729 fail:
19730 return NULL;
19731 }
19732
19733
19734 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19735 PyObject *resultobj = 0;
19736 wxDC *arg1 = (wxDC *) 0 ;
19737 int arg2 ;
19738 int arg3 ;
19739 void *argp1 = 0 ;
19740 int res1 = 0 ;
19741 int val2 ;
19742 int ecode2 = 0 ;
19743 int val3 ;
19744 int ecode3 = 0 ;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 PyObject * obj2 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "x",(char *) "y", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19756 }
19757 arg1 = reinterpret_cast< wxDC * >(argp1);
19758 ecode2 = SWIG_AsVal_int(obj1, &val2);
19759 if (!SWIG_IsOK(ecode2)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19761 }
19762 arg2 = static_cast< int >(val2);
19763 ecode3 = SWIG_AsVal_int(obj2, &val3);
19764 if (!SWIG_IsOK(ecode3)) {
19765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19766 }
19767 arg3 = static_cast< int >(val3);
19768 {
19769 PyThreadState* __tstate = wxPyBeginAllowThreads();
19770 (arg1)->CalcBoundingBox(arg2,arg3);
19771 wxPyEndAllowThreads(__tstate);
19772 if (PyErr_Occurred()) SWIG_fail;
19773 }
19774 resultobj = SWIG_Py_Void();
19775 return resultobj;
19776 fail:
19777 return NULL;
19778 }
19779
19780
19781 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19782 PyObject *resultobj = 0;
19783 wxDC *arg1 = (wxDC *) 0 ;
19784 wxPoint *arg2 = 0 ;
19785 void *argp1 = 0 ;
19786 int res1 = 0 ;
19787 wxPoint temp2 ;
19788 PyObject * obj0 = 0 ;
19789 PyObject * obj1 = 0 ;
19790 char * kwnames[] = {
19791 (char *) "self",(char *) "point", NULL
19792 };
19793
19794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19796 if (!SWIG_IsOK(res1)) {
19797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19798 }
19799 arg1 = reinterpret_cast< wxDC * >(argp1);
19800 {
19801 arg2 = &temp2;
19802 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19807 wxPyEndAllowThreads(__tstate);
19808 if (PyErr_Occurred()) SWIG_fail;
19809 }
19810 resultobj = SWIG_Py_Void();
19811 return resultobj;
19812 fail:
19813 return NULL;
19814 }
19815
19816
19817 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19818 PyObject *resultobj = 0;
19819 wxDC *arg1 = (wxDC *) 0 ;
19820 void *argp1 = 0 ;
19821 int res1 = 0 ;
19822 PyObject *swig_obj[1] ;
19823
19824 if (!args) SWIG_fail;
19825 swig_obj[0] = args;
19826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19827 if (!SWIG_IsOK(res1)) {
19828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19829 }
19830 arg1 = reinterpret_cast< wxDC * >(argp1);
19831 {
19832 PyThreadState* __tstate = wxPyBeginAllowThreads();
19833 (arg1)->ResetBoundingBox();
19834 wxPyEndAllowThreads(__tstate);
19835 if (PyErr_Occurred()) SWIG_fail;
19836 }
19837 resultobj = SWIG_Py_Void();
19838 return resultobj;
19839 fail:
19840 return NULL;
19841 }
19842
19843
19844 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19845 PyObject *resultobj = 0;
19846 wxDC *arg1 = (wxDC *) 0 ;
19847 int result;
19848 void *argp1 = 0 ;
19849 int res1 = 0 ;
19850 PyObject *swig_obj[1] ;
19851
19852 if (!args) SWIG_fail;
19853 swig_obj[0] = args;
19854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19855 if (!SWIG_IsOK(res1)) {
19856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19857 }
19858 arg1 = reinterpret_cast< wxDC * >(argp1);
19859 {
19860 PyThreadState* __tstate = wxPyBeginAllowThreads();
19861 result = (int)((wxDC const *)arg1)->MinX();
19862 wxPyEndAllowThreads(__tstate);
19863 if (PyErr_Occurred()) SWIG_fail;
19864 }
19865 resultobj = SWIG_From_int(static_cast< int >(result));
19866 return resultobj;
19867 fail:
19868 return NULL;
19869 }
19870
19871
19872 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19873 PyObject *resultobj = 0;
19874 wxDC *arg1 = (wxDC *) 0 ;
19875 int result;
19876 void *argp1 = 0 ;
19877 int res1 = 0 ;
19878 PyObject *swig_obj[1] ;
19879
19880 if (!args) SWIG_fail;
19881 swig_obj[0] = args;
19882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19883 if (!SWIG_IsOK(res1)) {
19884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19885 }
19886 arg1 = reinterpret_cast< wxDC * >(argp1);
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 result = (int)((wxDC const *)arg1)->MaxX();
19890 wxPyEndAllowThreads(__tstate);
19891 if (PyErr_Occurred()) SWIG_fail;
19892 }
19893 resultobj = SWIG_From_int(static_cast< int >(result));
19894 return resultobj;
19895 fail:
19896 return NULL;
19897 }
19898
19899
19900 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19901 PyObject *resultobj = 0;
19902 wxDC *arg1 = (wxDC *) 0 ;
19903 int result;
19904 void *argp1 = 0 ;
19905 int res1 = 0 ;
19906 PyObject *swig_obj[1] ;
19907
19908 if (!args) SWIG_fail;
19909 swig_obj[0] = args;
19910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19911 if (!SWIG_IsOK(res1)) {
19912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19913 }
19914 arg1 = reinterpret_cast< wxDC * >(argp1);
19915 {
19916 PyThreadState* __tstate = wxPyBeginAllowThreads();
19917 result = (int)((wxDC const *)arg1)->MinY();
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 resultobj = SWIG_From_int(static_cast< int >(result));
19922 return resultobj;
19923 fail:
19924 return NULL;
19925 }
19926
19927
19928 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19929 PyObject *resultobj = 0;
19930 wxDC *arg1 = (wxDC *) 0 ;
19931 int result;
19932 void *argp1 = 0 ;
19933 int res1 = 0 ;
19934 PyObject *swig_obj[1] ;
19935
19936 if (!args) SWIG_fail;
19937 swig_obj[0] = args;
19938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19939 if (!SWIG_IsOK(res1)) {
19940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19941 }
19942 arg1 = reinterpret_cast< wxDC * >(argp1);
19943 {
19944 PyThreadState* __tstate = wxPyBeginAllowThreads();
19945 result = (int)((wxDC const *)arg1)->MaxY();
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 resultobj = SWIG_From_int(static_cast< int >(result));
19950 return resultobj;
19951 fail:
19952 return NULL;
19953 }
19954
19955
19956 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19957 PyObject *resultobj = 0;
19958 wxDC *arg1 = (wxDC *) 0 ;
19959 int *arg2 = (int *) 0 ;
19960 int *arg3 = (int *) 0 ;
19961 int *arg4 = (int *) 0 ;
19962 int *arg5 = (int *) 0 ;
19963 void *argp1 = 0 ;
19964 int res1 = 0 ;
19965 int temp2 ;
19966 int res2 = SWIG_TMPOBJ ;
19967 int temp3 ;
19968 int res3 = SWIG_TMPOBJ ;
19969 int temp4 ;
19970 int res4 = SWIG_TMPOBJ ;
19971 int temp5 ;
19972 int res5 = SWIG_TMPOBJ ;
19973 PyObject *swig_obj[1] ;
19974
19975 arg2 = &temp2;
19976 arg3 = &temp3;
19977 arg4 = &temp4;
19978 arg5 = &temp5;
19979 if (!args) SWIG_fail;
19980 swig_obj[0] = args;
19981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19982 if (!SWIG_IsOK(res1)) {
19983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19984 }
19985 arg1 = reinterpret_cast< wxDC * >(argp1);
19986 {
19987 PyThreadState* __tstate = wxPyBeginAllowThreads();
19988 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
19989 wxPyEndAllowThreads(__tstate);
19990 if (PyErr_Occurred()) SWIG_fail;
19991 }
19992 resultobj = SWIG_Py_Void();
19993 if (SWIG_IsTmpObj(res2)) {
19994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19995 } else {
19996 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19998 }
19999 if (SWIG_IsTmpObj(res3)) {
20000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20001 } else {
20002 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20004 }
20005 if (SWIG_IsTmpObj(res4)) {
20006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20007 } else {
20008 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20010 }
20011 if (SWIG_IsTmpObj(res5)) {
20012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20013 } else {
20014 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20016 }
20017 return resultobj;
20018 fail:
20019 return NULL;
20020 }
20021
20022
20023 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20024 PyObject *resultobj = 0;
20025 wxDC *arg1 = (wxDC *) 0 ;
20026 PyObject *arg2 = (PyObject *) 0 ;
20027 PyObject *arg3 = (PyObject *) 0 ;
20028 PyObject *arg4 = (PyObject *) 0 ;
20029 PyObject *result = 0 ;
20030 void *argp1 = 0 ;
20031 int res1 = 0 ;
20032 PyObject * obj0 = 0 ;
20033 PyObject * obj1 = 0 ;
20034 PyObject * obj2 = 0 ;
20035 PyObject * obj3 = 0 ;
20036 char * kwnames[] = {
20037 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20038 };
20039
20040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20042 if (!SWIG_IsOK(res1)) {
20043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20044 }
20045 arg1 = reinterpret_cast< wxDC * >(argp1);
20046 arg2 = obj1;
20047 arg3 = obj2;
20048 arg4 = obj3;
20049 {
20050 PyThreadState* __tstate = wxPyBeginAllowThreads();
20051 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = result;
20056 return resultobj;
20057 fail:
20058 return NULL;
20059 }
20060
20061
20062 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxDC *arg1 = (wxDC *) 0 ;
20065 PyObject *arg2 = (PyObject *) 0 ;
20066 PyObject *arg3 = (PyObject *) 0 ;
20067 PyObject *arg4 = (PyObject *) 0 ;
20068 PyObject *result = 0 ;
20069 void *argp1 = 0 ;
20070 int res1 = 0 ;
20071 PyObject * obj0 = 0 ;
20072 PyObject * obj1 = 0 ;
20073 PyObject * obj2 = 0 ;
20074 PyObject * obj3 = 0 ;
20075 char * kwnames[] = {
20076 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20077 };
20078
20079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20083 }
20084 arg1 = reinterpret_cast< wxDC * >(argp1);
20085 arg2 = obj1;
20086 arg3 = obj2;
20087 arg4 = obj3;
20088 {
20089 PyThreadState* __tstate = wxPyBeginAllowThreads();
20090 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20091 wxPyEndAllowThreads(__tstate);
20092 if (PyErr_Occurred()) SWIG_fail;
20093 }
20094 resultobj = result;
20095 return resultobj;
20096 fail:
20097 return NULL;
20098 }
20099
20100
20101 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20102 PyObject *resultobj = 0;
20103 wxDC *arg1 = (wxDC *) 0 ;
20104 PyObject *arg2 = (PyObject *) 0 ;
20105 PyObject *arg3 = (PyObject *) 0 ;
20106 PyObject *arg4 = (PyObject *) 0 ;
20107 PyObject *result = 0 ;
20108 void *argp1 = 0 ;
20109 int res1 = 0 ;
20110 PyObject * obj0 = 0 ;
20111 PyObject * obj1 = 0 ;
20112 PyObject * obj2 = 0 ;
20113 PyObject * obj3 = 0 ;
20114 char * kwnames[] = {
20115 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20116 };
20117
20118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20120 if (!SWIG_IsOK(res1)) {
20121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20122 }
20123 arg1 = reinterpret_cast< wxDC * >(argp1);
20124 arg2 = obj1;
20125 arg3 = obj2;
20126 arg4 = obj3;
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20130 wxPyEndAllowThreads(__tstate);
20131 if (PyErr_Occurred()) SWIG_fail;
20132 }
20133 resultobj = result;
20134 return resultobj;
20135 fail:
20136 return NULL;
20137 }
20138
20139
20140 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20141 PyObject *resultobj = 0;
20142 wxDC *arg1 = (wxDC *) 0 ;
20143 PyObject *arg2 = (PyObject *) 0 ;
20144 PyObject *arg3 = (PyObject *) 0 ;
20145 PyObject *arg4 = (PyObject *) 0 ;
20146 PyObject *result = 0 ;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 PyObject * obj0 = 0 ;
20150 PyObject * obj1 = 0 ;
20151 PyObject * obj2 = 0 ;
20152 PyObject * obj3 = 0 ;
20153 char * kwnames[] = {
20154 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20155 };
20156
20157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20159 if (!SWIG_IsOK(res1)) {
20160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20161 }
20162 arg1 = reinterpret_cast< wxDC * >(argp1);
20163 arg2 = obj1;
20164 arg3 = obj2;
20165 arg4 = obj3;
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20169 wxPyEndAllowThreads(__tstate);
20170 if (PyErr_Occurred()) SWIG_fail;
20171 }
20172 resultobj = result;
20173 return resultobj;
20174 fail:
20175 return NULL;
20176 }
20177
20178
20179 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20180 PyObject *resultobj = 0;
20181 wxDC *arg1 = (wxDC *) 0 ;
20182 PyObject *arg2 = (PyObject *) 0 ;
20183 PyObject *arg3 = (PyObject *) 0 ;
20184 PyObject *arg4 = (PyObject *) 0 ;
20185 PyObject *result = 0 ;
20186 void *argp1 = 0 ;
20187 int res1 = 0 ;
20188 PyObject * obj0 = 0 ;
20189 PyObject * obj1 = 0 ;
20190 PyObject * obj2 = 0 ;
20191 PyObject * obj3 = 0 ;
20192 char * kwnames[] = {
20193 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20194 };
20195
20196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 arg2 = obj1;
20203 arg3 = obj2;
20204 arg4 = obj3;
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = result;
20212 return resultobj;
20213 fail:
20214 return NULL;
20215 }
20216
20217
20218 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 PyObject *arg2 = (PyObject *) 0 ;
20222 PyObject *arg3 = (PyObject *) 0 ;
20223 PyObject *arg4 = (PyObject *) 0 ;
20224 PyObject *arg5 = (PyObject *) 0 ;
20225 PyObject *result = 0 ;
20226 void *argp1 = 0 ;
20227 int res1 = 0 ;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230 PyObject * obj2 = 0 ;
20231 PyObject * obj3 = 0 ;
20232 PyObject * obj4 = 0 ;
20233 char * kwnames[] = {
20234 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20235 };
20236
20237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20239 if (!SWIG_IsOK(res1)) {
20240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20241 }
20242 arg1 = reinterpret_cast< wxDC * >(argp1);
20243 arg2 = obj1;
20244 arg3 = obj2;
20245 arg4 = obj3;
20246 arg5 = obj4;
20247 {
20248 PyThreadState* __tstate = wxPyBeginAllowThreads();
20249 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20250 wxPyEndAllowThreads(__tstate);
20251 if (PyErr_Occurred()) SWIG_fail;
20252 }
20253 resultobj = result;
20254 return resultobj;
20255 fail:
20256 return NULL;
20257 }
20258
20259
20260 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20261 PyObject *obj;
20262 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20263 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20264 return SWIG_Py_Void();
20265 }
20266
20267 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20268 PyObject *resultobj = 0;
20269 wxMemoryDC *result = 0 ;
20270
20271 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20272 {
20273 if (!wxPyCheckForApp()) SWIG_fail;
20274 PyThreadState* __tstate = wxPyBeginAllowThreads();
20275 result = (wxMemoryDC *)new wxMemoryDC();
20276 wxPyEndAllowThreads(__tstate);
20277 if (PyErr_Occurred()) SWIG_fail;
20278 }
20279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20280 return resultobj;
20281 fail:
20282 return NULL;
20283 }
20284
20285
20286 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20287 PyObject *resultobj = 0;
20288 wxDC *arg1 = (wxDC *) 0 ;
20289 wxMemoryDC *result = 0 ;
20290 void *argp1 = 0 ;
20291 int res1 = 0 ;
20292 PyObject * obj0 = 0 ;
20293 char * kwnames[] = {
20294 (char *) "oldDC", NULL
20295 };
20296
20297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20299 if (!SWIG_IsOK(res1)) {
20300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20301 }
20302 arg1 = reinterpret_cast< wxDC * >(argp1);
20303 {
20304 if (!wxPyCheckForApp()) SWIG_fail;
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20307 wxPyEndAllowThreads(__tstate);
20308 if (PyErr_Occurred()) SWIG_fail;
20309 }
20310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20311 return resultobj;
20312 fail:
20313 return NULL;
20314 }
20315
20316
20317 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20318 PyObject *resultobj = 0;
20319 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20320 wxBitmap *arg2 = 0 ;
20321 void *argp1 = 0 ;
20322 int res1 = 0 ;
20323 void *argp2 = 0 ;
20324 int res2 = 0 ;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "bitmap", NULL
20329 };
20330
20331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20333 if (!SWIG_IsOK(res1)) {
20334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20335 }
20336 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20338 if (!SWIG_IsOK(res2)) {
20339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20340 }
20341 if (!argp2) {
20342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20343 }
20344 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 (arg1)->SelectObject((wxBitmap const &)*arg2);
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 resultobj = SWIG_Py_Void();
20352 return resultobj;
20353 fail:
20354 return NULL;
20355 }
20356
20357
20358 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20359 PyObject *obj;
20360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20361 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20362 return SWIG_Py_Void();
20363 }
20364
20365 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20366 return SWIG_Python_InitShadowInstance(args);
20367 }
20368
20369 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20370 PyObject *resultobj = 0;
20371 wxDC *arg1 = (wxDC *) 0 ;
20372 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20373 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20374 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20375 wxBufferedDC *result = 0 ;
20376 void *argp1 = 0 ;
20377 int res1 = 0 ;
20378 void *argp2 = 0 ;
20379 int res2 = 0 ;
20380 int val3 ;
20381 int ecode3 = 0 ;
20382
20383 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20385 if (!SWIG_IsOK(res1)) {
20386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20387 }
20388 arg1 = reinterpret_cast< wxDC * >(argp1);
20389 if (swig_obj[1]) {
20390 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20391 if (!SWIG_IsOK(res2)) {
20392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20393 }
20394 if (!argp2) {
20395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20396 }
20397 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20398 }
20399 if (swig_obj[2]) {
20400 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20401 if (!SWIG_IsOK(ecode3)) {
20402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20403 }
20404 arg3 = static_cast< int >(val3);
20405 }
20406 {
20407 if (!wxPyCheckForApp()) SWIG_fail;
20408 PyThreadState* __tstate = wxPyBeginAllowThreads();
20409 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20410 wxPyEndAllowThreads(__tstate);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20414 return resultobj;
20415 fail:
20416 return NULL;
20417 }
20418
20419
20420 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20421 PyObject *resultobj = 0;
20422 wxDC *arg1 = (wxDC *) 0 ;
20423 wxSize *arg2 = 0 ;
20424 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20425 wxBufferedDC *result = 0 ;
20426 void *argp1 = 0 ;
20427 int res1 = 0 ;
20428 wxSize temp2 ;
20429 int val3 ;
20430 int ecode3 = 0 ;
20431
20432 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20434 if (!SWIG_IsOK(res1)) {
20435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20436 }
20437 arg1 = reinterpret_cast< wxDC * >(argp1);
20438 {
20439 arg2 = &temp2;
20440 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20441 }
20442 if (swig_obj[2]) {
20443 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20444 if (!SWIG_IsOK(ecode3)) {
20445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20446 }
20447 arg3 = static_cast< int >(val3);
20448 }
20449 {
20450 if (!wxPyCheckForApp()) SWIG_fail;
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20464 int argc;
20465 PyObject *argv[4];
20466
20467 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20468 --argc;
20469 if ((argc >= 1) && (argc <= 3)) {
20470 int _v = 0;
20471 if (argc > 1) {
20472 {
20473 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20474 _v = SWIG_CheckState(res);
20475 }
20476 if (!_v) goto check_1;
20477 }
20478 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20479 }
20480 check_1:
20481
20482 if ((argc >= 2) && (argc <= 3)) {
20483 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20484 }
20485
20486 fail:
20487 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20493 PyObject *resultobj = 0;
20494 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 PyObject *swig_obj[1] ;
20498
20499 if (!args) SWIG_fail;
20500 swig_obj[0] = args;
20501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20502 if (!SWIG_IsOK(res1)) {
20503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20504 }
20505 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20506 {
20507 PyThreadState* __tstate = wxPyBeginAllowThreads();
20508 delete arg1;
20509
20510 wxPyEndAllowThreads(__tstate);
20511 if (PyErr_Occurred()) SWIG_fail;
20512 }
20513 resultobj = SWIG_Py_Void();
20514 return resultobj;
20515 fail:
20516 return NULL;
20517 }
20518
20519
20520 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20521 PyObject *resultobj = 0;
20522 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20523 void *argp1 = 0 ;
20524 int res1 = 0 ;
20525 PyObject *swig_obj[1] ;
20526
20527 if (!args) SWIG_fail;
20528 swig_obj[0] = args;
20529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20530 if (!SWIG_IsOK(res1)) {
20531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20532 }
20533 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20534 {
20535 PyThreadState* __tstate = wxPyBeginAllowThreads();
20536 (arg1)->UnMask();
20537 wxPyEndAllowThreads(__tstate);
20538 if (PyErr_Occurred()) SWIG_fail;
20539 }
20540 resultobj = SWIG_Py_Void();
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20548 PyObject *obj;
20549 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20550 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20551 return SWIG_Py_Void();
20552 }
20553
20554 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20555 return SWIG_Python_InitShadowInstance(args);
20556 }
20557
20558 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20559 PyObject *resultobj = 0;
20560 wxWindow *arg1 = (wxWindow *) 0 ;
20561 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20562 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20563 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20564 wxBufferedPaintDC *result = 0 ;
20565 void *argp1 = 0 ;
20566 int res1 = 0 ;
20567 void *argp2 = 0 ;
20568 int res2 = 0 ;
20569 int val3 ;
20570 int ecode3 = 0 ;
20571 PyObject * obj0 = 0 ;
20572 PyObject * obj1 = 0 ;
20573 PyObject * obj2 = 0 ;
20574 char * kwnames[] = {
20575 (char *) "window",(char *) "buffer",(char *) "style", NULL
20576 };
20577
20578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20580 if (!SWIG_IsOK(res1)) {
20581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20582 }
20583 arg1 = reinterpret_cast< wxWindow * >(argp1);
20584 if (obj1) {
20585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20586 if (!SWIG_IsOK(res2)) {
20587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20588 }
20589 if (!argp2) {
20590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20591 }
20592 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20593 }
20594 if (obj2) {
20595 ecode3 = SWIG_AsVal_int(obj2, &val3);
20596 if (!SWIG_IsOK(ecode3)) {
20597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20598 }
20599 arg3 = static_cast< int >(val3);
20600 }
20601 {
20602 if (!wxPyCheckForApp()) SWIG_fail;
20603 PyThreadState* __tstate = wxPyBeginAllowThreads();
20604 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20609 return resultobj;
20610 fail:
20611 return NULL;
20612 }
20613
20614
20615 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20616 PyObject *obj;
20617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20618 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20619 return SWIG_Py_Void();
20620 }
20621
20622 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20623 return SWIG_Python_InitShadowInstance(args);
20624 }
20625
20626 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20627 PyObject *resultobj = 0;
20628 wxScreenDC *result = 0 ;
20629
20630 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20631 {
20632 if (!wxPyCheckForApp()) SWIG_fail;
20633 PyThreadState* __tstate = wxPyBeginAllowThreads();
20634 result = (wxScreenDC *)new wxScreenDC();
20635 wxPyEndAllowThreads(__tstate);
20636 if (PyErr_Occurred()) SWIG_fail;
20637 }
20638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20639 return resultobj;
20640 fail:
20641 return NULL;
20642 }
20643
20644
20645 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20646 PyObject *resultobj = 0;
20647 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20648 wxWindow *arg2 = (wxWindow *) 0 ;
20649 bool result;
20650 void *argp1 = 0 ;
20651 int res1 = 0 ;
20652 void *argp2 = 0 ;
20653 int res2 = 0 ;
20654 PyObject * obj0 = 0 ;
20655 PyObject * obj1 = 0 ;
20656 char * kwnames[] = {
20657 (char *) "self",(char *) "window", NULL
20658 };
20659
20660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20662 if (!SWIG_IsOK(res1)) {
20663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20664 }
20665 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20666 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20667 if (!SWIG_IsOK(res2)) {
20668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20669 }
20670 arg2 = reinterpret_cast< wxWindow * >(argp2);
20671 {
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20674 wxPyEndAllowThreads(__tstate);
20675 if (PyErr_Occurred()) SWIG_fail;
20676 }
20677 {
20678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20679 }
20680 return resultobj;
20681 fail:
20682 return NULL;
20683 }
20684
20685
20686 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20687 PyObject *resultobj = 0;
20688 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20689 wxRect *arg2 = (wxRect *) NULL ;
20690 bool result;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 void *argp2 = 0 ;
20694 int res2 = 0 ;
20695 PyObject * obj0 = 0 ;
20696 PyObject * obj1 = 0 ;
20697 char * kwnames[] = {
20698 (char *) "self",(char *) "rect", NULL
20699 };
20700
20701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20705 }
20706 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20707 if (obj1) {
20708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20709 if (!SWIG_IsOK(res2)) {
20710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20711 }
20712 arg2 = reinterpret_cast< wxRect * >(argp2);
20713 }
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 {
20721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20722 }
20723 return resultobj;
20724 fail:
20725 return NULL;
20726 }
20727
20728
20729 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20730 PyObject *resultobj = 0;
20731 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20732 bool result;
20733 void *argp1 = 0 ;
20734 int res1 = 0 ;
20735 PyObject *swig_obj[1] ;
20736
20737 if (!args) SWIG_fail;
20738 swig_obj[0] = args;
20739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20740 if (!SWIG_IsOK(res1)) {
20741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20742 }
20743 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20744 {
20745 PyThreadState* __tstate = wxPyBeginAllowThreads();
20746 result = (bool)(arg1)->EndDrawingOnTop();
20747 wxPyEndAllowThreads(__tstate);
20748 if (PyErr_Occurred()) SWIG_fail;
20749 }
20750 {
20751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20752 }
20753 return resultobj;
20754 fail:
20755 return NULL;
20756 }
20757
20758
20759 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20760 PyObject *obj;
20761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20762 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20763 return SWIG_Py_Void();
20764 }
20765
20766 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20767 return SWIG_Python_InitShadowInstance(args);
20768 }
20769
20770 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20771 PyObject *resultobj = 0;
20772 wxWindow *arg1 = (wxWindow *) 0 ;
20773 wxClientDC *result = 0 ;
20774 void *argp1 = 0 ;
20775 int res1 = 0 ;
20776 PyObject * obj0 = 0 ;
20777 char * kwnames[] = {
20778 (char *) "win", NULL
20779 };
20780
20781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20783 if (!SWIG_IsOK(res1)) {
20784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20785 }
20786 arg1 = reinterpret_cast< wxWindow * >(argp1);
20787 {
20788 if (!wxPyCheckForApp()) SWIG_fail;
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 result = (wxClientDC *)new wxClientDC(arg1);
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20795 return resultobj;
20796 fail:
20797 return NULL;
20798 }
20799
20800
20801 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20802 PyObject *obj;
20803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20804 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20805 return SWIG_Py_Void();
20806 }
20807
20808 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20809 return SWIG_Python_InitShadowInstance(args);
20810 }
20811
20812 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20813 PyObject *resultobj = 0;
20814 wxWindow *arg1 = (wxWindow *) 0 ;
20815 wxPaintDC *result = 0 ;
20816 void *argp1 = 0 ;
20817 int res1 = 0 ;
20818 PyObject * obj0 = 0 ;
20819 char * kwnames[] = {
20820 (char *) "win", NULL
20821 };
20822
20823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20825 if (!SWIG_IsOK(res1)) {
20826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20827 }
20828 arg1 = reinterpret_cast< wxWindow * >(argp1);
20829 {
20830 if (!wxPyCheckForApp()) SWIG_fail;
20831 PyThreadState* __tstate = wxPyBeginAllowThreads();
20832 result = (wxPaintDC *)new wxPaintDC(arg1);
20833 wxPyEndAllowThreads(__tstate);
20834 if (PyErr_Occurred()) SWIG_fail;
20835 }
20836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20837 return resultobj;
20838 fail:
20839 return NULL;
20840 }
20841
20842
20843 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20844 PyObject *obj;
20845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20846 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20847 return SWIG_Py_Void();
20848 }
20849
20850 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20851 return SWIG_Python_InitShadowInstance(args);
20852 }
20853
20854 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj = 0;
20856 wxWindow *arg1 = (wxWindow *) 0 ;
20857 wxWindowDC *result = 0 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 PyObject * obj0 = 0 ;
20861 char * kwnames[] = {
20862 (char *) "win", NULL
20863 };
20864
20865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20867 if (!SWIG_IsOK(res1)) {
20868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20869 }
20870 arg1 = reinterpret_cast< wxWindow * >(argp1);
20871 {
20872 if (!wxPyCheckForApp()) SWIG_fail;
20873 PyThreadState* __tstate = wxPyBeginAllowThreads();
20874 result = (wxWindowDC *)new wxWindowDC(arg1);
20875 wxPyEndAllowThreads(__tstate);
20876 if (PyErr_Occurred()) SWIG_fail;
20877 }
20878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20879 return resultobj;
20880 fail:
20881 return NULL;
20882 }
20883
20884
20885 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20886 PyObject *obj;
20887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20888 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20889 return SWIG_Py_Void();
20890 }
20891
20892 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20893 return SWIG_Python_InitShadowInstance(args);
20894 }
20895
20896 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20897 PyObject *resultobj = 0;
20898 wxDC *arg1 = 0 ;
20899 bool arg2 ;
20900 wxMirrorDC *result = 0 ;
20901 void *argp1 = 0 ;
20902 int res1 = 0 ;
20903 bool val2 ;
20904 int ecode2 = 0 ;
20905 PyObject * obj0 = 0 ;
20906 PyObject * obj1 = 0 ;
20907 char * kwnames[] = {
20908 (char *) "dc",(char *) "mirror", NULL
20909 };
20910
20911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20912 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20913 if (!SWIG_IsOK(res1)) {
20914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20915 }
20916 if (!argp1) {
20917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20918 }
20919 arg1 = reinterpret_cast< wxDC * >(argp1);
20920 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20921 if (!SWIG_IsOK(ecode2)) {
20922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20923 }
20924 arg2 = static_cast< bool >(val2);
20925 {
20926 if (!wxPyCheckForApp()) SWIG_fail;
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20929 wxPyEndAllowThreads(__tstate);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20933 return resultobj;
20934 fail:
20935 return NULL;
20936 }
20937
20938
20939 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20940 PyObject *obj;
20941 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20942 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20943 return SWIG_Py_Void();
20944 }
20945
20946 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20947 return SWIG_Python_InitShadowInstance(args);
20948 }
20949
20950 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20951 PyObject *resultobj = 0;
20952 wxPrintData *arg1 = 0 ;
20953 wxPostScriptDC *result = 0 ;
20954 void *argp1 = 0 ;
20955 int res1 = 0 ;
20956 PyObject * obj0 = 0 ;
20957 char * kwnames[] = {
20958 (char *) "printData", NULL
20959 };
20960
20961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20962 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20965 }
20966 if (!argp1) {
20967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20968 }
20969 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20970 {
20971 if (!wxPyCheckForApp()) SWIG_fail;
20972 PyThreadState* __tstate = wxPyBeginAllowThreads();
20973 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20974 wxPyEndAllowThreads(__tstate);
20975 if (PyErr_Occurred()) SWIG_fail;
20976 }
20977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20978 return resultobj;
20979 fail:
20980 return NULL;
20981 }
20982
20983
20984 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20985 PyObject *resultobj = 0;
20986 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20987 wxPrintData *result = 0 ;
20988 void *argp1 = 0 ;
20989 int res1 = 0 ;
20990 PyObject *swig_obj[1] ;
20991
20992 if (!args) SWIG_fail;
20993 swig_obj[0] = args;
20994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20995 if (!SWIG_IsOK(res1)) {
20996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
20997 }
20998 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 {
21002 wxPrintData &_result_ref = (arg1)->GetPrintData();
21003 result = (wxPrintData *) &_result_ref;
21004 }
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21009 return resultobj;
21010 fail:
21011 return NULL;
21012 }
21013
21014
21015 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21016 PyObject *resultobj = 0;
21017 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21018 wxPrintData *arg2 = 0 ;
21019 void *argp1 = 0 ;
21020 int res1 = 0 ;
21021 void *argp2 = 0 ;
21022 int res2 = 0 ;
21023 PyObject * obj0 = 0 ;
21024 PyObject * obj1 = 0 ;
21025 char * kwnames[] = {
21026 (char *) "self",(char *) "data", NULL
21027 };
21028
21029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21033 }
21034 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21036 if (!SWIG_IsOK(res2)) {
21037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21038 }
21039 if (!argp2) {
21040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21041 }
21042 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21043 {
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
21045 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21046 wxPyEndAllowThreads(__tstate);
21047 if (PyErr_Occurred()) SWIG_fail;
21048 }
21049 resultobj = SWIG_Py_Void();
21050 return resultobj;
21051 fail:
21052 return NULL;
21053 }
21054
21055
21056 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21057 PyObject *resultobj = 0;
21058 int arg1 ;
21059 int val1 ;
21060 int ecode1 = 0 ;
21061 PyObject * obj0 = 0 ;
21062 char * kwnames[] = {
21063 (char *) "ppi", NULL
21064 };
21065
21066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21067 ecode1 = SWIG_AsVal_int(obj0, &val1);
21068 if (!SWIG_IsOK(ecode1)) {
21069 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21070 }
21071 arg1 = static_cast< int >(val1);
21072 {
21073 PyThreadState* __tstate = wxPyBeginAllowThreads();
21074 wxPostScriptDC::SetResolution(arg1);
21075 wxPyEndAllowThreads(__tstate);
21076 if (PyErr_Occurred()) SWIG_fail;
21077 }
21078 resultobj = SWIG_Py_Void();
21079 return resultobj;
21080 fail:
21081 return NULL;
21082 }
21083
21084
21085 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21086 PyObject *resultobj = 0;
21087 int result;
21088
21089 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21090 {
21091 PyThreadState* __tstate = wxPyBeginAllowThreads();
21092 result = (int)wxPostScriptDC::GetResolution();
21093 wxPyEndAllowThreads(__tstate);
21094 if (PyErr_Occurred()) SWIG_fail;
21095 }
21096 resultobj = SWIG_From_int(static_cast< int >(result));
21097 return resultobj;
21098 fail:
21099 return NULL;
21100 }
21101
21102
21103 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21104 PyObject *obj;
21105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21106 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21107 return SWIG_Py_Void();
21108 }
21109
21110 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21111 return SWIG_Python_InitShadowInstance(args);
21112 }
21113
21114 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21115 PyObject *resultobj = 0;
21116 wxString const &arg1_defvalue = wxPyEmptyString ;
21117 wxString *arg1 = (wxString *) &arg1_defvalue ;
21118 wxMetaFile *result = 0 ;
21119 bool temp1 = false ;
21120 PyObject * obj0 = 0 ;
21121 char * kwnames[] = {
21122 (char *) "filename", NULL
21123 };
21124
21125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21126 if (obj0) {
21127 {
21128 arg1 = wxString_in_helper(obj0);
21129 if (arg1 == NULL) SWIG_fail;
21130 temp1 = true;
21131 }
21132 }
21133 {
21134 if (!wxPyCheckForApp()) SWIG_fail;
21135 PyThreadState* __tstate = wxPyBeginAllowThreads();
21136 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21141 {
21142 if (temp1)
21143 delete arg1;
21144 }
21145 return resultobj;
21146 fail:
21147 {
21148 if (temp1)
21149 delete arg1;
21150 }
21151 return NULL;
21152 }
21153
21154
21155 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21156 PyObject *resultobj = 0;
21157 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21158 void *argp1 = 0 ;
21159 int res1 = 0 ;
21160 PyObject *swig_obj[1] ;
21161
21162 if (!args) SWIG_fail;
21163 swig_obj[0] = args;
21164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21165 if (!SWIG_IsOK(res1)) {
21166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21167 }
21168 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 delete arg1;
21172
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 resultobj = SWIG_Py_Void();
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21186 bool result;
21187 void *argp1 = 0 ;
21188 int res1 = 0 ;
21189 PyObject *swig_obj[1] ;
21190
21191 if (!args) SWIG_fail;
21192 swig_obj[0] = args;
21193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21194 if (!SWIG_IsOK(res1)) {
21195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21196 }
21197 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21198 {
21199 PyThreadState* __tstate = wxPyBeginAllowThreads();
21200 result = (bool)(arg1)->Ok();
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 {
21205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21206 }
21207 return resultobj;
21208 fail:
21209 return NULL;
21210 }
21211
21212
21213 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj = 0;
21215 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21216 int arg2 = (int) 0 ;
21217 int arg3 = (int) 0 ;
21218 bool result;
21219 void *argp1 = 0 ;
21220 int res1 = 0 ;
21221 int val2 ;
21222 int ecode2 = 0 ;
21223 int val3 ;
21224 int ecode3 = 0 ;
21225 PyObject * obj0 = 0 ;
21226 PyObject * obj1 = 0 ;
21227 PyObject * obj2 = 0 ;
21228 char * kwnames[] = {
21229 (char *) "self",(char *) "width",(char *) "height", NULL
21230 };
21231
21232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21234 if (!SWIG_IsOK(res1)) {
21235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21236 }
21237 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21238 if (obj1) {
21239 ecode2 = SWIG_AsVal_int(obj1, &val2);
21240 if (!SWIG_IsOK(ecode2)) {
21241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21242 }
21243 arg2 = static_cast< int >(val2);
21244 }
21245 if (obj2) {
21246 ecode3 = SWIG_AsVal_int(obj2, &val3);
21247 if (!SWIG_IsOK(ecode3)) {
21248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21249 }
21250 arg3 = static_cast< int >(val3);
21251 }
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 {
21259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21260 }
21261 return resultobj;
21262 fail:
21263 return NULL;
21264 }
21265
21266
21267 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21268 PyObject *resultobj = 0;
21269 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21270 wxSize result;
21271 void *argp1 = 0 ;
21272 int res1 = 0 ;
21273 PyObject *swig_obj[1] ;
21274
21275 if (!args) SWIG_fail;
21276 swig_obj[0] = args;
21277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21278 if (!SWIG_IsOK(res1)) {
21279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21280 }
21281 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = (arg1)->GetSize();
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21289 return resultobj;
21290 fail:
21291 return NULL;
21292 }
21293
21294
21295 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21296 PyObject *resultobj = 0;
21297 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21298 int result;
21299 void *argp1 = 0 ;
21300 int res1 = 0 ;
21301 PyObject *swig_obj[1] ;
21302
21303 if (!args) SWIG_fail;
21304 swig_obj[0] = args;
21305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21306 if (!SWIG_IsOK(res1)) {
21307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21308 }
21309 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21310 {
21311 PyThreadState* __tstate = wxPyBeginAllowThreads();
21312 result = (int)(arg1)->GetWidth();
21313 wxPyEndAllowThreads(__tstate);
21314 if (PyErr_Occurred()) SWIG_fail;
21315 }
21316 resultobj = SWIG_From_int(static_cast< int >(result));
21317 return resultobj;
21318 fail:
21319 return NULL;
21320 }
21321
21322
21323 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21324 PyObject *resultobj = 0;
21325 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21326 int result;
21327 void *argp1 = 0 ;
21328 int res1 = 0 ;
21329 PyObject *swig_obj[1] ;
21330
21331 if (!args) SWIG_fail;
21332 swig_obj[0] = args;
21333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21334 if (!SWIG_IsOK(res1)) {
21335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21336 }
21337 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21338 {
21339 PyThreadState* __tstate = wxPyBeginAllowThreads();
21340 result = (int)(arg1)->GetHeight();
21341 wxPyEndAllowThreads(__tstate);
21342 if (PyErr_Occurred()) SWIG_fail;
21343 }
21344 resultobj = SWIG_From_int(static_cast< int >(result));
21345 return resultobj;
21346 fail:
21347 return NULL;
21348 }
21349
21350
21351 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *obj;
21353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21354 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21355 return SWIG_Py_Void();
21356 }
21357
21358 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21359 return SWIG_Python_InitShadowInstance(args);
21360 }
21361
21362 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21363 PyObject *resultobj = 0;
21364 wxString const &arg1_defvalue = wxPyEmptyString ;
21365 wxString *arg1 = (wxString *) &arg1_defvalue ;
21366 int arg2 = (int) 0 ;
21367 int arg3 = (int) 0 ;
21368 wxString const &arg4_defvalue = wxPyEmptyString ;
21369 wxString *arg4 = (wxString *) &arg4_defvalue ;
21370 wxMetaFileDC *result = 0 ;
21371 bool temp1 = false ;
21372 int val2 ;
21373 int ecode2 = 0 ;
21374 int val3 ;
21375 int ecode3 = 0 ;
21376 bool temp4 = false ;
21377 PyObject * obj0 = 0 ;
21378 PyObject * obj1 = 0 ;
21379 PyObject * obj2 = 0 ;
21380 PyObject * obj3 = 0 ;
21381 char * kwnames[] = {
21382 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21383 };
21384
21385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21386 if (obj0) {
21387 {
21388 arg1 = wxString_in_helper(obj0);
21389 if (arg1 == NULL) SWIG_fail;
21390 temp1 = true;
21391 }
21392 }
21393 if (obj1) {
21394 ecode2 = SWIG_AsVal_int(obj1, &val2);
21395 if (!SWIG_IsOK(ecode2)) {
21396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21397 }
21398 arg2 = static_cast< int >(val2);
21399 }
21400 if (obj2) {
21401 ecode3 = SWIG_AsVal_int(obj2, &val3);
21402 if (!SWIG_IsOK(ecode3)) {
21403 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21404 }
21405 arg3 = static_cast< int >(val3);
21406 }
21407 if (obj3) {
21408 {
21409 arg4 = wxString_in_helper(obj3);
21410 if (arg4 == NULL) SWIG_fail;
21411 temp4 = true;
21412 }
21413 }
21414 {
21415 if (!wxPyCheckForApp()) SWIG_fail;
21416 PyThreadState* __tstate = wxPyBeginAllowThreads();
21417 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21418 wxPyEndAllowThreads(__tstate);
21419 if (PyErr_Occurred()) SWIG_fail;
21420 }
21421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21422 {
21423 if (temp1)
21424 delete arg1;
21425 }
21426 {
21427 if (temp4)
21428 delete arg4;
21429 }
21430 return resultobj;
21431 fail:
21432 {
21433 if (temp1)
21434 delete arg1;
21435 }
21436 {
21437 if (temp4)
21438 delete arg4;
21439 }
21440 return NULL;
21441 }
21442
21443
21444 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21445 PyObject *resultobj = 0;
21446 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
21447 wxMetaFile *result = 0 ;
21448 void *argp1 = 0 ;
21449 int res1 = 0 ;
21450 PyObject *swig_obj[1] ;
21451
21452 if (!args) SWIG_fail;
21453 swig_obj[0] = args;
21454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
21455 if (!SWIG_IsOK(res1)) {
21456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
21457 }
21458 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 result = (wxMetaFile *)(arg1)->Close();
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
21466 return resultobj;
21467 fail:
21468 return NULL;
21469 }
21470
21471
21472 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21473 PyObject *obj;
21474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21475 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21476 return SWIG_Py_Void();
21477 }
21478
21479 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21480 return SWIG_Python_InitShadowInstance(args);
21481 }
21482
21483 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21484 PyObject *resultobj = 0;
21485 wxPrintData *arg1 = 0 ;
21486 wxPrinterDC *result = 0 ;
21487 void *argp1 = 0 ;
21488 int res1 = 0 ;
21489 PyObject * obj0 = 0 ;
21490 char * kwnames[] = {
21491 (char *) "printData", NULL
21492 };
21493
21494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21495 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21496 if (!SWIG_IsOK(res1)) {
21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21498 }
21499 if (!argp1) {
21500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21501 }
21502 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21503 {
21504 if (!wxPyCheckForApp()) SWIG_fail;
21505 PyThreadState* __tstate = wxPyBeginAllowThreads();
21506 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21507 wxPyEndAllowThreads(__tstate);
21508 if (PyErr_Occurred()) SWIG_fail;
21509 }
21510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21511 return resultobj;
21512 fail:
21513 return NULL;
21514 }
21515
21516
21517 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21518 PyObject *obj;
21519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21520 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21521 return SWIG_Py_Void();
21522 }
21523
21524 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21525 return SWIG_Python_InitShadowInstance(args);
21526 }
21527
21528 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21529 PyObject *resultobj = 0;
21530 int arg1 ;
21531 int arg2 ;
21532 int arg3 = (int) true ;
21533 int arg4 = (int) 1 ;
21534 wxImageList *result = 0 ;
21535 int val1 ;
21536 int ecode1 = 0 ;
21537 int val2 ;
21538 int ecode2 = 0 ;
21539 int val3 ;
21540 int ecode3 = 0 ;
21541 int val4 ;
21542 int ecode4 = 0 ;
21543 PyObject * obj0 = 0 ;
21544 PyObject * obj1 = 0 ;
21545 PyObject * obj2 = 0 ;
21546 PyObject * obj3 = 0 ;
21547 char * kwnames[] = {
21548 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21549 };
21550
21551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21552 ecode1 = SWIG_AsVal_int(obj0, &val1);
21553 if (!SWIG_IsOK(ecode1)) {
21554 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21555 }
21556 arg1 = static_cast< int >(val1);
21557 ecode2 = SWIG_AsVal_int(obj1, &val2);
21558 if (!SWIG_IsOK(ecode2)) {
21559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21560 }
21561 arg2 = static_cast< int >(val2);
21562 if (obj2) {
21563 ecode3 = SWIG_AsVal_int(obj2, &val3);
21564 if (!SWIG_IsOK(ecode3)) {
21565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21566 }
21567 arg3 = static_cast< int >(val3);
21568 }
21569 if (obj3) {
21570 ecode4 = SWIG_AsVal_int(obj3, &val4);
21571 if (!SWIG_IsOK(ecode4)) {
21572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21573 }
21574 arg4 = static_cast< int >(val4);
21575 }
21576 {
21577 if (!wxPyCheckForApp()) SWIG_fail;
21578 PyThreadState* __tstate = wxPyBeginAllowThreads();
21579 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21580 wxPyEndAllowThreads(__tstate);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 }
21583 {
21584 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21585 }
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21593 PyObject *resultobj = 0;
21594 wxImageList *arg1 = (wxImageList *) 0 ;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 PyObject *swig_obj[1] ;
21598
21599 if (!args) SWIG_fail;
21600 swig_obj[0] = args;
21601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21604 }
21605 arg1 = reinterpret_cast< wxImageList * >(argp1);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
21608 delete arg1;
21609
21610 wxPyEndAllowThreads(__tstate);
21611 if (PyErr_Occurred()) SWIG_fail;
21612 }
21613 resultobj = SWIG_Py_Void();
21614 return resultobj;
21615 fail:
21616 return NULL;
21617 }
21618
21619
21620 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21621 PyObject *resultobj = 0;
21622 wxImageList *arg1 = (wxImageList *) 0 ;
21623 wxBitmap *arg2 = 0 ;
21624 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21625 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21626 int result;
21627 void *argp1 = 0 ;
21628 int res1 = 0 ;
21629 void *argp2 = 0 ;
21630 int res2 = 0 ;
21631 void *argp3 = 0 ;
21632 int res3 = 0 ;
21633 PyObject * obj0 = 0 ;
21634 PyObject * obj1 = 0 ;
21635 PyObject * obj2 = 0 ;
21636 char * kwnames[] = {
21637 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21638 };
21639
21640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21642 if (!SWIG_IsOK(res1)) {
21643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21644 }
21645 arg1 = reinterpret_cast< wxImageList * >(argp1);
21646 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21647 if (!SWIG_IsOK(res2)) {
21648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21649 }
21650 if (!argp2) {
21651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21652 }
21653 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21654 if (obj2) {
21655 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21656 if (!SWIG_IsOK(res3)) {
21657 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21658 }
21659 if (!argp3) {
21660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21661 }
21662 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21663 }
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21667 wxPyEndAllowThreads(__tstate);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 resultobj = SWIG_From_int(static_cast< int >(result));
21671 return resultobj;
21672 fail:
21673 return NULL;
21674 }
21675
21676
21677 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21678 PyObject *resultobj = 0;
21679 wxImageList *arg1 = (wxImageList *) 0 ;
21680 wxBitmap *arg2 = 0 ;
21681 wxColour *arg3 = 0 ;
21682 int result;
21683 void *argp1 = 0 ;
21684 int res1 = 0 ;
21685 void *argp2 = 0 ;
21686 int res2 = 0 ;
21687 wxColour temp3 ;
21688 PyObject * obj0 = 0 ;
21689 PyObject * obj1 = 0 ;
21690 PyObject * obj2 = 0 ;
21691 char * kwnames[] = {
21692 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21693 };
21694
21695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21697 if (!SWIG_IsOK(res1)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21699 }
21700 arg1 = reinterpret_cast< wxImageList * >(argp1);
21701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21702 if (!SWIG_IsOK(res2)) {
21703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21704 }
21705 if (!argp2) {
21706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21707 }
21708 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21709 {
21710 arg3 = &temp3;
21711 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21712 }
21713 {
21714 PyThreadState* __tstate = wxPyBeginAllowThreads();
21715 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21716 wxPyEndAllowThreads(__tstate);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 }
21719 resultobj = SWIG_From_int(static_cast< int >(result));
21720 return resultobj;
21721 fail:
21722 return NULL;
21723 }
21724
21725
21726 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21727 PyObject *resultobj = 0;
21728 wxImageList *arg1 = (wxImageList *) 0 ;
21729 wxIcon *arg2 = 0 ;
21730 int result;
21731 void *argp1 = 0 ;
21732 int res1 = 0 ;
21733 void *argp2 = 0 ;
21734 int res2 = 0 ;
21735 PyObject * obj0 = 0 ;
21736 PyObject * obj1 = 0 ;
21737 char * kwnames[] = {
21738 (char *) "self",(char *) "icon", NULL
21739 };
21740
21741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21743 if (!SWIG_IsOK(res1)) {
21744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21745 }
21746 arg1 = reinterpret_cast< wxImageList * >(argp1);
21747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21748 if (!SWIG_IsOK(res2)) {
21749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21750 }
21751 if (!argp2) {
21752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21753 }
21754 arg2 = reinterpret_cast< wxIcon * >(argp2);
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21758 wxPyEndAllowThreads(__tstate);
21759 if (PyErr_Occurred()) SWIG_fail;
21760 }
21761 resultobj = SWIG_From_int(static_cast< int >(result));
21762 return resultobj;
21763 fail:
21764 return NULL;
21765 }
21766
21767
21768 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21769 PyObject *resultobj = 0;
21770 wxImageList *arg1 = (wxImageList *) 0 ;
21771 int arg2 ;
21772 SwigValueWrapper<wxBitmap > result;
21773 void *argp1 = 0 ;
21774 int res1 = 0 ;
21775 int val2 ;
21776 int ecode2 = 0 ;
21777 PyObject * obj0 = 0 ;
21778 PyObject * obj1 = 0 ;
21779 char * kwnames[] = {
21780 (char *) "self",(char *) "index", NULL
21781 };
21782
21783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21785 if (!SWIG_IsOK(res1)) {
21786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21787 }
21788 arg1 = reinterpret_cast< wxImageList * >(argp1);
21789 ecode2 = SWIG_AsVal_int(obj1, &val2);
21790 if (!SWIG_IsOK(ecode2)) {
21791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21792 }
21793 arg2 = static_cast< int >(val2);
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21801 return resultobj;
21802 fail:
21803 return NULL;
21804 }
21805
21806
21807 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj = 0;
21809 wxImageList *arg1 = (wxImageList *) 0 ;
21810 int arg2 ;
21811 wxIcon result;
21812 void *argp1 = 0 ;
21813 int res1 = 0 ;
21814 int val2 ;
21815 int ecode2 = 0 ;
21816 PyObject * obj0 = 0 ;
21817 PyObject * obj1 = 0 ;
21818 char * kwnames[] = {
21819 (char *) "self",(char *) "index", NULL
21820 };
21821
21822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21824 if (!SWIG_IsOK(res1)) {
21825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21826 }
21827 arg1 = reinterpret_cast< wxImageList * >(argp1);
21828 ecode2 = SWIG_AsVal_int(obj1, &val2);
21829 if (!SWIG_IsOK(ecode2)) {
21830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21831 }
21832 arg2 = static_cast< int >(val2);
21833 {
21834 PyThreadState* __tstate = wxPyBeginAllowThreads();
21835 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21836 wxPyEndAllowThreads(__tstate);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 }
21839 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21840 return resultobj;
21841 fail:
21842 return NULL;
21843 }
21844
21845
21846 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21847 PyObject *resultobj = 0;
21848 wxImageList *arg1 = (wxImageList *) 0 ;
21849 int arg2 ;
21850 wxBitmap *arg3 = 0 ;
21851 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21852 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
21853 bool result;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 int val2 ;
21857 int ecode2 = 0 ;
21858 void *argp3 = 0 ;
21859 int res3 = 0 ;
21860 void *argp4 = 0 ;
21861 int res4 = 0 ;
21862 PyObject * obj0 = 0 ;
21863 PyObject * obj1 = 0 ;
21864 PyObject * obj2 = 0 ;
21865 PyObject * obj3 = 0 ;
21866 char * kwnames[] = {
21867 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
21868 };
21869
21870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21872 if (!SWIG_IsOK(res1)) {
21873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21874 }
21875 arg1 = reinterpret_cast< wxImageList * >(argp1);
21876 ecode2 = SWIG_AsVal_int(obj1, &val2);
21877 if (!SWIG_IsOK(ecode2)) {
21878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21879 }
21880 arg2 = static_cast< int >(val2);
21881 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21882 if (!SWIG_IsOK(res3)) {
21883 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21884 }
21885 if (!argp3) {
21886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21887 }
21888 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21889 if (obj3) {
21890 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21891 if (!SWIG_IsOK(res4)) {
21892 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21893 }
21894 if (!argp4) {
21895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21896 }
21897 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21898 }
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 {
21906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21907 }
21908 return resultobj;
21909 fail:
21910 return NULL;
21911 }
21912
21913
21914 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21915 PyObject *resultobj = 0;
21916 wxImageList *arg1 = (wxImageList *) 0 ;
21917 int arg2 ;
21918 wxDC *arg3 = 0 ;
21919 int arg4 ;
21920 int arg5 ;
21921 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21922 bool arg7 = (bool) (bool)false ;
21923 bool result;
21924 void *argp1 = 0 ;
21925 int res1 = 0 ;
21926 int val2 ;
21927 int ecode2 = 0 ;
21928 void *argp3 = 0 ;
21929 int res3 = 0 ;
21930 int val4 ;
21931 int ecode4 = 0 ;
21932 int val5 ;
21933 int ecode5 = 0 ;
21934 int val6 ;
21935 int ecode6 = 0 ;
21936 bool val7 ;
21937 int ecode7 = 0 ;
21938 PyObject * obj0 = 0 ;
21939 PyObject * obj1 = 0 ;
21940 PyObject * obj2 = 0 ;
21941 PyObject * obj3 = 0 ;
21942 PyObject * obj4 = 0 ;
21943 PyObject * obj5 = 0 ;
21944 PyObject * obj6 = 0 ;
21945 char * kwnames[] = {
21946 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21947 };
21948
21949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21951 if (!SWIG_IsOK(res1)) {
21952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21953 }
21954 arg1 = reinterpret_cast< wxImageList * >(argp1);
21955 ecode2 = SWIG_AsVal_int(obj1, &val2);
21956 if (!SWIG_IsOK(ecode2)) {
21957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21958 }
21959 arg2 = static_cast< int >(val2);
21960 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21961 if (!SWIG_IsOK(res3)) {
21962 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21963 }
21964 if (!argp3) {
21965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21966 }
21967 arg3 = reinterpret_cast< wxDC * >(argp3);
21968 ecode4 = SWIG_AsVal_int(obj3, &val4);
21969 if (!SWIG_IsOK(ecode4)) {
21970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21971 }
21972 arg4 = static_cast< int >(val4);
21973 ecode5 = SWIG_AsVal_int(obj4, &val5);
21974 if (!SWIG_IsOK(ecode5)) {
21975 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21976 }
21977 arg5 = static_cast< int >(val5);
21978 if (obj5) {
21979 ecode6 = SWIG_AsVal_int(obj5, &val6);
21980 if (!SWIG_IsOK(ecode6)) {
21981 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21982 }
21983 arg6 = static_cast< int >(val6);
21984 }
21985 if (obj6) {
21986 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21987 if (!SWIG_IsOK(ecode7)) {
21988 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21989 }
21990 arg7 = static_cast< bool >(val7);
21991 }
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 {
21999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22000 }
22001 return resultobj;
22002 fail:
22003 return NULL;
22004 }
22005
22006
22007 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22008 PyObject *resultobj = 0;
22009 wxImageList *arg1 = (wxImageList *) 0 ;
22010 int result;
22011 void *argp1 = 0 ;
22012 int res1 = 0 ;
22013 PyObject *swig_obj[1] ;
22014
22015 if (!args) SWIG_fail;
22016 swig_obj[0] = args;
22017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22020 }
22021 arg1 = reinterpret_cast< wxImageList * >(argp1);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 result = (int)(arg1)->GetImageCount();
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 resultobj = SWIG_From_int(static_cast< int >(result));
22029 return resultobj;
22030 fail:
22031 return NULL;
22032 }
22033
22034
22035 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22036 PyObject *resultobj = 0;
22037 wxImageList *arg1 = (wxImageList *) 0 ;
22038 int arg2 ;
22039 bool result;
22040 void *argp1 = 0 ;
22041 int res1 = 0 ;
22042 int val2 ;
22043 int ecode2 = 0 ;
22044 PyObject * obj0 = 0 ;
22045 PyObject * obj1 = 0 ;
22046 char * kwnames[] = {
22047 (char *) "self",(char *) "index", NULL
22048 };
22049
22050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22052 if (!SWIG_IsOK(res1)) {
22053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22054 }
22055 arg1 = reinterpret_cast< wxImageList * >(argp1);
22056 ecode2 = SWIG_AsVal_int(obj1, &val2);
22057 if (!SWIG_IsOK(ecode2)) {
22058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22059 }
22060 arg2 = static_cast< int >(val2);
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 result = (bool)(arg1)->Remove(arg2);
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 {
22068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22069 }
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22077 PyObject *resultobj = 0;
22078 wxImageList *arg1 = (wxImageList *) 0 ;
22079 bool result;
22080 void *argp1 = 0 ;
22081 int res1 = 0 ;
22082 PyObject *swig_obj[1] ;
22083
22084 if (!args) SWIG_fail;
22085 swig_obj[0] = args;
22086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22087 if (!SWIG_IsOK(res1)) {
22088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22089 }
22090 arg1 = reinterpret_cast< wxImageList * >(argp1);
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (bool)(arg1)->RemoveAll();
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22099 }
22100 return resultobj;
22101 fail:
22102 return NULL;
22103 }
22104
22105
22106 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22107 PyObject *resultobj = 0;
22108 wxImageList *arg1 = (wxImageList *) 0 ;
22109 int arg2 ;
22110 int *arg3 = 0 ;
22111 int *arg4 = 0 ;
22112 void *argp1 = 0 ;
22113 int res1 = 0 ;
22114 int val2 ;
22115 int ecode2 = 0 ;
22116 int temp3 ;
22117 int res3 = SWIG_TMPOBJ ;
22118 int temp4 ;
22119 int res4 = SWIG_TMPOBJ ;
22120 PyObject * obj0 = 0 ;
22121 PyObject * obj1 = 0 ;
22122 char * kwnames[] = {
22123 (char *) "self",(char *) "index", NULL
22124 };
22125
22126 arg3 = &temp3;
22127 arg4 = &temp4;
22128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22130 if (!SWIG_IsOK(res1)) {
22131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22132 }
22133 arg1 = reinterpret_cast< wxImageList * >(argp1);
22134 ecode2 = SWIG_AsVal_int(obj1, &val2);
22135 if (!SWIG_IsOK(ecode2)) {
22136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22137 }
22138 arg2 = static_cast< int >(val2);
22139 {
22140 PyThreadState* __tstate = wxPyBeginAllowThreads();
22141 (arg1)->GetSize(arg2,*arg3,*arg4);
22142 wxPyEndAllowThreads(__tstate);
22143 if (PyErr_Occurred()) SWIG_fail;
22144 }
22145 resultobj = SWIG_Py_Void();
22146 if (SWIG_IsTmpObj(res3)) {
22147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22148 } else {
22149 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22151 }
22152 if (SWIG_IsTmpObj(res4)) {
22153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22154 } else {
22155 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22157 }
22158 return resultobj;
22159 fail:
22160 return NULL;
22161 }
22162
22163
22164 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22165 PyObject *obj;
22166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22167 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22168 return SWIG_Py_Void();
22169 }
22170
22171 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22172 return SWIG_Python_InitShadowInstance(args);
22173 }
22174
22175 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxStockGDI *result = 0 ;
22178
22179 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (wxStockGDI *)new wxStockGDI();
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22194 PyObject *resultobj = 0;
22195 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 PyObject *swig_obj[1] ;
22199
22200 if (!args) SWIG_fail;
22201 swig_obj[0] = args;
22202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22205 }
22206 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 delete arg1;
22210
22211 wxPyEndAllowThreads(__tstate);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 resultobj = SWIG_Py_Void();
22215 return resultobj;
22216 fail:
22217 return NULL;
22218 }
22219
22220
22221 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22222 PyObject *resultobj = 0;
22223
22224 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 wxStockGDI::DeleteAll();
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_Py_Void();
22232 return resultobj;
22233 fail:
22234 return NULL;
22235 }
22236
22237
22238 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *resultobj = 0;
22240 wxStockGDI *result = 0 ;
22241
22242 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 {
22246 wxStockGDI &_result_ref = wxStockGDI::instance();
22247 result = (wxStockGDI *) &_result_ref;
22248 }
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22253 return resultobj;
22254 fail:
22255 return NULL;
22256 }
22257
22258
22259 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22260 PyObject *resultobj = 0;
22261 wxStockGDI::Item arg1 ;
22262 wxBrush *result = 0 ;
22263 int val1 ;
22264 int ecode1 = 0 ;
22265 PyObject * obj0 = 0 ;
22266 char * kwnames[] = {
22267 (char *) "item", NULL
22268 };
22269
22270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22271 ecode1 = SWIG_AsVal_int(obj0, &val1);
22272 if (!SWIG_IsOK(ecode1)) {
22273 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22274 }
22275 arg1 = static_cast< wxStockGDI::Item >(val1);
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22279 wxPyEndAllowThreads(__tstate);
22280 if (PyErr_Occurred()) SWIG_fail;
22281 }
22282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22283 return resultobj;
22284 fail:
22285 return NULL;
22286 }
22287
22288
22289 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22290 PyObject *resultobj = 0;
22291 wxStockGDI::Item arg1 ;
22292 wxColour *result = 0 ;
22293 int val1 ;
22294 int ecode1 = 0 ;
22295 PyObject * obj0 = 0 ;
22296 char * kwnames[] = {
22297 (char *) "item", NULL
22298 };
22299
22300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22301 ecode1 = SWIG_AsVal_int(obj0, &val1);
22302 if (!SWIG_IsOK(ecode1)) {
22303 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22304 }
22305 arg1 = static_cast< wxStockGDI::Item >(val1);
22306 {
22307 PyThreadState* __tstate = wxPyBeginAllowThreads();
22308 result = (wxColour *)wxStockGDI::GetColour(arg1);
22309 wxPyEndAllowThreads(__tstate);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 }
22312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22320 PyObject *resultobj = 0;
22321 wxStockGDI::Item arg1 ;
22322 wxCursor *result = 0 ;
22323 int val1 ;
22324 int ecode1 = 0 ;
22325 PyObject * obj0 = 0 ;
22326 char * kwnames[] = {
22327 (char *) "item", NULL
22328 };
22329
22330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22331 ecode1 = SWIG_AsVal_int(obj0, &val1);
22332 if (!SWIG_IsOK(ecode1)) {
22333 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22334 }
22335 arg1 = static_cast< wxStockGDI::Item >(val1);
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22339 wxPyEndAllowThreads(__tstate);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 }
22342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj = 0;
22351 wxStockGDI::Item arg1 ;
22352 wxPen *result = 0 ;
22353 int val1 ;
22354 int ecode1 = 0 ;
22355 PyObject * obj0 = 0 ;
22356 char * kwnames[] = {
22357 (char *) "item", NULL
22358 };
22359
22360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22361 ecode1 = SWIG_AsVal_int(obj0, &val1);
22362 if (!SWIG_IsOK(ecode1)) {
22363 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22364 }
22365 arg1 = static_cast< wxStockGDI::Item >(val1);
22366 {
22367 PyThreadState* __tstate = wxPyBeginAllowThreads();
22368 result = (wxPen *)wxStockGDI::GetPen(arg1);
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22373 return resultobj;
22374 fail:
22375 return NULL;
22376 }
22377
22378
22379 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj = 0;
22381 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22382 wxStockGDI::Item arg2 ;
22383 wxFont *result = 0 ;
22384 void *argp1 = 0 ;
22385 int res1 = 0 ;
22386 int val2 ;
22387 int ecode2 = 0 ;
22388 PyObject * obj0 = 0 ;
22389 PyObject * obj1 = 0 ;
22390 char * kwnames[] = {
22391 (char *) "self",(char *) "item", NULL
22392 };
22393
22394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22396 if (!SWIG_IsOK(res1)) {
22397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22398 }
22399 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22400 ecode2 = SWIG_AsVal_int(obj1, &val2);
22401 if (!SWIG_IsOK(ecode2)) {
22402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22403 }
22404 arg2 = static_cast< wxStockGDI::Item >(val2);
22405 {
22406 PyThreadState* __tstate = wxPyBeginAllowThreads();
22407 result = (wxFont *)(arg1)->GetFont(arg2);
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419 PyObject *obj;
22420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22421 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22422 return SWIG_Py_Void();
22423 }
22424
22425 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22426 return SWIG_Python_InitShadowInstance(args);
22427 }
22428
22429 SWIGINTERN int NullBitmap_set(PyObject *) {
22430 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22431 return 1;
22432 }
22433
22434
22435 SWIGINTERN PyObject *NullBitmap_get(void) {
22436 PyObject *pyobj = 0;
22437
22438 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22439 return pyobj;
22440 }
22441
22442
22443 SWIGINTERN int NullIcon_set(PyObject *) {
22444 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22445 return 1;
22446 }
22447
22448
22449 SWIGINTERN PyObject *NullIcon_get(void) {
22450 PyObject *pyobj = 0;
22451
22452 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22453 return pyobj;
22454 }
22455
22456
22457 SWIGINTERN int NullCursor_set(PyObject *) {
22458 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22459 return 1;
22460 }
22461
22462
22463 SWIGINTERN PyObject *NullCursor_get(void) {
22464 PyObject *pyobj = 0;
22465
22466 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22467 return pyobj;
22468 }
22469
22470
22471 SWIGINTERN int NullPen_set(PyObject *) {
22472 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22473 return 1;
22474 }
22475
22476
22477 SWIGINTERN PyObject *NullPen_get(void) {
22478 PyObject *pyobj = 0;
22479
22480 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22481 return pyobj;
22482 }
22483
22484
22485 SWIGINTERN int NullBrush_set(PyObject *) {
22486 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22487 return 1;
22488 }
22489
22490
22491 SWIGINTERN PyObject *NullBrush_get(void) {
22492 PyObject *pyobj = 0;
22493
22494 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22495 return pyobj;
22496 }
22497
22498
22499 SWIGINTERN int NullPalette_set(PyObject *) {
22500 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22501 return 1;
22502 }
22503
22504
22505 SWIGINTERN PyObject *NullPalette_get(void) {
22506 PyObject *pyobj = 0;
22507
22508 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22509 return pyobj;
22510 }
22511
22512
22513 SWIGINTERN int NullFont_set(PyObject *) {
22514 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22515 return 1;
22516 }
22517
22518
22519 SWIGINTERN PyObject *NullFont_get(void) {
22520 PyObject *pyobj = 0;
22521
22522 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22523 return pyobj;
22524 }
22525
22526
22527 SWIGINTERN int NullColour_set(PyObject *) {
22528 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22529 return 1;
22530 }
22531
22532
22533 SWIGINTERN PyObject *NullColour_get(void) {
22534 PyObject *pyobj = 0;
22535
22536 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22537 return pyobj;
22538 }
22539
22540
22541 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22542 PyObject *resultobj = 0;
22543 wxGDIObjListBase *result = 0 ;
22544
22545 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22553 return resultobj;
22554 fail:
22555 return NULL;
22556 }
22557
22558
22559 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22560 PyObject *resultobj = 0;
22561 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 PyObject *swig_obj[1] ;
22565
22566 if (!args) SWIG_fail;
22567 swig_obj[0] = args;
22568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22569 if (!SWIG_IsOK(res1)) {
22570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22571 }
22572 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 delete arg1;
22576
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 resultobj = SWIG_Py_Void();
22581 return resultobj;
22582 fail:
22583 return NULL;
22584 }
22585
22586
22587 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22588 PyObject *obj;
22589 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22590 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22591 return SWIG_Py_Void();
22592 }
22593
22594 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 return SWIG_Python_InitShadowInstance(args);
22596 }
22597
22598 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj = 0;
22600 wxPenList *arg1 = (wxPenList *) 0 ;
22601 wxColour *arg2 = 0 ;
22602 int arg3 ;
22603 int arg4 ;
22604 wxPen *result = 0 ;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 wxColour temp2 ;
22608 int val3 ;
22609 int ecode3 = 0 ;
22610 int val4 ;
22611 int ecode4 = 0 ;
22612 PyObject * obj0 = 0 ;
22613 PyObject * obj1 = 0 ;
22614 PyObject * obj2 = 0 ;
22615 PyObject * obj3 = 0 ;
22616 char * kwnames[] = {
22617 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22618 };
22619
22620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22622 if (!SWIG_IsOK(res1)) {
22623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22624 }
22625 arg1 = reinterpret_cast< wxPenList * >(argp1);
22626 {
22627 arg2 = &temp2;
22628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22629 }
22630 ecode3 = SWIG_AsVal_int(obj2, &val3);
22631 if (!SWIG_IsOK(ecode3)) {
22632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22633 }
22634 arg3 = static_cast< int >(val3);
22635 ecode4 = SWIG_AsVal_int(obj3, &val4);
22636 if (!SWIG_IsOK(ecode4)) {
22637 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22638 }
22639 arg4 = static_cast< int >(val4);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22647 return resultobj;
22648 fail:
22649 return NULL;
22650 }
22651
22652
22653 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22654 PyObject *resultobj = 0;
22655 wxPenList *arg1 = (wxPenList *) 0 ;
22656 wxPen *arg2 = (wxPen *) 0 ;
22657 void *argp1 = 0 ;
22658 int res1 = 0 ;
22659 void *argp2 = 0 ;
22660 int res2 = 0 ;
22661 PyObject * obj0 = 0 ;
22662 PyObject * obj1 = 0 ;
22663 char * kwnames[] = {
22664 (char *) "self",(char *) "pen", NULL
22665 };
22666
22667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22669 if (!SWIG_IsOK(res1)) {
22670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22671 }
22672 arg1 = reinterpret_cast< wxPenList * >(argp1);
22673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22674 if (!SWIG_IsOK(res2)) {
22675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22676 }
22677 arg2 = reinterpret_cast< wxPen * >(argp2);
22678 {
22679 PyThreadState* __tstate = wxPyBeginAllowThreads();
22680 (arg1)->AddPen(arg2);
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 resultobj = SWIG_Py_Void();
22685 return resultobj;
22686 fail:
22687 return NULL;
22688 }
22689
22690
22691 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22692 PyObject *resultobj = 0;
22693 wxPenList *arg1 = (wxPenList *) 0 ;
22694 wxPen *arg2 = (wxPen *) 0 ;
22695 void *argp1 = 0 ;
22696 int res1 = 0 ;
22697 void *argp2 = 0 ;
22698 int res2 = 0 ;
22699 PyObject * obj0 = 0 ;
22700 PyObject * obj1 = 0 ;
22701 char * kwnames[] = {
22702 (char *) "self",(char *) "pen", NULL
22703 };
22704
22705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22707 if (!SWIG_IsOK(res1)) {
22708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22709 }
22710 arg1 = reinterpret_cast< wxPenList * >(argp1);
22711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22712 if (!SWIG_IsOK(res2)) {
22713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22714 }
22715 arg2 = reinterpret_cast< wxPen * >(argp2);
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
22718 (arg1)->RemovePen(arg2);
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 resultobj = SWIG_Py_Void();
22723 return resultobj;
22724 fail:
22725 return NULL;
22726 }
22727
22728
22729 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22730 PyObject *obj;
22731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22732 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22733 return SWIG_Py_Void();
22734 }
22735
22736 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22737 PyObject *resultobj = 0;
22738 wxBrushList *arg1 = (wxBrushList *) 0 ;
22739 wxColour *arg2 = 0 ;
22740 int arg3 = (int) wxSOLID ;
22741 wxBrush *result = 0 ;
22742 void *argp1 = 0 ;
22743 int res1 = 0 ;
22744 wxColour temp2 ;
22745 int val3 ;
22746 int ecode3 = 0 ;
22747 PyObject * obj0 = 0 ;
22748 PyObject * obj1 = 0 ;
22749 PyObject * obj2 = 0 ;
22750 char * kwnames[] = {
22751 (char *) "self",(char *) "colour",(char *) "style", NULL
22752 };
22753
22754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22758 }
22759 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22760 {
22761 arg2 = &temp2;
22762 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22763 }
22764 if (obj2) {
22765 ecode3 = SWIG_AsVal_int(obj2, &val3);
22766 if (!SWIG_IsOK(ecode3)) {
22767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22768 }
22769 arg3 = static_cast< int >(val3);
22770 }
22771 {
22772 PyThreadState* __tstate = wxPyBeginAllowThreads();
22773 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22774 wxPyEndAllowThreads(__tstate);
22775 if (PyErr_Occurred()) SWIG_fail;
22776 }
22777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22785 PyObject *resultobj = 0;
22786 wxBrushList *arg1 = (wxBrushList *) 0 ;
22787 wxBrush *arg2 = (wxBrush *) 0 ;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 void *argp2 = 0 ;
22791 int res2 = 0 ;
22792 PyObject * obj0 = 0 ;
22793 PyObject * obj1 = 0 ;
22794 char * kwnames[] = {
22795 (char *) "self",(char *) "brush", NULL
22796 };
22797
22798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22800 if (!SWIG_IsOK(res1)) {
22801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22802 }
22803 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22805 if (!SWIG_IsOK(res2)) {
22806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22807 }
22808 arg2 = reinterpret_cast< wxBrush * >(argp2);
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 (arg1)->AddBrush(arg2);
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 resultobj = SWIG_Py_Void();
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj = 0;
22824 wxBrushList *arg1 = (wxBrushList *) 0 ;
22825 wxBrush *arg2 = (wxBrush *) 0 ;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 void *argp2 = 0 ;
22829 int res2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "brush", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22840 }
22841 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22843 if (!SWIG_IsOK(res2)) {
22844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22845 }
22846 arg2 = reinterpret_cast< wxBrush * >(argp2);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 (arg1)->RemoveBrush(arg2);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_Py_Void();
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22861 PyObject *obj;
22862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22863 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22864 return SWIG_Py_Void();
22865 }
22866
22867 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22868 PyObject *resultobj = 0;
22869 wxFontList *arg1 = (wxFontList *) 0 ;
22870 int arg2 ;
22871 int arg3 ;
22872 int arg4 ;
22873 int arg5 ;
22874 bool arg6 = (bool) false ;
22875 wxString const &arg7_defvalue = wxPyEmptyString ;
22876 wxString *arg7 = (wxString *) &arg7_defvalue ;
22877 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22878 wxFont *result = 0 ;
22879 void *argp1 = 0 ;
22880 int res1 = 0 ;
22881 int val2 ;
22882 int ecode2 = 0 ;
22883 int val3 ;
22884 int ecode3 = 0 ;
22885 int val4 ;
22886 int ecode4 = 0 ;
22887 int val5 ;
22888 int ecode5 = 0 ;
22889 bool val6 ;
22890 int ecode6 = 0 ;
22891 bool temp7 = false ;
22892 int val8 ;
22893 int ecode8 = 0 ;
22894 PyObject * obj0 = 0 ;
22895 PyObject * obj1 = 0 ;
22896 PyObject * obj2 = 0 ;
22897 PyObject * obj3 = 0 ;
22898 PyObject * obj4 = 0 ;
22899 PyObject * obj5 = 0 ;
22900 PyObject * obj6 = 0 ;
22901 PyObject * obj7 = 0 ;
22902 char * kwnames[] = {
22903 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22904 };
22905
22906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22908 if (!SWIG_IsOK(res1)) {
22909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22910 }
22911 arg1 = reinterpret_cast< wxFontList * >(argp1);
22912 ecode2 = SWIG_AsVal_int(obj1, &val2);
22913 if (!SWIG_IsOK(ecode2)) {
22914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22915 }
22916 arg2 = static_cast< int >(val2);
22917 ecode3 = SWIG_AsVal_int(obj2, &val3);
22918 if (!SWIG_IsOK(ecode3)) {
22919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22920 }
22921 arg3 = static_cast< int >(val3);
22922 ecode4 = SWIG_AsVal_int(obj3, &val4);
22923 if (!SWIG_IsOK(ecode4)) {
22924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22925 }
22926 arg4 = static_cast< int >(val4);
22927 ecode5 = SWIG_AsVal_int(obj4, &val5);
22928 if (!SWIG_IsOK(ecode5)) {
22929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22930 }
22931 arg5 = static_cast< int >(val5);
22932 if (obj5) {
22933 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22934 if (!SWIG_IsOK(ecode6)) {
22935 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22936 }
22937 arg6 = static_cast< bool >(val6);
22938 }
22939 if (obj6) {
22940 {
22941 arg7 = wxString_in_helper(obj6);
22942 if (arg7 == NULL) SWIG_fail;
22943 temp7 = true;
22944 }
22945 }
22946 if (obj7) {
22947 ecode8 = SWIG_AsVal_int(obj7, &val8);
22948 if (!SWIG_IsOK(ecode8)) {
22949 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22950 }
22951 arg8 = static_cast< wxFontEncoding >(val8);
22952 }
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22956 wxPyEndAllowThreads(__tstate);
22957 if (PyErr_Occurred()) SWIG_fail;
22958 }
22959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22960 {
22961 if (temp7)
22962 delete arg7;
22963 }
22964 return resultobj;
22965 fail:
22966 {
22967 if (temp7)
22968 delete arg7;
22969 }
22970 return NULL;
22971 }
22972
22973
22974 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj = 0;
22976 wxFontList *arg1 = (wxFontList *) 0 ;
22977 wxFont *arg2 = (wxFont *) 0 ;
22978 void *argp1 = 0 ;
22979 int res1 = 0 ;
22980 void *argp2 = 0 ;
22981 int res2 = 0 ;
22982 PyObject * obj0 = 0 ;
22983 PyObject * obj1 = 0 ;
22984 char * kwnames[] = {
22985 (char *) "self",(char *) "font", NULL
22986 };
22987
22988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22990 if (!SWIG_IsOK(res1)) {
22991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22992 }
22993 arg1 = reinterpret_cast< wxFontList * >(argp1);
22994 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22995 if (!SWIG_IsOK(res2)) {
22996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22997 }
22998 arg2 = reinterpret_cast< wxFont * >(argp2);
22999 {
23000 PyThreadState* __tstate = wxPyBeginAllowThreads();
23001 (arg1)->AddFont(arg2);
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 resultobj = SWIG_Py_Void();
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23013 PyObject *resultobj = 0;
23014 wxFontList *arg1 = (wxFontList *) 0 ;
23015 wxFont *arg2 = (wxFont *) 0 ;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 void *argp2 = 0 ;
23019 int res2 = 0 ;
23020 PyObject * obj0 = 0 ;
23021 PyObject * obj1 = 0 ;
23022 char * kwnames[] = {
23023 (char *) "self",(char *) "font", NULL
23024 };
23025
23026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23028 if (!SWIG_IsOK(res1)) {
23029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23030 }
23031 arg1 = reinterpret_cast< wxFontList * >(argp1);
23032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23033 if (!SWIG_IsOK(res2)) {
23034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23035 }
23036 arg2 = reinterpret_cast< wxFont * >(argp2);
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 (arg1)->RemoveFont(arg2);
23040 wxPyEndAllowThreads(__tstate);
23041 if (PyErr_Occurred()) SWIG_fail;
23042 }
23043 resultobj = SWIG_Py_Void();
23044 return resultobj;
23045 fail:
23046 return NULL;
23047 }
23048
23049
23050 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23051 PyObject *obj;
23052 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23053 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23054 return SWIG_Py_Void();
23055 }
23056
23057 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23058 PyObject *resultobj = 0;
23059 wxColourDatabase *result = 0 ;
23060
23061 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23062 {
23063 if (!wxPyCheckForApp()) SWIG_fail;
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 result = (wxColourDatabase *)new wxColourDatabase();
23066 wxPyEndAllowThreads(__tstate);
23067 if (PyErr_Occurred()) SWIG_fail;
23068 }
23069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23070 return resultobj;
23071 fail:
23072 return NULL;
23073 }
23074
23075
23076 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23077 PyObject *resultobj = 0;
23078 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23079 void *argp1 = 0 ;
23080 int res1 = 0 ;
23081 PyObject *swig_obj[1] ;
23082
23083 if (!args) SWIG_fail;
23084 swig_obj[0] = args;
23085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23086 if (!SWIG_IsOK(res1)) {
23087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23088 }
23089 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23090 {
23091 PyThreadState* __tstate = wxPyBeginAllowThreads();
23092 delete arg1;
23093
23094 wxPyEndAllowThreads(__tstate);
23095 if (PyErr_Occurred()) SWIG_fail;
23096 }
23097 resultobj = SWIG_Py_Void();
23098 return resultobj;
23099 fail:
23100 return NULL;
23101 }
23102
23103
23104 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23105 PyObject *resultobj = 0;
23106 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23107 wxString *arg2 = 0 ;
23108 wxColour result;
23109 void *argp1 = 0 ;
23110 int res1 = 0 ;
23111 bool temp2 = false ;
23112 PyObject * obj0 = 0 ;
23113 PyObject * obj1 = 0 ;
23114 char * kwnames[] = {
23115 (char *) "self",(char *) "name", NULL
23116 };
23117
23118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23120 if (!SWIG_IsOK(res1)) {
23121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23122 }
23123 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23124 {
23125 arg2 = wxString_in_helper(obj1);
23126 if (arg2 == NULL) SWIG_fail;
23127 temp2 = true;
23128 }
23129 {
23130 PyThreadState* __tstate = wxPyBeginAllowThreads();
23131 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23132 wxPyEndAllowThreads(__tstate);
23133 if (PyErr_Occurred()) SWIG_fail;
23134 }
23135 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23136 {
23137 if (temp2)
23138 delete arg2;
23139 }
23140 return resultobj;
23141 fail:
23142 {
23143 if (temp2)
23144 delete arg2;
23145 }
23146 return NULL;
23147 }
23148
23149
23150 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23151 PyObject *resultobj = 0;
23152 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23153 wxColour *arg2 = 0 ;
23154 wxString result;
23155 void *argp1 = 0 ;
23156 int res1 = 0 ;
23157 wxColour temp2 ;
23158 PyObject * obj0 = 0 ;
23159 PyObject * obj1 = 0 ;
23160 char * kwnames[] = {
23161 (char *) "self",(char *) "colour", NULL
23162 };
23163
23164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23168 }
23169 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23170 {
23171 arg2 = &temp2;
23172 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23173 }
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 {
23181 #if wxUSE_UNICODE
23182 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23183 #else
23184 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23185 #endif
23186 }
23187 return resultobj;
23188 fail:
23189 return NULL;
23190 }
23191
23192
23193 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23194 PyObject *resultobj = 0;
23195 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23196 wxString *arg2 = 0 ;
23197 wxColour *arg3 = 0 ;
23198 void *argp1 = 0 ;
23199 int res1 = 0 ;
23200 bool temp2 = false ;
23201 wxColour temp3 ;
23202 PyObject * obj0 = 0 ;
23203 PyObject * obj1 = 0 ;
23204 PyObject * obj2 = 0 ;
23205 char * kwnames[] = {
23206 (char *) "self",(char *) "name",(char *) "colour", NULL
23207 };
23208
23209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23211 if (!SWIG_IsOK(res1)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23213 }
23214 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23215 {
23216 arg2 = wxString_in_helper(obj1);
23217 if (arg2 == NULL) SWIG_fail;
23218 temp2 = true;
23219 }
23220 {
23221 arg3 = &temp3;
23222 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23223 }
23224 {
23225 PyThreadState* __tstate = wxPyBeginAllowThreads();
23226 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_Py_Void();
23231 {
23232 if (temp2)
23233 delete arg2;
23234 }
23235 return resultobj;
23236 fail:
23237 {
23238 if (temp2)
23239 delete arg2;
23240 }
23241 return NULL;
23242 }
23243
23244
23245 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj = 0;
23247 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23248 wxString *arg2 = 0 ;
23249 int arg3 ;
23250 int arg4 ;
23251 int arg5 ;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 bool temp2 = false ;
23255 int val3 ;
23256 int ecode3 = 0 ;
23257 int val4 ;
23258 int ecode4 = 0 ;
23259 int val5 ;
23260 int ecode5 = 0 ;
23261 PyObject * obj0 = 0 ;
23262 PyObject * obj1 = 0 ;
23263 PyObject * obj2 = 0 ;
23264 PyObject * obj3 = 0 ;
23265 PyObject * obj4 = 0 ;
23266 char * kwnames[] = {
23267 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23268 };
23269
23270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23272 if (!SWIG_IsOK(res1)) {
23273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23274 }
23275 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23276 {
23277 arg2 = wxString_in_helper(obj1);
23278 if (arg2 == NULL) SWIG_fail;
23279 temp2 = true;
23280 }
23281 ecode3 = SWIG_AsVal_int(obj2, &val3);
23282 if (!SWIG_IsOK(ecode3)) {
23283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23284 }
23285 arg3 = static_cast< int >(val3);
23286 ecode4 = SWIG_AsVal_int(obj3, &val4);
23287 if (!SWIG_IsOK(ecode4)) {
23288 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23289 }
23290 arg4 = static_cast< int >(val4);
23291 ecode5 = SWIG_AsVal_int(obj4, &val5);
23292 if (!SWIG_IsOK(ecode5)) {
23293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23294 }
23295 arg5 = static_cast< int >(val5);
23296 {
23297 PyThreadState* __tstate = wxPyBeginAllowThreads();
23298 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 resultobj = SWIG_Py_Void();
23303 {
23304 if (temp2)
23305 delete arg2;
23306 }
23307 return resultobj;
23308 fail:
23309 {
23310 if (temp2)
23311 delete arg2;
23312 }
23313 return NULL;
23314 }
23315
23316
23317 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23318 PyObject *obj;
23319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23320 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23321 return SWIG_Py_Void();
23322 }
23323
23324 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23325 return SWIG_Python_InitShadowInstance(args);
23326 }
23327
23328 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23329 PyObject *resultobj = 0;
23330 wxFontList *result = 0 ;
23331
23332 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (wxFontList *)_wxPyInitTheFontList();
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *resultobj = 0;
23348 wxPenList *result = 0 ;
23349
23350 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 result = (wxPenList *)_wxPyInitThePenList();
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23365 PyObject *resultobj = 0;
23366 wxBrushList *result = 0 ;
23367
23368 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23369 {
23370 PyThreadState* __tstate = wxPyBeginAllowThreads();
23371 result = (wxBrushList *)_wxPyInitTheBrushList();
23372 wxPyEndAllowThreads(__tstate);
23373 if (PyErr_Occurred()) SWIG_fail;
23374 }
23375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23376 return resultobj;
23377 fail:
23378 return NULL;
23379 }
23380
23381
23382 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23383 PyObject *resultobj = 0;
23384 wxColourDatabase *result = 0 ;
23385
23386 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23394 return resultobj;
23395 fail:
23396 return NULL;
23397 }
23398
23399
23400 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23401 PyObject *resultobj = 0;
23402 wxEffects *result = 0 ;
23403
23404 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23405 {
23406 PyThreadState* __tstate = wxPyBeginAllowThreads();
23407 result = (wxEffects *)new wxEffects();
23408 wxPyEndAllowThreads(__tstate);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 }
23411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23412 return resultobj;
23413 fail:
23414 return NULL;
23415 }
23416
23417
23418 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23419 PyObject *resultobj = 0;
23420 wxEffects *arg1 = (wxEffects *) 0 ;
23421 wxColour result;
23422 void *argp1 = 0 ;
23423 int res1 = 0 ;
23424 PyObject *swig_obj[1] ;
23425
23426 if (!args) SWIG_fail;
23427 swig_obj[0] = args;
23428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23429 if (!SWIG_IsOK(res1)) {
23430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23431 }
23432 arg1 = reinterpret_cast< wxEffects * >(argp1);
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 result = ((wxEffects const *)arg1)->GetHighlightColour();
23436 wxPyEndAllowThreads(__tstate);
23437 if (PyErr_Occurred()) SWIG_fail;
23438 }
23439 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23440 return resultobj;
23441 fail:
23442 return NULL;
23443 }
23444
23445
23446 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23447 PyObject *resultobj = 0;
23448 wxEffects *arg1 = (wxEffects *) 0 ;
23449 wxColour result;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 PyObject *swig_obj[1] ;
23453
23454 if (!args) SWIG_fail;
23455 swig_obj[0] = args;
23456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23457 if (!SWIG_IsOK(res1)) {
23458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23459 }
23460 arg1 = reinterpret_cast< wxEffects * >(argp1);
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 result = ((wxEffects const *)arg1)->GetLightShadow();
23464 wxPyEndAllowThreads(__tstate);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 }
23467 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23468 return resultobj;
23469 fail:
23470 return NULL;
23471 }
23472
23473
23474 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23475 PyObject *resultobj = 0;
23476 wxEffects *arg1 = (wxEffects *) 0 ;
23477 wxColour result;
23478 void *argp1 = 0 ;
23479 int res1 = 0 ;
23480 PyObject *swig_obj[1] ;
23481
23482 if (!args) SWIG_fail;
23483 swig_obj[0] = args;
23484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23485 if (!SWIG_IsOK(res1)) {
23486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23487 }
23488 arg1 = reinterpret_cast< wxEffects * >(argp1);
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = ((wxEffects const *)arg1)->GetFaceColour();
23492 wxPyEndAllowThreads(__tstate);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 }
23495 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23496 return resultobj;
23497 fail:
23498 return NULL;
23499 }
23500
23501
23502 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23503 PyObject *resultobj = 0;
23504 wxEffects *arg1 = (wxEffects *) 0 ;
23505 wxColour result;
23506 void *argp1 = 0 ;
23507 int res1 = 0 ;
23508 PyObject *swig_obj[1] ;
23509
23510 if (!args) SWIG_fail;
23511 swig_obj[0] = args;
23512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23513 if (!SWIG_IsOK(res1)) {
23514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23515 }
23516 arg1 = reinterpret_cast< wxEffects * >(argp1);
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 result = ((wxEffects const *)arg1)->GetMediumShadow();
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23531 PyObject *resultobj = 0;
23532 wxEffects *arg1 = (wxEffects *) 0 ;
23533 wxColour result;
23534 void *argp1 = 0 ;
23535 int res1 = 0 ;
23536 PyObject *swig_obj[1] ;
23537
23538 if (!args) SWIG_fail;
23539 swig_obj[0] = args;
23540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23541 if (!SWIG_IsOK(res1)) {
23542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23543 }
23544 arg1 = reinterpret_cast< wxEffects * >(argp1);
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 result = ((wxEffects const *)arg1)->GetDarkShadow();
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23552 return resultobj;
23553 fail:
23554 return NULL;
23555 }
23556
23557
23558 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj = 0;
23560 wxEffects *arg1 = (wxEffects *) 0 ;
23561 wxColour *arg2 = 0 ;
23562 void *argp1 = 0 ;
23563 int res1 = 0 ;
23564 wxColour temp2 ;
23565 PyObject * obj0 = 0 ;
23566 PyObject * obj1 = 0 ;
23567 char * kwnames[] = {
23568 (char *) "self",(char *) "c", NULL
23569 };
23570
23571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23573 if (!SWIG_IsOK(res1)) {
23574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23575 }
23576 arg1 = reinterpret_cast< wxEffects * >(argp1);
23577 {
23578 arg2 = &temp2;
23579 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23580 }
23581 {
23582 PyThreadState* __tstate = wxPyBeginAllowThreads();
23583 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23584 wxPyEndAllowThreads(__tstate);
23585 if (PyErr_Occurred()) SWIG_fail;
23586 }
23587 resultobj = SWIG_Py_Void();
23588 return resultobj;
23589 fail:
23590 return NULL;
23591 }
23592
23593
23594 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23595 PyObject *resultobj = 0;
23596 wxEffects *arg1 = (wxEffects *) 0 ;
23597 wxColour *arg2 = 0 ;
23598 void *argp1 = 0 ;
23599 int res1 = 0 ;
23600 wxColour temp2 ;
23601 PyObject * obj0 = 0 ;
23602 PyObject * obj1 = 0 ;
23603 char * kwnames[] = {
23604 (char *) "self",(char *) "c", NULL
23605 };
23606
23607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23609 if (!SWIG_IsOK(res1)) {
23610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23611 }
23612 arg1 = reinterpret_cast< wxEffects * >(argp1);
23613 {
23614 arg2 = &temp2;
23615 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23616 }
23617 {
23618 PyThreadState* __tstate = wxPyBeginAllowThreads();
23619 (arg1)->SetLightShadow((wxColour const &)*arg2);
23620 wxPyEndAllowThreads(__tstate);
23621 if (PyErr_Occurred()) SWIG_fail;
23622 }
23623 resultobj = SWIG_Py_Void();
23624 return resultobj;
23625 fail:
23626 return NULL;
23627 }
23628
23629
23630 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23631 PyObject *resultobj = 0;
23632 wxEffects *arg1 = (wxEffects *) 0 ;
23633 wxColour *arg2 = 0 ;
23634 void *argp1 = 0 ;
23635 int res1 = 0 ;
23636 wxColour temp2 ;
23637 PyObject * obj0 = 0 ;
23638 PyObject * obj1 = 0 ;
23639 char * kwnames[] = {
23640 (char *) "self",(char *) "c", NULL
23641 };
23642
23643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23647 }
23648 arg1 = reinterpret_cast< wxEffects * >(argp1);
23649 {
23650 arg2 = &temp2;
23651 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23652 }
23653 {
23654 PyThreadState* __tstate = wxPyBeginAllowThreads();
23655 (arg1)->SetFaceColour((wxColour const &)*arg2);
23656 wxPyEndAllowThreads(__tstate);
23657 if (PyErr_Occurred()) SWIG_fail;
23658 }
23659 resultobj = SWIG_Py_Void();
23660 return resultobj;
23661 fail:
23662 return NULL;
23663 }
23664
23665
23666 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23667 PyObject *resultobj = 0;
23668 wxEffects *arg1 = (wxEffects *) 0 ;
23669 wxColour *arg2 = 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 wxColour temp2 ;
23673 PyObject * obj0 = 0 ;
23674 PyObject * obj1 = 0 ;
23675 char * kwnames[] = {
23676 (char *) "self",(char *) "c", NULL
23677 };
23678
23679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23681 if (!SWIG_IsOK(res1)) {
23682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23683 }
23684 arg1 = reinterpret_cast< wxEffects * >(argp1);
23685 {
23686 arg2 = &temp2;
23687 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23688 }
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_Py_Void();
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj = 0;
23704 wxEffects *arg1 = (wxEffects *) 0 ;
23705 wxColour *arg2 = 0 ;
23706 void *argp1 = 0 ;
23707 int res1 = 0 ;
23708 wxColour temp2 ;
23709 PyObject * obj0 = 0 ;
23710 PyObject * obj1 = 0 ;
23711 char * kwnames[] = {
23712 (char *) "self",(char *) "c", NULL
23713 };
23714
23715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23717 if (!SWIG_IsOK(res1)) {
23718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23719 }
23720 arg1 = reinterpret_cast< wxEffects * >(argp1);
23721 {
23722 arg2 = &temp2;
23723 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23724 }
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = SWIG_Py_Void();
23732 return resultobj;
23733 fail:
23734 return NULL;
23735 }
23736
23737
23738 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23739 PyObject *resultobj = 0;
23740 wxEffects *arg1 = (wxEffects *) 0 ;
23741 wxColour *arg2 = 0 ;
23742 wxColour *arg3 = 0 ;
23743 wxColour *arg4 = 0 ;
23744 wxColour *arg5 = 0 ;
23745 wxColour *arg6 = 0 ;
23746 void *argp1 = 0 ;
23747 int res1 = 0 ;
23748 wxColour temp2 ;
23749 wxColour temp3 ;
23750 wxColour temp4 ;
23751 wxColour temp5 ;
23752 wxColour temp6 ;
23753 PyObject * obj0 = 0 ;
23754 PyObject * obj1 = 0 ;
23755 PyObject * obj2 = 0 ;
23756 PyObject * obj3 = 0 ;
23757 PyObject * obj4 = 0 ;
23758 PyObject * obj5 = 0 ;
23759 char * kwnames[] = {
23760 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23761 };
23762
23763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23765 if (!SWIG_IsOK(res1)) {
23766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23767 }
23768 arg1 = reinterpret_cast< wxEffects * >(argp1);
23769 {
23770 arg2 = &temp2;
23771 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23772 }
23773 {
23774 arg3 = &temp3;
23775 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23776 }
23777 {
23778 arg4 = &temp4;
23779 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23780 }
23781 {
23782 arg5 = &temp5;
23783 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23784 }
23785 {
23786 arg6 = &temp6;
23787 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23788 }
23789 {
23790 PyThreadState* __tstate = wxPyBeginAllowThreads();
23791 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23792 wxPyEndAllowThreads(__tstate);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 }
23795 resultobj = SWIG_Py_Void();
23796 return resultobj;
23797 fail:
23798 return NULL;
23799 }
23800
23801
23802 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23803 PyObject *resultobj = 0;
23804 wxEffects *arg1 = (wxEffects *) 0 ;
23805 wxDC *arg2 = 0 ;
23806 wxRect *arg3 = 0 ;
23807 int arg4 = (int) 1 ;
23808 void *argp1 = 0 ;
23809 int res1 = 0 ;
23810 void *argp2 = 0 ;
23811 int res2 = 0 ;
23812 wxRect temp3 ;
23813 int val4 ;
23814 int ecode4 = 0 ;
23815 PyObject * obj0 = 0 ;
23816 PyObject * obj1 = 0 ;
23817 PyObject * obj2 = 0 ;
23818 PyObject * obj3 = 0 ;
23819 char * kwnames[] = {
23820 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23821 };
23822
23823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23827 }
23828 arg1 = reinterpret_cast< wxEffects * >(argp1);
23829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23830 if (!SWIG_IsOK(res2)) {
23831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23832 }
23833 if (!argp2) {
23834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23835 }
23836 arg2 = reinterpret_cast< wxDC * >(argp2);
23837 {
23838 arg3 = &temp3;
23839 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23840 }
23841 if (obj3) {
23842 ecode4 = SWIG_AsVal_int(obj3, &val4);
23843 if (!SWIG_IsOK(ecode4)) {
23844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23845 }
23846 arg4 = static_cast< int >(val4);
23847 }
23848 {
23849 PyThreadState* __tstate = wxPyBeginAllowThreads();
23850 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23851 wxPyEndAllowThreads(__tstate);
23852 if (PyErr_Occurred()) SWIG_fail;
23853 }
23854 resultobj = SWIG_Py_Void();
23855 return resultobj;
23856 fail:
23857 return NULL;
23858 }
23859
23860
23861 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23862 PyObject *resultobj = 0;
23863 wxEffects *arg1 = (wxEffects *) 0 ;
23864 wxRect *arg2 = 0 ;
23865 wxDC *arg3 = 0 ;
23866 wxBitmap *arg4 = 0 ;
23867 bool result;
23868 void *argp1 = 0 ;
23869 int res1 = 0 ;
23870 wxRect temp2 ;
23871 void *argp3 = 0 ;
23872 int res3 = 0 ;
23873 void *argp4 = 0 ;
23874 int res4 = 0 ;
23875 PyObject * obj0 = 0 ;
23876 PyObject * obj1 = 0 ;
23877 PyObject * obj2 = 0 ;
23878 PyObject * obj3 = 0 ;
23879 char * kwnames[] = {
23880 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23881 };
23882
23883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23885 if (!SWIG_IsOK(res1)) {
23886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23887 }
23888 arg1 = reinterpret_cast< wxEffects * >(argp1);
23889 {
23890 arg2 = &temp2;
23891 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23892 }
23893 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23894 if (!SWIG_IsOK(res3)) {
23895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23896 }
23897 if (!argp3) {
23898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23899 }
23900 arg3 = reinterpret_cast< wxDC * >(argp3);
23901 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23902 if (!SWIG_IsOK(res4)) {
23903 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23904 }
23905 if (!argp4) {
23906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23907 }
23908 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23909 {
23910 PyThreadState* __tstate = wxPyBeginAllowThreads();
23911 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23917 }
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23925 PyObject *obj;
23926 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23927 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23928 return SWIG_Py_Void();
23929 }
23930
23931 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23932 return SWIG_Python_InitShadowInstance(args);
23933 }
23934
23935 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23936 PyObject *resultobj = 0;
23937 int arg1 ;
23938 int arg2 ;
23939 bool arg3 ;
23940 wxSplitterRenderParams *result = 0 ;
23941 int val1 ;
23942 int ecode1 = 0 ;
23943 int val2 ;
23944 int ecode2 = 0 ;
23945 bool val3 ;
23946 int ecode3 = 0 ;
23947 PyObject * obj0 = 0 ;
23948 PyObject * obj1 = 0 ;
23949 PyObject * obj2 = 0 ;
23950 char * kwnames[] = {
23951 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23952 };
23953
23954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23955 ecode1 = SWIG_AsVal_int(obj0, &val1);
23956 if (!SWIG_IsOK(ecode1)) {
23957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23958 }
23959 arg1 = static_cast< int >(val1);
23960 ecode2 = SWIG_AsVal_int(obj1, &val2);
23961 if (!SWIG_IsOK(ecode2)) {
23962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23963 }
23964 arg2 = static_cast< int >(val2);
23965 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23966 if (!SWIG_IsOK(ecode3)) {
23967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23968 }
23969 arg3 = static_cast< bool >(val3);
23970 {
23971 PyThreadState* __tstate = wxPyBeginAllowThreads();
23972 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23973 wxPyEndAllowThreads(__tstate);
23974 if (PyErr_Occurred()) SWIG_fail;
23975 }
23976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23977 return resultobj;
23978 fail:
23979 return NULL;
23980 }
23981
23982
23983 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23984 PyObject *resultobj = 0;
23985 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23986 void *argp1 = 0 ;
23987 int res1 = 0 ;
23988 PyObject *swig_obj[1] ;
23989
23990 if (!args) SWIG_fail;
23991 swig_obj[0] = args;
23992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23993 if (!SWIG_IsOK(res1)) {
23994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23995 }
23996 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 delete arg1;
24000
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 resultobj = SWIG_Py_Void();
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24012 PyObject *resultobj = 0;
24013 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24014 int result;
24015 void *argp1 = 0 ;
24016 int res1 = 0 ;
24017 PyObject *swig_obj[1] ;
24018
24019 if (!args) SWIG_fail;
24020 swig_obj[0] = args;
24021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24024 }
24025 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24026 result = (int)(int) ((arg1)->widthSash);
24027 resultobj = SWIG_From_int(static_cast< int >(result));
24028 return resultobj;
24029 fail:
24030 return NULL;
24031 }
24032
24033
24034 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24035 PyObject *resultobj = 0;
24036 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24037 int result;
24038 void *argp1 = 0 ;
24039 int res1 = 0 ;
24040 PyObject *swig_obj[1] ;
24041
24042 if (!args) SWIG_fail;
24043 swig_obj[0] = args;
24044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24045 if (!SWIG_IsOK(res1)) {
24046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24047 }
24048 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24049 result = (int)(int) ((arg1)->border);
24050 resultobj = SWIG_From_int(static_cast< int >(result));
24051 return resultobj;
24052 fail:
24053 return NULL;
24054 }
24055
24056
24057 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24058 PyObject *resultobj = 0;
24059 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24060 bool result;
24061 void *argp1 = 0 ;
24062 int res1 = 0 ;
24063 PyObject *swig_obj[1] ;
24064
24065 if (!args) SWIG_fail;
24066 swig_obj[0] = args;
24067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24070 }
24071 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24072 result = (bool)(bool) ((arg1)->isHotSensitive);
24073 resultobj = SWIG_From_bool(static_cast< bool >(result));
24074 return resultobj;
24075 fail:
24076 return NULL;
24077 }
24078
24079
24080 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24081 PyObject *obj;
24082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24083 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24084 return SWIG_Py_Void();
24085 }
24086
24087 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24088 return SWIG_Python_InitShadowInstance(args);
24089 }
24090
24091 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj = 0;
24093 int arg1 ;
24094 int arg2 ;
24095 wxRendererVersion *result = 0 ;
24096 int val1 ;
24097 int ecode1 = 0 ;
24098 int val2 ;
24099 int ecode2 = 0 ;
24100 PyObject * obj0 = 0 ;
24101 PyObject * obj1 = 0 ;
24102 char * kwnames[] = {
24103 (char *) "version_",(char *) "age_", NULL
24104 };
24105
24106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24107 ecode1 = SWIG_AsVal_int(obj0, &val1);
24108 if (!SWIG_IsOK(ecode1)) {
24109 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24110 }
24111 arg1 = static_cast< int >(val1);
24112 ecode2 = SWIG_AsVal_int(obj1, &val2);
24113 if (!SWIG_IsOK(ecode2)) {
24114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24115 }
24116 arg2 = static_cast< int >(val2);
24117 {
24118 PyThreadState* __tstate = wxPyBeginAllowThreads();
24119 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24124 return resultobj;
24125 fail:
24126 return NULL;
24127 }
24128
24129
24130 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24131 PyObject *resultobj = 0;
24132 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24133 void *argp1 = 0 ;
24134 int res1 = 0 ;
24135 PyObject *swig_obj[1] ;
24136
24137 if (!args) SWIG_fail;
24138 swig_obj[0] = args;
24139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24142 }
24143 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24144 {
24145 PyThreadState* __tstate = wxPyBeginAllowThreads();
24146 delete arg1;
24147
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 resultobj = SWIG_Py_Void();
24152 return resultobj;
24153 fail:
24154 return NULL;
24155 }
24156
24157
24158 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24159 PyObject *resultobj = 0;
24160 wxRendererVersion *arg1 = 0 ;
24161 bool result;
24162 void *argp1 = 0 ;
24163 int res1 = 0 ;
24164 PyObject * obj0 = 0 ;
24165 char * kwnames[] = {
24166 (char *) "ver", NULL
24167 };
24168
24169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24170 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24171 if (!SWIG_IsOK(res1)) {
24172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24173 }
24174 if (!argp1) {
24175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24176 }
24177 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24178 {
24179 PyThreadState* __tstate = wxPyBeginAllowThreads();
24180 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24181 wxPyEndAllowThreads(__tstate);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 {
24185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24186 }
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24196 int result;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 PyObject *swig_obj[1] ;
24200
24201 if (!args) SWIG_fail;
24202 swig_obj[0] = args;
24203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24206 }
24207 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24208 result = (int)(int) ((arg1)->version);
24209 resultobj = SWIG_From_int(static_cast< int >(result));
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24217 PyObject *resultobj = 0;
24218 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24219 int result;
24220 void *argp1 = 0 ;
24221 int res1 = 0 ;
24222 PyObject *swig_obj[1] ;
24223
24224 if (!args) SWIG_fail;
24225 swig_obj[0] = args;
24226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24227 if (!SWIG_IsOK(res1)) {
24228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24229 }
24230 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24231 result = (int)(int) ((arg1)->age);
24232 resultobj = SWIG_From_int(static_cast< int >(result));
24233 return resultobj;
24234 fail:
24235 return NULL;
24236 }
24237
24238
24239 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24240 PyObject *obj;
24241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24242 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24243 return SWIG_Py_Void();
24244 }
24245
24246 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24247 return SWIG_Python_InitShadowInstance(args);
24248 }
24249
24250 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24251 PyObject *resultobj = 0;
24252 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24253 wxWindow *arg2 = (wxWindow *) 0 ;
24254 wxDC *arg3 = 0 ;
24255 wxRect *arg4 = 0 ;
24256 int arg5 = (int) 0 ;
24257 void *argp1 = 0 ;
24258 int res1 = 0 ;
24259 void *argp2 = 0 ;
24260 int res2 = 0 ;
24261 void *argp3 = 0 ;
24262 int res3 = 0 ;
24263 wxRect temp4 ;
24264 int val5 ;
24265 int ecode5 = 0 ;
24266 PyObject * obj0 = 0 ;
24267 PyObject * obj1 = 0 ;
24268 PyObject * obj2 = 0 ;
24269 PyObject * obj3 = 0 ;
24270 PyObject * obj4 = 0 ;
24271 char * kwnames[] = {
24272 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24273 };
24274
24275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24277 if (!SWIG_IsOK(res1)) {
24278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24279 }
24280 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24281 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24282 if (!SWIG_IsOK(res2)) {
24283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24284 }
24285 arg2 = reinterpret_cast< wxWindow * >(argp2);
24286 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24287 if (!SWIG_IsOK(res3)) {
24288 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24289 }
24290 if (!argp3) {
24291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24292 }
24293 arg3 = reinterpret_cast< wxDC * >(argp3);
24294 {
24295 arg4 = &temp4;
24296 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24297 }
24298 if (obj4) {
24299 ecode5 = SWIG_AsVal_int(obj4, &val5);
24300 if (!SWIG_IsOK(ecode5)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24302 }
24303 arg5 = static_cast< int >(val5);
24304 }
24305 {
24306 PyThreadState* __tstate = wxPyBeginAllowThreads();
24307 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24308 wxPyEndAllowThreads(__tstate);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 }
24311 resultobj = SWIG_Py_Void();
24312 return resultobj;
24313 fail:
24314 return NULL;
24315 }
24316
24317
24318 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj = 0;
24320 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24321 wxWindow *arg2 = (wxWindow *) 0 ;
24322 wxDC *arg3 = 0 ;
24323 wxRect *arg4 = 0 ;
24324 int arg5 = (int) 0 ;
24325 void *argp1 = 0 ;
24326 int res1 = 0 ;
24327 void *argp2 = 0 ;
24328 int res2 = 0 ;
24329 void *argp3 = 0 ;
24330 int res3 = 0 ;
24331 wxRect temp4 ;
24332 int val5 ;
24333 int ecode5 = 0 ;
24334 PyObject * obj0 = 0 ;
24335 PyObject * obj1 = 0 ;
24336 PyObject * obj2 = 0 ;
24337 PyObject * obj3 = 0 ;
24338 PyObject * obj4 = 0 ;
24339 char * kwnames[] = {
24340 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24341 };
24342
24343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24345 if (!SWIG_IsOK(res1)) {
24346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24347 }
24348 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24349 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24350 if (!SWIG_IsOK(res2)) {
24351 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24352 }
24353 arg2 = reinterpret_cast< wxWindow * >(argp2);
24354 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24355 if (!SWIG_IsOK(res3)) {
24356 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24357 }
24358 if (!argp3) {
24359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24360 }
24361 arg3 = reinterpret_cast< wxDC * >(argp3);
24362 {
24363 arg4 = &temp4;
24364 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24365 }
24366 if (obj4) {
24367 ecode5 = SWIG_AsVal_int(obj4, &val5);
24368 if (!SWIG_IsOK(ecode5)) {
24369 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24370 }
24371 arg5 = static_cast< int >(val5);
24372 }
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24376 wxPyEndAllowThreads(__tstate);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 resultobj = SWIG_Py_Void();
24380 return resultobj;
24381 fail:
24382 return NULL;
24383 }
24384
24385
24386 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24389 wxWindow *arg2 = (wxWindow *) 0 ;
24390 wxDC *arg3 = 0 ;
24391 wxRect *arg4 = 0 ;
24392 int arg5 = (int) 0 ;
24393 void *argp1 = 0 ;
24394 int res1 = 0 ;
24395 void *argp2 = 0 ;
24396 int res2 = 0 ;
24397 void *argp3 = 0 ;
24398 int res3 = 0 ;
24399 wxRect temp4 ;
24400 int val5 ;
24401 int ecode5 = 0 ;
24402 PyObject * obj0 = 0 ;
24403 PyObject * obj1 = 0 ;
24404 PyObject * obj2 = 0 ;
24405 PyObject * obj3 = 0 ;
24406 PyObject * obj4 = 0 ;
24407 char * kwnames[] = {
24408 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24409 };
24410
24411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24413 if (!SWIG_IsOK(res1)) {
24414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24415 }
24416 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24417 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24418 if (!SWIG_IsOK(res2)) {
24419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24420 }
24421 arg2 = reinterpret_cast< wxWindow * >(argp2);
24422 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24423 if (!SWIG_IsOK(res3)) {
24424 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24425 }
24426 if (!argp3) {
24427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24428 }
24429 arg3 = reinterpret_cast< wxDC * >(argp3);
24430 {
24431 arg4 = &temp4;
24432 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24433 }
24434 if (obj4) {
24435 ecode5 = SWIG_AsVal_int(obj4, &val5);
24436 if (!SWIG_IsOK(ecode5)) {
24437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24438 }
24439 arg5 = static_cast< int >(val5);
24440 }
24441 {
24442 PyThreadState* __tstate = wxPyBeginAllowThreads();
24443 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24444 wxPyEndAllowThreads(__tstate);
24445 if (PyErr_Occurred()) SWIG_fail;
24446 }
24447 resultobj = SWIG_Py_Void();
24448 return resultobj;
24449 fail:
24450 return NULL;
24451 }
24452
24453
24454 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24455 PyObject *resultobj = 0;
24456 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24457 wxWindow *arg2 = (wxWindow *) 0 ;
24458 wxDC *arg3 = 0 ;
24459 wxSize *arg4 = 0 ;
24460 int arg5 ;
24461 wxOrientation arg6 ;
24462 int arg7 = (int) 0 ;
24463 void *argp1 = 0 ;
24464 int res1 = 0 ;
24465 void *argp2 = 0 ;
24466 int res2 = 0 ;
24467 void *argp3 = 0 ;
24468 int res3 = 0 ;
24469 wxSize temp4 ;
24470 int val5 ;
24471 int ecode5 = 0 ;
24472 int val6 ;
24473 int ecode6 = 0 ;
24474 int val7 ;
24475 int ecode7 = 0 ;
24476 PyObject * obj0 = 0 ;
24477 PyObject * obj1 = 0 ;
24478 PyObject * obj2 = 0 ;
24479 PyObject * obj3 = 0 ;
24480 PyObject * obj4 = 0 ;
24481 PyObject * obj5 = 0 ;
24482 PyObject * obj6 = 0 ;
24483 char * kwnames[] = {
24484 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24485 };
24486
24487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24489 if (!SWIG_IsOK(res1)) {
24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24491 }
24492 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24494 if (!SWIG_IsOK(res2)) {
24495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24496 }
24497 arg2 = reinterpret_cast< wxWindow * >(argp2);
24498 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24499 if (!SWIG_IsOK(res3)) {
24500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24501 }
24502 if (!argp3) {
24503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24504 }
24505 arg3 = reinterpret_cast< wxDC * >(argp3);
24506 {
24507 arg4 = &temp4;
24508 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24509 }
24510 ecode5 = SWIG_AsVal_int(obj4, &val5);
24511 if (!SWIG_IsOK(ecode5)) {
24512 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24513 }
24514 arg5 = static_cast< int >(val5);
24515 ecode6 = SWIG_AsVal_int(obj5, &val6);
24516 if (!SWIG_IsOK(ecode6)) {
24517 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24518 }
24519 arg6 = static_cast< wxOrientation >(val6);
24520 if (obj6) {
24521 ecode7 = SWIG_AsVal_int(obj6, &val7);
24522 if (!SWIG_IsOK(ecode7)) {
24523 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24524 }
24525 arg7 = static_cast< int >(val7);
24526 }
24527 {
24528 PyThreadState* __tstate = wxPyBeginAllowThreads();
24529 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24530 wxPyEndAllowThreads(__tstate);
24531 if (PyErr_Occurred()) SWIG_fail;
24532 }
24533 resultobj = SWIG_Py_Void();
24534 return resultobj;
24535 fail:
24536 return NULL;
24537 }
24538
24539
24540 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24541 PyObject *resultobj = 0;
24542 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24543 wxWindow *arg2 = (wxWindow *) 0 ;
24544 wxDC *arg3 = 0 ;
24545 wxRect *arg4 = 0 ;
24546 int arg5 = (int) 0 ;
24547 void *argp1 = 0 ;
24548 int res1 = 0 ;
24549 void *argp2 = 0 ;
24550 int res2 = 0 ;
24551 void *argp3 = 0 ;
24552 int res3 = 0 ;
24553 wxRect temp4 ;
24554 int val5 ;
24555 int ecode5 = 0 ;
24556 PyObject * obj0 = 0 ;
24557 PyObject * obj1 = 0 ;
24558 PyObject * obj2 = 0 ;
24559 PyObject * obj3 = 0 ;
24560 PyObject * obj4 = 0 ;
24561 char * kwnames[] = {
24562 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24563 };
24564
24565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24567 if (!SWIG_IsOK(res1)) {
24568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24569 }
24570 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24571 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24572 if (!SWIG_IsOK(res2)) {
24573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24574 }
24575 arg2 = reinterpret_cast< wxWindow * >(argp2);
24576 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24577 if (!SWIG_IsOK(res3)) {
24578 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24579 }
24580 if (!argp3) {
24581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24582 }
24583 arg3 = reinterpret_cast< wxDC * >(argp3);
24584 {
24585 arg4 = &temp4;
24586 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24587 }
24588 if (obj4) {
24589 ecode5 = SWIG_AsVal_int(obj4, &val5);
24590 if (!SWIG_IsOK(ecode5)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24592 }
24593 arg5 = static_cast< int >(val5);
24594 }
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 resultobj = SWIG_Py_Void();
24602 return resultobj;
24603 fail:
24604 return NULL;
24605 }
24606
24607
24608 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24609 PyObject *resultobj = 0;
24610 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24611 wxWindow *arg2 = (wxWindow *) 0 ;
24612 wxDC *arg3 = 0 ;
24613 wxRect *arg4 = 0 ;
24614 int arg5 = (int) 0 ;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 void *argp2 = 0 ;
24618 int res2 = 0 ;
24619 void *argp3 = 0 ;
24620 int res3 = 0 ;
24621 wxRect temp4 ;
24622 int val5 ;
24623 int ecode5 = 0 ;
24624 PyObject * obj0 = 0 ;
24625 PyObject * obj1 = 0 ;
24626 PyObject * obj2 = 0 ;
24627 PyObject * obj3 = 0 ;
24628 PyObject * obj4 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24637 }
24638 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24639 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24640 if (!SWIG_IsOK(res2)) {
24641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24642 }
24643 arg2 = reinterpret_cast< wxWindow * >(argp2);
24644 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24645 if (!SWIG_IsOK(res3)) {
24646 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24647 }
24648 if (!argp3) {
24649 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24650 }
24651 arg3 = reinterpret_cast< wxDC * >(argp3);
24652 {
24653 arg4 = &temp4;
24654 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24655 }
24656 if (obj4) {
24657 ecode5 = SWIG_AsVal_int(obj4, &val5);
24658 if (!SWIG_IsOK(ecode5)) {
24659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24660 }
24661 arg5 = static_cast< int >(val5);
24662 }
24663 {
24664 PyThreadState* __tstate = wxPyBeginAllowThreads();
24665 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24666 wxPyEndAllowThreads(__tstate);
24667 if (PyErr_Occurred()) SWIG_fail;
24668 }
24669 resultobj = SWIG_Py_Void();
24670 return resultobj;
24671 fail:
24672 return NULL;
24673 }
24674
24675
24676 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24677 PyObject *resultobj = 0;
24678 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24679 wxWindow *arg2 = (wxWindow *) 0 ;
24680 wxDC *arg3 = 0 ;
24681 wxRect *arg4 = 0 ;
24682 int arg5 = (int) 0 ;
24683 void *argp1 = 0 ;
24684 int res1 = 0 ;
24685 void *argp2 = 0 ;
24686 int res2 = 0 ;
24687 void *argp3 = 0 ;
24688 int res3 = 0 ;
24689 wxRect temp4 ;
24690 int val5 ;
24691 int ecode5 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 PyObject * obj2 = 0 ;
24695 PyObject * obj3 = 0 ;
24696 PyObject * obj4 = 0 ;
24697 char * kwnames[] = {
24698 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24699 };
24700
24701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24703 if (!SWIG_IsOK(res1)) {
24704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24705 }
24706 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24708 if (!SWIG_IsOK(res2)) {
24709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24710 }
24711 arg2 = reinterpret_cast< wxWindow * >(argp2);
24712 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24713 if (!SWIG_IsOK(res3)) {
24714 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24715 }
24716 if (!argp3) {
24717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24718 }
24719 arg3 = reinterpret_cast< wxDC * >(argp3);
24720 {
24721 arg4 = &temp4;
24722 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24723 }
24724 if (obj4) {
24725 ecode5 = SWIG_AsVal_int(obj4, &val5);
24726 if (!SWIG_IsOK(ecode5)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24728 }
24729 arg5 = static_cast< int >(val5);
24730 }
24731 {
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24734 wxPyEndAllowThreads(__tstate);
24735 if (PyErr_Occurred()) SWIG_fail;
24736 }
24737 resultobj = SWIG_Py_Void();
24738 return resultobj;
24739 fail:
24740 return NULL;
24741 }
24742
24743
24744 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24745 PyObject *resultobj = 0;
24746 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24747 wxWindow *arg2 = (wxWindow *) 0 ;
24748 wxDC *arg3 = 0 ;
24749 wxRect *arg4 = 0 ;
24750 int arg5 = (int) 0 ;
24751 void *argp1 = 0 ;
24752 int res1 = 0 ;
24753 void *argp2 = 0 ;
24754 int res2 = 0 ;
24755 void *argp3 = 0 ;
24756 int res3 = 0 ;
24757 wxRect temp4 ;
24758 int val5 ;
24759 int ecode5 = 0 ;
24760 PyObject * obj0 = 0 ;
24761 PyObject * obj1 = 0 ;
24762 PyObject * obj2 = 0 ;
24763 PyObject * obj3 = 0 ;
24764 PyObject * obj4 = 0 ;
24765 char * kwnames[] = {
24766 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24767 };
24768
24769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24771 if (!SWIG_IsOK(res1)) {
24772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24773 }
24774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24775 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24776 if (!SWIG_IsOK(res2)) {
24777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24778 }
24779 arg2 = reinterpret_cast< wxWindow * >(argp2);
24780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24781 if (!SWIG_IsOK(res3)) {
24782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24783 }
24784 if (!argp3) {
24785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24786 }
24787 arg3 = reinterpret_cast< wxDC * >(argp3);
24788 {
24789 arg4 = &temp4;
24790 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24791 }
24792 if (obj4) {
24793 ecode5 = SWIG_AsVal_int(obj4, &val5);
24794 if (!SWIG_IsOK(ecode5)) {
24795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24796 }
24797 arg5 = static_cast< int >(val5);
24798 }
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24802 wxPyEndAllowThreads(__tstate);
24803 if (PyErr_Occurred()) SWIG_fail;
24804 }
24805 resultobj = SWIG_Py_Void();
24806 return resultobj;
24807 fail:
24808 return NULL;
24809 }
24810
24811
24812 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24813 PyObject *resultobj = 0;
24814 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24815 wxWindow *arg2 = (wxWindow *) 0 ;
24816 wxDC *arg3 = 0 ;
24817 wxRect *arg4 = 0 ;
24818 int arg5 = (int) 0 ;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 void *argp2 = 0 ;
24822 int res2 = 0 ;
24823 void *argp3 = 0 ;
24824 int res3 = 0 ;
24825 wxRect temp4 ;
24826 int val5 ;
24827 int ecode5 = 0 ;
24828 PyObject * obj0 = 0 ;
24829 PyObject * obj1 = 0 ;
24830 PyObject * obj2 = 0 ;
24831 PyObject * obj3 = 0 ;
24832 PyObject * obj4 = 0 ;
24833 char * kwnames[] = {
24834 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24835 };
24836
24837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24839 if (!SWIG_IsOK(res1)) {
24840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24841 }
24842 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24843 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24844 if (!SWIG_IsOK(res2)) {
24845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
24846 }
24847 arg2 = reinterpret_cast< wxWindow * >(argp2);
24848 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24849 if (!SWIG_IsOK(res3)) {
24850 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24851 }
24852 if (!argp3) {
24853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
24854 }
24855 arg3 = reinterpret_cast< wxDC * >(argp3);
24856 {
24857 arg4 = &temp4;
24858 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24859 }
24860 if (obj4) {
24861 ecode5 = SWIG_AsVal_int(obj4, &val5);
24862 if (!SWIG_IsOK(ecode5)) {
24863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
24864 }
24865 arg5 = static_cast< int >(val5);
24866 }
24867 {
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 resultobj = SWIG_Py_Void();
24874 return resultobj;
24875 fail:
24876 return NULL;
24877 }
24878
24879
24880 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24881 PyObject *resultobj = 0;
24882 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24883 wxWindow *arg2 = (wxWindow *) 0 ;
24884 SwigValueWrapper<wxSplitterRenderParams > result;
24885 void *argp1 = 0 ;
24886 int res1 = 0 ;
24887 void *argp2 = 0 ;
24888 int res2 = 0 ;
24889 PyObject * obj0 = 0 ;
24890 PyObject * obj1 = 0 ;
24891 char * kwnames[] = {
24892 (char *) "self",(char *) "win", NULL
24893 };
24894
24895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24897 if (!SWIG_IsOK(res1)) {
24898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24899 }
24900 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24902 if (!SWIG_IsOK(res2)) {
24903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24904 }
24905 arg2 = reinterpret_cast< wxWindow * >(argp2);
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24913 return resultobj;
24914 fail:
24915 return NULL;
24916 }
24917
24918
24919 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24920 PyObject *resultobj = 0;
24921 wxRendererNative *result = 0 ;
24922
24923 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24924 {
24925 PyThreadState* __tstate = wxPyBeginAllowThreads();
24926 {
24927 wxRendererNative &_result_ref = wxRendererNative::Get();
24928 result = (wxRendererNative *) &_result_ref;
24929 }
24930 wxPyEndAllowThreads(__tstate);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24941 PyObject *resultobj = 0;
24942 wxRendererNative *result = 0 ;
24943
24944 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24945 {
24946 PyThreadState* __tstate = wxPyBeginAllowThreads();
24947 {
24948 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24949 result = (wxRendererNative *) &_result_ref;
24950 }
24951 wxPyEndAllowThreads(__tstate);
24952 if (PyErr_Occurred()) SWIG_fail;
24953 }
24954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24955 return resultobj;
24956 fail:
24957 return NULL;
24958 }
24959
24960
24961 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24962 PyObject *resultobj = 0;
24963 wxRendererNative *result = 0 ;
24964
24965 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 {
24969 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24970 result = (wxRendererNative *) &_result_ref;
24971 }
24972 wxPyEndAllowThreads(__tstate);
24973 if (PyErr_Occurred()) SWIG_fail;
24974 }
24975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24976 return resultobj;
24977 fail:
24978 return NULL;
24979 }
24980
24981
24982 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24983 PyObject *resultobj = 0;
24984 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24985 wxRendererNative *result = 0 ;
24986 void *argp1 = 0 ;
24987 int res1 = 0 ;
24988 PyObject * obj0 = 0 ;
24989 char * kwnames[] = {
24990 (char *) "renderer", NULL
24991 };
24992
24993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24995 if (!SWIG_IsOK(res1)) {
24996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24997 }
24998 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24999 {
25000 PyThreadState* __tstate = wxPyBeginAllowThreads();
25001 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25002 wxPyEndAllowThreads(__tstate);
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25006 return resultobj;
25007 fail:
25008 return NULL;
25009 }
25010
25011
25012 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25013 PyObject *resultobj = 0;
25014 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25015 SwigValueWrapper<wxRendererVersion > result;
25016 void *argp1 = 0 ;
25017 int res1 = 0 ;
25018 PyObject *swig_obj[1] ;
25019
25020 if (!args) SWIG_fail;
25021 swig_obj[0] = args;
25022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25023 if (!SWIG_IsOK(res1)) {
25024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25025 }
25026 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25027 {
25028 PyThreadState* __tstate = wxPyBeginAllowThreads();
25029 result = ((wxRendererNative const *)arg1)->GetVersion();
25030 wxPyEndAllowThreads(__tstate);
25031 if (PyErr_Occurred()) SWIG_fail;
25032 }
25033 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25034 return resultobj;
25035 fail:
25036 return NULL;
25037 }
25038
25039
25040 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25041 PyObject *obj;
25042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25043 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25044 return SWIG_Py_Void();
25045 }
25046
25047 static PyMethodDef SwigMethods[] = {
25048 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25049 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25050 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25051 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25052 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25053 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25054 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25055 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25056 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25057 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25058 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25059 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25060 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25061 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25062 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25063 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25064 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
25065 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25066 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25067 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25068 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25069 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25070 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25071 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25072 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25073 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25074 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25075 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25077 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25078 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25079 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25080 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25081 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25082 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25083 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25084 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25085 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25086 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25087 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25088 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25089 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25091 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25092 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25093 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25094 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25095 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25097 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25099 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25100 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25101 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25102 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25103 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25105 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25107 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25108 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25109 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25110 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25111 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
25112 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
25113 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25114 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25115 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25116 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25117 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25120 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25121 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25122 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25123 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25124 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25125 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25126 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25127 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25128 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25129 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25130 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25131 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25132 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25133 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25134 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25135 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25136 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25137 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25138 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25139 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25141 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25142 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25143 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25144 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25145 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25146 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25147 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25148 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25149 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25150 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25151 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25155 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25156 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25157 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25158 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25159 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25160 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25161 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25162 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25163 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25164 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25165 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25166 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25167 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25168 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25169 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25171 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25172 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25173 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25174 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25175 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25176 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25177 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25178 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25179 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25180 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25181 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25182 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25184 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25187 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25188 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25189 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25190 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25194 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25195 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25197 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25200 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25201 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25202 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25205 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25207 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25215 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25218 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25219 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25221 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25222 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25223 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25224 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25225 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25226 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25227 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25228 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25229 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25230 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25231 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25232 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25233 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25234 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25235 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25236 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25237 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25238 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25239 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25240 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25241 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25242 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25243 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25244 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25245 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25246 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25247 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25248 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25252 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25253 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25254 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25255 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25256 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25257 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25258 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25259 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25260 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25261 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25262 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25263 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25264 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25265 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25266 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25267 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25268 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25269 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25270 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25271 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25272 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25273 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25274 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25275 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25276 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25277 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25278 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25279 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25280 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25282 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25283 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25284 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25285 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25286 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25287 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25288 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25289 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25290 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25291 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25292 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25293 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25294 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25295 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25296 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25297 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25298 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25299 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25300 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25301 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25302 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25303 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25304 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25305 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25306 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25307 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25308 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25309 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25310 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25311 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25312 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25313 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25314 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25315 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25316 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25318 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25319 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25320 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25321 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25322 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25323 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25324 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25325 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25326 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25327 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25328 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25329 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25331 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25332 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25333 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25334 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25335 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25336 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25337 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25338 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25339 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25340 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25341 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25342 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25343 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25344 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25345 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25346 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25347 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25348 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25350 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25351 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25352 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25353 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25354 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25355 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25356 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25357 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25358 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25359 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25360 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25361 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25362 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25363 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25364 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25365 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25366 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25367 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25368 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25369 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25370 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25371 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25372 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25373 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25374 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25375 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25376 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25377 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25378 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25379 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25380 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25381 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25382 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25383 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25384 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25386 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25387 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25388 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25390 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25391 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25392 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25393 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25394 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25396 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25397 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25398 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25399 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25400 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25401 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25402 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25403 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25404 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25405 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25406 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25407 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25408 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25414 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25415 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25416 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25417 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25418 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25419 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25420 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25421 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25422 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25424 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25426 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25427 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25429 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25431 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25432 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25433 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25434 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25435 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25436 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25437 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25438 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25439 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25441 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25442 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25443 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25444 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25445 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25446 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25447 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25448 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25449 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25450 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25451 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25452 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25453 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25454 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25455 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25456 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25457 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25458 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25459 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25460 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25461 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25462 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25463 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25464 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25465 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25466 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25467 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25468 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25469 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25470 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25471 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25472 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25473 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25474 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25475 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25476 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25477 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25478 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25479 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25480 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25481 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25482 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25483 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25484 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25485 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25486 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25487 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25488 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25489 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25490 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25491 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25492 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25493 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25494 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25495 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25496 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25497 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25498 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25499 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25500 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25501 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25502 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25503 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25504 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25505 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25506 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25507 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25508 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25509 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25510 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25511 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25512 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25513 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25514 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25515 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25516 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25517 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25518 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25519 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25520 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25521 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25522 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25523 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25524 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25525 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25526 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25527 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25528 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25529 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25530 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25531 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25532 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25533 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25534 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25535 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25536 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25537 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25538 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25539 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25540 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25541 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25542 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25543 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25544 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25545 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25546 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25547 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25548 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25549 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
25550 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
25551 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
25552 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
25553 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
25554 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
25555 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25556 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25557 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25558 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
25559 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25560 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25561 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25562 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25563 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25564 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25565 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25566 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25567 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25568 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25569 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25570 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25571 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25572 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25573 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25574 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25575 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25576 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25577 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25578 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25579 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25580 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25581 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25582 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25583 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25584 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25585 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25586 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25587 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25588 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25589 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25590 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25591 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25592 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25593 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25594 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25595 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25596 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25597 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25598 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25599 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25600 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25601 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25602 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25603 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25604 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25605 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25606 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25607 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25608 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25609 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25610 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25611 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25612 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25613 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25614 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25615 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25616 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25617 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25618 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25619 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25620 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25621 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25622 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25623 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25624 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25625 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25626 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25627 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25628 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25629 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25630 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25631 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25632 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25633 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25634 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25635 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25636 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25637 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25638 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25639 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25640 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25641 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25642 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25643 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25644 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25645 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25646 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25647 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25648 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25649 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25650 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25651 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25652 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25653 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25654 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
25655 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
25656 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25657 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25658 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25659 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25660 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25661 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25662 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25663 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25664 { NULL, NULL, 0, NULL }
25665 };
25666
25667
25668 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25669
25670 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25671 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25672 }
25673 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25674 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25675 }
25676 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25677 return (void *)((wxGDIObject *) ((wxIcon *) x));
25678 }
25679 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25680 return (void *)((wxGDIObject *) ((wxPalette *) x));
25681 }
25682 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25683 return (void *)((wxGDIObject *) ((wxPen *) x));
25684 }
25685 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25686 return (void *)((wxGDIObject *) ((wxFont *) x));
25687 }
25688 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25689 return (void *)((wxGDIObject *) ((wxCursor *) x));
25690 }
25691 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25692 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25693 }
25694 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25695 return (void *)((wxGDIObject *) ((wxRegion *) x));
25696 }
25697 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25698 return (void *)((wxGDIObject *) ((wxBrush *) x));
25699 }
25700 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25701 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25702 }
25703 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25704 return (void *)((wxDC *) ((wxScreenDC *) x));
25705 }
25706 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25707 return (void *)((wxDC *) ((wxMirrorDC *) x));
25708 }
25709 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25710 return (void *)((wxDC *) ((wxMemoryDC *) x));
25711 }
25712 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25713 return (void *)((wxDC *) ((wxWindowDC *) x));
25714 }
25715 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25716 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25717 }
25718 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25719 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25720 }
25721 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25722 return (void *)((wxDC *) ((wxClientDC *) x));
25723 }
25724 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25725 return (void *)((wxDC *) ((wxPaintDC *) x));
25726 }
25727 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25728 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25729 }
25730 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25731 return (void *)((wxDC *) ((wxPrinterDC *) x));
25732 }
25733 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25734 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25735 }
25736 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25737 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25738 }
25739 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25740 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25741 }
25742 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25743 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25744 }
25745 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25746 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25747 }
25748 static void *_p_wxPenTo_p_wxObject(void *x) {
25749 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25750 }
25751 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25752 return (void *)((wxObject *) ((wxRegionIterator *) x));
25753 }
25754 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25755 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25756 }
25757 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25758 return (void *)((wxObject *) ((wxSizerItem *) x));
25759 }
25760 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25761 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25762 }
25763 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25764 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25765 }
25766 static void *_p_wxIconTo_p_wxObject(void *x) {
25767 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25768 }
25769 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25770 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25771 }
25772 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25773 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25774 }
25775 static void *_p_wxSizerTo_p_wxObject(void *x) {
25776 return (void *)((wxObject *) ((wxSizer *) x));
25777 }
25778 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25779 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25780 }
25781 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25782 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25783 }
25784 static void *_p_wxEventTo_p_wxObject(void *x) {
25785 return (void *)((wxObject *) ((wxEvent *) x));
25786 }
25787 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25788 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25789 }
25790 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25791 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25792 }
25793 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25794 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25795 }
25796 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
25797 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
25798 }
25799 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25800 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25801 }
25802 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25803 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25804 }
25805 static void *_p_wxDCTo_p_wxObject(void *x) {
25806 return (void *)((wxObject *) ((wxDC *) x));
25807 }
25808 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25809 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25810 }
25811 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25812 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25813 }
25814 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25815 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25816 }
25817 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25818 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25819 }
25820 static void *_p_wxControlTo_p_wxObject(void *x) {
25821 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25822 }
25823 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25824 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25825 }
25826 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25827 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25828 }
25829 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25830 return (void *)((wxObject *) ((wxFSFile *) x));
25831 }
25832 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25833 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25834 }
25835 static void *_p_wxRegionTo_p_wxObject(void *x) {
25836 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25837 }
25838 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25839 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25840 }
25841 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25842 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25843 }
25844 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25845 return (void *)((wxObject *) ((wxGDIObject *) x));
25846 }
25847 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25848 return (void *)((wxObject *) ((wxEffects *) x));
25849 }
25850 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25851 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25852 }
25853 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25854 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25855 }
25856 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25857 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25858 }
25859 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25860 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25861 }
25862 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25863 return (void *)((wxObject *) ((wxMenuItem *) x));
25864 }
25865 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25867 }
25868 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25869 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25870 }
25871 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25873 }
25874 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25875 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25876 }
25877 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25878 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25879 }
25880 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25881 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25882 }
25883 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25884 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25885 }
25886 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25887 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25888 }
25889 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25890 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25891 }
25892 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25893 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25894 }
25895 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25896 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25897 }
25898 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25899 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25900 }
25901 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25902 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25903 }
25904 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25905 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25906 }
25907 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25908 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25909 }
25910 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25911 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25912 }
25913 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25914 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25915 }
25916 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25917 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25918 }
25919 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25920 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25921 }
25922 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25923 return (void *)((wxObject *) ((wxImageHandler *) x));
25924 }
25925 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25926 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25927 }
25928 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25929 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25930 }
25931 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25932 return (void *)((wxObject *) ((wxEvtHandler *) x));
25933 }
25934 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25935 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25936 }
25937 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25938 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25939 }
25940 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25941 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25942 }
25943 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25944 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25945 }
25946 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25947 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25948 }
25949 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25950 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25951 }
25952 static void *_p_wxImageTo_p_wxObject(void *x) {
25953 return (void *)((wxObject *) ((wxImage *) x));
25954 }
25955 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25956 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25957 }
25958 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25959 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25960 }
25961 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25962 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25963 }
25964 static void *_p_wxImageListTo_p_wxObject(void *x) {
25965 return (void *)((wxObject *) ((wxImageList *) x));
25966 }
25967 static void *_p_wxCursorTo_p_wxObject(void *x) {
25968 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25969 }
25970 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25971 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25972 }
25973 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25974 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25975 }
25976 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25977 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25978 }
25979 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25980 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25981 }
25982 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25983 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25984 }
25985 static void *_p_wxWindowTo_p_wxObject(void *x) {
25986 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25987 }
25988 static void *_p_wxMenuTo_p_wxObject(void *x) {
25989 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25990 }
25991 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25993 }
25994 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25995 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25996 }
25997 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25998 return (void *)((wxObject *) ((wxFileSystem *) x));
25999 }
26000 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26001 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26002 }
26003 static void *_p_wxMaskTo_p_wxObject(void *x) {
26004 return (void *)((wxObject *) ((wxMask *) x));
26005 }
26006 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26007 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26008 }
26009 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26010 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26011 }
26012 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26013 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26014 }
26015 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26016 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26017 }
26018 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26019 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26020 }
26021 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26022 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26023 }
26024 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26025 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26026 }
26027 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26028 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26029 }
26030 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26031 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26032 }
26033 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26034 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26035 }
26036 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26037 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26038 }
26039 static void *_p_wxFontTo_p_wxObject(void *x) {
26040 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26041 }
26042 static void *_p_wxBrushTo_p_wxObject(void *x) {
26043 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26044 }
26045 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26046 return (void *)((wxObject *) ((wxMetaFile *) x));
26047 }
26048 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26050 }
26051 static void *_p_wxColourTo_p_wxObject(void *x) {
26052 return (void *)((wxObject *) ((wxColour *) x));
26053 }
26054 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26055 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26056 }
26057 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26058 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26059 }
26060 static void *_p_wxControlTo_p_wxWindow(void *x) {
26061 return (void *)((wxWindow *) ((wxControl *) x));
26062 }
26063 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26064 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26065 }
26066 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26067 return (void *)((wxWindow *) ((wxMenuBar *) x));
26068 }
26069 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26070 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26071 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};
26072 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26073 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26074 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26075 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26076 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26077 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26078 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26079 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26080 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26081 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26082 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26083 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26084 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26085 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26086 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26087 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26088 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26089 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26090 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26091 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26092 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26093 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26094 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26095 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26096 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26097 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26098 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26099 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26100 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26101 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26102 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26103 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26104 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26105 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26106 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26107 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26108 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26109 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26110 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26111 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26112 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26113 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26114 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26115 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26116 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26117 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26118 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26119 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26120 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26121 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26122 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26123 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26124 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26125 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
26126 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26127 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26128 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26129 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26130 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26131 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26132 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26133 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26134 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26135 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26136 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26137 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26138 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26139 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26140 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26141 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26142 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26143 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26144 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26145 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26146 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26147 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26148 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26149 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26150 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26151 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26152 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26153 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26154 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26155 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26156 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26157 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26158 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26159 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26160 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26161 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26162 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26163 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26164 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26165 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26166 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26167 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26168 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26169 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26170 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26171 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26172 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26173 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26174 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26175 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26176 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26177 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26178 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26179 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26180 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26181 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26182 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26183 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26184 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26185 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26186 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26187 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26188 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26189 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26190 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26191 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26192 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26193 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26194 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26195 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26196 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26197 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26198 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26199 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26200 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26201 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26202 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26203 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26204 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26205 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26206 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26207
26208 static swig_type_info *swig_type_initial[] = {
26209 &_swigt__p_char,
26210 &_swigt__p_double,
26211 &_swigt__p_form_ops_t,
26212 &_swigt__p_int,
26213 &_swigt__p_unsigned_char,
26214 &_swigt__p_unsigned_int,
26215 &_swigt__p_unsigned_long,
26216 &_swigt__p_wxANIHandler,
26217 &_swigt__p_wxAcceleratorTable,
26218 &_swigt__p_wxActivateEvent,
26219 &_swigt__p_wxBMPHandler,
26220 &_swigt__p_wxBitmap,
26221 &_swigt__p_wxBoxSizer,
26222 &_swigt__p_wxBrush,
26223 &_swigt__p_wxBrushList,
26224 &_swigt__p_wxBufferedDC,
26225 &_swigt__p_wxBufferedPaintDC,
26226 &_swigt__p_wxCURHandler,
26227 &_swigt__p_wxChildFocusEvent,
26228 &_swigt__p_wxClientDC,
26229 &_swigt__p_wxClipboardTextEvent,
26230 &_swigt__p_wxCloseEvent,
26231 &_swigt__p_wxColour,
26232 &_swigt__p_wxColourDatabase,
26233 &_swigt__p_wxCommandEvent,
26234 &_swigt__p_wxContextMenuEvent,
26235 &_swigt__p_wxControl,
26236 &_swigt__p_wxControlWithItems,
26237 &_swigt__p_wxCursor,
26238 &_swigt__p_wxDC,
26239 &_swigt__p_wxDash,
26240 &_swigt__p_wxDateEvent,
26241 &_swigt__p_wxDisplayChangedEvent,
26242 &_swigt__p_wxDropFilesEvent,
26243 &_swigt__p_wxDuplexMode,
26244 &_swigt__p_wxEffects,
26245 &_swigt__p_wxEncodingConverter,
26246 &_swigt__p_wxEraseEvent,
26247 &_swigt__p_wxEvent,
26248 &_swigt__p_wxEvtHandler,
26249 &_swigt__p_wxFSFile,
26250 &_swigt__p_wxFileSystem,
26251 &_swigt__p_wxFlexGridSizer,
26252 &_swigt__p_wxFocusEvent,
26253 &_swigt__p_wxFont,
26254 &_swigt__p_wxFontList,
26255 &_swigt__p_wxFontMapper,
26256 &_swigt__p_wxGBSizerItem,
26257 &_swigt__p_wxGDIObjListBase,
26258 &_swigt__p_wxGDIObject,
26259 &_swigt__p_wxGIFHandler,
26260 &_swigt__p_wxGridBagSizer,
26261 &_swigt__p_wxGridSizer,
26262 &_swigt__p_wxICOHandler,
26263 &_swigt__p_wxIcon,
26264 &_swigt__p_wxIconBundle,
26265 &_swigt__p_wxIconLocation,
26266 &_swigt__p_wxIconizeEvent,
26267 &_swigt__p_wxIdleEvent,
26268 &_swigt__p_wxImage,
26269 &_swigt__p_wxImageHandler,
26270 &_swigt__p_wxImageList,
26271 &_swigt__p_wxIndividualLayoutConstraint,
26272 &_swigt__p_wxInitDialogEvent,
26273 &_swigt__p_wxJPEGHandler,
26274 &_swigt__p_wxKeyEvent,
26275 &_swigt__p_wxLanguageInfo,
26276 &_swigt__p_wxLayoutConstraints,
26277 &_swigt__p_wxLocale,
26278 &_swigt__p_wxMask,
26279 &_swigt__p_wxMaximizeEvent,
26280 &_swigt__p_wxMemoryDC,
26281 &_swigt__p_wxMenu,
26282 &_swigt__p_wxMenuBar,
26283 &_swigt__p_wxMenuEvent,
26284 &_swigt__p_wxMenuItem,
26285 &_swigt__p_wxMetaFile,
26286 &_swigt__p_wxMetaFileDC,
26287 &_swigt__p_wxMirrorDC,
26288 &_swigt__p_wxMouseCaptureChangedEvent,
26289 &_swigt__p_wxMouseEvent,
26290 &_swigt__p_wxMoveEvent,
26291 &_swigt__p_wxNativeEncodingInfo,
26292 &_swigt__p_wxNativeFontInfo,
26293 &_swigt__p_wxNavigationKeyEvent,
26294 &_swigt__p_wxNcPaintEvent,
26295 &_swigt__p_wxNotifyEvent,
26296 &_swigt__p_wxObject,
26297 &_swigt__p_wxPCXHandler,
26298 &_swigt__p_wxPNGHandler,
26299 &_swigt__p_wxPNMHandler,
26300 &_swigt__p_wxPaintDC,
26301 &_swigt__p_wxPaintEvent,
26302 &_swigt__p_wxPalette,
26303 &_swigt__p_wxPaletteChangedEvent,
26304 &_swigt__p_wxPaperSize,
26305 &_swigt__p_wxPen,
26306 &_swigt__p_wxPenList,
26307 &_swigt__p_wxPoint,
26308 &_swigt__p_wxPostScriptDC,
26309 &_swigt__p_wxPrintData,
26310 &_swigt__p_wxPrinterDC,
26311 &_swigt__p_wxPyApp,
26312 &_swigt__p_wxPyCommandEvent,
26313 &_swigt__p_wxPyEvent,
26314 &_swigt__p_wxPyFontEnumerator,
26315 &_swigt__p_wxPyImageHandler,
26316 &_swigt__p_wxPySizer,
26317 &_swigt__p_wxPyValidator,
26318 &_swigt__p_wxQueryNewPaletteEvent,
26319 &_swigt__p_wxRect,
26320 &_swigt__p_wxRegion,
26321 &_swigt__p_wxRegionIterator,
26322 &_swigt__p_wxRendererNative,
26323 &_swigt__p_wxRendererVersion,
26324 &_swigt__p_wxScreenDC,
26325 &_swigt__p_wxScrollEvent,
26326 &_swigt__p_wxScrollWinEvent,
26327 &_swigt__p_wxSetCursorEvent,
26328 &_swigt__p_wxShowEvent,
26329 &_swigt__p_wxSize,
26330 &_swigt__p_wxSizeEvent,
26331 &_swigt__p_wxSizer,
26332 &_swigt__p_wxSizerItem,
26333 &_swigt__p_wxSplitterRenderParams,
26334 &_swigt__p_wxStaticBoxSizer,
26335 &_swigt__p_wxStdDialogButtonSizer,
26336 &_swigt__p_wxStockGDI,
26337 &_swigt__p_wxString,
26338 &_swigt__p_wxSysColourChangedEvent,
26339 &_swigt__p_wxTIFFHandler,
26340 &_swigt__p_wxUpdateUIEvent,
26341 &_swigt__p_wxValidator,
26342 &_swigt__p_wxWindow,
26343 &_swigt__p_wxWindowCreateEvent,
26344 &_swigt__p_wxWindowDC,
26345 &_swigt__p_wxWindowDestroyEvent,
26346 &_swigt__p_wxXPMHandler,
26347 };
26348
26349 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26350 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26351 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26352 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26353 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26354 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26355 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26356 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26357 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26358 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26359 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}};
26360 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26361 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26362 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26363 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26364 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26365 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}};
26366 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26367 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26368 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26369 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26370 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26371 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26372 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26373 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}};
26374 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}};
26375 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26376 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26377 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26378 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26379 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26380 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26381 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26382 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26383 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}};
26384 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26385 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26386 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26387 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26388 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26389 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26390 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26391 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26392 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26393 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26394 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26395 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26396 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26397 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26398 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26399 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26400 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26401 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26402 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26403 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26404 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
26405 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26406 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26407 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26408 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26409 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26410 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26411 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26412 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26413 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26414 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26415 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26416 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26417 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26418 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26419 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26420 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26421 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26422 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26423 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26424 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26425 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26426 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26427 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26428 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26429 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26430 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26431 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26432 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26433 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26434 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26435 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26436 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26437 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26438 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26439 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26440 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26441 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26442 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26443 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26444 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26445 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26446 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26447 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26448 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26449 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26450 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26451 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26452 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26453 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26454 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26455 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26456 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26457 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26458 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26459 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26460 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26461 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26462 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26463 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26464 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
26465 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26466 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26467 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26468 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26469 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26470 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26471 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26472 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26473 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26474 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26475 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26476 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26477 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26478 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26479 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26480 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26481 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26482 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26483 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26484 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26485 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}};
26486 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26487
26488 static swig_cast_info *swig_cast_initial[] = {
26489 _swigc__p_char,
26490 _swigc__p_double,
26491 _swigc__p_form_ops_t,
26492 _swigc__p_int,
26493 _swigc__p_unsigned_char,
26494 _swigc__p_unsigned_int,
26495 _swigc__p_unsigned_long,
26496 _swigc__p_wxANIHandler,
26497 _swigc__p_wxAcceleratorTable,
26498 _swigc__p_wxActivateEvent,
26499 _swigc__p_wxBMPHandler,
26500 _swigc__p_wxBitmap,
26501 _swigc__p_wxBoxSizer,
26502 _swigc__p_wxBrush,
26503 _swigc__p_wxBrushList,
26504 _swigc__p_wxBufferedDC,
26505 _swigc__p_wxBufferedPaintDC,
26506 _swigc__p_wxCURHandler,
26507 _swigc__p_wxChildFocusEvent,
26508 _swigc__p_wxClientDC,
26509 _swigc__p_wxClipboardTextEvent,
26510 _swigc__p_wxCloseEvent,
26511 _swigc__p_wxColour,
26512 _swigc__p_wxColourDatabase,
26513 _swigc__p_wxCommandEvent,
26514 _swigc__p_wxContextMenuEvent,
26515 _swigc__p_wxControl,
26516 _swigc__p_wxControlWithItems,
26517 _swigc__p_wxCursor,
26518 _swigc__p_wxDC,
26519 _swigc__p_wxDash,
26520 _swigc__p_wxDateEvent,
26521 _swigc__p_wxDisplayChangedEvent,
26522 _swigc__p_wxDropFilesEvent,
26523 _swigc__p_wxDuplexMode,
26524 _swigc__p_wxEffects,
26525 _swigc__p_wxEncodingConverter,
26526 _swigc__p_wxEraseEvent,
26527 _swigc__p_wxEvent,
26528 _swigc__p_wxEvtHandler,
26529 _swigc__p_wxFSFile,
26530 _swigc__p_wxFileSystem,
26531 _swigc__p_wxFlexGridSizer,
26532 _swigc__p_wxFocusEvent,
26533 _swigc__p_wxFont,
26534 _swigc__p_wxFontList,
26535 _swigc__p_wxFontMapper,
26536 _swigc__p_wxGBSizerItem,
26537 _swigc__p_wxGDIObjListBase,
26538 _swigc__p_wxGDIObject,
26539 _swigc__p_wxGIFHandler,
26540 _swigc__p_wxGridBagSizer,
26541 _swigc__p_wxGridSizer,
26542 _swigc__p_wxICOHandler,
26543 _swigc__p_wxIcon,
26544 _swigc__p_wxIconBundle,
26545 _swigc__p_wxIconLocation,
26546 _swigc__p_wxIconizeEvent,
26547 _swigc__p_wxIdleEvent,
26548 _swigc__p_wxImage,
26549 _swigc__p_wxImageHandler,
26550 _swigc__p_wxImageList,
26551 _swigc__p_wxIndividualLayoutConstraint,
26552 _swigc__p_wxInitDialogEvent,
26553 _swigc__p_wxJPEGHandler,
26554 _swigc__p_wxKeyEvent,
26555 _swigc__p_wxLanguageInfo,
26556 _swigc__p_wxLayoutConstraints,
26557 _swigc__p_wxLocale,
26558 _swigc__p_wxMask,
26559 _swigc__p_wxMaximizeEvent,
26560 _swigc__p_wxMemoryDC,
26561 _swigc__p_wxMenu,
26562 _swigc__p_wxMenuBar,
26563 _swigc__p_wxMenuEvent,
26564 _swigc__p_wxMenuItem,
26565 _swigc__p_wxMetaFile,
26566 _swigc__p_wxMetaFileDC,
26567 _swigc__p_wxMirrorDC,
26568 _swigc__p_wxMouseCaptureChangedEvent,
26569 _swigc__p_wxMouseEvent,
26570 _swigc__p_wxMoveEvent,
26571 _swigc__p_wxNativeEncodingInfo,
26572 _swigc__p_wxNativeFontInfo,
26573 _swigc__p_wxNavigationKeyEvent,
26574 _swigc__p_wxNcPaintEvent,
26575 _swigc__p_wxNotifyEvent,
26576 _swigc__p_wxObject,
26577 _swigc__p_wxPCXHandler,
26578 _swigc__p_wxPNGHandler,
26579 _swigc__p_wxPNMHandler,
26580 _swigc__p_wxPaintDC,
26581 _swigc__p_wxPaintEvent,
26582 _swigc__p_wxPalette,
26583 _swigc__p_wxPaletteChangedEvent,
26584 _swigc__p_wxPaperSize,
26585 _swigc__p_wxPen,
26586 _swigc__p_wxPenList,
26587 _swigc__p_wxPoint,
26588 _swigc__p_wxPostScriptDC,
26589 _swigc__p_wxPrintData,
26590 _swigc__p_wxPrinterDC,
26591 _swigc__p_wxPyApp,
26592 _swigc__p_wxPyCommandEvent,
26593 _swigc__p_wxPyEvent,
26594 _swigc__p_wxPyFontEnumerator,
26595 _swigc__p_wxPyImageHandler,
26596 _swigc__p_wxPySizer,
26597 _swigc__p_wxPyValidator,
26598 _swigc__p_wxQueryNewPaletteEvent,
26599 _swigc__p_wxRect,
26600 _swigc__p_wxRegion,
26601 _swigc__p_wxRegionIterator,
26602 _swigc__p_wxRendererNative,
26603 _swigc__p_wxRendererVersion,
26604 _swigc__p_wxScreenDC,
26605 _swigc__p_wxScrollEvent,
26606 _swigc__p_wxScrollWinEvent,
26607 _swigc__p_wxSetCursorEvent,
26608 _swigc__p_wxShowEvent,
26609 _swigc__p_wxSize,
26610 _swigc__p_wxSizeEvent,
26611 _swigc__p_wxSizer,
26612 _swigc__p_wxSizerItem,
26613 _swigc__p_wxSplitterRenderParams,
26614 _swigc__p_wxStaticBoxSizer,
26615 _swigc__p_wxStdDialogButtonSizer,
26616 _swigc__p_wxStockGDI,
26617 _swigc__p_wxString,
26618 _swigc__p_wxSysColourChangedEvent,
26619 _swigc__p_wxTIFFHandler,
26620 _swigc__p_wxUpdateUIEvent,
26621 _swigc__p_wxValidator,
26622 _swigc__p_wxWindow,
26623 _swigc__p_wxWindowCreateEvent,
26624 _swigc__p_wxWindowDC,
26625 _swigc__p_wxWindowDestroyEvent,
26626 _swigc__p_wxXPMHandler,
26627 };
26628
26629
26630 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26631
26632 static swig_const_info swig_const_table[] = {
26633 {0, 0, 0, 0.0, 0, 0}};
26634
26635 #ifdef __cplusplus
26636 }
26637 #endif
26638 /* -----------------------------------------------------------------------------
26639 * Type initialization:
26640 * This problem is tough by the requirement that no dynamic
26641 * memory is used. Also, since swig_type_info structures store pointers to
26642 * swig_cast_info structures and swig_cast_info structures store pointers back
26643 * to swig_type_info structures, we need some lookup code at initialization.
26644 * The idea is that swig generates all the structures that are needed.
26645 * The runtime then collects these partially filled structures.
26646 * The SWIG_InitializeModule function takes these initial arrays out of
26647 * swig_module, and does all the lookup, filling in the swig_module.types
26648 * array with the correct data and linking the correct swig_cast_info
26649 * structures together.
26650 *
26651 * The generated swig_type_info structures are assigned staticly to an initial
26652 * array. We just loop though that array, and handle each type individually.
26653 * First we lookup if this type has been already loaded, and if so, use the
26654 * loaded structure instead of the generated one. Then we have to fill in the
26655 * cast linked list. The cast data is initially stored in something like a
26656 * two-dimensional array. Each row corresponds to a type (there are the same
26657 * number of rows as there are in the swig_type_initial array). Each entry in
26658 * a column is one of the swig_cast_info structures for that type.
26659 * The cast_initial array is actually an array of arrays, because each row has
26660 * a variable number of columns. So to actually build the cast linked list,
26661 * we find the array of casts associated with the type, and loop through it
26662 * adding the casts to the list. The one last trick we need to do is making
26663 * sure the type pointer in the swig_cast_info struct is correct.
26664 *
26665 * First off, we lookup the cast->type name to see if it is already loaded.
26666 * There are three cases to handle:
26667 * 1) If the cast->type has already been loaded AND the type we are adding
26668 * casting info to has not been loaded (it is in this module), THEN we
26669 * replace the cast->type pointer with the type pointer that has already
26670 * been loaded.
26671 * 2) If BOTH types (the one we are adding casting info to, and the
26672 * cast->type) are loaded, THEN the cast info has already been loaded by
26673 * the previous module so we just ignore it.
26674 * 3) Finally, if cast->type has not already been loaded, then we add that
26675 * swig_cast_info to the linked list (because the cast->type) pointer will
26676 * be correct.
26677 * ----------------------------------------------------------------------------- */
26678
26679 #ifdef __cplusplus
26680 extern "C" {
26681 #if 0
26682 } /* c-mode */
26683 #endif
26684 #endif
26685
26686 #if 0
26687 #define SWIGRUNTIME_DEBUG
26688 #endif
26689
26690 SWIGRUNTIME void
26691 SWIG_InitializeModule(void *clientdata) {
26692 size_t i;
26693 swig_module_info *module_head;
26694 static int init_run = 0;
26695
26696 clientdata = clientdata;
26697
26698 if (init_run) return;
26699 init_run = 1;
26700
26701 /* Initialize the swig_module */
26702 swig_module.type_initial = swig_type_initial;
26703 swig_module.cast_initial = swig_cast_initial;
26704
26705 /* Try and load any already created modules */
26706 module_head = SWIG_GetModule(clientdata);
26707 if (module_head) {
26708 swig_module.next = module_head->next;
26709 module_head->next = &swig_module;
26710 } else {
26711 /* This is the first module loaded */
26712 swig_module.next = &swig_module;
26713 SWIG_SetModule(clientdata, &swig_module);
26714 }
26715
26716 /* Now work on filling in swig_module.types */
26717 #ifdef SWIGRUNTIME_DEBUG
26718 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26719 #endif
26720 for (i = 0; i < swig_module.size; ++i) {
26721 swig_type_info *type = 0;
26722 swig_type_info *ret;
26723 swig_cast_info *cast;
26724
26725 #ifdef SWIGRUNTIME_DEBUG
26726 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26727 #endif
26728
26729 /* if there is another module already loaded */
26730 if (swig_module.next != &swig_module) {
26731 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26732 }
26733 if (type) {
26734 /* Overwrite clientdata field */
26735 #ifdef SWIGRUNTIME_DEBUG
26736 printf("SWIG_InitializeModule: found type %s\n", type->name);
26737 #endif
26738 if (swig_module.type_initial[i]->clientdata) {
26739 type->clientdata = swig_module.type_initial[i]->clientdata;
26740 #ifdef SWIGRUNTIME_DEBUG
26741 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26742 #endif
26743 }
26744 } else {
26745 type = swig_module.type_initial[i];
26746 }
26747
26748 /* Insert casting types */
26749 cast = swig_module.cast_initial[i];
26750 while (cast->type) {
26751 /* Don't need to add information already in the list */
26752 ret = 0;
26753 #ifdef SWIGRUNTIME_DEBUG
26754 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26755 #endif
26756 if (swig_module.next != &swig_module) {
26757 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26758 #ifdef SWIGRUNTIME_DEBUG
26759 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26760 #endif
26761 }
26762 if (ret) {
26763 if (type == swig_module.type_initial[i]) {
26764 #ifdef SWIGRUNTIME_DEBUG
26765 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26766 #endif
26767 cast->type = ret;
26768 ret = 0;
26769 } else {
26770 /* Check for casting already in the list */
26771 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26772 #ifdef SWIGRUNTIME_DEBUG
26773 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26774 #endif
26775 if (!ocast) ret = 0;
26776 }
26777 }
26778
26779 if (!ret) {
26780 #ifdef SWIGRUNTIME_DEBUG
26781 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26782 #endif
26783 if (type->cast) {
26784 type->cast->prev = cast;
26785 cast->next = type->cast;
26786 }
26787 type->cast = cast;
26788 }
26789 cast++;
26790 }
26791 /* Set entry in modules->types array equal to the type */
26792 swig_module.types[i] = type;
26793 }
26794 swig_module.types[i] = 0;
26795
26796 #ifdef SWIGRUNTIME_DEBUG
26797 printf("**** SWIG_InitializeModule: Cast List ******\n");
26798 for (i = 0; i < swig_module.size; ++i) {
26799 int j = 0;
26800 swig_cast_info *cast = swig_module.cast_initial[i];
26801 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26802 while (cast->type) {
26803 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26804 cast++;
26805 ++j;
26806 }
26807 printf("---- Total casts: %d\n",j);
26808 }
26809 printf("**** SWIG_InitializeModule: Cast List ******\n");
26810 #endif
26811 }
26812
26813 /* This function will propagate the clientdata field of type to
26814 * any new swig_type_info structures that have been added into the list
26815 * of equivalent types. It is like calling
26816 * SWIG_TypeClientData(type, clientdata) a second time.
26817 */
26818 SWIGRUNTIME void
26819 SWIG_PropagateClientData(void) {
26820 size_t i;
26821 swig_cast_info *equiv;
26822 static int init_run = 0;
26823
26824 if (init_run) return;
26825 init_run = 1;
26826
26827 for (i = 0; i < swig_module.size; i++) {
26828 if (swig_module.types[i]->clientdata) {
26829 equiv = swig_module.types[i]->cast;
26830 while (equiv) {
26831 if (!equiv->converter) {
26832 if (equiv->type && !equiv->type->clientdata)
26833 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26834 }
26835 equiv = equiv->next;
26836 }
26837 }
26838 }
26839 }
26840
26841 #ifdef __cplusplus
26842 #if 0
26843 {
26844 /* c-mode */
26845 #endif
26846 }
26847 #endif
26848
26849
26850
26851 #ifdef __cplusplus
26852 extern "C" {
26853 #endif
26854
26855 /* Python-specific SWIG API */
26856 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26857 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26858 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26859
26860 /* -----------------------------------------------------------------------------
26861 * global variable support code.
26862 * ----------------------------------------------------------------------------- */
26863
26864 typedef struct swig_globalvar {
26865 char *name; /* Name of global variable */
26866 PyObject *(*get_attr)(void); /* Return the current value */
26867 int (*set_attr)(PyObject *); /* Set the value */
26868 struct swig_globalvar *next;
26869 } swig_globalvar;
26870
26871 typedef struct swig_varlinkobject {
26872 PyObject_HEAD
26873 swig_globalvar *vars;
26874 } swig_varlinkobject;
26875
26876 SWIGINTERN PyObject *
26877 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26878 return PyString_FromString("<Swig global variables>");
26879 }
26880
26881 SWIGINTERN PyObject *
26882 swig_varlink_str(swig_varlinkobject *v) {
26883 PyObject *str = PyString_FromString("(");
26884 swig_globalvar *var;
26885 for (var = v->vars; var; var=var->next) {
26886 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26887 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26888 }
26889 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26890 return str;
26891 }
26892
26893 SWIGINTERN int
26894 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26895 PyObject *str = swig_varlink_str(v);
26896 fprintf(fp,"Swig global variables ");
26897 fprintf(fp,"%s\n", PyString_AsString(str));
26898 Py_DECREF(str);
26899 return 0;
26900 }
26901
26902 SWIGINTERN void
26903 swig_varlink_dealloc(swig_varlinkobject *v) {
26904 swig_globalvar *var = v->vars;
26905 while (var) {
26906 swig_globalvar *n = var->next;
26907 free(var->name);
26908 free(var);
26909 var = n;
26910 }
26911 }
26912
26913 SWIGINTERN PyObject *
26914 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26915 PyObject *res = NULL;
26916 swig_globalvar *var = v->vars;
26917 while (var) {
26918 if (strcmp(var->name,n) == 0) {
26919 res = (*var->get_attr)();
26920 break;
26921 }
26922 var = var->next;
26923 }
26924 if (res == NULL && !PyErr_Occurred()) {
26925 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26926 }
26927 return res;
26928 }
26929
26930 SWIGINTERN int
26931 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26932 int res = 1;
26933 swig_globalvar *var = v->vars;
26934 while (var) {
26935 if (strcmp(var->name,n) == 0) {
26936 res = (*var->set_attr)(p);
26937 break;
26938 }
26939 var = var->next;
26940 }
26941 if (res == 1 && !PyErr_Occurred()) {
26942 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26943 }
26944 return res;
26945 }
26946
26947 SWIGINTERN PyTypeObject*
26948 swig_varlink_type(void) {
26949 static char varlink__doc__[] = "Swig var link object";
26950 static PyTypeObject varlink_type;
26951 static int type_init = 0;
26952 if (!type_init) {
26953 const PyTypeObject tmp
26954 = {
26955 PyObject_HEAD_INIT(NULL)
26956 0, /* Number of items in variable part (ob_size) */
26957 (char *)"swigvarlink", /* Type name (tp_name) */
26958 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26959 0, /* Itemsize (tp_itemsize) */
26960 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26961 (printfunc) swig_varlink_print, /* Print (tp_print) */
26962 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26963 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26964 0, /* tp_compare */
26965 (reprfunc) swig_varlink_repr, /* tp_repr */
26966 0, /* tp_as_number */
26967 0, /* tp_as_sequence */
26968 0, /* tp_as_mapping */
26969 0, /* tp_hash */
26970 0, /* tp_call */
26971 (reprfunc)swig_varlink_str, /* tp_str */
26972 0, /* tp_getattro */
26973 0, /* tp_setattro */
26974 0, /* tp_as_buffer */
26975 0, /* tp_flags */
26976 varlink__doc__, /* tp_doc */
26977 0, /* tp_traverse */
26978 0, /* tp_clear */
26979 0, /* tp_richcompare */
26980 0, /* tp_weaklistoffset */
26981 #if PY_VERSION_HEX >= 0x02020000
26982 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26983 #endif
26984 #if PY_VERSION_HEX >= 0x02030000
26985 0, /* tp_del */
26986 #endif
26987 #ifdef COUNT_ALLOCS
26988 0,0,0,0 /* tp_alloc -> tp_next */
26989 #endif
26990 };
26991 varlink_type = tmp;
26992 varlink_type.ob_type = &PyType_Type;
26993 type_init = 1;
26994 }
26995 return &varlink_type;
26996 }
26997
26998 /* Create a variable linking object for use later */
26999 SWIGINTERN PyObject *
27000 SWIG_Python_newvarlink(void) {
27001 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27002 if (result) {
27003 result->vars = 0;
27004 }
27005 return ((PyObject*) result);
27006 }
27007
27008 SWIGINTERN void
27009 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27010 swig_varlinkobject *v = (swig_varlinkobject *) p;
27011 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27012 if (gv) {
27013 size_t size = strlen(name)+1;
27014 gv->name = (char *)malloc(size);
27015 if (gv->name) {
27016 strncpy(gv->name,name,size);
27017 gv->get_attr = get_attr;
27018 gv->set_attr = set_attr;
27019 gv->next = v->vars;
27020 }
27021 }
27022 v->vars = gv;
27023 }
27024
27025 SWIGINTERN PyObject *
27026 SWIG_globals() {
27027 static PyObject *_SWIG_globals = 0;
27028 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27029 return _SWIG_globals;
27030 }
27031
27032 /* -----------------------------------------------------------------------------
27033 * constants/methods manipulation
27034 * ----------------------------------------------------------------------------- */
27035
27036 /* Install Constants */
27037 SWIGINTERN void
27038 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27039 PyObject *obj = 0;
27040 size_t i;
27041 for (i = 0; constants[i].type; ++i) {
27042 switch(constants[i].type) {
27043 case SWIG_PY_POINTER:
27044 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27045 break;
27046 case SWIG_PY_BINARY:
27047 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27048 break;
27049 default:
27050 obj = 0;
27051 break;
27052 }
27053 if (obj) {
27054 PyDict_SetItemString(d, constants[i].name, obj);
27055 Py_DECREF(obj);
27056 }
27057 }
27058 }
27059
27060 /* -----------------------------------------------------------------------------*/
27061 /* Fix SwigMethods to carry the callback ptrs when needed */
27062 /* -----------------------------------------------------------------------------*/
27063
27064 SWIGINTERN void
27065 SWIG_Python_FixMethods(PyMethodDef *methods,
27066 swig_const_info *const_table,
27067 swig_type_info **types,
27068 swig_type_info **types_initial) {
27069 size_t i;
27070 for (i = 0; methods[i].ml_name; ++i) {
27071 char *c = methods[i].ml_doc;
27072 if (c && (c = strstr(c, "swig_ptr: "))) {
27073 int j;
27074 swig_const_info *ci = 0;
27075 char *name = c + 10;
27076 for (j = 0; const_table[j].type; ++j) {
27077 if (strncmp(const_table[j].name, name,
27078 strlen(const_table[j].name)) == 0) {
27079 ci = &(const_table[j]);
27080 break;
27081 }
27082 }
27083 if (ci) {
27084 size_t shift = (ci->ptype) - types;
27085 swig_type_info *ty = types_initial[shift];
27086 size_t ldoc = (c - methods[i].ml_doc);
27087 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27088 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27089 if (ndoc) {
27090 char *buff = ndoc;
27091 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27092 if (ptr) {
27093 strncpy(buff, methods[i].ml_doc, ldoc);
27094 buff += ldoc;
27095 strncpy(buff, "swig_ptr: ", 10);
27096 buff += 10;
27097 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27098 methods[i].ml_doc = ndoc;
27099 }
27100 }
27101 }
27102 }
27103 }
27104 }
27105
27106 #ifdef __cplusplus
27107 }
27108 #endif
27109
27110 /* -----------------------------------------------------------------------------*
27111 * Partial Init method
27112 * -----------------------------------------------------------------------------*/
27113
27114 #ifdef __cplusplus
27115 extern "C"
27116 #endif
27117 SWIGEXPORT void SWIG_init(void) {
27118 PyObject *m, *d;
27119
27120 /* Fix SwigMethods to carry the callback ptrs when needed */
27121 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27122
27123 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27124 d = PyModule_GetDict(m);
27125
27126 SWIG_InitializeModule(0);
27127 SWIG_InstallConstants(d,swig_const_table);
27128
27129
27130 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27131 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27132 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
27133 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27134 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27135 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27136 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27137 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27138 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27139 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27140 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27141 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27142 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27143 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27144 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27145 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27146 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27147 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27148 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27149 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27150 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27151 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27152 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27153 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27154 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27155 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27156 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27157 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27158 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27159 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27160 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27161 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27162 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27163 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27164 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27165 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27166 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27167 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27168 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27169 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27170 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27171 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27172 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27173 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27174 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27175 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27176 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27177 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27178 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27179 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27180 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27181 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27182 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27183 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27184 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27185 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27186 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27187 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27188 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27189 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27190 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27191 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27192 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27193 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27194 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27195 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27196 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27197 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27198 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27199 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27200 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27201 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27202 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27203 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27204 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27205 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27206 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27207 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27208 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27209 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27210 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27211 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27212 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27213 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27214 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27215 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27216 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27217 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27218 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27219 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27220 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27221 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27222 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27223 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27224 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27225 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27226 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27227 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27228 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27229 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27230 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27231 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27232 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27233 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27234 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27235 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27236 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27237 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27238 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27239 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27240 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27241 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27242 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27243 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27244 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27245 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27246 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27247 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27248 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27249 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27250 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27251 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27252 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27253 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27254 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27255 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27256 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27257 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27258 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27259 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27260
27261 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27262
27263 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27278 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27279 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27280 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27281 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27282 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27283 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27284 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27285 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27286 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27287 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27288 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27289 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27290 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27291 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27292 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27293 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27294 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27295 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27296 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27297 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27298 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27299 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27300 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27301 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27302 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27303 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27304 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27305 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27306 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27307 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27308 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27309 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27310 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27311 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27312 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27313 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27314 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27315 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27316 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27317 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27318 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27319 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27320 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27321 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27322 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27323 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27324 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27325 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27326 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27327 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27328 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27329 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27330 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27331 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27332 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27333 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27334 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27335 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27336 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27337 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27338 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27339 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27340 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27341 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27342 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27343 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27344 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27345 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27346 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27347 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27348 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27349 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27350 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27351 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27352 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27353 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27354 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27355 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27356 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27357 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27358 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27359 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27360 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27361 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27362 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27363 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27364 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27365 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27366 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27367 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27368 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27369 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27370 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27371 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27372 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27373 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27374 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27375 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27376 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27377 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27378 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27379 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27380 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27381 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27382 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27383 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27384 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27385 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27386 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27387 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27388 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27389 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27390 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27391 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27392 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27393 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27394 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27395 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27396 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27397 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27398 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27399 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27400 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27401 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27402 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27403 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27404 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27405 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27406 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27407 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27408 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27409 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27410 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27411 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27412 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27413 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27414 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27415 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27416 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27417 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27418 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27419 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27420 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27421 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27422 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27423 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27424 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27425 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27426 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27427 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27428 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27429 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27430 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27431 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27432 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27433 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27434 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27435 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27436 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27437 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27438 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27439 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27440 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27441 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27442 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27443 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27444 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27445 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27446 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27447 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27448 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27449 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27450 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27451 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27452 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27453 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27454 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27455 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27456 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27457 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27458 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27459 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27460 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27461 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27462 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27463 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27464 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27465 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27466 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27467 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27468 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27469 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27470 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27471 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27472 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27473 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27474 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27475 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27476 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27477 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27478 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27479 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27480 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27481 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27482 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27483 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27484 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27485 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27486 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27487 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27488 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27489 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27490 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27491 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27492 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27493 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27494 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27495 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27496 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27497 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27498 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27499 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27500 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27501 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27502 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27503 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27504 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27505 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27506 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27507 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27508 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27509 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27510 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27511 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27512 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27513 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27514 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27515 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27516 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27517 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27518 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27519 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27520 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27521 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27522 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27523 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27524 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27525 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27526 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27527 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27528 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27529 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27530 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27531 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27532 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27533 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27534 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27535 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27536 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27537 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27538 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27539 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27540 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27541 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27542 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27543 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27544 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27545 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27546 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27547 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27548 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27549 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27550 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27551 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27552 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27553 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27554 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27555 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27556 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27557 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27558 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27559 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27560 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27561 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27562 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27563 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27564 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27565 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27566 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27567 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27568 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27569 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27570 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27571 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27572 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27573 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27574 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27575 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27576 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27577
27578 // Work around a chicken/egg problem in drawlist.cpp
27579 wxPyDrawList_SetAPIPtr();
27580
27581 }
27582