]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObject swig_types[47]
2510 #define SWIGTYPE_p_wxGIFHandler swig_types[48]
2511 #define SWIGTYPE_p_wxGridBagSizer swig_types[49]
2512 #define SWIGTYPE_p_wxGridSizer swig_types[50]
2513 #define SWIGTYPE_p_wxICOHandler swig_types[51]
2514 #define SWIGTYPE_p_wxIcon swig_types[52]
2515 #define SWIGTYPE_p_wxIconBundle swig_types[53]
2516 #define SWIGTYPE_p_wxIconLocation swig_types[54]
2517 #define SWIGTYPE_p_wxIconizeEvent swig_types[55]
2518 #define SWIGTYPE_p_wxIdleEvent swig_types[56]
2519 #define SWIGTYPE_p_wxImage swig_types[57]
2520 #define SWIGTYPE_p_wxImageHandler swig_types[58]
2521 #define SWIGTYPE_p_wxImageList swig_types[59]
2522 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[60]
2523 #define SWIGTYPE_p_wxInitDialogEvent swig_types[61]
2524 #define SWIGTYPE_p_wxJPEGHandler swig_types[62]
2525 #define SWIGTYPE_p_wxKeyEvent swig_types[63]
2526 #define SWIGTYPE_p_wxLanguageInfo swig_types[64]
2527 #define SWIGTYPE_p_wxLayoutConstraints swig_types[65]
2528 #define SWIGTYPE_p_wxLocale swig_types[66]
2529 #define SWIGTYPE_p_wxMask swig_types[67]
2530 #define SWIGTYPE_p_wxMaximizeEvent swig_types[68]
2531 #define SWIGTYPE_p_wxMemoryDC swig_types[69]
2532 #define SWIGTYPE_p_wxMenu swig_types[70]
2533 #define SWIGTYPE_p_wxMenuBar swig_types[71]
2534 #define SWIGTYPE_p_wxMenuEvent swig_types[72]
2535 #define SWIGTYPE_p_wxMenuItem swig_types[73]
2536 #define SWIGTYPE_p_wxMetaFile swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFileDC swig_types[75]
2538 #define SWIGTYPE_p_wxMirrorDC swig_types[76]
2539 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
2540 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMoveEvent swig_types[79]
2542 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[80]
2543 #define SWIGTYPE_p_wxNativeFontInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
2545 #define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNotifyEvent swig_types[84]
2547 #define SWIGTYPE_p_wxObject swig_types[85]
2548 #define SWIGTYPE_p_wxPCXHandler swig_types[86]
2549 #define SWIGTYPE_p_wxPNGHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNMHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPaintDC swig_types[89]
2552 #define SWIGTYPE_p_wxPaintEvent swig_types[90]
2553 #define SWIGTYPE_p_wxPalette swig_types[91]
2554 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[92]
2555 #define SWIGTYPE_p_wxPaperSize swig_types[93]
2556 #define SWIGTYPE_p_wxPen swig_types[94]
2557 #define SWIGTYPE_p_wxPenList swig_types[95]
2558 #define SWIGTYPE_p_wxPoint swig_types[96]
2559 #define SWIGTYPE_p_wxPostScriptDC swig_types[97]
2560 #define SWIGTYPE_p_wxPrintData swig_types[98]
2561 #define SWIGTYPE_p_wxPrinterDC swig_types[99]
2562 #define SWIGTYPE_p_wxPyApp swig_types[100]
2563 #define SWIGTYPE_p_wxPyCommandEvent swig_types[101]
2564 #define SWIGTYPE_p_wxPyEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[103]
2566 #define SWIGTYPE_p_wxPyImageHandler swig_types[104]
2567 #define SWIGTYPE_p_wxPySizer swig_types[105]
2568 #define SWIGTYPE_p_wxPyValidator swig_types[106]
2569 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
2570 #define SWIGTYPE_p_wxRect swig_types[108]
2571 #define SWIGTYPE_p_wxRegion swig_types[109]
2572 #define SWIGTYPE_p_wxRegionIterator swig_types[110]
2573 #define SWIGTYPE_p_wxRendererNative swig_types[111]
2574 #define SWIGTYPE_p_wxRendererVersion swig_types[112]
2575 #define SWIGTYPE_p_wxScreenDC swig_types[113]
2576 #define SWIGTYPE_p_wxScrollEvent swig_types[114]
2577 #define SWIGTYPE_p_wxScrollWinEvent swig_types[115]
2578 #define SWIGTYPE_p_wxSetCursorEvent swig_types[116]
2579 #define SWIGTYPE_p_wxShowEvent swig_types[117]
2580 #define SWIGTYPE_p_wxSize swig_types[118]
2581 #define SWIGTYPE_p_wxSizeEvent swig_types[119]
2582 #define SWIGTYPE_p_wxSizer swig_types[120]
2583 #define SWIGTYPE_p_wxSizerItem swig_types[121]
2584 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[122]
2585 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[123]
2586 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[124]
2587 #define SWIGTYPE_p_wxString swig_types[125]
2588 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[126]
2589 #define SWIGTYPE_p_wxTIFFHandler swig_types[127]
2590 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
2591 #define SWIGTYPE_p_wxValidator swig_types[129]
2592 #define SWIGTYPE_p_wxWindow swig_types[130]
2593 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[131]
2594 #define SWIGTYPE_p_wxWindowDC swig_types[132]
2595 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
2596 #define SWIGTYPE_p_wxXPMHandler swig_types[134]
2597 static swig_type_info *swig_types[136];
2598 static swig_module_info swig_module = {swig_types, 135, 0, 0, 0, 0};
2599 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2600 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2601
2602 /* -------- TYPES TABLE (END) -------- */
2603
2604 #if (PY_VERSION_HEX <= 0x02000000)
2605 # if !defined(SWIG_PYTHON_CLASSIC)
2606 # error "This python version requires to use swig with the '-classic' option"
2607 # endif
2608 #endif
2609 #if (PY_VERSION_HEX <= 0x02020000)
2610 # error "This python version requires to use swig with the '-nomodern' option"
2611 #endif
2612 #if (PY_VERSION_HEX <= 0x02020000)
2613 # error "This python version requires to use swig with the '-nomodernargs' option"
2614 #endif
2615 #ifndef METH_O
2616 # error "This python version requires to use swig with the '-nofastunpack' option"
2617 #endif
2618
2619 /*-----------------------------------------------
2620 @(target):= _gdi_.so
2621 ------------------------------------------------*/
2622 #define SWIG_init init_gdi_
2623
2624 #define SWIG_name "_gdi_"
2625
2626 #define SWIGVERSION 0x010329
2627
2628
2629 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2630 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2631
2632
2633 #include <stdexcept>
2634
2635
2636 namespace swig {
2637 class PyObject_ptr {
2638 protected:
2639 PyObject *_obj;
2640
2641 public:
2642 PyObject_ptr() :_obj(0)
2643 {
2644 }
2645
2646 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2647 {
2648 Py_XINCREF(_obj);
2649 }
2650
2651 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2652 {
2653 if (initial_ref) Py_XINCREF(_obj);
2654 }
2655
2656 PyObject_ptr & operator=(const PyObject_ptr& item)
2657 {
2658 Py_XINCREF(item._obj);
2659 Py_XDECREF(_obj);
2660 _obj = item._obj;
2661 return *this;
2662 }
2663
2664 ~PyObject_ptr()
2665 {
2666 Py_XDECREF(_obj);
2667 }
2668
2669 operator PyObject *() const
2670 {
2671 return _obj;
2672 }
2673
2674 PyObject *operator->() const
2675 {
2676 return _obj;
2677 }
2678 };
2679 }
2680
2681
2682 namespace swig {
2683 struct PyObject_var : PyObject_ptr {
2684 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2685
2686 PyObject_var & operator = (PyObject* obj)
2687 {
2688 Py_XDECREF(_obj);
2689 _obj = obj;
2690 return *this;
2691 }
2692 };
2693 }
2694
2695
2696 #include "wx/wxPython/wxPython.h"
2697 #include "wx/wxPython/pyclasses.h"
2698
2699
2700 static const wxString wxPyEmptyString(wxEmptyString);
2701
2702 SWIGINTERN int
2703 SWIG_AsVal_long (PyObject* obj, long* val)
2704 {
2705 if (PyNumber_Check(obj)) {
2706 if (val) *val = PyInt_AsLong(obj);
2707 return SWIG_OK;
2708 }
2709 return SWIG_TypeError;
2710 }
2711
2712
2713 SWIGINTERN int
2714 SWIG_AsVal_bool (PyObject *obj, bool *val)
2715 {
2716 if (obj == Py_True) {
2717 if (val) *val = true;
2718 return SWIG_OK;
2719 } else if (obj == Py_False) {
2720 if (val) *val = false;
2721 return SWIG_OK;
2722 } else {
2723 long v = 0;
2724 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2725 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2726 return res;
2727 }
2728 }
2729
2730
2731 #include <limits.h>
2732 #ifndef LLONG_MIN
2733 # define LLONG_MIN LONG_LONG_MIN
2734 #endif
2735 #ifndef LLONG_MAX
2736 # define LLONG_MAX LONG_LONG_MAX
2737 #endif
2738 #ifndef ULLONG_MAX
2739 # define ULLONG_MAX ULONG_LONG_MAX
2740 #endif
2741
2742
2743 SWIGINTERN int
2744 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2745 {
2746 long v = 0;
2747 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2748 return SWIG_TypeError;
2749 }
2750 else if (val)
2751 *val = (unsigned long)v;
2752 return SWIG_OK;
2753 }
2754
2755
2756 SWIGINTERN int
2757 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2758 {
2759 unsigned long v;
2760 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2761 if (SWIG_IsOK(res)) {
2762 if ((v > UCHAR_MAX)) {
2763 return SWIG_OverflowError;
2764 } else {
2765 if (val) *val = static_cast< unsigned char >(v);
2766 }
2767 }
2768 return res;
2769 }
2770
2771
2772 #define SWIG_From_long PyInt_FromLong
2773
2774
2775 SWIGINTERNINLINE PyObject*
2776 SWIG_From_unsigned_SS_long (unsigned long value)
2777 {
2778 return (value > LONG_MAX) ?
2779 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2780 }
2781
2782
2783 SWIGINTERNINLINE PyObject *
2784 SWIG_From_unsigned_SS_char (unsigned char value)
2785 {
2786 return SWIG_From_unsigned_SS_long (value);
2787 }
2788
2789 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2790 PyObject* rv = PyTuple_New(3);
2791 int red = -1;
2792 int green = -1;
2793 int blue = -1;
2794 if (self->Ok()) {
2795 red = self->Red();
2796 green = self->Green();
2797 blue = self->Blue();
2798 }
2799 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2800 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2801 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2802 return rv;
2803 }
2804 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2805 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2806 }
2807
2808 SWIGINTERN int
2809 SWIG_AsVal_int (PyObject * obj, int *val)
2810 {
2811 long v;
2812 int res = SWIG_AsVal_long (obj, &v);
2813 if (SWIG_IsOK(res)) {
2814 if ((v < INT_MIN || v > INT_MAX)) {
2815 return SWIG_OverflowError;
2816 } else {
2817 if (val) *val = static_cast< int >(v);
2818 }
2819 }
2820 return res;
2821 }
2822
2823
2824 SWIGINTERNINLINE PyObject *
2825 SWIG_From_int (int value)
2826 {
2827 return SWIG_From_long (value);
2828 }
2829
2830 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2831 wxDash* dashes;
2832 int count = self->GetDashes(&dashes);
2833 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2834 PyObject* retval = PyList_New(0);
2835 for (int x=0; x<count; x++) {
2836 PyObject* pyint = PyInt_FromLong(dashes[x]);
2837 PyList_Append(retval, pyint);
2838 Py_DECREF(pyint);
2839 }
2840 wxPyEndBlockThreads(blocked);
2841 return retval;
2842 }
2843 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2844 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2845 int size = PyList_Size(pyDashes);
2846 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2847
2848 // black magic warning! The array of wxDashes needs to exist as
2849 // long as the pen does because wxPen does not copy the array. So
2850 // stick a copy in a Python string object and attach it to _self,
2851 // and then call SetDashes with a pointer to that array. Then
2852 // when the Python pen object is destroyed the array will be
2853 // cleaned up too.
2854 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2855 PyObject_SetAttrString(_self, "_dashes", strDashes);
2856
2857 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2858 delete [] dashes;
2859 Py_DECREF(strDashes);
2860 wxPyEndBlockThreads(blocked);
2861 }
2862 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2863 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2864
2865 #include <wx/image.h>
2866
2867 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2868 char** cArray = NULL;
2869 int count;
2870
2871 if (!PyList_Check(listOfStrings)) {
2872 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2873 return NULL;
2874 }
2875 count = PyList_Size(listOfStrings);
2876 cArray = new char*[count];
2877
2878 for(int x=0; x<count; x++) {
2879 // TODO: Need some validation and error checking here
2880 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2881 }
2882 return cArray;
2883 }
2884
2885
2886 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2887 char** cArray = NULL;
2888 wxBitmap* bmp;
2889
2890 cArray = ConvertListOfStrings(listOfStrings);
2891 if (! cArray)
2892 return NULL;
2893 bmp = new wxBitmap(cArray);
2894 delete [] cArray;
2895 return bmp;
2896 }
2897 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2898 char* buf;
2899 int length;
2900 PyString_AsStringAndSize(bits, &buf, &length);
2901 return new wxBitmap(buf, width, height, depth);
2902 }
2903 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2904 wxSize size(self->GetWidth(), self->GetHeight());
2905 return size;
2906 }
2907 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2908 wxMask *mask = new wxMask(*self, colour);
2909 self->SetMask(mask);
2910 }
2911 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2912 self->SetWidth(size.x);
2913 self->SetHeight(size.y);
2914 }
2915 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2916 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2917 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2918 if ( !colour.Ok() )
2919 return new wxMask(bitmap, *wxBLACK);
2920 else
2921 return new wxMask(bitmap, colour);
2922 }
2923
2924 #include <wx/iconbndl.h>
2925
2926 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2927 wxIcon* icon = new wxIcon();
2928 icon->CopyFromBitmap(bmp);
2929 return icon;
2930 }
2931 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2932 char** cArray = NULL;
2933 wxIcon* icon;
2934
2935 cArray = ConvertListOfStrings(listOfStrings);
2936 if (! cArray)
2937 return NULL;
2938 icon = new wxIcon(cArray);
2939 delete [] cArray;
2940 return icon;
2941 }
2942 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2943
2944
2945
2946 return new wxIconLocation(*filename);
2947
2948 }
2949 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2950
2951
2952
2953 // do nothing
2954
2955 }
2956 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2957
2958
2959
2960 return -1;
2961
2962 }
2963 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2964 #ifdef __WXGTK__
2965 wxImage img(cursorName, type);
2966 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2967 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2968 return new wxCursor(img);
2969 #else
2970 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2971 #endif
2972 }
2973
2974
2975 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2976 (*self) ++;
2977 }
2978 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2979 return self->operator bool();
2980 }
2981
2982 #include <wx/fontutil.h>
2983 #include <wx/fontmap.h>
2984 #include <wx/fontenum.h>
2985
2986 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
2987 return self->ToString();
2988 }
2989
2990 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
2991 static wxNativeEncodingInfo info;
2992 if ( wxGetNativeFontEncoding(encoding, &info) )
2993 return &info;
2994 else
2995 return NULL;
2996 }
2997
2998
2999 SWIGINTERNINLINE PyObject *
3000 SWIG_From_size_t (size_t value)
3001 {
3002 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3003 }
3004
3005
3006 SWIGINTERNINLINE int
3007 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3008 {
3009 unsigned long v;
3010 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3011 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3012 return res;
3013 }
3014
3015 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3016 wxFontEncoding alt_enc;
3017 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3018 return PyInt_FromLong(alt_enc);
3019 else {
3020 Py_INCREF(Py_None);
3021 return Py_None;
3022 }
3023 }
3024 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3025 wxNativeFontInfo nfi;
3026 nfi.FromString(info);
3027 return new wxFont(nfi);
3028 }
3029 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3030 return wxFont::New(pointSize, family, flags, face, encoding);
3031 }
3032 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3033 return wxFontBase::New(pixelSize, family,
3034 style, weight, underlined,
3035 face, encoding);
3036 }
3037 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3038 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3039 }
3040 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3041 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3042
3043 class wxPyFontEnumerator : public wxFontEnumerator {
3044 public:
3045 wxPyFontEnumerator() {}
3046 ~wxPyFontEnumerator() {}
3047
3048 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3049 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3050
3051 PYPRIVATE;
3052 };
3053
3054 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3055 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3056
3057
3058 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3059 wxArrayString* arr = self->GetEncodings();
3060 if (arr)
3061 return wxArrayString2PyList_helper(*arr);
3062 else
3063 return PyList_New(0);
3064 }
3065 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3066 wxArrayString* arr = self->GetFacenames();
3067 if (arr)
3068 return wxArrayString2PyList_helper(*arr);
3069 else
3070 return PyList_New(0);
3071 }
3072
3073 #include <locale.h>
3074
3075 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3076 wxLocale* loc;
3077 if (language == -1)
3078 loc = new wxLocale();
3079 else
3080 loc = new wxLocale(language, flags);
3081 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3082 // for the floating point conversions and such to work right.
3083 #if PY_VERSION_HEX < 0x02040000
3084 setlocale(LC_NUMERIC, "C");
3085 #endif
3086 return loc;
3087 }
3088 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3089 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3090 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3091 // for the floating point conversions and such to work right.
3092 #if PY_VERSION_HEX < 0x02040000
3093 setlocale(LC_NUMERIC, "C");
3094 #endif
3095 return rc;
3096 }
3097 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3098 bool rc = self->Init(language, flags);
3099 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3100 // for the floating point conversions and such to work right.
3101 #if PY_VERSION_HEX < 0x02040000
3102 setlocale(LC_NUMERIC, "C");
3103 #endif
3104 return rc;
3105 }
3106
3107 #include "wx/wxPython/pydrawxxx.h"
3108
3109 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3110 wxColour col;
3111 self->GetPixel(x, y, &col);
3112 return col;
3113 }
3114 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3115 wxColour col;
3116 self->GetPixel(pt, &col);
3117 return col;
3118 }
3119
3120 SWIGINTERN int
3121 SWIG_AsVal_double (PyObject *obj, double* val)
3122 {
3123 if (PyNumber_Check(obj)) {
3124 if (val) *val = PyFloat_AsDouble(obj);
3125 return SWIG_OK;
3126 }
3127 return SWIG_TypeError;
3128 }
3129
3130 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3131 wxRect rv;
3132 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3133 return rv;
3134 }
3135 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3136 wxRect rect;
3137 self->GetClippingBox(rect);
3138 return rect;
3139 }
3140 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3141 wxArrayInt widths;
3142 self->GetPartialTextExtents(text, widths);
3143 return widths;
3144 }
3145
3146 #define SWIG_From_double PyFloat_FromDouble
3147
3148 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3149 self->SetLogicalOrigin(point.x, point.y);
3150 }
3151 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3152 self->SetDeviceOrigin(point.x, point.y);
3153 }
3154 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3155 self->CalcBoundingBox(point.x, point.y);
3156 }
3157 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3158 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3159 }
3160 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3161 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3162 }
3163 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3164 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3165 }
3166 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3167 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3168 }
3169 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3170 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3171 }
3172 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3173 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3174 }
3175
3176 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3177 *x1 = dc->MinX();
3178 *y1 = dc->MinY();
3179 *x2 = dc->MaxX();
3180 *y2 = dc->MaxY();
3181 }
3182
3183
3184 #include <wx/dcbuffer.h>
3185
3186
3187 #include <wx/dcps.h>
3188
3189
3190 class wxMetaFile : public wxObject {
3191 public:
3192 wxMetaFile(const wxString&)
3193 { wxPyRaiseNotImplemented(); }
3194 };
3195
3196 class wxMetaFileDC : public wxClientDC {
3197 public:
3198 wxMetaFileDC(const wxString&, int, int, const wxString&)
3199 { wxPyRaiseNotImplemented(); }
3200 };
3201
3202
3203
3204 class wxPrinterDC : public wxClientDC {
3205 public:
3206 wxPrinterDC(const wxPrintData&)
3207 { wxPyRaiseNotImplemented(); }
3208
3209 };
3210
3211
3212
3213 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3214 self->AddColour(name, wxColour(red, green, blue));
3215 }
3216
3217 #include <wx/effects.h>
3218
3219
3220 #include "wx/renderer.h"
3221
3222
3223 SWIGINTERNINLINE PyObject*
3224 SWIG_From_bool (bool value)
3225 {
3226 return PyBool_FromLong(value ? 1 : 0);
3227 }
3228
3229 #ifdef __cplusplus
3230 extern "C" {
3231 #endif
3232 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3233 PyObject *resultobj = 0;
3234 wxGDIObject *result = 0 ;
3235
3236 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3237 {
3238 if (!wxPyCheckForApp()) SWIG_fail;
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 result = (wxGDIObject *)new wxGDIObject();
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3245 return resultobj;
3246 fail:
3247 return NULL;
3248 }
3249
3250
3251 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3252 PyObject *resultobj = 0;
3253 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3254 void *argp1 = 0 ;
3255 int res1 = 0 ;
3256 PyObject *swig_obj[1] ;
3257
3258 if (!args) SWIG_fail;
3259 swig_obj[0] = args;
3260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3261 if (!SWIG_IsOK(res1)) {
3262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3263 }
3264 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 delete arg1;
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) SWIG_fail;
3271 }
3272 resultobj = SWIG_Py_Void();
3273 return resultobj;
3274 fail:
3275 return NULL;
3276 }
3277
3278
3279 SWIGINTERN PyObject *_wrap_GDIObject_GetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3280 PyObject *resultobj = 0;
3281 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3282 bool result;
3283 void *argp1 = 0 ;
3284 int res1 = 0 ;
3285 PyObject *swig_obj[1] ;
3286
3287 if (!args) SWIG_fail;
3288 swig_obj[0] = args;
3289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3290 if (!SWIG_IsOK(res1)) {
3291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_GetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3292 }
3293 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3294 {
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 result = (bool)(arg1)->GetVisible();
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 {
3301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3302 }
3303 return resultobj;
3304 fail:
3305 return NULL;
3306 }
3307
3308
3309 SWIGINTERN PyObject *_wrap_GDIObject_SetVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3310 PyObject *resultobj = 0;
3311 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3312 bool arg2 ;
3313 void *argp1 = 0 ;
3314 int res1 = 0 ;
3315 bool val2 ;
3316 int ecode2 = 0 ;
3317 PyObject * obj0 = 0 ;
3318 PyObject * obj1 = 0 ;
3319 char * kwnames[] = {
3320 (char *) "self",(char *) "visible", NULL
3321 };
3322
3323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) SWIG_fail;
3324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3325 if (!SWIG_IsOK(res1)) {
3326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_SetVisible" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3327 }
3328 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3329 ecode2 = SWIG_AsVal_bool(obj1, &val2);
3330 if (!SWIG_IsOK(ecode2)) {
3331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GDIObject_SetVisible" "', expected argument " "2"" of type '" "bool""'");
3332 }
3333 arg2 = static_cast< bool >(val2);
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 (arg1)->SetVisible(arg2);
3337 wxPyEndAllowThreads(__tstate);
3338 if (PyErr_Occurred()) SWIG_fail;
3339 }
3340 resultobj = SWIG_Py_Void();
3341 return resultobj;
3342 fail:
3343 return NULL;
3344 }
3345
3346
3347 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3348 PyObject *resultobj = 0;
3349 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3350 bool result;
3351 void *argp1 = 0 ;
3352 int res1 = 0 ;
3353 PyObject *swig_obj[1] ;
3354
3355 if (!args) SWIG_fail;
3356 swig_obj[0] = args;
3357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3358 if (!SWIG_IsOK(res1)) {
3359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3360 }
3361 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3362 {
3363 PyThreadState* __tstate = wxPyBeginAllowThreads();
3364 result = (bool)(arg1)->IsNull();
3365 wxPyEndAllowThreads(__tstate);
3366 if (PyErr_Occurred()) SWIG_fail;
3367 }
3368 {
3369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3370 }
3371 return resultobj;
3372 fail:
3373 return NULL;
3374 }
3375
3376
3377 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3378 PyObject *obj;
3379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3380 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3381 return SWIG_Py_Void();
3382 }
3383
3384 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3385 return SWIG_Python_InitShadowInstance(args);
3386 }
3387
3388 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3389 PyObject *resultobj = 0;
3390 byte arg1 = (byte) 0 ;
3391 byte arg2 = (byte) 0 ;
3392 byte arg3 = (byte) 0 ;
3393 wxColour *result = 0 ;
3394 unsigned char val1 ;
3395 int ecode1 = 0 ;
3396 unsigned char val2 ;
3397 int ecode2 = 0 ;
3398 unsigned char val3 ;
3399 int ecode3 = 0 ;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 PyObject * obj2 = 0 ;
3403 char * kwnames[] = {
3404 (char *) "red",(char *) "green",(char *) "blue", NULL
3405 };
3406
3407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3408 if (obj0) {
3409 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3410 if (!SWIG_IsOK(ecode1)) {
3411 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3412 }
3413 arg1 = static_cast< byte >(val1);
3414 }
3415 if (obj1) {
3416 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3417 if (!SWIG_IsOK(ecode2)) {
3418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3419 }
3420 arg2 = static_cast< byte >(val2);
3421 }
3422 if (obj2) {
3423 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3424 if (!SWIG_IsOK(ecode3)) {
3425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3426 }
3427 arg3 = static_cast< byte >(val3);
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3436 return resultobj;
3437 fail:
3438 return NULL;
3439 }
3440
3441
3442 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj = 0;
3444 wxString *arg1 = 0 ;
3445 wxColour *result = 0 ;
3446 bool temp1 = false ;
3447 PyObject * obj0 = 0 ;
3448 char * kwnames[] = {
3449 (char *) "colorName", NULL
3450 };
3451
3452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3453 {
3454 arg1 = wxString_in_helper(obj0);
3455 if (arg1 == NULL) SWIG_fail;
3456 temp1 = true;
3457 }
3458 {
3459 if (!wxPyCheckForApp()) SWIG_fail;
3460 PyThreadState* __tstate = wxPyBeginAllowThreads();
3461 result = (wxColour *)new wxColour((wxString const &)*arg1);
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3466 {
3467 if (temp1)
3468 delete arg1;
3469 }
3470 return resultobj;
3471 fail:
3472 {
3473 if (temp1)
3474 delete arg1;
3475 }
3476 return NULL;
3477 }
3478
3479
3480 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3481 PyObject *resultobj = 0;
3482 unsigned long arg1 ;
3483 wxColour *result = 0 ;
3484 unsigned long val1 ;
3485 int ecode1 = 0 ;
3486 PyObject * obj0 = 0 ;
3487 char * kwnames[] = {
3488 (char *) "colRGB", NULL
3489 };
3490
3491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3492 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3493 if (!SWIG_IsOK(ecode1)) {
3494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3495 }
3496 arg1 = static_cast< unsigned long >(val1);
3497 {
3498 PyThreadState* __tstate = wxPyBeginAllowThreads();
3499 result = (wxColour *)new wxColour(arg1);
3500 wxPyEndAllowThreads(__tstate);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3504 return resultobj;
3505 fail:
3506 return NULL;
3507 }
3508
3509
3510 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3511 PyObject *resultobj = 0;
3512 wxColour *arg1 = (wxColour *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
3520 if (!SWIG_IsOK(res1)) {
3521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3522 }
3523 arg1 = reinterpret_cast< wxColour * >(argp1);
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 delete arg1;
3527
3528 wxPyEndAllowThreads(__tstate);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 resultobj = SWIG_Py_Void();
3532 return resultobj;
3533 fail:
3534 return NULL;
3535 }
3536
3537
3538 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3539 PyObject *resultobj = 0;
3540 wxColour *arg1 = (wxColour *) 0 ;
3541 byte result;
3542 void *argp1 = 0 ;
3543 int res1 = 0 ;
3544 PyObject *swig_obj[1] ;
3545
3546 if (!args) SWIG_fail;
3547 swig_obj[0] = args;
3548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3549 if (!SWIG_IsOK(res1)) {
3550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3551 }
3552 arg1 = reinterpret_cast< wxColour * >(argp1);
3553 {
3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
3555 result = (byte)(arg1)->Red();
3556 wxPyEndAllowThreads(__tstate);
3557 if (PyErr_Occurred()) SWIG_fail;
3558 }
3559 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3560 return resultobj;
3561 fail:
3562 return NULL;
3563 }
3564
3565
3566 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3567 PyObject *resultobj = 0;
3568 wxColour *arg1 = (wxColour *) 0 ;
3569 byte result;
3570 void *argp1 = 0 ;
3571 int res1 = 0 ;
3572 PyObject *swig_obj[1] ;
3573
3574 if (!args) SWIG_fail;
3575 swig_obj[0] = args;
3576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3577 if (!SWIG_IsOK(res1)) {
3578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3579 }
3580 arg1 = reinterpret_cast< wxColour * >(argp1);
3581 {
3582 PyThreadState* __tstate = wxPyBeginAllowThreads();
3583 result = (byte)(arg1)->Green();
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3588 return resultobj;
3589 fail:
3590 return NULL;
3591 }
3592
3593
3594 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3595 PyObject *resultobj = 0;
3596 wxColour *arg1 = (wxColour *) 0 ;
3597 byte result;
3598 void *argp1 = 0 ;
3599 int res1 = 0 ;
3600 PyObject *swig_obj[1] ;
3601
3602 if (!args) SWIG_fail;
3603 swig_obj[0] = args;
3604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3605 if (!SWIG_IsOK(res1)) {
3606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3607 }
3608 arg1 = reinterpret_cast< wxColour * >(argp1);
3609 {
3610 PyThreadState* __tstate = wxPyBeginAllowThreads();
3611 result = (byte)(arg1)->Blue();
3612 wxPyEndAllowThreads(__tstate);
3613 if (PyErr_Occurred()) SWIG_fail;
3614 }
3615 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3616 return resultobj;
3617 fail:
3618 return NULL;
3619 }
3620
3621
3622 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3623 PyObject *resultobj = 0;
3624 wxColour *arg1 = (wxColour *) 0 ;
3625 bool result;
3626 void *argp1 = 0 ;
3627 int res1 = 0 ;
3628 PyObject *swig_obj[1] ;
3629
3630 if (!args) SWIG_fail;
3631 swig_obj[0] = args;
3632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3633 if (!SWIG_IsOK(res1)) {
3634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3635 }
3636 arg1 = reinterpret_cast< wxColour * >(argp1);
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 result = (bool)(arg1)->Ok();
3640 wxPyEndAllowThreads(__tstate);
3641 if (PyErr_Occurred()) SWIG_fail;
3642 }
3643 {
3644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3645 }
3646 return resultobj;
3647 fail:
3648 return NULL;
3649 }
3650
3651
3652 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3653 PyObject *resultobj = 0;
3654 wxColour *arg1 = (wxColour *) 0 ;
3655 byte arg2 ;
3656 byte arg3 ;
3657 byte arg4 ;
3658 void *argp1 = 0 ;
3659 int res1 = 0 ;
3660 unsigned char val2 ;
3661 int ecode2 = 0 ;
3662 unsigned char val3 ;
3663 int ecode3 = 0 ;
3664 unsigned char val4 ;
3665 int ecode4 = 0 ;
3666 PyObject * obj0 = 0 ;
3667 PyObject * obj1 = 0 ;
3668 PyObject * obj2 = 0 ;
3669 PyObject * obj3 = 0 ;
3670 char * kwnames[] = {
3671 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3672 };
3673
3674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3676 if (!SWIG_IsOK(res1)) {
3677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3678 }
3679 arg1 = reinterpret_cast< wxColour * >(argp1);
3680 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3681 if (!SWIG_IsOK(ecode2)) {
3682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3683 }
3684 arg2 = static_cast< byte >(val2);
3685 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3686 if (!SWIG_IsOK(ecode3)) {
3687 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3688 }
3689 arg3 = static_cast< byte >(val3);
3690 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3691 if (!SWIG_IsOK(ecode4)) {
3692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3693 }
3694 arg4 = static_cast< byte >(val4);
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 (arg1)->Set(arg2,arg3,arg4);
3698 wxPyEndAllowThreads(__tstate);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
3701 resultobj = SWIG_Py_Void();
3702 return resultobj;
3703 fail:
3704 return NULL;
3705 }
3706
3707
3708 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3709 PyObject *resultobj = 0;
3710 wxColour *arg1 = (wxColour *) 0 ;
3711 unsigned long arg2 ;
3712 void *argp1 = 0 ;
3713 int res1 = 0 ;
3714 unsigned long val2 ;
3715 int ecode2 = 0 ;
3716 PyObject * obj0 = 0 ;
3717 PyObject * obj1 = 0 ;
3718 char * kwnames[] = {
3719 (char *) "self",(char *) "colRGB", NULL
3720 };
3721
3722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3724 if (!SWIG_IsOK(res1)) {
3725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3726 }
3727 arg1 = reinterpret_cast< wxColour * >(argp1);
3728 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3729 if (!SWIG_IsOK(ecode2)) {
3730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3731 }
3732 arg2 = static_cast< unsigned long >(val2);
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 (arg1)->Set(arg2);
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 resultobj = SWIG_Py_Void();
3740 return resultobj;
3741 fail:
3742 return NULL;
3743 }
3744
3745
3746 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3747 PyObject *resultobj = 0;
3748 wxColour *arg1 = (wxColour *) 0 ;
3749 wxString *arg2 = 0 ;
3750 void *argp1 = 0 ;
3751 int res1 = 0 ;
3752 bool temp2 = false ;
3753 PyObject * obj0 = 0 ;
3754 PyObject * obj1 = 0 ;
3755 char * kwnames[] = {
3756 (char *) "self",(char *) "colourName", NULL
3757 };
3758
3759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3761 if (!SWIG_IsOK(res1)) {
3762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3763 }
3764 arg1 = reinterpret_cast< wxColour * >(argp1);
3765 {
3766 arg2 = wxString_in_helper(obj1);
3767 if (arg2 == NULL) SWIG_fail;
3768 temp2 = true;
3769 }
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 (arg1)->InitFromName((wxString const &)*arg2);
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 resultobj = SWIG_Py_Void();
3777 {
3778 if (temp2)
3779 delete arg2;
3780 }
3781 return resultobj;
3782 fail:
3783 {
3784 if (temp2)
3785 delete arg2;
3786 }
3787 return NULL;
3788 }
3789
3790
3791 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3792 PyObject *resultobj = 0;
3793 wxColour *arg1 = (wxColour *) 0 ;
3794 long result;
3795 void *argp1 = 0 ;
3796 int res1 = 0 ;
3797 PyObject *swig_obj[1] ;
3798
3799 if (!args) SWIG_fail;
3800 swig_obj[0] = args;
3801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3802 if (!SWIG_IsOK(res1)) {
3803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3804 }
3805 arg1 = reinterpret_cast< wxColour * >(argp1);
3806 {
3807 PyThreadState* __tstate = wxPyBeginAllowThreads();
3808 result = (long)((wxColour const *)arg1)->GetPixel();
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) SWIG_fail;
3811 }
3812 resultobj = SWIG_From_long(static_cast< long >(result));
3813 return resultobj;
3814 fail:
3815 return NULL;
3816 }
3817
3818
3819 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj = 0;
3821 wxColour *arg1 = (wxColour *) 0 ;
3822 wxColour *arg2 = 0 ;
3823 bool result;
3824 void *argp1 = 0 ;
3825 int res1 = 0 ;
3826 wxColour temp2 ;
3827 PyObject * obj0 = 0 ;
3828 PyObject * obj1 = 0 ;
3829 char * kwnames[] = {
3830 (char *) "self",(char *) "colour", NULL
3831 };
3832
3833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3835 if (!SWIG_IsOK(res1)) {
3836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour const *""'");
3837 }
3838 arg1 = reinterpret_cast< wxColour * >(argp1);
3839 {
3840 arg2 = &temp2;
3841 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3842 }
3843 {
3844 PyThreadState* __tstate = wxPyBeginAllowThreads();
3845 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
3846 wxPyEndAllowThreads(__tstate);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 {
3850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3851 }
3852 return resultobj;
3853 fail:
3854 return NULL;
3855 }
3856
3857
3858 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj = 0;
3860 wxColour *arg1 = (wxColour *) 0 ;
3861 wxColour *arg2 = 0 ;
3862 bool result;
3863 void *argp1 = 0 ;
3864 int res1 = 0 ;
3865 wxColour temp2 ;
3866 PyObject * obj0 = 0 ;
3867 PyObject * obj1 = 0 ;
3868 char * kwnames[] = {
3869 (char *) "self",(char *) "colour", NULL
3870 };
3871
3872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3874 if (!SWIG_IsOK(res1)) {
3875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour const *""'");
3876 }
3877 arg1 = reinterpret_cast< wxColour * >(argp1);
3878 {
3879 arg2 = &temp2;
3880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3881 }
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 {
3889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3890 }
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3898 PyObject *resultobj = 0;
3899 wxColour *arg1 = (wxColour *) 0 ;
3900 PyObject *result = 0 ;
3901 void *argp1 = 0 ;
3902 int res1 = 0 ;
3903 PyObject *swig_obj[1] ;
3904
3905 if (!args) SWIG_fail;
3906 swig_obj[0] = args;
3907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3908 if (!SWIG_IsOK(res1)) {
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3910 }
3911 arg1 = reinterpret_cast< wxColour * >(argp1);
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (PyObject *)wxColour_Get(arg1);
3915 wxPyEndAllowThreads(__tstate);
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 resultobj = result;
3919 return resultobj;
3920 fail:
3921 return NULL;
3922 }
3923
3924
3925 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3926 PyObject *resultobj = 0;
3927 wxColour *arg1 = (wxColour *) 0 ;
3928 unsigned long result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 PyObject *swig_obj[1] ;
3932
3933 if (!args) SWIG_fail;
3934 swig_obj[0] = args;
3935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3938 }
3939 arg1 = reinterpret_cast< wxColour * >(argp1);
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (unsigned long)wxColour_GetRGB(arg1);
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3954 PyObject *obj;
3955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3956 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3957 return SWIG_Py_Void();
3958 }
3959
3960 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3961 return SWIG_Python_InitShadowInstance(args);
3962 }
3963
3964 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj = 0;
3966 int arg1 ;
3967 unsigned char *arg2 = (unsigned char *) 0 ;
3968 unsigned char *arg3 = (unsigned char *) 0 ;
3969 unsigned char *arg4 = (unsigned char *) 0 ;
3970 wxPalette *result = 0 ;
3971 int val1 ;
3972 int ecode1 = 0 ;
3973 void *argp2 = 0 ;
3974 int res2 = 0 ;
3975 void *argp3 = 0 ;
3976 int res3 = 0 ;
3977 void *argp4 = 0 ;
3978 int res4 = 0 ;
3979 PyObject * obj0 = 0 ;
3980 PyObject * obj1 = 0 ;
3981 PyObject * obj2 = 0 ;
3982 PyObject * obj3 = 0 ;
3983 char * kwnames[] = {
3984 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3985 };
3986
3987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3988 ecode1 = SWIG_AsVal_int(obj0, &val1);
3989 if (!SWIG_IsOK(ecode1)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3991 }
3992 arg1 = static_cast< int >(val1);
3993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3994 if (!SWIG_IsOK(res2)) {
3995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3996 }
3997 arg2 = reinterpret_cast< unsigned char * >(argp2);
3998 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3999 if (!SWIG_IsOK(res3)) {
4000 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4001 }
4002 arg3 = reinterpret_cast< unsigned char * >(argp3);
4003 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4004 if (!SWIG_IsOK(res4)) {
4005 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4006 }
4007 arg4 = reinterpret_cast< unsigned char * >(argp4);
4008 {
4009 if (!wxPyCheckForApp()) SWIG_fail;
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4023 PyObject *resultobj = 0;
4024 wxPalette *arg1 = (wxPalette *) 0 ;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4034 }
4035 arg1 = reinterpret_cast< wxPalette * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 delete arg1;
4039
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_Py_Void();
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj = 0;
4052 wxPalette *arg1 = (wxPalette *) 0 ;
4053 byte arg2 ;
4054 byte arg3 ;
4055 byte arg4 ;
4056 int result;
4057 void *argp1 = 0 ;
4058 int res1 = 0 ;
4059 unsigned char val2 ;
4060 int ecode2 = 0 ;
4061 unsigned char val3 ;
4062 int ecode3 = 0 ;
4063 unsigned char val4 ;
4064 int ecode4 = 0 ;
4065 PyObject * obj0 = 0 ;
4066 PyObject * obj1 = 0 ;
4067 PyObject * obj2 = 0 ;
4068 PyObject * obj3 = 0 ;
4069 char * kwnames[] = {
4070 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4071 };
4072
4073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4077 }
4078 arg1 = reinterpret_cast< wxPalette * >(argp1);
4079 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4080 if (!SWIG_IsOK(ecode2)) {
4081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4082 }
4083 arg2 = static_cast< byte >(val2);
4084 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4085 if (!SWIG_IsOK(ecode3)) {
4086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4087 }
4088 arg3 = static_cast< byte >(val3);
4089 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4090 if (!SWIG_IsOK(ecode4)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4092 }
4093 arg4 = static_cast< byte >(val4);
4094 {
4095 PyThreadState* __tstate = wxPyBeginAllowThreads();
4096 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 resultobj = SWIG_From_int(static_cast< int >(result));
4101 return resultobj;
4102 fail:
4103 return NULL;
4104 }
4105
4106
4107 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4108 PyObject *resultobj = 0;
4109 wxPalette *arg1 = (wxPalette *) 0 ;
4110 int arg2 ;
4111 byte *arg3 = (byte *) 0 ;
4112 byte *arg4 = (byte *) 0 ;
4113 byte *arg5 = (byte *) 0 ;
4114 bool result;
4115 void *argp1 = 0 ;
4116 int res1 = 0 ;
4117 int val2 ;
4118 int ecode2 = 0 ;
4119 byte temp3 ;
4120 int res3 = SWIG_TMPOBJ ;
4121 byte temp4 ;
4122 int res4 = SWIG_TMPOBJ ;
4123 byte temp5 ;
4124 int res5 = SWIG_TMPOBJ ;
4125 PyObject * obj0 = 0 ;
4126 PyObject * obj1 = 0 ;
4127 char * kwnames[] = {
4128 (char *) "self",(char *) "pixel", NULL
4129 };
4130
4131 arg3 = &temp3;
4132 arg4 = &temp4;
4133 arg5 = &temp5;
4134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4138 }
4139 arg1 = reinterpret_cast< wxPalette * >(argp1);
4140 ecode2 = SWIG_AsVal_int(obj1, &val2);
4141 if (!SWIG_IsOK(ecode2)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4143 }
4144 arg2 = static_cast< int >(val2);
4145 {
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 {
4152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4153 }
4154 if (SWIG_IsTmpObj(res3)) {
4155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4156 } else {
4157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4159 }
4160 if (SWIG_IsTmpObj(res4)) {
4161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4162 } else {
4163 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4165 }
4166 if (SWIG_IsTmpObj(res5)) {
4167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4168 } else {
4169 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4171 }
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4179 PyObject *resultobj = 0;
4180 wxPalette *arg1 = (wxPalette *) 0 ;
4181 int result;
4182 void *argp1 = 0 ;
4183 int res1 = 0 ;
4184 PyObject *swig_obj[1] ;
4185
4186 if (!args) SWIG_fail;
4187 swig_obj[0] = args;
4188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4189 if (!SWIG_IsOK(res1)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4191 }
4192 arg1 = reinterpret_cast< wxPalette * >(argp1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 resultobj = SWIG_From_int(static_cast< int >(result));
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4207 PyObject *resultobj = 0;
4208 wxPalette *arg1 = (wxPalette *) 0 ;
4209 bool result;
4210 void *argp1 = 0 ;
4211 int res1 = 0 ;
4212 PyObject *swig_obj[1] ;
4213
4214 if (!args) SWIG_fail;
4215 swig_obj[0] = args;
4216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4219 }
4220 arg1 = reinterpret_cast< wxPalette * >(argp1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (bool)(arg1)->Ok();
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4229 }
4230 return resultobj;
4231 fail:
4232 return NULL;
4233 }
4234
4235
4236 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4237 PyObject *obj;
4238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4239 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4240 return SWIG_Py_Void();
4241 }
4242
4243 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4244 return SWIG_Python_InitShadowInstance(args);
4245 }
4246
4247 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = 0 ;
4250 int arg2 = (int) 1 ;
4251 int arg3 = (int) wxSOLID ;
4252 wxPen *result = 0 ;
4253 wxColour temp1 ;
4254 int val2 ;
4255 int ecode2 = 0 ;
4256 int val3 ;
4257 int ecode3 = 0 ;
4258 PyObject * obj0 = 0 ;
4259 PyObject * obj1 = 0 ;
4260 PyObject * obj2 = 0 ;
4261 char * kwnames[] = {
4262 (char *) "colour",(char *) "width",(char *) "style", NULL
4263 };
4264
4265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4266 {
4267 arg1 = &temp1;
4268 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4269 }
4270 if (obj1) {
4271 ecode2 = SWIG_AsVal_int(obj1, &val2);
4272 if (!SWIG_IsOK(ecode2)) {
4273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4274 }
4275 arg2 = static_cast< int >(val2);
4276 }
4277 if (obj2) {
4278 ecode3 = SWIG_AsVal_int(obj2, &val3);
4279 if (!SWIG_IsOK(ecode3)) {
4280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4281 }
4282 arg3 = static_cast< int >(val3);
4283 }
4284 {
4285 if (!wxPyCheckForApp()) SWIG_fail;
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4292 return resultobj;
4293 fail:
4294 return NULL;
4295 }
4296
4297
4298 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299 PyObject *resultobj = 0;
4300 wxPen *arg1 = (wxPen *) 0 ;
4301 void *argp1 = 0 ;
4302 int res1 = 0 ;
4303 PyObject *swig_obj[1] ;
4304
4305 if (!args) SWIG_fail;
4306 swig_obj[0] = args;
4307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4308 if (!SWIG_IsOK(res1)) {
4309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4310 }
4311 arg1 = reinterpret_cast< wxPen * >(argp1);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 delete arg1;
4315
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_Py_Void();
4320 return resultobj;
4321 fail:
4322 return NULL;
4323 }
4324
4325
4326 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4327 PyObject *resultobj = 0;
4328 wxPen *arg1 = (wxPen *) 0 ;
4329 int result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject *swig_obj[1] ;
4333
4334 if (!args) SWIG_fail;
4335 swig_obj[0] = args;
4336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4339 }
4340 arg1 = reinterpret_cast< wxPen * >(argp1);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = (int)(arg1)->GetCap();
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_From_int(static_cast< int >(result));
4348 return resultobj;
4349 fail:
4350 return NULL;
4351 }
4352
4353
4354 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 wxPen *arg1 = (wxPen *) 0 ;
4357 wxColour result;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 PyObject *swig_obj[1] ;
4361
4362 if (!args) SWIG_fail;
4363 swig_obj[0] = args;
4364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4367 }
4368 arg1 = reinterpret_cast< wxPen * >(argp1);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (arg1)->GetColour();
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4383 PyObject *resultobj = 0;
4384 wxPen *arg1 = (wxPen *) 0 ;
4385 int result;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject *swig_obj[1] ;
4389
4390 if (!args) SWIG_fail;
4391 swig_obj[0] = args;
4392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4395 }
4396 arg1 = reinterpret_cast< wxPen * >(argp1);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 result = (int)(arg1)->GetJoin();
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_From_int(static_cast< int >(result));
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4411 PyObject *resultobj = 0;
4412 wxPen *arg1 = (wxPen *) 0 ;
4413 int result;
4414 void *argp1 = 0 ;
4415 int res1 = 0 ;
4416 PyObject *swig_obj[1] ;
4417
4418 if (!args) SWIG_fail;
4419 swig_obj[0] = args;
4420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4421 if (!SWIG_IsOK(res1)) {
4422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4423 }
4424 arg1 = reinterpret_cast< wxPen * >(argp1);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (int)(arg1)->GetStyle();
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_From_int(static_cast< int >(result));
4432 return resultobj;
4433 fail:
4434 return NULL;
4435 }
4436
4437
4438 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4439 PyObject *resultobj = 0;
4440 wxPen *arg1 = (wxPen *) 0 ;
4441 int result;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 PyObject *swig_obj[1] ;
4445
4446 if (!args) SWIG_fail;
4447 swig_obj[0] = args;
4448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4449 if (!SWIG_IsOK(res1)) {
4450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4451 }
4452 arg1 = reinterpret_cast< wxPen * >(argp1);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)(arg1)->GetWidth();
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461 fail:
4462 return NULL;
4463 }
4464
4465
4466 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *resultobj = 0;
4468 wxPen *arg1 = (wxPen *) 0 ;
4469 bool result;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 PyObject *swig_obj[1] ;
4473
4474 if (!args) SWIG_fail;
4475 swig_obj[0] = args;
4476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4477 if (!SWIG_IsOK(res1)) {
4478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4479 }
4480 arg1 = reinterpret_cast< wxPen * >(argp1);
4481 {
4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
4483 result = (bool)(arg1)->Ok();
4484 wxPyEndAllowThreads(__tstate);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 }
4487 {
4488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4489 }
4490 return resultobj;
4491 fail:
4492 return NULL;
4493 }
4494
4495
4496 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj = 0;
4498 wxPen *arg1 = (wxPen *) 0 ;
4499 int arg2 ;
4500 void *argp1 = 0 ;
4501 int res1 = 0 ;
4502 int val2 ;
4503 int ecode2 = 0 ;
4504 PyObject * obj0 = 0 ;
4505 PyObject * obj1 = 0 ;
4506 char * kwnames[] = {
4507 (char *) "self",(char *) "cap_style", NULL
4508 };
4509
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4512 if (!SWIG_IsOK(res1)) {
4513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4514 }
4515 arg1 = reinterpret_cast< wxPen * >(argp1);
4516 ecode2 = SWIG_AsVal_int(obj1, &val2);
4517 if (!SWIG_IsOK(ecode2)) {
4518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4519 }
4520 arg2 = static_cast< int >(val2);
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 (arg1)->SetCap(arg2);
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 resultobj = SWIG_Py_Void();
4528 return resultobj;
4529 fail:
4530 return NULL;
4531 }
4532
4533
4534 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4535 PyObject *resultobj = 0;
4536 wxPen *arg1 = (wxPen *) 0 ;
4537 wxColour *arg2 = 0 ;
4538 void *argp1 = 0 ;
4539 int res1 = 0 ;
4540 wxColour temp2 ;
4541 PyObject * obj0 = 0 ;
4542 PyObject * obj1 = 0 ;
4543 char * kwnames[] = {
4544 (char *) "self",(char *) "colour", NULL
4545 };
4546
4547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4549 if (!SWIG_IsOK(res1)) {
4550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4551 }
4552 arg1 = reinterpret_cast< wxPen * >(argp1);
4553 {
4554 arg2 = &temp2;
4555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4556 }
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 (arg1)->SetColour(*arg2);
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 resultobj = SWIG_Py_Void();
4564 return resultobj;
4565 fail:
4566 return NULL;
4567 }
4568
4569
4570 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj = 0;
4572 wxPen *arg1 = (wxPen *) 0 ;
4573 int arg2 ;
4574 void *argp1 = 0 ;
4575 int res1 = 0 ;
4576 int val2 ;
4577 int ecode2 = 0 ;
4578 PyObject * obj0 = 0 ;
4579 PyObject * obj1 = 0 ;
4580 char * kwnames[] = {
4581 (char *) "self",(char *) "join_style", NULL
4582 };
4583
4584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4586 if (!SWIG_IsOK(res1)) {
4587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4588 }
4589 arg1 = reinterpret_cast< wxPen * >(argp1);
4590 ecode2 = SWIG_AsVal_int(obj1, &val2);
4591 if (!SWIG_IsOK(ecode2)) {
4592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4593 }
4594 arg2 = static_cast< int >(val2);
4595 {
4596 PyThreadState* __tstate = wxPyBeginAllowThreads();
4597 (arg1)->SetJoin(arg2);
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 resultobj = SWIG_Py_Void();
4602 return resultobj;
4603 fail:
4604 return NULL;
4605 }
4606
4607
4608 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4609 PyObject *resultobj = 0;
4610 wxPen *arg1 = (wxPen *) 0 ;
4611 int arg2 ;
4612 void *argp1 = 0 ;
4613 int res1 = 0 ;
4614 int val2 ;
4615 int ecode2 = 0 ;
4616 PyObject * obj0 = 0 ;
4617 PyObject * obj1 = 0 ;
4618 char * kwnames[] = {
4619 (char *) "self",(char *) "style", NULL
4620 };
4621
4622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4624 if (!SWIG_IsOK(res1)) {
4625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4626 }
4627 arg1 = reinterpret_cast< wxPen * >(argp1);
4628 ecode2 = SWIG_AsVal_int(obj1, &val2);
4629 if (!SWIG_IsOK(ecode2)) {
4630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4631 }
4632 arg2 = static_cast< int >(val2);
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 (arg1)->SetStyle(arg2);
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 resultobj = SWIG_Py_Void();
4640 return resultobj;
4641 fail:
4642 return NULL;
4643 }
4644
4645
4646 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj = 0;
4648 wxPen *arg1 = (wxPen *) 0 ;
4649 int arg2 ;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 int val2 ;
4653 int ecode2 = 0 ;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656 char * kwnames[] = {
4657 (char *) "self",(char *) "width", NULL
4658 };
4659
4660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4662 if (!SWIG_IsOK(res1)) {
4663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4664 }
4665 arg1 = reinterpret_cast< wxPen * >(argp1);
4666 ecode2 = SWIG_AsVal_int(obj1, &val2);
4667 if (!SWIG_IsOK(ecode2)) {
4668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4669 }
4670 arg2 = static_cast< int >(val2);
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 (arg1)->SetWidth(arg2);
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_Py_Void();
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj = 0;
4686 wxPen *arg1 = (wxPen *) 0 ;
4687 int arg2 ;
4688 wxDash *arg3 = (wxDash *) 0 ;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 PyObject * obj0 = 0 ;
4692 PyObject * obj1 = 0 ;
4693 char * kwnames[] = {
4694 (char *) "self",(char *) "dashes", NULL
4695 };
4696
4697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4699 if (!SWIG_IsOK(res1)) {
4700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4701 }
4702 arg1 = reinterpret_cast< wxPen * >(argp1);
4703 {
4704 arg2 = PyList_Size(obj1);
4705 arg3 = (wxDash*)byte_LIST_helper(obj1);
4706 if (arg3 == NULL) SWIG_fail;
4707 }
4708 {
4709 PyThreadState* __tstate = wxPyBeginAllowThreads();
4710 (arg1)->SetDashes(arg2,arg3);
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = SWIG_Py_Void();
4715 {
4716 if (arg3) delete [] arg3;
4717 }
4718 return resultobj;
4719 fail:
4720 {
4721 if (arg3) delete [] arg3;
4722 }
4723 return NULL;
4724 }
4725
4726
4727 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 PyObject *resultobj = 0;
4729 wxPen *arg1 = (wxPen *) 0 ;
4730 PyObject *result = 0 ;
4731 void *argp1 = 0 ;
4732 int res1 = 0 ;
4733 PyObject *swig_obj[1] ;
4734
4735 if (!args) SWIG_fail;
4736 swig_obj[0] = args;
4737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4738 if (!SWIG_IsOK(res1)) {
4739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4740 }
4741 arg1 = reinterpret_cast< wxPen * >(argp1);
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (PyObject *)wxPen_GetDashes(arg1);
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 resultobj = result;
4749 return resultobj;
4750 fail:
4751 return NULL;
4752 }
4753
4754
4755 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj = 0;
4757 wxPen *arg1 = (wxPen *) 0 ;
4758 PyObject *arg2 = (PyObject *) 0 ;
4759 PyObject *arg3 = (PyObject *) 0 ;
4760 void *argp1 = 0 ;
4761 int res1 = 0 ;
4762 PyObject * obj0 = 0 ;
4763 PyObject * obj1 = 0 ;
4764 PyObject * obj2 = 0 ;
4765 char * kwnames[] = {
4766 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4767 };
4768
4769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4771 if (!SWIG_IsOK(res1)) {
4772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4773 }
4774 arg1 = reinterpret_cast< wxPen * >(argp1);
4775 arg2 = obj1;
4776 arg3 = obj2;
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 wxPen__SetDashes(arg1,arg2,arg3);
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = SWIG_Py_Void();
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4791 PyObject *resultobj = 0;
4792 wxPen *arg1 = (wxPen *) 0 ;
4793 int result;
4794 void *argp1 = 0 ;
4795 int res1 = 0 ;
4796 PyObject *swig_obj[1] ;
4797
4798 if (!args) SWIG_fail;
4799 swig_obj[0] = args;
4800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4801 if (!SWIG_IsOK(res1)) {
4802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4803 }
4804 arg1 = reinterpret_cast< wxPen * >(argp1);
4805 {
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 result = (int)((wxPen const *)arg1)->GetDashCount();
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_From_int(static_cast< int >(result));
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj = 0;
4820 wxPen *arg1 = (wxPen *) 0 ;
4821 wxPen *arg2 = (wxPen *) 0 ;
4822 bool result;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 void *argp2 = 0 ;
4826 int res2 = 0 ;
4827 PyObject * obj0 = 0 ;
4828 PyObject * obj1 = 0 ;
4829 char * kwnames[] = {
4830 (char *) "self",(char *) "other", NULL
4831 };
4832
4833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4837 }
4838 arg1 = reinterpret_cast< wxPen * >(argp1);
4839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4840 if (!SWIG_IsOK(res2)) {
4841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4842 }
4843 arg2 = reinterpret_cast< wxPen * >(argp2);
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 {
4851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4852 }
4853 return resultobj;
4854 fail:
4855 return NULL;
4856 }
4857
4858
4859 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj = 0;
4861 wxPen *arg1 = (wxPen *) 0 ;
4862 wxPen *arg2 = (wxPen *) 0 ;
4863 bool result;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 void *argp2 = 0 ;
4867 int res2 = 0 ;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 char * kwnames[] = {
4871 (char *) "self",(char *) "other", NULL
4872 };
4873
4874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4876 if (!SWIG_IsOK(res1)) {
4877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4878 }
4879 arg1 = reinterpret_cast< wxPen * >(argp1);
4880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4881 if (!SWIG_IsOK(res2)) {
4882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4883 }
4884 arg2 = reinterpret_cast< wxPen * >(argp2);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 {
4892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4893 }
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4901 PyObject *obj;
4902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4903 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4904 return SWIG_Py_Void();
4905 }
4906
4907 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4908 return SWIG_Python_InitShadowInstance(args);
4909 }
4910
4911 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxColour *arg1 = 0 ;
4914 int arg2 = (int) wxSOLID ;
4915 wxBrush *result = 0 ;
4916 wxColour temp1 ;
4917 int val2 ;
4918 int ecode2 = 0 ;
4919 PyObject * obj0 = 0 ;
4920 PyObject * obj1 = 0 ;
4921 char * kwnames[] = {
4922 (char *) "colour",(char *) "style", NULL
4923 };
4924
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4926 {
4927 arg1 = &temp1;
4928 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4929 }
4930 if (obj1) {
4931 ecode2 = SWIG_AsVal_int(obj1, &val2);
4932 if (!SWIG_IsOK(ecode2)) {
4933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4934 }
4935 arg2 = static_cast< int >(val2);
4936 }
4937 {
4938 if (!wxPyCheckForApp()) SWIG_fail;
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4945 return resultobj;
4946 fail:
4947 return NULL;
4948 }
4949
4950
4951 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj = 0;
4953 wxBitmap *arg1 = 0 ;
4954 wxBrush *result = 0 ;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject * obj0 = 0 ;
4958 char * kwnames[] = {
4959 (char *) "stippleBitmap", NULL
4960 };
4961
4962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4963 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4966 }
4967 if (!argp1) {
4968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4969 }
4970 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4971 {
4972 if (!wxPyCheckForApp()) SWIG_fail;
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4979 return resultobj;
4980 fail:
4981 return NULL;
4982 }
4983
4984
4985 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxBrush *arg1 = (wxBrush *) 0 ;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 PyObject *swig_obj[1] ;
4991
4992 if (!args) SWIG_fail;
4993 swig_obj[0] = args;
4994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4997 }
4998 arg1 = reinterpret_cast< wxBrush * >(argp1);
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 delete arg1;
5002
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 resultobj = SWIG_Py_Void();
5007 return resultobj;
5008 fail:
5009 return NULL;
5010 }
5011
5012
5013 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5014 PyObject *resultobj = 0;
5015 wxBrush *arg1 = (wxBrush *) 0 ;
5016 wxColour *arg2 = 0 ;
5017 void *argp1 = 0 ;
5018 int res1 = 0 ;
5019 wxColour temp2 ;
5020 PyObject * obj0 = 0 ;
5021 PyObject * obj1 = 0 ;
5022 char * kwnames[] = {
5023 (char *) "self",(char *) "col", NULL
5024 };
5025
5026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5030 }
5031 arg1 = reinterpret_cast< wxBrush * >(argp1);
5032 {
5033 arg2 = &temp2;
5034 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5035 }
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 (arg1)->SetColour((wxColour const &)*arg2);
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_Py_Void();
5043 return resultobj;
5044 fail:
5045 return NULL;
5046 }
5047
5048
5049 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj = 0;
5051 wxBrush *arg1 = (wxBrush *) 0 ;
5052 int arg2 ;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 int val2 ;
5056 int ecode2 = 0 ;
5057 PyObject * obj0 = 0 ;
5058 PyObject * obj1 = 0 ;
5059 char * kwnames[] = {
5060 (char *) "self",(char *) "style", NULL
5061 };
5062
5063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5065 if (!SWIG_IsOK(res1)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5067 }
5068 arg1 = reinterpret_cast< wxBrush * >(argp1);
5069 ecode2 = SWIG_AsVal_int(obj1, &val2);
5070 if (!SWIG_IsOK(ecode2)) {
5071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5072 }
5073 arg2 = static_cast< int >(val2);
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 (arg1)->SetStyle(arg2);
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 resultobj = SWIG_Py_Void();
5081 return resultobj;
5082 fail:
5083 return NULL;
5084 }
5085
5086
5087 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj = 0;
5089 wxBrush *arg1 = (wxBrush *) 0 ;
5090 wxBitmap *arg2 = 0 ;
5091 void *argp1 = 0 ;
5092 int res1 = 0 ;
5093 void *argp2 = 0 ;
5094 int res2 = 0 ;
5095 PyObject * obj0 = 0 ;
5096 PyObject * obj1 = 0 ;
5097 char * kwnames[] = {
5098 (char *) "self",(char *) "stipple", NULL
5099 };
5100
5101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5103 if (!SWIG_IsOK(res1)) {
5104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5105 }
5106 arg1 = reinterpret_cast< wxBrush * >(argp1);
5107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5108 if (!SWIG_IsOK(res2)) {
5109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5110 }
5111 if (!argp2) {
5112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5113 }
5114 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 (arg1)->SetStipple((wxBitmap const &)*arg2);
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 resultobj = SWIG_Py_Void();
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5129 PyObject *resultobj = 0;
5130 wxBrush *arg1 = (wxBrush *) 0 ;
5131 wxColour result;
5132 void *argp1 = 0 ;
5133 int res1 = 0 ;
5134 PyObject *swig_obj[1] ;
5135
5136 if (!args) SWIG_fail;
5137 swig_obj[0] = args;
5138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5139 if (!SWIG_IsOK(res1)) {
5140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5141 }
5142 arg1 = reinterpret_cast< wxBrush * >(argp1);
5143 {
5144 PyThreadState* __tstate = wxPyBeginAllowThreads();
5145 result = ((wxBrush const *)arg1)->GetColour();
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 }
5149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5150 return resultobj;
5151 fail:
5152 return NULL;
5153 }
5154
5155
5156 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157 PyObject *resultobj = 0;
5158 wxBrush *arg1 = (wxBrush *) 0 ;
5159 int result;
5160 void *argp1 = 0 ;
5161 int res1 = 0 ;
5162 PyObject *swig_obj[1] ;
5163
5164 if (!args) SWIG_fail;
5165 swig_obj[0] = args;
5166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5169 }
5170 arg1 = reinterpret_cast< wxBrush * >(argp1);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (int)((wxBrush const *)arg1)->GetStyle();
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_From_int(static_cast< int >(result));
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5185 PyObject *resultobj = 0;
5186 wxBrush *arg1 = (wxBrush *) 0 ;
5187 wxBitmap *result = 0 ;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 PyObject *swig_obj[1] ;
5191
5192 if (!args) SWIG_fail;
5193 swig_obj[0] = args;
5194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5195 if (!SWIG_IsOK(res1)) {
5196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5197 }
5198 arg1 = reinterpret_cast< wxBrush * >(argp1);
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5213 PyObject *resultobj = 0;
5214 wxBrush *arg1 = (wxBrush *) 0 ;
5215 bool result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 PyObject *swig_obj[1] ;
5219
5220 if (!args) SWIG_fail;
5221 swig_obj[0] = args;
5222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5223 if (!SWIG_IsOK(res1)) {
5224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5225 }
5226 arg1 = reinterpret_cast< wxBrush * >(argp1);
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (bool)((wxBrush const *)arg1)->IsHatch();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 {
5234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5235 }
5236 return resultobj;
5237 fail:
5238 return NULL;
5239 }
5240
5241
5242 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5243 PyObject *resultobj = 0;
5244 wxBrush *arg1 = (wxBrush *) 0 ;
5245 bool result;
5246 void *argp1 = 0 ;
5247 int res1 = 0 ;
5248 PyObject *swig_obj[1] ;
5249
5250 if (!args) SWIG_fail;
5251 swig_obj[0] = args;
5252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5253 if (!SWIG_IsOK(res1)) {
5254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5255 }
5256 arg1 = reinterpret_cast< wxBrush * >(argp1);
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 result = (bool)(arg1)->Ok();
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 {
5264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5265 }
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5273 PyObject *obj;
5274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5275 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5276 return SWIG_Py_Void();
5277 }
5278
5279 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 return SWIG_Python_InitShadowInstance(args);
5281 }
5282
5283 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj = 0;
5285 wxString *arg1 = 0 ;
5286 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5287 wxBitmap *result = 0 ;
5288 bool temp1 = false ;
5289 int val2 ;
5290 int ecode2 = 0 ;
5291 PyObject * obj0 = 0 ;
5292 PyObject * obj1 = 0 ;
5293 char * kwnames[] = {
5294 (char *) "name",(char *) "type", NULL
5295 };
5296
5297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5298 {
5299 arg1 = wxString_in_helper(obj0);
5300 if (arg1 == NULL) SWIG_fail;
5301 temp1 = true;
5302 }
5303 if (obj1) {
5304 ecode2 = SWIG_AsVal_int(obj1, &val2);
5305 if (!SWIG_IsOK(ecode2)) {
5306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5307 }
5308 arg2 = static_cast< wxBitmapType >(val2);
5309 }
5310 {
5311 if (!wxPyCheckForApp()) SWIG_fail;
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5318 {
5319 if (temp1)
5320 delete arg1;
5321 }
5322 return resultobj;
5323 fail:
5324 {
5325 if (temp1)
5326 delete arg1;
5327 }
5328 return NULL;
5329 }
5330
5331
5332 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5333 PyObject *resultobj = 0;
5334 wxBitmap *arg1 = (wxBitmap *) 0 ;
5335 void *argp1 = 0 ;
5336 int res1 = 0 ;
5337 PyObject *swig_obj[1] ;
5338
5339 if (!args) SWIG_fail;
5340 swig_obj[0] = args;
5341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5344 }
5345 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 delete arg1;
5349
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 int arg1 ;
5363 int arg2 ;
5364 int arg3 = (int) -1 ;
5365 wxBitmap *result = 0 ;
5366 int val1 ;
5367 int ecode1 = 0 ;
5368 int val2 ;
5369 int ecode2 = 0 ;
5370 int val3 ;
5371 int ecode3 = 0 ;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 PyObject * obj2 = 0 ;
5375 char * kwnames[] = {
5376 (char *) "width",(char *) "height",(char *) "depth", NULL
5377 };
5378
5379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5380 ecode1 = SWIG_AsVal_int(obj0, &val1);
5381 if (!SWIG_IsOK(ecode1)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5383 }
5384 arg1 = static_cast< int >(val1);
5385 ecode2 = SWIG_AsVal_int(obj1, &val2);
5386 if (!SWIG_IsOK(ecode2)) {
5387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5388 }
5389 arg2 = static_cast< int >(val2);
5390 if (obj2) {
5391 ecode3 = SWIG_AsVal_int(obj2, &val3);
5392 if (!SWIG_IsOK(ecode3)) {
5393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5394 }
5395 arg3 = static_cast< int >(val3);
5396 }
5397 {
5398 if (!wxPyCheckForApp()) SWIG_fail;
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj = 0;
5413 wxIcon *arg1 = 0 ;
5414 wxBitmap *result = 0 ;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject * obj0 = 0 ;
5418 char * kwnames[] = {
5419 (char *) "icon", NULL
5420 };
5421
5422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5423 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5424 if (!SWIG_IsOK(res1)) {
5425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5426 }
5427 if (!argp1) {
5428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5429 }
5430 arg1 = reinterpret_cast< wxIcon * >(argp1);
5431 {
5432 if (!wxPyCheckForApp()) SWIG_fail;
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5439 return resultobj;
5440 fail:
5441 return NULL;
5442 }
5443
5444
5445 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = 0;
5447 wxImage *arg1 = 0 ;
5448 int arg2 = (int) -1 ;
5449 wxBitmap *result = 0 ;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 int val2 ;
5453 int ecode2 = 0 ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 char * kwnames[] = {
5457 (char *) "image",(char *) "depth", NULL
5458 };
5459
5460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5461 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5462 if (!SWIG_IsOK(res1)) {
5463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5464 }
5465 if (!argp1) {
5466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5467 }
5468 arg1 = reinterpret_cast< wxImage * >(argp1);
5469 if (obj1) {
5470 ecode2 = SWIG_AsVal_int(obj1, &val2);
5471 if (!SWIG_IsOK(ecode2)) {
5472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5473 }
5474 arg2 = static_cast< int >(val2);
5475 }
5476 {
5477 if (!wxPyCheckForApp()) SWIG_fail;
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5480 wxPyEndAllowThreads(__tstate);
5481 if (PyErr_Occurred()) SWIG_fail;
5482 }
5483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5484 return resultobj;
5485 fail:
5486 return NULL;
5487 }
5488
5489
5490 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5491 PyObject *resultobj = 0;
5492 PyObject *arg1 = (PyObject *) 0 ;
5493 wxBitmap *result = 0 ;
5494 PyObject * obj0 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "listOfStrings", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5500 arg1 = obj0;
5501 {
5502 if (!wxPyCheckForApp()) SWIG_fail;
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 result = (wxBitmap *)new_wxBitmap(arg1);
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5509 return resultobj;
5510 fail:
5511 return NULL;
5512 }
5513
5514
5515 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj = 0;
5517 PyObject *arg1 = (PyObject *) 0 ;
5518 int arg2 ;
5519 int arg3 ;
5520 int arg4 = (int) 1 ;
5521 wxBitmap *result = 0 ;
5522 int val2 ;
5523 int ecode2 = 0 ;
5524 int val3 ;
5525 int ecode3 = 0 ;
5526 int val4 ;
5527 int ecode4 = 0 ;
5528 PyObject * obj0 = 0 ;
5529 PyObject * obj1 = 0 ;
5530 PyObject * obj2 = 0 ;
5531 PyObject * obj3 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5537 arg1 = obj0;
5538 ecode2 = SWIG_AsVal_int(obj1, &val2);
5539 if (!SWIG_IsOK(ecode2)) {
5540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5541 }
5542 arg2 = static_cast< int >(val2);
5543 ecode3 = SWIG_AsVal_int(obj2, &val3);
5544 if (!SWIG_IsOK(ecode3)) {
5545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5546 }
5547 arg3 = static_cast< int >(val3);
5548 if (obj3) {
5549 ecode4 = SWIG_AsVal_int(obj3, &val4);
5550 if (!SWIG_IsOK(ecode4)) {
5551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5552 }
5553 arg4 = static_cast< int >(val4);
5554 }
5555 {
5556 if (!wxPyCheckForApp()) SWIG_fail;
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5563 return resultobj;
5564 fail:
5565 return NULL;
5566 }
5567
5568
5569 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5570 PyObject *resultobj = 0;
5571 wxBitmap *arg1 = (wxBitmap *) 0 ;
5572 bool result;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 PyObject *swig_obj[1] ;
5576
5577 if (!args) SWIG_fail;
5578 swig_obj[0] = args;
5579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5582 }
5583 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 result = (bool)(arg1)->Ok();
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 {
5591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5592 }
5593 return resultobj;
5594 fail:
5595 return NULL;
5596 }
5597
5598
5599 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5600 PyObject *resultobj = 0;
5601 wxBitmap *arg1 = (wxBitmap *) 0 ;
5602 int result;
5603 void *argp1 = 0 ;
5604 int res1 = 0 ;
5605 PyObject *swig_obj[1] ;
5606
5607 if (!args) SWIG_fail;
5608 swig_obj[0] = args;
5609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5610 if (!SWIG_IsOK(res1)) {
5611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5612 }
5613 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (int)(arg1)->GetWidth();
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 resultobj = SWIG_From_int(static_cast< int >(result));
5621 return resultobj;
5622 fail:
5623 return NULL;
5624 }
5625
5626
5627 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5628 PyObject *resultobj = 0;
5629 wxBitmap *arg1 = (wxBitmap *) 0 ;
5630 int result;
5631 void *argp1 = 0 ;
5632 int res1 = 0 ;
5633 PyObject *swig_obj[1] ;
5634
5635 if (!args) SWIG_fail;
5636 swig_obj[0] = args;
5637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5640 }
5641 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (int)(arg1)->GetHeight();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_From_int(static_cast< int >(result));
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 PyObject *resultobj = 0;
5657 wxBitmap *arg1 = (wxBitmap *) 0 ;
5658 int result;
5659 void *argp1 = 0 ;
5660 int res1 = 0 ;
5661 PyObject *swig_obj[1] ;
5662
5663 if (!args) SWIG_fail;
5664 swig_obj[0] = args;
5665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5668 }
5669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)(arg1)->GetDepth();
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_From_int(static_cast< int >(result));
5677 return resultobj;
5678 fail:
5679 return NULL;
5680 }
5681
5682
5683 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *resultobj = 0;
5685 wxBitmap *arg1 = (wxBitmap *) 0 ;
5686 wxSize result;
5687 void *argp1 = 0 ;
5688 int res1 = 0 ;
5689 PyObject *swig_obj[1] ;
5690
5691 if (!args) SWIG_fail;
5692 swig_obj[0] = args;
5693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5696 }
5697 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = wxBitmap_GetSize(arg1);
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 wxBitmap *arg1 = (wxBitmap *) 0 ;
5714 SwigValueWrapper<wxImage > result;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject *swig_obj[1] ;
5718
5719 if (!args) SWIG_fail;
5720 swig_obj[0] = args;
5721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5724 }
5725 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = ((wxBitmap const *)arg1)->ConvertToImage();
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5733 return resultobj;
5734 fail:
5735 return NULL;
5736 }
5737
5738
5739 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5740 PyObject *resultobj = 0;
5741 wxBitmap *arg1 = (wxBitmap *) 0 ;
5742 wxMask *result = 0 ;
5743 void *argp1 = 0 ;
5744 int res1 = 0 ;
5745 PyObject *swig_obj[1] ;
5746
5747 if (!args) SWIG_fail;
5748 swig_obj[0] = args;
5749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5752 }
5753 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5754 {
5755 PyThreadState* __tstate = wxPyBeginAllowThreads();
5756 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5757 wxPyEndAllowThreads(__tstate);
5758 if (PyErr_Occurred()) SWIG_fail;
5759 }
5760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5761 return resultobj;
5762 fail:
5763 return NULL;
5764 }
5765
5766
5767 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5768 PyObject *resultobj = 0;
5769 wxBitmap *arg1 = (wxBitmap *) 0 ;
5770 wxMask *arg2 = (wxMask *) 0 ;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 int res2 = 0 ;
5774 PyObject * obj0 = 0 ;
5775 PyObject * obj1 = 0 ;
5776 char * kwnames[] = {
5777 (char *) "self",(char *) "mask", NULL
5778 };
5779
5780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5786 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5787 if (!SWIG_IsOK(res2)) {
5788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5789 }
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 (arg1)->SetMask(arg2);
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 resultobj = SWIG_Py_Void();
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj = 0;
5805 wxBitmap *arg1 = (wxBitmap *) 0 ;
5806 wxColour *arg2 = 0 ;
5807 void *argp1 = 0 ;
5808 int res1 = 0 ;
5809 wxColour temp2 ;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 char * kwnames[] = {
5813 (char *) "self",(char *) "colour", NULL
5814 };
5815
5816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5818 if (!SWIG_IsOK(res1)) {
5819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5820 }
5821 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5822 {
5823 arg2 = &temp2;
5824 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5825 }
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 resultobj = SWIG_Py_Void();
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj = 0;
5841 wxBitmap *arg1 = (wxBitmap *) 0 ;
5842 wxRect *arg2 = 0 ;
5843 SwigValueWrapper<wxBitmap > result;
5844 void *argp1 = 0 ;
5845 int res1 = 0 ;
5846 wxRect temp2 ;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char * kwnames[] = {
5850 (char *) "self",(char *) "rect", NULL
5851 };
5852
5853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5855 if (!SWIG_IsOK(res1)) {
5856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5857 }
5858 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5859 {
5860 arg2 = &temp2;
5861 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5870 return resultobj;
5871 fail:
5872 return NULL;
5873 }
5874
5875
5876 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj = 0;
5878 wxBitmap *arg1 = (wxBitmap *) 0 ;
5879 wxString *arg2 = 0 ;
5880 wxBitmapType arg3 ;
5881 wxPalette *arg4 = (wxPalette *) NULL ;
5882 bool result;
5883 void *argp1 = 0 ;
5884 int res1 = 0 ;
5885 bool temp2 = false ;
5886 int val3 ;
5887 int ecode3 = 0 ;
5888 void *argp4 = 0 ;
5889 int res4 = 0 ;
5890 PyObject * obj0 = 0 ;
5891 PyObject * obj1 = 0 ;
5892 PyObject * obj2 = 0 ;
5893 PyObject * obj3 = 0 ;
5894 char * kwnames[] = {
5895 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5896 };
5897
5898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5900 if (!SWIG_IsOK(res1)) {
5901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5902 }
5903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5904 {
5905 arg2 = wxString_in_helper(obj1);
5906 if (arg2 == NULL) SWIG_fail;
5907 temp2 = true;
5908 }
5909 ecode3 = SWIG_AsVal_int(obj2, &val3);
5910 if (!SWIG_IsOK(ecode3)) {
5911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5912 }
5913 arg3 = static_cast< wxBitmapType >(val3);
5914 if (obj3) {
5915 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5916 if (!SWIG_IsOK(res4)) {
5917 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5918 }
5919 arg4 = reinterpret_cast< wxPalette * >(argp4);
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 {
5928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5929 }
5930 {
5931 if (temp2)
5932 delete arg2;
5933 }
5934 return resultobj;
5935 fail:
5936 {
5937 if (temp2)
5938 delete arg2;
5939 }
5940 return NULL;
5941 }
5942
5943
5944 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj = 0;
5946 wxBitmap *arg1 = (wxBitmap *) 0 ;
5947 wxString *arg2 = 0 ;
5948 wxBitmapType arg3 ;
5949 bool result;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 bool temp2 = false ;
5953 int val3 ;
5954 int ecode3 = 0 ;
5955 PyObject * obj0 = 0 ;
5956 PyObject * obj1 = 0 ;
5957 PyObject * obj2 = 0 ;
5958 char * kwnames[] = {
5959 (char *) "self",(char *) "name",(char *) "type", NULL
5960 };
5961
5962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5966 }
5967 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5968 {
5969 arg2 = wxString_in_helper(obj1);
5970 if (arg2 == NULL) SWIG_fail;
5971 temp2 = true;
5972 }
5973 ecode3 = SWIG_AsVal_int(obj2, &val3);
5974 if (!SWIG_IsOK(ecode3)) {
5975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5976 }
5977 arg3 = static_cast< wxBitmapType >(val3);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 {
5985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5986 }
5987 {
5988 if (temp2)
5989 delete arg2;
5990 }
5991 return resultobj;
5992 fail:
5993 {
5994 if (temp2)
5995 delete arg2;
5996 }
5997 return NULL;
5998 }
5999
6000
6001 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6002 PyObject *resultobj = 0;
6003 wxBitmap *arg1 = (wxBitmap *) 0 ;
6004 wxPalette *result = 0 ;
6005 void *argp1 = 0 ;
6006 int res1 = 0 ;
6007 PyObject *swig_obj[1] ;
6008
6009 if (!args) SWIG_fail;
6010 swig_obj[0] = args;
6011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6012 if (!SWIG_IsOK(res1)) {
6013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6014 }
6015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6023 return resultobj;
6024 fail:
6025 return NULL;
6026 }
6027
6028
6029 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj = 0;
6031 wxBitmap *arg1 = (wxBitmap *) 0 ;
6032 wxIcon *arg2 = 0 ;
6033 bool result;
6034 void *argp1 = 0 ;
6035 int res1 = 0 ;
6036 void *argp2 = 0 ;
6037 int res2 = 0 ;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040 char * kwnames[] = {
6041 (char *) "self",(char *) "icon", NULL
6042 };
6043
6044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6046 if (!SWIG_IsOK(res1)) {
6047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6048 }
6049 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6051 if (!SWIG_IsOK(res2)) {
6052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6053 }
6054 if (!argp2) {
6055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6056 }
6057 arg2 = reinterpret_cast< wxIcon * >(argp2);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 {
6065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6066 }
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj = 0;
6075 wxBitmap *arg1 = (wxBitmap *) 0 ;
6076 int arg2 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 int val2 ;
6080 int ecode2 = 0 ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 char * kwnames[] = {
6084 (char *) "self",(char *) "height", NULL
6085 };
6086
6087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6089 if (!SWIG_IsOK(res1)) {
6090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6091 }
6092 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6093 ecode2 = SWIG_AsVal_int(obj1, &val2);
6094 if (!SWIG_IsOK(ecode2)) {
6095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6096 }
6097 arg2 = static_cast< int >(val2);
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 (arg1)->SetHeight(arg2);
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_Py_Void();
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxBitmap *arg1 = (wxBitmap *) 0 ;
6114 int arg2 ;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 int val2 ;
6118 int ecode2 = 0 ;
6119 PyObject * obj0 = 0 ;
6120 PyObject * obj1 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "self",(char *) "width", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6127 if (!SWIG_IsOK(res1)) {
6128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6129 }
6130 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6131 ecode2 = SWIG_AsVal_int(obj1, &val2);
6132 if (!SWIG_IsOK(ecode2)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6134 }
6135 arg2 = static_cast< int >(val2);
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 (arg1)->SetWidth(arg2);
6139 wxPyEndAllowThreads(__tstate);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 resultobj = SWIG_Py_Void();
6143 return resultobj;
6144 fail:
6145 return NULL;
6146 }
6147
6148
6149 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6150 PyObject *resultobj = 0;
6151 wxBitmap *arg1 = (wxBitmap *) 0 ;
6152 int arg2 ;
6153 void *argp1 = 0 ;
6154 int res1 = 0 ;
6155 int val2 ;
6156 int ecode2 = 0 ;
6157 PyObject * obj0 = 0 ;
6158 PyObject * obj1 = 0 ;
6159 char * kwnames[] = {
6160 (char *) "self",(char *) "depth", NULL
6161 };
6162
6163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6165 if (!SWIG_IsOK(res1)) {
6166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6167 }
6168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6169 ecode2 = SWIG_AsVal_int(obj1, &val2);
6170 if (!SWIG_IsOK(ecode2)) {
6171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6172 }
6173 arg2 = static_cast< int >(val2);
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->SetDepth(arg2);
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_Py_Void();
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj = 0;
6189 wxBitmap *arg1 = (wxBitmap *) 0 ;
6190 wxSize *arg2 = 0 ;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 wxSize temp2 ;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char * kwnames[] = {
6197 (char *) "self",(char *) "size", NULL
6198 };
6199
6200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 }
6205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6206 {
6207 arg2 = &temp2;
6208 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6209 }
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj = 0;
6225 wxBitmap *arg1 = (wxBitmap *) 0 ;
6226 wxBitmap *arg2 = (wxBitmap *) 0 ;
6227 bool result;
6228 void *argp1 = 0 ;
6229 int res1 = 0 ;
6230 void *argp2 = 0 ;
6231 int res2 = 0 ;
6232 PyObject * obj0 = 0 ;
6233 PyObject * obj1 = 0 ;
6234 char * kwnames[] = {
6235 (char *) "self",(char *) "other", NULL
6236 };
6237
6238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6240 if (!SWIG_IsOK(res1)) {
6241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6242 }
6243 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6245 if (!SWIG_IsOK(res2)) {
6246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6247 }
6248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 {
6256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6257 }
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxBitmap *arg1 = (wxBitmap *) 0 ;
6267 wxBitmap *arg2 = (wxBitmap *) 0 ;
6268 bool result;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 void *argp2 = 0 ;
6272 int res2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "self",(char *) "other", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6283 }
6284 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6286 if (!SWIG_IsOK(res2)) {
6287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6288 }
6289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 {
6297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6298 }
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6306 PyObject *obj;
6307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6308 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6309 return SWIG_Py_Void();
6310 }
6311
6312 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6313 return SWIG_Python_InitShadowInstance(args);
6314 }
6315
6316 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 wxBitmap *arg1 = 0 ;
6319 wxColour const &arg2_defvalue = wxNullColour ;
6320 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6321 wxMask *result = 0 ;
6322 void *argp1 = 0 ;
6323 int res1 = 0 ;
6324 wxColour temp2 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "bitmap",(char *) "colour", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6335 }
6336 if (!argp1) {
6337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6338 }
6339 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6340 if (obj1) {
6341 {
6342 arg2 = &temp2;
6343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6344 }
6345 }
6346 {
6347 if (!wxPyCheckForApp()) SWIG_fail;
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6354 return resultobj;
6355 fail:
6356 return NULL;
6357 }
6358
6359
6360 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6361 PyObject *resultobj = 0;
6362 wxMask *arg1 = (wxMask *) 0 ;
6363 void *argp1 = 0 ;
6364 int res1 = 0 ;
6365 PyObject *swig_obj[1] ;
6366
6367 if (!args) SWIG_fail;
6368 swig_obj[0] = args;
6369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6372 }
6373 arg1 = reinterpret_cast< wxMask * >(argp1);
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 delete arg1;
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_Py_Void();
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *obj;
6390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6391 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6392 return SWIG_Py_Void();
6393 }
6394
6395 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6396 return SWIG_Python_InitShadowInstance(args);
6397 }
6398
6399 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj = 0;
6401 wxString *arg1 = 0 ;
6402 wxBitmapType arg2 ;
6403 int arg3 = (int) -1 ;
6404 int arg4 = (int) -1 ;
6405 wxIcon *result = 0 ;
6406 bool temp1 = false ;
6407 int val2 ;
6408 int ecode2 = 0 ;
6409 int val3 ;
6410 int ecode3 = 0 ;
6411 int val4 ;
6412 int ecode4 = 0 ;
6413 PyObject * obj0 = 0 ;
6414 PyObject * obj1 = 0 ;
6415 PyObject * obj2 = 0 ;
6416 PyObject * obj3 = 0 ;
6417 char * kwnames[] = {
6418 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6419 };
6420
6421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6422 {
6423 arg1 = wxString_in_helper(obj0);
6424 if (arg1 == NULL) SWIG_fail;
6425 temp1 = true;
6426 }
6427 ecode2 = SWIG_AsVal_int(obj1, &val2);
6428 if (!SWIG_IsOK(ecode2)) {
6429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6430 }
6431 arg2 = static_cast< wxBitmapType >(val2);
6432 if (obj2) {
6433 ecode3 = SWIG_AsVal_int(obj2, &val3);
6434 if (!SWIG_IsOK(ecode3)) {
6435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6436 }
6437 arg3 = static_cast< int >(val3);
6438 }
6439 if (obj3) {
6440 ecode4 = SWIG_AsVal_int(obj3, &val4);
6441 if (!SWIG_IsOK(ecode4)) {
6442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6443 }
6444 arg4 = static_cast< int >(val4);
6445 }
6446 {
6447 if (!wxPyCheckForApp()) SWIG_fail;
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6454 {
6455 if (temp1)
6456 delete arg1;
6457 }
6458 return resultobj;
6459 fail:
6460 {
6461 if (temp1)
6462 delete arg1;
6463 }
6464 return NULL;
6465 }
6466
6467
6468 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6469 PyObject *resultobj = 0;
6470 wxIcon *arg1 = (wxIcon *) 0 ;
6471 void *argp1 = 0 ;
6472 int res1 = 0 ;
6473 PyObject *swig_obj[1] ;
6474
6475 if (!args) SWIG_fail;
6476 swig_obj[0] = args;
6477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6478 if (!SWIG_IsOK(res1)) {
6479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6480 }
6481 arg1 = reinterpret_cast< wxIcon * >(argp1);
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 delete arg1;
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_Py_Void();
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxIcon *result = 0 ;
6499
6500 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6501 {
6502 if (!wxPyCheckForApp()) SWIG_fail;
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 result = (wxIcon *)new wxIcon();
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj = 0;
6517 wxIconLocation *arg1 = 0 ;
6518 wxIcon *result = 0 ;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 PyObject * obj0 = 0 ;
6522 char * kwnames[] = {
6523 (char *) "loc", NULL
6524 };
6525
6526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6528 if (!SWIG_IsOK(res1)) {
6529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6530 }
6531 if (!argp1) {
6532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6533 }
6534 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6535 {
6536 if (!wxPyCheckForApp()) SWIG_fail;
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6543 return resultobj;
6544 fail:
6545 return NULL;
6546 }
6547
6548
6549 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6550 PyObject *resultobj = 0;
6551 wxBitmap *arg1 = 0 ;
6552 wxIcon *result = 0 ;
6553 void *argp1 = 0 ;
6554 int res1 = 0 ;
6555 PyObject * obj0 = 0 ;
6556 char * kwnames[] = {
6557 (char *) "bmp", NULL
6558 };
6559
6560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6562 if (!SWIG_IsOK(res1)) {
6563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6564 }
6565 if (!argp1) {
6566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6567 }
6568 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6569 {
6570 if (!wxPyCheckForApp()) SWIG_fail;
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj = 0;
6585 PyObject *arg1 = (PyObject *) 0 ;
6586 wxIcon *result = 0 ;
6587 PyObject * obj0 = 0 ;
6588 char * kwnames[] = {
6589 (char *) "listOfStrings", NULL
6590 };
6591
6592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6593 arg1 = obj0;
6594 {
6595 if (!wxPyCheckForApp()) SWIG_fail;
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = (wxIcon *)new_wxIcon(arg1);
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxIcon *arg1 = (wxIcon *) 0 ;
6611 wxString *arg2 = 0 ;
6612 wxBitmapType arg3 ;
6613 bool result;
6614 void *argp1 = 0 ;
6615 int res1 = 0 ;
6616 bool temp2 = false ;
6617 int val3 ;
6618 int ecode3 = 0 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 PyObject * obj2 = 0 ;
6622 char * kwnames[] = {
6623 (char *) "self",(char *) "name",(char *) "type", NULL
6624 };
6625
6626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6628 if (!SWIG_IsOK(res1)) {
6629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6630 }
6631 arg1 = reinterpret_cast< wxIcon * >(argp1);
6632 {
6633 arg2 = wxString_in_helper(obj1);
6634 if (arg2 == NULL) SWIG_fail;
6635 temp2 = true;
6636 }
6637 ecode3 = SWIG_AsVal_int(obj2, &val3);
6638 if (!SWIG_IsOK(ecode3)) {
6639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6640 }
6641 arg3 = static_cast< wxBitmapType >(val3);
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6645 wxPyEndAllowThreads(__tstate);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6650 }
6651 {
6652 if (temp2)
6653 delete arg2;
6654 }
6655 return resultobj;
6656 fail:
6657 {
6658 if (temp2)
6659 delete arg2;
6660 }
6661 return NULL;
6662 }
6663
6664
6665 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6666 PyObject *resultobj = 0;
6667 wxIcon *arg1 = (wxIcon *) 0 ;
6668 bool result;
6669 void *argp1 = 0 ;
6670 int res1 = 0 ;
6671 PyObject *swig_obj[1] ;
6672
6673 if (!args) SWIG_fail;
6674 swig_obj[0] = args;
6675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6676 if (!SWIG_IsOK(res1)) {
6677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6678 }
6679 arg1 = reinterpret_cast< wxIcon * >(argp1);
6680 {
6681 PyThreadState* __tstate = wxPyBeginAllowThreads();
6682 result = (bool)(arg1)->Ok();
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 {
6687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6688 }
6689 return resultobj;
6690 fail:
6691 return NULL;
6692 }
6693
6694
6695 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6696 PyObject *resultobj = 0;
6697 wxIcon *arg1 = (wxIcon *) 0 ;
6698 int result;
6699 void *argp1 = 0 ;
6700 int res1 = 0 ;
6701 PyObject *swig_obj[1] ;
6702
6703 if (!args) SWIG_fail;
6704 swig_obj[0] = args;
6705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6706 if (!SWIG_IsOK(res1)) {
6707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6708 }
6709 arg1 = reinterpret_cast< wxIcon * >(argp1);
6710 {
6711 PyThreadState* __tstate = wxPyBeginAllowThreads();
6712 result = (int)(arg1)->GetWidth();
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_From_int(static_cast< int >(result));
6717 return resultobj;
6718 fail:
6719 return NULL;
6720 }
6721
6722
6723 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6724 PyObject *resultobj = 0;
6725 wxIcon *arg1 = (wxIcon *) 0 ;
6726 int result;
6727 void *argp1 = 0 ;
6728 int res1 = 0 ;
6729 PyObject *swig_obj[1] ;
6730
6731 if (!args) SWIG_fail;
6732 swig_obj[0] = args;
6733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6736 }
6737 arg1 = reinterpret_cast< wxIcon * >(argp1);
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = (int)(arg1)->GetHeight();
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 resultobj = SWIG_From_int(static_cast< int >(result));
6745 return resultobj;
6746 fail:
6747 return NULL;
6748 }
6749
6750
6751 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6752 PyObject *resultobj = 0;
6753 wxIcon *arg1 = (wxIcon *) 0 ;
6754 int result;
6755 void *argp1 = 0 ;
6756 int res1 = 0 ;
6757 PyObject *swig_obj[1] ;
6758
6759 if (!args) SWIG_fail;
6760 swig_obj[0] = args;
6761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6762 if (!SWIG_IsOK(res1)) {
6763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6764 }
6765 arg1 = reinterpret_cast< wxIcon * >(argp1);
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 result = (int)(arg1)->GetDepth();
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 resultobj = SWIG_From_int(static_cast< int >(result));
6773 return resultobj;
6774 fail:
6775 return NULL;
6776 }
6777
6778
6779 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj = 0;
6781 wxIcon *arg1 = (wxIcon *) 0 ;
6782 int arg2 ;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 int val2 ;
6786 int ecode2 = 0 ;
6787 PyObject * obj0 = 0 ;
6788 PyObject * obj1 = 0 ;
6789 char * kwnames[] = {
6790 (char *) "self",(char *) "w", NULL
6791 };
6792
6793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6795 if (!SWIG_IsOK(res1)) {
6796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6797 }
6798 arg1 = reinterpret_cast< wxIcon * >(argp1);
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 (arg1)->SetWidth(arg2);
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 resultobj = SWIG_Py_Void();
6811 return resultobj;
6812 fail:
6813 return NULL;
6814 }
6815
6816
6817 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj = 0;
6819 wxIcon *arg1 = (wxIcon *) 0 ;
6820 int arg2 ;
6821 void *argp1 = 0 ;
6822 int res1 = 0 ;
6823 int val2 ;
6824 int ecode2 = 0 ;
6825 PyObject * obj0 = 0 ;
6826 PyObject * obj1 = 0 ;
6827 char * kwnames[] = {
6828 (char *) "self",(char *) "h", NULL
6829 };
6830
6831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6833 if (!SWIG_IsOK(res1)) {
6834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6835 }
6836 arg1 = reinterpret_cast< wxIcon * >(argp1);
6837 ecode2 = SWIG_AsVal_int(obj1, &val2);
6838 if (!SWIG_IsOK(ecode2)) {
6839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6840 }
6841 arg2 = static_cast< int >(val2);
6842 {
6843 PyThreadState* __tstate = wxPyBeginAllowThreads();
6844 (arg1)->SetHeight(arg2);
6845 wxPyEndAllowThreads(__tstate);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxIcon *arg1 = (wxIcon *) 0 ;
6858 int arg2 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "d", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6873 }
6874 arg1 = reinterpret_cast< wxIcon * >(argp1);
6875 ecode2 = SWIG_AsVal_int(obj1, &val2);
6876 if (!SWIG_IsOK(ecode2)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6878 }
6879 arg2 = static_cast< int >(val2);
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 (arg1)->SetDepth(arg2);
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = SWIG_Py_Void();
6887 return resultobj;
6888 fail:
6889 return NULL;
6890 }
6891
6892
6893 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = 0;
6895 wxIcon *arg1 = (wxIcon *) 0 ;
6896 wxBitmap *arg2 = 0 ;
6897 void *argp1 = 0 ;
6898 int res1 = 0 ;
6899 void *argp2 = 0 ;
6900 int res2 = 0 ;
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 char * kwnames[] = {
6904 (char *) "self",(char *) "bmp", NULL
6905 };
6906
6907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6909 if (!SWIG_IsOK(res1)) {
6910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6911 }
6912 arg1 = reinterpret_cast< wxIcon * >(argp1);
6913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6914 if (!SWIG_IsOK(res2)) {
6915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6916 }
6917 if (!argp2) {
6918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6919 }
6920 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6924 wxPyEndAllowThreads(__tstate);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_Py_Void();
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6935 PyObject *obj;
6936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6937 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6938 return SWIG_Py_Void();
6939 }
6940
6941 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6942 return SWIG_Python_InitShadowInstance(args);
6943 }
6944
6945 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj = 0;
6947 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6948 int arg2 = (int) 0 ;
6949 wxIconLocation *result = 0 ;
6950 bool temp1 = false ;
6951 int val2 ;
6952 int ecode2 = 0 ;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 char * kwnames[] = {
6956 (char *) "filename",(char *) "num", NULL
6957 };
6958
6959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6960 if (obj0) {
6961 {
6962 arg1 = wxString_in_helper(obj0);
6963 if (arg1 == NULL) SWIG_fail;
6964 temp1 = true;
6965 }
6966 }
6967 if (obj1) {
6968 ecode2 = SWIG_AsVal_int(obj1, &val2);
6969 if (!SWIG_IsOK(ecode2)) {
6970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6971 }
6972 arg2 = static_cast< int >(val2);
6973 }
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6981 {
6982 if (temp1)
6983 delete arg1;
6984 }
6985 return resultobj;
6986 fail:
6987 {
6988 if (temp1)
6989 delete arg1;
6990 }
6991 return NULL;
6992 }
6993
6994
6995 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6996 PyObject *resultobj = 0;
6997 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 PyObject *swig_obj[1] ;
7001
7002 if (!args) SWIG_fail;
7003 swig_obj[0] = args;
7004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7005 if (!SWIG_IsOK(res1)) {
7006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7007 }
7008 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7009 {
7010 PyThreadState* __tstate = wxPyBeginAllowThreads();
7011 delete arg1;
7012
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 resultobj = SWIG_Py_Void();
7017 return resultobj;
7018 fail:
7019 return NULL;
7020 }
7021
7022
7023 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7024 PyObject *resultobj = 0;
7025 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7026 bool result;
7027 void *argp1 = 0 ;
7028 int res1 = 0 ;
7029 PyObject *swig_obj[1] ;
7030
7031 if (!args) SWIG_fail;
7032 swig_obj[0] = args;
7033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7034 if (!SWIG_IsOK(res1)) {
7035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7036 }
7037 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 {
7045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7046 }
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj = 0;
7055 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7056 wxString *arg2 = 0 ;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 bool temp2 = false ;
7060 PyObject * obj0 = 0 ;
7061 PyObject * obj1 = 0 ;
7062 char * kwnames[] = {
7063 (char *) "self",(char *) "filename", NULL
7064 };
7065
7066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7068 if (!SWIG_IsOK(res1)) {
7069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7070 }
7071 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7072 {
7073 arg2 = wxString_in_helper(obj1);
7074 if (arg2 == NULL) SWIG_fail;
7075 temp2 = true;
7076 }
7077 {
7078 PyThreadState* __tstate = wxPyBeginAllowThreads();
7079 (arg1)->SetFileName((wxString const &)*arg2);
7080 wxPyEndAllowThreads(__tstate);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 resultobj = SWIG_Py_Void();
7084 {
7085 if (temp2)
7086 delete arg2;
7087 }
7088 return resultobj;
7089 fail:
7090 {
7091 if (temp2)
7092 delete arg2;
7093 }
7094 return NULL;
7095 }
7096
7097
7098 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7101 wxString *result = 0 ;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 {
7116 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7117 result = (wxString *) &_result_ref;
7118 }
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 {
7123 #if wxUSE_UNICODE
7124 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7125 #else
7126 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7127 #endif
7128 }
7129 return resultobj;
7130 fail:
7131 return NULL;
7132 }
7133
7134
7135 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj = 0;
7137 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7138 int arg2 ;
7139 void *argp1 = 0 ;
7140 int res1 = 0 ;
7141 int val2 ;
7142 int ecode2 = 0 ;
7143 PyObject * obj0 = 0 ;
7144 PyObject * obj1 = 0 ;
7145 char * kwnames[] = {
7146 (char *) "self",(char *) "num", NULL
7147 };
7148
7149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7151 if (!SWIG_IsOK(res1)) {
7152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7153 }
7154 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7155 ecode2 = SWIG_AsVal_int(obj1, &val2);
7156 if (!SWIG_IsOK(ecode2)) {
7157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7158 }
7159 arg2 = static_cast< int >(val2);
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 wxIconLocation_SetIndex(arg1,arg2);
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_Py_Void();
7167 return resultobj;
7168 fail:
7169 return NULL;
7170 }
7171
7172
7173 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7176 int result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7186 }
7187 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 result = (int)wxIconLocation_GetIndex(arg1);
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 resultobj = SWIG_From_int(static_cast< int >(result));
7195 return resultobj;
7196 fail:
7197 return NULL;
7198 }
7199
7200
7201 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7202 PyObject *obj;
7203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7204 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7205 return SWIG_Py_Void();
7206 }
7207
7208 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7209 return SWIG_Python_InitShadowInstance(args);
7210 }
7211
7212 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7213 PyObject *resultobj = 0;
7214 wxIconBundle *result = 0 ;
7215
7216 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (wxIconBundle *)new wxIconBundle();
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7224 return resultobj;
7225 fail:
7226 return NULL;
7227 }
7228
7229
7230 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj = 0;
7232 wxString *arg1 = 0 ;
7233 long arg2 ;
7234 wxIconBundle *result = 0 ;
7235 bool temp1 = false ;
7236 long val2 ;
7237 int ecode2 = 0 ;
7238 PyObject * obj0 = 0 ;
7239 PyObject * obj1 = 0 ;
7240 char * kwnames[] = {
7241 (char *) "file",(char *) "type", NULL
7242 };
7243
7244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7245 {
7246 arg1 = wxString_in_helper(obj0);
7247 if (arg1 == NULL) SWIG_fail;
7248 temp1 = true;
7249 }
7250 ecode2 = SWIG_AsVal_long(obj1, &val2);
7251 if (!SWIG_IsOK(ecode2)) {
7252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7253 }
7254 arg2 = static_cast< long >(val2);
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7258 wxPyEndAllowThreads(__tstate);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7262 {
7263 if (temp1)
7264 delete arg1;
7265 }
7266 return resultobj;
7267 fail:
7268 {
7269 if (temp1)
7270 delete arg1;
7271 }
7272 return NULL;
7273 }
7274
7275
7276 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj = 0;
7278 wxIcon *arg1 = 0 ;
7279 wxIconBundle *result = 0 ;
7280 void *argp1 = 0 ;
7281 int res1 = 0 ;
7282 PyObject * obj0 = 0 ;
7283 char * kwnames[] = {
7284 (char *) "icon", NULL
7285 };
7286
7287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7288 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7289 if (!SWIG_IsOK(res1)) {
7290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7291 }
7292 if (!argp1) {
7293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7294 }
7295 arg1 = reinterpret_cast< wxIcon * >(argp1);
7296 {
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7310 PyObject *resultobj = 0;
7311 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7321 }
7322 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 delete arg1;
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_Py_Void();
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj = 0;
7339 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7340 wxIcon *arg2 = 0 ;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 void *argp2 = 0 ;
7344 int res2 = 0 ;
7345 PyObject * obj0 = 0 ;
7346 PyObject * obj1 = 0 ;
7347 char * kwnames[] = {
7348 (char *) "self",(char *) "icon", NULL
7349 };
7350
7351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7353 if (!SWIG_IsOK(res1)) {
7354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7355 }
7356 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7358 if (!SWIG_IsOK(res2)) {
7359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7360 }
7361 if (!argp2) {
7362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7363 }
7364 arg2 = reinterpret_cast< wxIcon * >(argp2);
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 (arg1)->AddIcon((wxIcon const &)*arg2);
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_Py_Void();
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj = 0;
7380 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7381 wxString *arg2 = 0 ;
7382 long arg3 ;
7383 void *argp1 = 0 ;
7384 int res1 = 0 ;
7385 bool temp2 = false ;
7386 long val3 ;
7387 int ecode3 = 0 ;
7388 PyObject * obj0 = 0 ;
7389 PyObject * obj1 = 0 ;
7390 PyObject * obj2 = 0 ;
7391 char * kwnames[] = {
7392 (char *) "self",(char *) "file",(char *) "type", NULL
7393 };
7394
7395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7397 if (!SWIG_IsOK(res1)) {
7398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7399 }
7400 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7401 {
7402 arg2 = wxString_in_helper(obj1);
7403 if (arg2 == NULL) SWIG_fail;
7404 temp2 = true;
7405 }
7406 ecode3 = SWIG_AsVal_long(obj2, &val3);
7407 if (!SWIG_IsOK(ecode3)) {
7408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7409 }
7410 arg3 = static_cast< long >(val3);
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_Py_Void();
7418 {
7419 if (temp2)
7420 delete arg2;
7421 }
7422 return resultobj;
7423 fail:
7424 {
7425 if (temp2)
7426 delete arg2;
7427 }
7428 return NULL;
7429 }
7430
7431
7432 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj = 0;
7434 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7435 wxSize *arg2 = 0 ;
7436 wxIcon *result = 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439 wxSize temp2 ;
7440 PyObject * obj0 = 0 ;
7441 PyObject * obj1 = 0 ;
7442 char * kwnames[] = {
7443 (char *) "self",(char *) "size", NULL
7444 };
7445
7446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7448 if (!SWIG_IsOK(res1)) {
7449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7450 }
7451 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7452 {
7453 arg2 = &temp2;
7454 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7455 }
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
7458 {
7459 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7460 result = (wxIcon *) &_result_ref;
7461 }
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 {
7466 wxIcon* resultptr = new wxIcon(*result);
7467 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7468 }
7469 return resultobj;
7470 fail:
7471 return NULL;
7472 }
7473
7474
7475 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7476 PyObject *obj;
7477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7478 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7479 return SWIG_Py_Void();
7480 }
7481
7482 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7483 return SWIG_Python_InitShadowInstance(args);
7484 }
7485
7486 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7487 PyObject *resultobj = 0;
7488 wxString *arg1 = 0 ;
7489 long arg2 ;
7490 int arg3 = (int) 0 ;
7491 int arg4 = (int) 0 ;
7492 wxCursor *result = 0 ;
7493 bool temp1 = false ;
7494 long val2 ;
7495 int ecode2 = 0 ;
7496 int val3 ;
7497 int ecode3 = 0 ;
7498 int val4 ;
7499 int ecode4 = 0 ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502 PyObject * obj2 = 0 ;
7503 PyObject * obj3 = 0 ;
7504 char * kwnames[] = {
7505 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7506 };
7507
7508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7509 {
7510 arg1 = wxString_in_helper(obj0);
7511 if (arg1 == NULL) SWIG_fail;
7512 temp1 = true;
7513 }
7514 ecode2 = SWIG_AsVal_long(obj1, &val2);
7515 if (!SWIG_IsOK(ecode2)) {
7516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7517 }
7518 arg2 = static_cast< long >(val2);
7519 if (obj2) {
7520 ecode3 = SWIG_AsVal_int(obj2, &val3);
7521 if (!SWIG_IsOK(ecode3)) {
7522 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7523 }
7524 arg3 = static_cast< int >(val3);
7525 }
7526 if (obj3) {
7527 ecode4 = SWIG_AsVal_int(obj3, &val4);
7528 if (!SWIG_IsOK(ecode4)) {
7529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7530 }
7531 arg4 = static_cast< int >(val4);
7532 }
7533 {
7534 if (!wxPyCheckForApp()) SWIG_fail;
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7541 {
7542 if (temp1)
7543 delete arg1;
7544 }
7545 return resultobj;
7546 fail:
7547 {
7548 if (temp1)
7549 delete arg1;
7550 }
7551 return NULL;
7552 }
7553
7554
7555 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7556 PyObject *resultobj = 0;
7557 wxCursor *arg1 = (wxCursor *) 0 ;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 PyObject *swig_obj[1] ;
7561
7562 if (!args) SWIG_fail;
7563 swig_obj[0] = args;
7564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7565 if (!SWIG_IsOK(res1)) {
7566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7567 }
7568 arg1 = reinterpret_cast< wxCursor * >(argp1);
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 delete arg1;
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_Py_Void();
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj = 0;
7585 int arg1 ;
7586 wxCursor *result = 0 ;
7587 int val1 ;
7588 int ecode1 = 0 ;
7589 PyObject * obj0 = 0 ;
7590 char * kwnames[] = {
7591 (char *) "id", NULL
7592 };
7593
7594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7595 ecode1 = SWIG_AsVal_int(obj0, &val1);
7596 if (!SWIG_IsOK(ecode1)) {
7597 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7598 }
7599 arg1 = static_cast< int >(val1);
7600 {
7601 if (!wxPyCheckForApp()) SWIG_fail;
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 result = (wxCursor *)new wxCursor(arg1);
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj = 0;
7616 wxImage *arg1 = 0 ;
7617 wxCursor *result = 0 ;
7618 void *argp1 = 0 ;
7619 int res1 = 0 ;
7620 PyObject * obj0 = 0 ;
7621 char * kwnames[] = {
7622 (char *) "image", NULL
7623 };
7624
7625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7626 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7627 if (!SWIG_IsOK(res1)) {
7628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7629 }
7630 if (!argp1) {
7631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7632 }
7633 arg1 = reinterpret_cast< wxImage * >(argp1);
7634 {
7635 if (!wxPyCheckForApp()) SWIG_fail;
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7642 return resultobj;
7643 fail:
7644 return NULL;
7645 }
7646
7647
7648 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxCursor *arg1 = (wxCursor *) 0 ;
7651 bool result;
7652 void *argp1 = 0 ;
7653 int res1 = 0 ;
7654 PyObject *swig_obj[1] ;
7655
7656 if (!args) SWIG_fail;
7657 swig_obj[0] = args;
7658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7659 if (!SWIG_IsOK(res1)) {
7660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7661 }
7662 arg1 = reinterpret_cast< wxCursor * >(argp1);
7663 {
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = (bool)(arg1)->Ok();
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7671 }
7672 return resultobj;
7673 fail:
7674 return NULL;
7675 }
7676
7677
7678 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7679 PyObject *obj;
7680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7681 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7682 return SWIG_Py_Void();
7683 }
7684
7685 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7686 return SWIG_Python_InitShadowInstance(args);
7687 }
7688
7689 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj = 0;
7691 int arg1 = (int) 0 ;
7692 int arg2 = (int) 0 ;
7693 int arg3 = (int) 0 ;
7694 int arg4 = (int) 0 ;
7695 wxRegion *result = 0 ;
7696 int val1 ;
7697 int ecode1 = 0 ;
7698 int val2 ;
7699 int ecode2 = 0 ;
7700 int val3 ;
7701 int ecode3 = 0 ;
7702 int val4 ;
7703 int ecode4 = 0 ;
7704 PyObject * obj0 = 0 ;
7705 PyObject * obj1 = 0 ;
7706 PyObject * obj2 = 0 ;
7707 PyObject * obj3 = 0 ;
7708 char * kwnames[] = {
7709 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7710 };
7711
7712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7713 if (obj0) {
7714 ecode1 = SWIG_AsVal_int(obj0, &val1);
7715 if (!SWIG_IsOK(ecode1)) {
7716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7717 }
7718 arg1 = static_cast< int >(val1);
7719 }
7720 if (obj1) {
7721 ecode2 = SWIG_AsVal_int(obj1, &val2);
7722 if (!SWIG_IsOK(ecode2)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7724 }
7725 arg2 = static_cast< int >(val2);
7726 }
7727 if (obj2) {
7728 ecode3 = SWIG_AsVal_int(obj2, &val3);
7729 if (!SWIG_IsOK(ecode3)) {
7730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7731 }
7732 arg3 = static_cast< int >(val3);
7733 }
7734 if (obj3) {
7735 ecode4 = SWIG_AsVal_int(obj3, &val4);
7736 if (!SWIG_IsOK(ecode4)) {
7737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7738 }
7739 arg4 = static_cast< int >(val4);
7740 }
7741 {
7742 if (!wxPyCheckForApp()) SWIG_fail;
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7745 wxPyEndAllowThreads(__tstate);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7749 return resultobj;
7750 fail:
7751 return NULL;
7752 }
7753
7754
7755 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj = 0;
7757 wxBitmap *arg1 = 0 ;
7758 wxRegion *result = 0 ;
7759 void *argp1 = 0 ;
7760 int res1 = 0 ;
7761 PyObject * obj0 = 0 ;
7762 char * kwnames[] = {
7763 (char *) "bmp", NULL
7764 };
7765
7766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7767 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7768 if (!SWIG_IsOK(res1)) {
7769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7770 }
7771 if (!argp1) {
7772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7773 }
7774 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7775 {
7776 if (!wxPyCheckForApp()) SWIG_fail;
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj = 0;
7791 wxBitmap *arg1 = 0 ;
7792 wxColour *arg2 = 0 ;
7793 int arg3 = (int) 0 ;
7794 wxRegion *result = 0 ;
7795 void *argp1 = 0 ;
7796 int res1 = 0 ;
7797 wxColour temp2 ;
7798 int val3 ;
7799 int ecode3 = 0 ;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 PyObject * obj2 = 0 ;
7803 char * kwnames[] = {
7804 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7805 };
7806
7807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7808 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7809 if (!SWIG_IsOK(res1)) {
7810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7811 }
7812 if (!argp1) {
7813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7814 }
7815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7816 {
7817 arg2 = &temp2;
7818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7819 }
7820 if (obj2) {
7821 ecode3 = SWIG_AsVal_int(obj2, &val3);
7822 if (!SWIG_IsOK(ecode3)) {
7823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7824 }
7825 arg3 = static_cast< int >(val3);
7826 }
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 int arg1 ;
7844 wxPoint *arg2 = (wxPoint *) 0 ;
7845 int arg3 = (int) wxWINDING_RULE ;
7846 wxRegion *result = 0 ;
7847 int val3 ;
7848 int ecode3 = 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 char * kwnames[] = {
7852 (char *) "points",(char *) "fillStyle", NULL
7853 };
7854
7855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7856 {
7857 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7858 if (arg2 == NULL) SWIG_fail;
7859 }
7860 if (obj1) {
7861 ecode3 = SWIG_AsVal_int(obj1, &val3);
7862 if (!SWIG_IsOK(ecode3)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7864 }
7865 arg3 = static_cast< int >(val3);
7866 }
7867 {
7868 if (!wxPyCheckForApp()) SWIG_fail;
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7871 wxPyEndAllowThreads(__tstate);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7875 {
7876 if (arg2) delete [] arg2;
7877 }
7878 return resultobj;
7879 fail:
7880 {
7881 if (arg2) delete [] arg2;
7882 }
7883 return NULL;
7884 }
7885
7886
7887 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7888 PyObject *resultobj = 0;
7889 wxRegion *arg1 = (wxRegion *) 0 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892 PyObject *swig_obj[1] ;
7893
7894 if (!args) SWIG_fail;
7895 swig_obj[0] = args;
7896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7897 if (!SWIG_IsOK(res1)) {
7898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7899 }
7900 arg1 = reinterpret_cast< wxRegion * >(argp1);
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 delete arg1;
7904
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 resultobj = SWIG_Py_Void();
7909 return resultobj;
7910 fail:
7911 return NULL;
7912 }
7913
7914
7915 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7916 PyObject *resultobj = 0;
7917 wxRegion *arg1 = (wxRegion *) 0 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 PyObject *swig_obj[1] ;
7921
7922 if (!args) SWIG_fail;
7923 swig_obj[0] = args;
7924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7925 if (!SWIG_IsOK(res1)) {
7926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7927 }
7928 arg1 = reinterpret_cast< wxRegion * >(argp1);
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 (arg1)->Clear();
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 resultobj = SWIG_Py_Void();
7936 return resultobj;
7937 fail:
7938 return NULL;
7939 }
7940
7941
7942 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj = 0;
7944 wxRegion *arg1 = (wxRegion *) 0 ;
7945 int arg2 ;
7946 int arg3 ;
7947 bool result;
7948 void *argp1 = 0 ;
7949 int res1 = 0 ;
7950 int val2 ;
7951 int ecode2 = 0 ;
7952 int val3 ;
7953 int ecode3 = 0 ;
7954 PyObject * obj0 = 0 ;
7955 PyObject * obj1 = 0 ;
7956 PyObject * obj2 = 0 ;
7957 char * kwnames[] = {
7958 (char *) "self",(char *) "x",(char *) "y", NULL
7959 };
7960
7961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7963 if (!SWIG_IsOK(res1)) {
7964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7965 }
7966 arg1 = reinterpret_cast< wxRegion * >(argp1);
7967 ecode2 = SWIG_AsVal_int(obj1, &val2);
7968 if (!SWIG_IsOK(ecode2)) {
7969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7970 }
7971 arg2 = static_cast< int >(val2);
7972 ecode3 = SWIG_AsVal_int(obj2, &val3);
7973 if (!SWIG_IsOK(ecode3)) {
7974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7975 }
7976 arg3 = static_cast< int >(val3);
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (bool)(arg1)->Offset(arg2,arg3);
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 {
7984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7985 }
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxRegion *arg1 = (wxRegion *) 0 ;
7995 int arg2 ;
7996 int arg3 ;
7997 wxRegionContain result;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 int val2 ;
8001 int ecode2 = 0 ;
8002 int val3 ;
8003 int ecode3 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 PyObject * obj1 = 0 ;
8006 PyObject * obj2 = 0 ;
8007 char * kwnames[] = {
8008 (char *) "self",(char *) "x",(char *) "y", NULL
8009 };
8010
8011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8015 }
8016 arg1 = reinterpret_cast< wxRegion * >(argp1);
8017 ecode2 = SWIG_AsVal_int(obj1, &val2);
8018 if (!SWIG_IsOK(ecode2)) {
8019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8020 }
8021 arg2 = static_cast< int >(val2);
8022 ecode3 = SWIG_AsVal_int(obj2, &val3);
8023 if (!SWIG_IsOK(ecode3)) {
8024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8025 }
8026 arg3 = static_cast< int >(val3);
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_From_int(static_cast< int >(result));
8034 return resultobj;
8035 fail:
8036 return NULL;
8037 }
8038
8039
8040 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj = 0;
8042 wxRegion *arg1 = (wxRegion *) 0 ;
8043 wxPoint *arg2 = 0 ;
8044 wxRegionContain result;
8045 void *argp1 = 0 ;
8046 int res1 = 0 ;
8047 wxPoint temp2 ;
8048 PyObject * obj0 = 0 ;
8049 PyObject * obj1 = 0 ;
8050 char * kwnames[] = {
8051 (char *) "self",(char *) "pt", NULL
8052 };
8053
8054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8056 if (!SWIG_IsOK(res1)) {
8057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8058 }
8059 arg1 = reinterpret_cast< wxRegion * >(argp1);
8060 {
8061 arg2 = &temp2;
8062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8063 }
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_From_int(static_cast< int >(result));
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj = 0;
8079 wxRegion *arg1 = (wxRegion *) 0 ;
8080 wxRect *arg2 = 0 ;
8081 wxRegionContain result;
8082 void *argp1 = 0 ;
8083 int res1 = 0 ;
8084 wxRect temp2 ;
8085 PyObject * obj0 = 0 ;
8086 PyObject * obj1 = 0 ;
8087 char * kwnames[] = {
8088 (char *) "self",(char *) "rect", NULL
8089 };
8090
8091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8093 if (!SWIG_IsOK(res1)) {
8094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8095 }
8096 arg1 = reinterpret_cast< wxRegion * >(argp1);
8097 {
8098 arg2 = &temp2;
8099 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8100 }
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 resultobj = SWIG_From_int(static_cast< int >(result));
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8115 PyObject *resultobj = 0;
8116 wxRegion *arg1 = (wxRegion *) 0 ;
8117 int arg2 ;
8118 int arg3 ;
8119 int arg4 ;
8120 int arg5 ;
8121 wxRegionContain result;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 int val2 ;
8125 int ecode2 = 0 ;
8126 int val3 ;
8127 int ecode3 = 0 ;
8128 int val4 ;
8129 int ecode4 = 0 ;
8130 int val5 ;
8131 int ecode5 = 0 ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 PyObject * obj2 = 0 ;
8135 PyObject * obj3 = 0 ;
8136 PyObject * obj4 = 0 ;
8137 char * kwnames[] = {
8138 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8139 };
8140
8141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8143 if (!SWIG_IsOK(res1)) {
8144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8145 }
8146 arg1 = reinterpret_cast< wxRegion * >(argp1);
8147 ecode2 = SWIG_AsVal_int(obj1, &val2);
8148 if (!SWIG_IsOK(ecode2)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8150 }
8151 arg2 = static_cast< int >(val2);
8152 ecode3 = SWIG_AsVal_int(obj2, &val3);
8153 if (!SWIG_IsOK(ecode3)) {
8154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8155 }
8156 arg3 = static_cast< int >(val3);
8157 ecode4 = SWIG_AsVal_int(obj3, &val4);
8158 if (!SWIG_IsOK(ecode4)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8160 }
8161 arg4 = static_cast< int >(val4);
8162 ecode5 = SWIG_AsVal_int(obj4, &val5);
8163 if (!SWIG_IsOK(ecode5)) {
8164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8165 }
8166 arg5 = static_cast< int >(val5);
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8170 wxPyEndAllowThreads(__tstate);
8171 if (PyErr_Occurred()) SWIG_fail;
8172 }
8173 resultobj = SWIG_From_int(static_cast< int >(result));
8174 return resultobj;
8175 fail:
8176 return NULL;
8177 }
8178
8179
8180 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8181 PyObject *resultobj = 0;
8182 wxRegion *arg1 = (wxRegion *) 0 ;
8183 wxRect result;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 PyObject *swig_obj[1] ;
8187
8188 if (!args) SWIG_fail;
8189 swig_obj[0] = args;
8190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8191 if (!SWIG_IsOK(res1)) {
8192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8193 }
8194 arg1 = reinterpret_cast< wxRegion * >(argp1);
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 result = (arg1)->GetBox();
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8202 return resultobj;
8203 fail:
8204 return NULL;
8205 }
8206
8207
8208 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj = 0;
8210 wxRegion *arg1 = (wxRegion *) 0 ;
8211 int arg2 ;
8212 int arg3 ;
8213 int arg4 ;
8214 int arg5 ;
8215 bool result;
8216 void *argp1 = 0 ;
8217 int res1 = 0 ;
8218 int val2 ;
8219 int ecode2 = 0 ;
8220 int val3 ;
8221 int ecode3 = 0 ;
8222 int val4 ;
8223 int ecode4 = 0 ;
8224 int val5 ;
8225 int ecode5 = 0 ;
8226 PyObject * obj0 = 0 ;
8227 PyObject * obj1 = 0 ;
8228 PyObject * obj2 = 0 ;
8229 PyObject * obj3 = 0 ;
8230 PyObject * obj4 = 0 ;
8231 char * kwnames[] = {
8232 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8233 };
8234
8235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8237 if (!SWIG_IsOK(res1)) {
8238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8239 }
8240 arg1 = reinterpret_cast< wxRegion * >(argp1);
8241 ecode2 = SWIG_AsVal_int(obj1, &val2);
8242 if (!SWIG_IsOK(ecode2)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8244 }
8245 arg2 = static_cast< int >(val2);
8246 ecode3 = SWIG_AsVal_int(obj2, &val3);
8247 if (!SWIG_IsOK(ecode3)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8249 }
8250 arg3 = static_cast< int >(val3);
8251 ecode4 = SWIG_AsVal_int(obj3, &val4);
8252 if (!SWIG_IsOK(ecode4)) {
8253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8254 }
8255 arg4 = static_cast< int >(val4);
8256 ecode5 = SWIG_AsVal_int(obj4, &val5);
8257 if (!SWIG_IsOK(ecode5)) {
8258 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8259 }
8260 arg5 = static_cast< int >(val5);
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 {
8268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8269 }
8270 return resultobj;
8271 fail:
8272 return NULL;
8273 }
8274
8275
8276 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8277 PyObject *resultobj = 0;
8278 wxRegion *arg1 = (wxRegion *) 0 ;
8279 wxRect *arg2 = 0 ;
8280 bool result;
8281 void *argp1 = 0 ;
8282 int res1 = 0 ;
8283 wxRect temp2 ;
8284 PyObject * obj0 = 0 ;
8285 PyObject * obj1 = 0 ;
8286 char * kwnames[] = {
8287 (char *) "self",(char *) "rect", NULL
8288 };
8289
8290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8292 if (!SWIG_IsOK(res1)) {
8293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8294 }
8295 arg1 = reinterpret_cast< wxRegion * >(argp1);
8296 {
8297 arg2 = &temp2;
8298 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8299 }
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 {
8307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8308 }
8309 return resultobj;
8310 fail:
8311 return NULL;
8312 }
8313
8314
8315 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj = 0;
8317 wxRegion *arg1 = (wxRegion *) 0 ;
8318 wxRegion *arg2 = 0 ;
8319 bool result;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 void *argp2 = 0 ;
8323 int res2 = 0 ;
8324 PyObject * obj0 = 0 ;
8325 PyObject * obj1 = 0 ;
8326 char * kwnames[] = {
8327 (char *) "self",(char *) "region", NULL
8328 };
8329
8330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8332 if (!SWIG_IsOK(res1)) {
8333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8334 }
8335 arg1 = reinterpret_cast< wxRegion * >(argp1);
8336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8337 if (!SWIG_IsOK(res2)) {
8338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8339 }
8340 if (!argp2) {
8341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8342 }
8343 arg2 = reinterpret_cast< wxRegion * >(argp2);
8344 {
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 {
8351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8352 }
8353 return resultobj;
8354 fail:
8355 return NULL;
8356 }
8357
8358
8359 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8360 PyObject *resultobj = 0;
8361 wxRegion *arg1 = (wxRegion *) 0 ;
8362 bool result;
8363 void *argp1 = 0 ;
8364 int res1 = 0 ;
8365 PyObject *swig_obj[1] ;
8366
8367 if (!args) SWIG_fail;
8368 swig_obj[0] = args;
8369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8370 if (!SWIG_IsOK(res1)) {
8371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8372 }
8373 arg1 = reinterpret_cast< wxRegion * >(argp1);
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = (bool)(arg1)->IsEmpty();
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 {
8381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8382 }
8383 return resultobj;
8384 fail:
8385 return NULL;
8386 }
8387
8388
8389 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj = 0;
8391 wxRegion *arg1 = (wxRegion *) 0 ;
8392 int arg2 ;
8393 int arg3 ;
8394 int arg4 ;
8395 int arg5 ;
8396 bool result;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 int val2 ;
8400 int ecode2 = 0 ;
8401 int val3 ;
8402 int ecode3 = 0 ;
8403 int val4 ;
8404 int ecode4 = 0 ;
8405 int val5 ;
8406 int ecode5 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 PyObject * obj2 = 0 ;
8410 PyObject * obj3 = 0 ;
8411 PyObject * obj4 = 0 ;
8412 char * kwnames[] = {
8413 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8414 };
8415
8416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8418 if (!SWIG_IsOK(res1)) {
8419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8420 }
8421 arg1 = reinterpret_cast< wxRegion * >(argp1);
8422 ecode2 = SWIG_AsVal_int(obj1, &val2);
8423 if (!SWIG_IsOK(ecode2)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8425 }
8426 arg2 = static_cast< int >(val2);
8427 ecode3 = SWIG_AsVal_int(obj2, &val3);
8428 if (!SWIG_IsOK(ecode3)) {
8429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8430 }
8431 arg3 = static_cast< int >(val3);
8432 ecode4 = SWIG_AsVal_int(obj3, &val4);
8433 if (!SWIG_IsOK(ecode4)) {
8434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8435 }
8436 arg4 = static_cast< int >(val4);
8437 ecode5 = SWIG_AsVal_int(obj4, &val5);
8438 if (!SWIG_IsOK(ecode5)) {
8439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8440 }
8441 arg5 = static_cast< int >(val5);
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8445 wxPyEndAllowThreads(__tstate);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 {
8449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8450 }
8451 return resultobj;
8452 fail:
8453 return NULL;
8454 }
8455
8456
8457 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8458 PyObject *resultobj = 0;
8459 wxRegion *arg1 = (wxRegion *) 0 ;
8460 wxRect *arg2 = 0 ;
8461 bool result;
8462 void *argp1 = 0 ;
8463 int res1 = 0 ;
8464 wxRect temp2 ;
8465 PyObject * obj0 = 0 ;
8466 PyObject * obj1 = 0 ;
8467 char * kwnames[] = {
8468 (char *) "self",(char *) "rect", NULL
8469 };
8470
8471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8475 }
8476 arg1 = reinterpret_cast< wxRegion * >(argp1);
8477 {
8478 arg2 = &temp2;
8479 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8480 }
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 {
8488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8489 }
8490 return resultobj;
8491 fail:
8492 return NULL;
8493 }
8494
8495
8496 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj = 0;
8498 wxRegion *arg1 = (wxRegion *) 0 ;
8499 wxRegion *arg2 = 0 ;
8500 bool result;
8501 void *argp1 = 0 ;
8502 int res1 = 0 ;
8503 void *argp2 = 0 ;
8504 int res2 = 0 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 char * kwnames[] = {
8508 (char *) "self",(char *) "region", NULL
8509 };
8510
8511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8513 if (!SWIG_IsOK(res1)) {
8514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8515 }
8516 arg1 = reinterpret_cast< wxRegion * >(argp1);
8517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8518 if (!SWIG_IsOK(res2)) {
8519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8520 }
8521 if (!argp2) {
8522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8523 }
8524 arg2 = reinterpret_cast< wxRegion * >(argp2);
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8528 wxPyEndAllowThreads(__tstate);
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 {
8532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8533 }
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj = 0;
8542 wxRegion *arg1 = (wxRegion *) 0 ;
8543 int arg2 ;
8544 int arg3 ;
8545 int arg4 ;
8546 int arg5 ;
8547 bool result;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 int val2 ;
8551 int ecode2 = 0 ;
8552 int val3 ;
8553 int ecode3 = 0 ;
8554 int val4 ;
8555 int ecode4 = 0 ;
8556 int val5 ;
8557 int ecode5 = 0 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 PyObject * obj2 = 0 ;
8561 PyObject * obj3 = 0 ;
8562 PyObject * obj4 = 0 ;
8563 char * kwnames[] = {
8564 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8565 };
8566
8567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8571 }
8572 arg1 = reinterpret_cast< wxRegion * >(argp1);
8573 ecode2 = SWIG_AsVal_int(obj1, &val2);
8574 if (!SWIG_IsOK(ecode2)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8576 }
8577 arg2 = static_cast< int >(val2);
8578 ecode3 = SWIG_AsVal_int(obj2, &val3);
8579 if (!SWIG_IsOK(ecode3)) {
8580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8581 }
8582 arg3 = static_cast< int >(val3);
8583 ecode4 = SWIG_AsVal_int(obj3, &val4);
8584 if (!SWIG_IsOK(ecode4)) {
8585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8586 }
8587 arg4 = static_cast< int >(val4);
8588 ecode5 = SWIG_AsVal_int(obj4, &val5);
8589 if (!SWIG_IsOK(ecode5)) {
8590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8591 }
8592 arg5 = static_cast< int >(val5);
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8596 wxPyEndAllowThreads(__tstate);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 }
8599 {
8600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8601 }
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj = 0;
8610 wxRegion *arg1 = (wxRegion *) 0 ;
8611 wxRect *arg2 = 0 ;
8612 bool result;
8613 void *argp1 = 0 ;
8614 int res1 = 0 ;
8615 wxRect temp2 ;
8616 PyObject * obj0 = 0 ;
8617 PyObject * obj1 = 0 ;
8618 char * kwnames[] = {
8619 (char *) "self",(char *) "rect", NULL
8620 };
8621
8622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8624 if (!SWIG_IsOK(res1)) {
8625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8626 }
8627 arg1 = reinterpret_cast< wxRegion * >(argp1);
8628 {
8629 arg2 = &temp2;
8630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8631 }
8632 {
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 {
8639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8640 }
8641 return resultobj;
8642 fail:
8643 return NULL;
8644 }
8645
8646
8647 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8648 PyObject *resultobj = 0;
8649 wxRegion *arg1 = (wxRegion *) 0 ;
8650 wxRegion *arg2 = 0 ;
8651 bool result;
8652 void *argp1 = 0 ;
8653 int res1 = 0 ;
8654 void *argp2 = 0 ;
8655 int res2 = 0 ;
8656 PyObject * obj0 = 0 ;
8657 PyObject * obj1 = 0 ;
8658 char * kwnames[] = {
8659 (char *) "self",(char *) "region", NULL
8660 };
8661
8662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8664 if (!SWIG_IsOK(res1)) {
8665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8666 }
8667 arg1 = reinterpret_cast< wxRegion * >(argp1);
8668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8669 if (!SWIG_IsOK(res2)) {
8670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8671 }
8672 if (!argp2) {
8673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8674 }
8675 arg2 = reinterpret_cast< wxRegion * >(argp2);
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 {
8683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8684 }
8685 return resultobj;
8686 fail:
8687 return NULL;
8688 }
8689
8690
8691 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8692 PyObject *resultobj = 0;
8693 wxRegion *arg1 = (wxRegion *) 0 ;
8694 int arg2 ;
8695 int arg3 ;
8696 int arg4 ;
8697 int arg5 ;
8698 bool result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 int val2 ;
8702 int ecode2 = 0 ;
8703 int val3 ;
8704 int ecode3 = 0 ;
8705 int val4 ;
8706 int ecode4 = 0 ;
8707 int val5 ;
8708 int ecode5 = 0 ;
8709 PyObject * obj0 = 0 ;
8710 PyObject * obj1 = 0 ;
8711 PyObject * obj2 = 0 ;
8712 PyObject * obj3 = 0 ;
8713 PyObject * obj4 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8722 }
8723 arg1 = reinterpret_cast< wxRegion * >(argp1);
8724 ecode2 = SWIG_AsVal_int(obj1, &val2);
8725 if (!SWIG_IsOK(ecode2)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8727 }
8728 arg2 = static_cast< int >(val2);
8729 ecode3 = SWIG_AsVal_int(obj2, &val3);
8730 if (!SWIG_IsOK(ecode3)) {
8731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8732 }
8733 arg3 = static_cast< int >(val3);
8734 ecode4 = SWIG_AsVal_int(obj3, &val4);
8735 if (!SWIG_IsOK(ecode4)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8737 }
8738 arg4 = static_cast< int >(val4);
8739 ecode5 = SWIG_AsVal_int(obj4, &val5);
8740 if (!SWIG_IsOK(ecode5)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8742 }
8743 arg5 = static_cast< int >(val5);
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 {
8751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8752 }
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxRegion *arg1 = (wxRegion *) 0 ;
8762 wxRect *arg2 = 0 ;
8763 bool result;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 wxRect temp2 ;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "self",(char *) "rect", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8775 if (!SWIG_IsOK(res1)) {
8776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8777 }
8778 arg1 = reinterpret_cast< wxRegion * >(argp1);
8779 {
8780 arg2 = &temp2;
8781 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8782 }
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj = 0;
8800 wxRegion *arg1 = (wxRegion *) 0 ;
8801 wxRegion *arg2 = 0 ;
8802 bool result;
8803 void *argp1 = 0 ;
8804 int res1 = 0 ;
8805 void *argp2 = 0 ;
8806 int res2 = 0 ;
8807 PyObject * obj0 = 0 ;
8808 PyObject * obj1 = 0 ;
8809 char * kwnames[] = {
8810 (char *) "self",(char *) "region", NULL
8811 };
8812
8813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8815 if (!SWIG_IsOK(res1)) {
8816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8817 }
8818 arg1 = reinterpret_cast< wxRegion * >(argp1);
8819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8820 if (!SWIG_IsOK(res2)) {
8821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8822 }
8823 if (!argp2) {
8824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8825 }
8826 arg2 = reinterpret_cast< wxRegion * >(argp2);
8827 {
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 {
8834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8835 }
8836 return resultobj;
8837 fail:
8838 return NULL;
8839 }
8840
8841
8842 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8843 PyObject *resultobj = 0;
8844 wxRegion *arg1 = (wxRegion *) 0 ;
8845 SwigValueWrapper<wxBitmap > result;
8846 void *argp1 = 0 ;
8847 int res1 = 0 ;
8848 PyObject *swig_obj[1] ;
8849
8850 if (!args) SWIG_fail;
8851 swig_obj[0] = args;
8852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8855 }
8856 arg1 = reinterpret_cast< wxRegion * >(argp1);
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 result = (arg1)->ConvertToBitmap();
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8864 return resultobj;
8865 fail:
8866 return NULL;
8867 }
8868
8869
8870 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj = 0;
8872 wxRegion *arg1 = (wxRegion *) 0 ;
8873 wxBitmap *arg2 = 0 ;
8874 bool result;
8875 void *argp1 = 0 ;
8876 int res1 = 0 ;
8877 void *argp2 = 0 ;
8878 int res2 = 0 ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 char * kwnames[] = {
8882 (char *) "self",(char *) "bmp", NULL
8883 };
8884
8885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8887 if (!SWIG_IsOK(res1)) {
8888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8889 }
8890 arg1 = reinterpret_cast< wxRegion * >(argp1);
8891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8892 if (!SWIG_IsOK(res2)) {
8893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8894 }
8895 if (!argp2) {
8896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8897 }
8898 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 {
8906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8907 }
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj = 0;
8916 wxRegion *arg1 = (wxRegion *) 0 ;
8917 wxBitmap *arg2 = 0 ;
8918 wxColour *arg3 = 0 ;
8919 int arg4 = (int) 0 ;
8920 bool result;
8921 void *argp1 = 0 ;
8922 int res1 = 0 ;
8923 void *argp2 = 0 ;
8924 int res2 = 0 ;
8925 wxColour temp3 ;
8926 int val4 ;
8927 int ecode4 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 PyObject * obj2 = 0 ;
8931 PyObject * obj3 = 0 ;
8932 char * kwnames[] = {
8933 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8934 };
8935
8936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8940 }
8941 arg1 = reinterpret_cast< wxRegion * >(argp1);
8942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8943 if (!SWIG_IsOK(res2)) {
8944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8945 }
8946 if (!argp2) {
8947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8948 }
8949 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8950 {
8951 arg3 = &temp3;
8952 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8953 }
8954 if (obj3) {
8955 ecode4 = SWIG_AsVal_int(obj3, &val4);
8956 if (!SWIG_IsOK(ecode4)) {
8957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8958 }
8959 arg4 = static_cast< int >(val4);
8960 }
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
8963 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
8967 {
8968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8969 }
8970 return resultobj;
8971 fail:
8972 return NULL;
8973 }
8974
8975
8976 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8977 PyObject *obj;
8978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8979 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8980 return SWIG_Py_Void();
8981 }
8982
8983 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8984 return SWIG_Python_InitShadowInstance(args);
8985 }
8986
8987 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj = 0;
8989 wxRegion *arg1 = 0 ;
8990 wxRegionIterator *result = 0 ;
8991 void *argp1 = 0 ;
8992 int res1 = 0 ;
8993 PyObject * obj0 = 0 ;
8994 char * kwnames[] = {
8995 (char *) "region", NULL
8996 };
8997
8998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8999 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9000 if (!SWIG_IsOK(res1)) {
9001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9002 }
9003 if (!argp1) {
9004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9005 }
9006 arg1 = reinterpret_cast< wxRegion * >(argp1);
9007 {
9008 if (!wxPyCheckForApp()) SWIG_fail;
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 }
9014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9015 return resultobj;
9016 fail:
9017 return NULL;
9018 }
9019
9020
9021 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9022 PyObject *resultobj = 0;
9023 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 PyObject *swig_obj[1] ;
9027
9028 if (!args) SWIG_fail;
9029 swig_obj[0] = args;
9030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9031 if (!SWIG_IsOK(res1)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9033 }
9034 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 delete arg1;
9038
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 resultobj = SWIG_Py_Void();
9043 return resultobj;
9044 fail:
9045 return NULL;
9046 }
9047
9048
9049 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9050 PyObject *resultobj = 0;
9051 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9052 int result;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9062 }
9063 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (int)(arg1)->GetX();
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_From_int(static_cast< int >(result));
9071 return resultobj;
9072 fail:
9073 return NULL;
9074 }
9075
9076
9077 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9078 PyObject *resultobj = 0;
9079 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9080 int result;
9081 void *argp1 = 0 ;
9082 int res1 = 0 ;
9083 PyObject *swig_obj[1] ;
9084
9085 if (!args) SWIG_fail;
9086 swig_obj[0] = args;
9087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9088 if (!SWIG_IsOK(res1)) {
9089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9090 }
9091 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (int)(arg1)->GetY();
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_From_int(static_cast< int >(result));
9099 return resultobj;
9100 fail:
9101 return NULL;
9102 }
9103
9104
9105 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9106 PyObject *resultobj = 0;
9107 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9108 int result;
9109 void *argp1 = 0 ;
9110 int res1 = 0 ;
9111 PyObject *swig_obj[1] ;
9112
9113 if (!args) SWIG_fail;
9114 swig_obj[0] = args;
9115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9116 if (!SWIG_IsOK(res1)) {
9117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9118 }
9119 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (int)(arg1)->GetW();
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_From_int(static_cast< int >(result));
9127 return resultobj;
9128 fail:
9129 return NULL;
9130 }
9131
9132
9133 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9134 PyObject *resultobj = 0;
9135 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9136 int result;
9137 void *argp1 = 0 ;
9138 int res1 = 0 ;
9139 PyObject *swig_obj[1] ;
9140
9141 if (!args) SWIG_fail;
9142 swig_obj[0] = args;
9143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9144 if (!SWIG_IsOK(res1)) {
9145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9146 }
9147 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9148 {
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (int)(arg1)->GetWidth();
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_From_int(static_cast< int >(result));
9155 return resultobj;
9156 fail:
9157 return NULL;
9158 }
9159
9160
9161 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9162 PyObject *resultobj = 0;
9163 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9164 int result;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 PyObject *swig_obj[1] ;
9168
9169 if (!args) SWIG_fail;
9170 swig_obj[0] = args;
9171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9172 if (!SWIG_IsOK(res1)) {
9173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9174 }
9175 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 result = (int)(arg1)->GetH();
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
9182 resultobj = SWIG_From_int(static_cast< int >(result));
9183 return resultobj;
9184 fail:
9185 return NULL;
9186 }
9187
9188
9189 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9190 PyObject *resultobj = 0;
9191 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9192 int result;
9193 void *argp1 = 0 ;
9194 int res1 = 0 ;
9195 PyObject *swig_obj[1] ;
9196
9197 if (!args) SWIG_fail;
9198 swig_obj[0] = args;
9199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9200 if (!SWIG_IsOK(res1)) {
9201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9202 }
9203 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (int)(arg1)->GetHeight();
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_From_int(static_cast< int >(result));
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9218 PyObject *resultobj = 0;
9219 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9220 wxRect result;
9221 void *argp1 = 0 ;
9222 int res1 = 0 ;
9223 PyObject *swig_obj[1] ;
9224
9225 if (!args) SWIG_fail;
9226 swig_obj[0] = args;
9227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9228 if (!SWIG_IsOK(res1)) {
9229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9230 }
9231 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (arg1)->GetRect();
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9239 return resultobj;
9240 fail:
9241 return NULL;
9242 }
9243
9244
9245 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9246 PyObject *resultobj = 0;
9247 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9248 bool result;
9249 void *argp1 = 0 ;
9250 int res1 = 0 ;
9251 PyObject *swig_obj[1] ;
9252
9253 if (!args) SWIG_fail;
9254 swig_obj[0] = args;
9255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9256 if (!SWIG_IsOK(res1)) {
9257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9258 }
9259 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 result = (bool)(arg1)->HaveRects();
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 {
9267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9268 }
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9276 PyObject *resultobj = 0;
9277 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9278 void *argp1 = 0 ;
9279 int res1 = 0 ;
9280 PyObject *swig_obj[1] ;
9281
9282 if (!args) SWIG_fail;
9283 swig_obj[0] = args;
9284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9287 }
9288 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 (arg1)->Reset();
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 resultobj = SWIG_Py_Void();
9296 return resultobj;
9297 fail:
9298 return NULL;
9299 }
9300
9301
9302 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9303 PyObject *resultobj = 0;
9304 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9305 void *argp1 = 0 ;
9306 int res1 = 0 ;
9307 PyObject *swig_obj[1] ;
9308
9309 if (!args) SWIG_fail;
9310 swig_obj[0] = args;
9311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9312 if (!SWIG_IsOK(res1)) {
9313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9314 }
9315 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 wxRegionIterator_Next(arg1);
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 resultobj = SWIG_Py_Void();
9323 return resultobj;
9324 fail:
9325 return NULL;
9326 }
9327
9328
9329 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330 PyObject *resultobj = 0;
9331 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9332 bool result;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 PyObject *swig_obj[1] ;
9336
9337 if (!args) SWIG_fail;
9338 swig_obj[0] = args;
9339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9340 if (!SWIG_IsOK(res1)) {
9341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9342 }
9343 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)wxRegionIterator___nonzero__(arg1);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9360 PyObject *obj;
9361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9362 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9363 return SWIG_Py_Void();
9364 }
9365
9366 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9367 return SWIG_Python_InitShadowInstance(args);
9368 }
9369
9370 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9371 PyObject *resultobj = 0;
9372 wxNativeFontInfo *result = 0 ;
9373
9374 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9382 return resultobj;
9383 fail:
9384 return NULL;
9385 }
9386
9387
9388 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9389 PyObject *resultobj = 0;
9390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9391 void *argp1 = 0 ;
9392 int res1 = 0 ;
9393 PyObject *swig_obj[1] ;
9394
9395 if (!args) SWIG_fail;
9396 swig_obj[0] = args;
9397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9398 if (!SWIG_IsOK(res1)) {
9399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9400 }
9401 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 delete arg1;
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_Py_Void();
9410 return resultobj;
9411 fail:
9412 return NULL;
9413 }
9414
9415
9416 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9417 PyObject *resultobj = 0;
9418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 PyObject *swig_obj[1] ;
9422
9423 if (!args) SWIG_fail;
9424 swig_obj[0] = args;
9425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9428 }
9429 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 (arg1)->Init();
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 resultobj = SWIG_Py_Void();
9437 return resultobj;
9438 fail:
9439 return NULL;
9440 }
9441
9442
9443 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj = 0;
9445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9446 wxFont *arg2 = 0 ;
9447 void *argp1 = 0 ;
9448 int res1 = 0 ;
9449 void *argp2 = 0 ;
9450 int res2 = 0 ;
9451 PyObject * obj0 = 0 ;
9452 PyObject * obj1 = 0 ;
9453 char * kwnames[] = {
9454 (char *) "self",(char *) "font", NULL
9455 };
9456
9457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9459 if (!SWIG_IsOK(res1)) {
9460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9461 }
9462 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9464 if (!SWIG_IsOK(res2)) {
9465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9466 }
9467 if (!argp2) {
9468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9469 }
9470 arg2 = reinterpret_cast< wxFont * >(argp2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->InitFromFont((wxFont const &)*arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9485 PyObject *resultobj = 0;
9486 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9487 int result;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 PyObject *swig_obj[1] ;
9491
9492 if (!args) SWIG_fail;
9493 swig_obj[0] = args;
9494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9495 if (!SWIG_IsOK(res1)) {
9496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9497 }
9498 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 resultobj = SWIG_From_int(static_cast< int >(result));
9506 return resultobj;
9507 fail:
9508 return NULL;
9509 }
9510
9511
9512 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9513 PyObject *resultobj = 0;
9514 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9515 wxFontStyle result;
9516 void *argp1 = 0 ;
9517 int res1 = 0 ;
9518 PyObject *swig_obj[1] ;
9519
9520 if (!args) SWIG_fail;
9521 swig_obj[0] = args;
9522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9523 if (!SWIG_IsOK(res1)) {
9524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9525 }
9526 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_From_int(static_cast< int >(result));
9534 return resultobj;
9535 fail:
9536 return NULL;
9537 }
9538
9539
9540 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 PyObject *resultobj = 0;
9542 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9543 wxFontWeight result;
9544 void *argp1 = 0 ;
9545 int res1 = 0 ;
9546 PyObject *swig_obj[1] ;
9547
9548 if (!args) SWIG_fail;
9549 swig_obj[0] = args;
9550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9551 if (!SWIG_IsOK(res1)) {
9552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9553 }
9554 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_From_int(static_cast< int >(result));
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9569 PyObject *resultobj = 0;
9570 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9571 bool result;
9572 void *argp1 = 0 ;
9573 int res1 = 0 ;
9574 PyObject *swig_obj[1] ;
9575
9576 if (!args) SWIG_fail;
9577 swig_obj[0] = args;
9578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9579 if (!SWIG_IsOK(res1)) {
9580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9581 }
9582 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 {
9590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9591 }
9592 return resultobj;
9593 fail:
9594 return NULL;
9595 }
9596
9597
9598 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9599 PyObject *resultobj = 0;
9600 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9601 wxString result;
9602 void *argp1 = 0 ;
9603 int res1 = 0 ;
9604 PyObject *swig_obj[1] ;
9605
9606 if (!args) SWIG_fail;
9607 swig_obj[0] = args;
9608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9609 if (!SWIG_IsOK(res1)) {
9610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9611 }
9612 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 {
9620 #if wxUSE_UNICODE
9621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9622 #else
9623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9624 #endif
9625 }
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9633 PyObject *resultobj = 0;
9634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9635 wxFontFamily result;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 PyObject *swig_obj[1] ;
9639
9640 if (!args) SWIG_fail;
9641 swig_obj[0] = args;
9642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9645 }
9646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_From_int(static_cast< int >(result));
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9661 PyObject *resultobj = 0;
9662 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9663 wxFontEncoding result;
9664 void *argp1 = 0 ;
9665 int res1 = 0 ;
9666 PyObject *swig_obj[1] ;
9667
9668 if (!args) SWIG_fail;
9669 swig_obj[0] = args;
9670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9671 if (!SWIG_IsOK(res1)) {
9672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9673 }
9674 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9675 {
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_From_int(static_cast< int >(result));
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj = 0;
9690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9691 int arg2 ;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 int val2 ;
9695 int ecode2 = 0 ;
9696 PyObject * obj0 = 0 ;
9697 PyObject * obj1 = 0 ;
9698 char * kwnames[] = {
9699 (char *) "self",(char *) "pointsize", NULL
9700 };
9701
9702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9704 if (!SWIG_IsOK(res1)) {
9705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9706 }
9707 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9708 ecode2 = SWIG_AsVal_int(obj1, &val2);
9709 if (!SWIG_IsOK(ecode2)) {
9710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9711 }
9712 arg2 = static_cast< int >(val2);
9713 {
9714 PyThreadState* __tstate = wxPyBeginAllowThreads();
9715 (arg1)->SetPointSize(arg2);
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 resultobj = SWIG_Py_Void();
9720 return resultobj;
9721 fail:
9722 return NULL;
9723 }
9724
9725
9726 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9727 PyObject *resultobj = 0;
9728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9729 wxFontStyle arg2 ;
9730 void *argp1 = 0 ;
9731 int res1 = 0 ;
9732 int val2 ;
9733 int ecode2 = 0 ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 char * kwnames[] = {
9737 (char *) "self",(char *) "style", NULL
9738 };
9739
9740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9742 if (!SWIG_IsOK(res1)) {
9743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9744 }
9745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9746 ecode2 = SWIG_AsVal_int(obj1, &val2);
9747 if (!SWIG_IsOK(ecode2)) {
9748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9749 }
9750 arg2 = static_cast< wxFontStyle >(val2);
9751 {
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 (arg1)->SetStyle(arg2);
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 resultobj = SWIG_Py_Void();
9758 return resultobj;
9759 fail:
9760 return NULL;
9761 }
9762
9763
9764 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9765 PyObject *resultobj = 0;
9766 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9767 wxFontWeight arg2 ;
9768 void *argp1 = 0 ;
9769 int res1 = 0 ;
9770 int val2 ;
9771 int ecode2 = 0 ;
9772 PyObject * obj0 = 0 ;
9773 PyObject * obj1 = 0 ;
9774 char * kwnames[] = {
9775 (char *) "self",(char *) "weight", NULL
9776 };
9777
9778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9780 if (!SWIG_IsOK(res1)) {
9781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9782 }
9783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9784 ecode2 = SWIG_AsVal_int(obj1, &val2);
9785 if (!SWIG_IsOK(ecode2)) {
9786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9787 }
9788 arg2 = static_cast< wxFontWeight >(val2);
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 (arg1)->SetWeight(arg2);
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_Py_Void();
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj = 0;
9804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9805 bool arg2 ;
9806 void *argp1 = 0 ;
9807 int res1 = 0 ;
9808 bool val2 ;
9809 int ecode2 = 0 ;
9810 PyObject * obj0 = 0 ;
9811 PyObject * obj1 = 0 ;
9812 char * kwnames[] = {
9813 (char *) "self",(char *) "underlined", NULL
9814 };
9815
9816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9818 if (!SWIG_IsOK(res1)) {
9819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9820 }
9821 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9822 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9823 if (!SWIG_IsOK(ecode2)) {
9824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9825 }
9826 arg2 = static_cast< bool >(val2);
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 (arg1)->SetUnderlined(arg2);
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_Py_Void();
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj = 0;
9842 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9843 wxString arg2 ;
9844 void *argp1 = 0 ;
9845 int res1 = 0 ;
9846 PyObject * obj0 = 0 ;
9847 PyObject * obj1 = 0 ;
9848 char * kwnames[] = {
9849 (char *) "self",(char *) "facename", NULL
9850 };
9851
9852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9854 if (!SWIG_IsOK(res1)) {
9855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9856 }
9857 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9858 {
9859 wxString* sptr = wxString_in_helper(obj1);
9860 if (sptr == NULL) SWIG_fail;
9861 arg2 = *sptr;
9862 delete sptr;
9863 }
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 (arg1)->SetFaceName(arg2);
9867 wxPyEndAllowThreads(__tstate);
9868 if (PyErr_Occurred()) SWIG_fail;
9869 }
9870 resultobj = SWIG_Py_Void();
9871 return resultobj;
9872 fail:
9873 return NULL;
9874 }
9875
9876
9877 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9878 PyObject *resultobj = 0;
9879 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9880 wxFontFamily arg2 ;
9881 void *argp1 = 0 ;
9882 int res1 = 0 ;
9883 int val2 ;
9884 int ecode2 = 0 ;
9885 PyObject * obj0 = 0 ;
9886 PyObject * obj1 = 0 ;
9887 char * kwnames[] = {
9888 (char *) "self",(char *) "family", NULL
9889 };
9890
9891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9893 if (!SWIG_IsOK(res1)) {
9894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9895 }
9896 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9897 ecode2 = SWIG_AsVal_int(obj1, &val2);
9898 if (!SWIG_IsOK(ecode2)) {
9899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9900 }
9901 arg2 = static_cast< wxFontFamily >(val2);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 (arg1)->SetFamily(arg2);
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_Py_Void();
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj = 0;
9917 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9918 wxFontEncoding arg2 ;
9919 void *argp1 = 0 ;
9920 int res1 = 0 ;
9921 int val2 ;
9922 int ecode2 = 0 ;
9923 PyObject * obj0 = 0 ;
9924 PyObject * obj1 = 0 ;
9925 char * kwnames[] = {
9926 (char *) "self",(char *) "encoding", NULL
9927 };
9928
9929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9931 if (!SWIG_IsOK(res1)) {
9932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9933 }
9934 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9935 ecode2 = SWIG_AsVal_int(obj1, &val2);
9936 if (!SWIG_IsOK(ecode2)) {
9937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9938 }
9939 arg2 = static_cast< wxFontEncoding >(val2);
9940 {
9941 PyThreadState* __tstate = wxPyBeginAllowThreads();
9942 (arg1)->SetEncoding(arg2);
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_Py_Void();
9947 return resultobj;
9948 fail:
9949 return NULL;
9950 }
9951
9952
9953 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9956 wxString *arg2 = 0 ;
9957 bool result;
9958 void *argp1 = 0 ;
9959 int res1 = 0 ;
9960 bool temp2 = false ;
9961 PyObject * obj0 = 0 ;
9962 PyObject * obj1 = 0 ;
9963 char * kwnames[] = {
9964 (char *) "self",(char *) "s", NULL
9965 };
9966
9967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9969 if (!SWIG_IsOK(res1)) {
9970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9971 }
9972 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9973 {
9974 arg2 = wxString_in_helper(obj1);
9975 if (arg2 == NULL) SWIG_fail;
9976 temp2 = true;
9977 }
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 {
9985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9986 }
9987 {
9988 if (temp2)
9989 delete arg2;
9990 }
9991 return resultobj;
9992 fail:
9993 {
9994 if (temp2)
9995 delete arg2;
9996 }
9997 return NULL;
9998 }
9999
10000
10001 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10002 PyObject *resultobj = 0;
10003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10004 wxString result;
10005 void *argp1 = 0 ;
10006 int res1 = 0 ;
10007 PyObject *swig_obj[1] ;
10008
10009 if (!args) SWIG_fail;
10010 swig_obj[0] = args;
10011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10012 if (!SWIG_IsOK(res1)) {
10013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10014 }
10015 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 result = ((wxNativeFontInfo const *)arg1)->ToString();
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 {
10023 #if wxUSE_UNICODE
10024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10025 #else
10026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10027 #endif
10028 }
10029 return resultobj;
10030 fail:
10031 return NULL;
10032 }
10033
10034
10035 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10036 PyObject *resultobj = 0;
10037 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10038 wxString result;
10039 void *argp1 = 0 ;
10040 int res1 = 0 ;
10041 PyObject *swig_obj[1] ;
10042
10043 if (!args) SWIG_fail;
10044 swig_obj[0] = args;
10045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10046 if (!SWIG_IsOK(res1)) {
10047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10048 }
10049 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 result = wxNativeFontInfo___str__(arg1);
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
10056 {
10057 #if wxUSE_UNICODE
10058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10059 #else
10060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10061 #endif
10062 }
10063 return resultobj;
10064 fail:
10065 return NULL;
10066 }
10067
10068
10069 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj = 0;
10071 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10072 wxString *arg2 = 0 ;
10073 bool result;
10074 void *argp1 = 0 ;
10075 int res1 = 0 ;
10076 bool temp2 = false ;
10077 PyObject * obj0 = 0 ;
10078 PyObject * obj1 = 0 ;
10079 char * kwnames[] = {
10080 (char *) "self",(char *) "s", NULL
10081 };
10082
10083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10085 if (!SWIG_IsOK(res1)) {
10086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10087 }
10088 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10089 {
10090 arg2 = wxString_in_helper(obj1);
10091 if (arg2 == NULL) SWIG_fail;
10092 temp2 = true;
10093 }
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 {
10101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10102 }
10103 {
10104 if (temp2)
10105 delete arg2;
10106 }
10107 return resultobj;
10108 fail:
10109 {
10110 if (temp2)
10111 delete arg2;
10112 }
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10120 wxString result;
10121 void *argp1 = 0 ;
10122 int res1 = 0 ;
10123 PyObject *swig_obj[1] ;
10124
10125 if (!args) SWIG_fail;
10126 swig_obj[0] = args;
10127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10128 if (!SWIG_IsOK(res1)) {
10129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10130 }
10131 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 {
10139 #if wxUSE_UNICODE
10140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10141 #else
10142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10143 #endif
10144 }
10145 return resultobj;
10146 fail:
10147 return NULL;
10148 }
10149
10150
10151 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10152 PyObject *obj;
10153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10154 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10155 return SWIG_Py_Void();
10156 }
10157
10158 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10159 return SWIG_Python_InitShadowInstance(args);
10160 }
10161
10162 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10163 PyObject *resultobj = 0;
10164 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10165 wxString *arg2 = (wxString *) 0 ;
10166 void *argp1 = 0 ;
10167 int res1 = 0 ;
10168 bool temp2 = false ;
10169 PyObject *swig_obj[2] ;
10170
10171 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10173 if (!SWIG_IsOK(res1)) {
10174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10175 }
10176 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10177 {
10178 arg2 = wxString_in_helper(swig_obj[1]);
10179 if (arg2 == NULL) SWIG_fail;
10180 temp2 = true;
10181 }
10182 if (arg1) (arg1)->facename = *arg2;
10183
10184 resultobj = SWIG_Py_Void();
10185 {
10186 if (temp2)
10187 delete arg2;
10188 }
10189 return resultobj;
10190 fail:
10191 {
10192 if (temp2)
10193 delete arg2;
10194 }
10195 return NULL;
10196 }
10197
10198
10199 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10200 PyObject *resultobj = 0;
10201 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10202 wxString *result = 0 ;
10203 void *argp1 = 0 ;
10204 int res1 = 0 ;
10205 PyObject *swig_obj[1] ;
10206
10207 if (!args) SWIG_fail;
10208 swig_obj[0] = args;
10209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10210 if (!SWIG_IsOK(res1)) {
10211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10212 }
10213 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10214 result = (wxString *)& ((arg1)->facename);
10215 {
10216 #if wxUSE_UNICODE
10217 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10218 #else
10219 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10220 #endif
10221 }
10222 return resultobj;
10223 fail:
10224 return NULL;
10225 }
10226
10227
10228 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10229 PyObject *resultobj = 0;
10230 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10231 wxFontEncoding arg2 ;
10232 void *argp1 = 0 ;
10233 int res1 = 0 ;
10234 int val2 ;
10235 int ecode2 = 0 ;
10236 PyObject *swig_obj[2] ;
10237
10238 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10240 if (!SWIG_IsOK(res1)) {
10241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10242 }
10243 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10244 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10245 if (!SWIG_IsOK(ecode2)) {
10246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10247 }
10248 arg2 = static_cast< wxFontEncoding >(val2);
10249 if (arg1) (arg1)->encoding = arg2;
10250
10251 resultobj = SWIG_Py_Void();
10252 return resultobj;
10253 fail:
10254 return NULL;
10255 }
10256
10257
10258 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10259 PyObject *resultobj = 0;
10260 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10261 wxFontEncoding result;
10262 void *argp1 = 0 ;
10263 int res1 = 0 ;
10264 PyObject *swig_obj[1] ;
10265
10266 if (!args) SWIG_fail;
10267 swig_obj[0] = args;
10268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10269 if (!SWIG_IsOK(res1)) {
10270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10271 }
10272 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10273 result = (wxFontEncoding) ((arg1)->encoding);
10274 resultobj = SWIG_From_int(static_cast< int >(result));
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10282 PyObject *resultobj = 0;
10283 wxNativeEncodingInfo *result = 0 ;
10284
10285 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10289 wxPyEndAllowThreads(__tstate);
10290 if (PyErr_Occurred()) SWIG_fail;
10291 }
10292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10293 return resultobj;
10294 fail:
10295 return NULL;
10296 }
10297
10298
10299 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10300 PyObject *resultobj = 0;
10301 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10302 void *argp1 = 0 ;
10303 int res1 = 0 ;
10304 PyObject *swig_obj[1] ;
10305
10306 if (!args) SWIG_fail;
10307 swig_obj[0] = args;
10308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10309 if (!SWIG_IsOK(res1)) {
10310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10311 }
10312 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 delete arg1;
10316
10317 wxPyEndAllowThreads(__tstate);
10318 if (PyErr_Occurred()) SWIG_fail;
10319 }
10320 resultobj = SWIG_Py_Void();
10321 return resultobj;
10322 fail:
10323 return NULL;
10324 }
10325
10326
10327 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10328 PyObject *resultobj = 0;
10329 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10330 wxString *arg2 = 0 ;
10331 bool result;
10332 void *argp1 = 0 ;
10333 int res1 = 0 ;
10334 bool temp2 = false ;
10335 PyObject * obj0 = 0 ;
10336 PyObject * obj1 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "self",(char *) "s", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10343 if (!SWIG_IsOK(res1)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10345 }
10346 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10347 {
10348 arg2 = wxString_in_helper(obj1);
10349 if (arg2 == NULL) SWIG_fail;
10350 temp2 = true;
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 {
10359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10360 }
10361 {
10362 if (temp2)
10363 delete arg2;
10364 }
10365 return resultobj;
10366 fail:
10367 {
10368 if (temp2)
10369 delete arg2;
10370 }
10371 return NULL;
10372 }
10373
10374
10375 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10376 PyObject *resultobj = 0;
10377 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10378 wxString result;
10379 void *argp1 = 0 ;
10380 int res1 = 0 ;
10381 PyObject *swig_obj[1] ;
10382
10383 if (!args) SWIG_fail;
10384 swig_obj[0] = args;
10385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10386 if (!SWIG_IsOK(res1)) {
10387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10388 }
10389 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10393 wxPyEndAllowThreads(__tstate);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
10396 {
10397 #if wxUSE_UNICODE
10398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10399 #else
10400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10401 #endif
10402 }
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10410 PyObject *obj;
10411 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10412 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10413 return SWIG_Py_Void();
10414 }
10415
10416 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10417 return SWIG_Python_InitShadowInstance(args);
10418 }
10419
10420 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj = 0;
10422 wxFontEncoding arg1 ;
10423 wxNativeEncodingInfo *result = 0 ;
10424 int val1 ;
10425 int ecode1 = 0 ;
10426 PyObject * obj0 = 0 ;
10427 char * kwnames[] = {
10428 (char *) "encoding", NULL
10429 };
10430
10431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10432 ecode1 = SWIG_AsVal_int(obj0, &val1);
10433 if (!SWIG_IsOK(ecode1)) {
10434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10435 }
10436 arg1 = static_cast< wxFontEncoding >(val1);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10444 return resultobj;
10445 fail:
10446 return NULL;
10447 }
10448
10449
10450 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj = 0;
10452 wxNativeEncodingInfo *arg1 = 0 ;
10453 bool result;
10454 void *argp1 = 0 ;
10455 int res1 = 0 ;
10456 PyObject * obj0 = 0 ;
10457 char * kwnames[] = {
10458 (char *) "info", NULL
10459 };
10460
10461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10462 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10463 if (!SWIG_IsOK(res1)) {
10464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10465 }
10466 if (!argp1) {
10467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10468 }
10469 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 {
10477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10478 }
10479 return resultobj;
10480 fail:
10481 return NULL;
10482 }
10483
10484
10485 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10486 PyObject *resultobj = 0;
10487 wxFontMapper *result = 0 ;
10488
10489 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 result = (wxFontMapper *)new wxFontMapper();
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10504 PyObject *resultobj = 0;
10505 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10506 void *argp1 = 0 ;
10507 int res1 = 0 ;
10508 PyObject *swig_obj[1] ;
10509
10510 if (!args) SWIG_fail;
10511 swig_obj[0] = args;
10512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10513 if (!SWIG_IsOK(res1)) {
10514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10515 }
10516 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 delete arg1;
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 resultobj = SWIG_Py_Void();
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10532 PyObject *resultobj = 0;
10533 wxFontMapper *result = 0 ;
10534
10535 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (wxFontMapper *)wxFontMapper::Get();
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj = 0;
10551 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10552 wxFontMapper *result = 0 ;
10553 void *argp1 = 0 ;
10554 int res1 = 0 ;
10555 PyObject * obj0 = 0 ;
10556 char * kwnames[] = {
10557 (char *) "mapper", NULL
10558 };
10559
10560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10562 if (!SWIG_IsOK(res1)) {
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10564 }
10565 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
10572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10573 return resultobj;
10574 fail:
10575 return NULL;
10576 }
10577
10578
10579 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10582 wxString *arg2 = 0 ;
10583 bool arg3 = (bool) true ;
10584 wxFontEncoding result;
10585 void *argp1 = 0 ;
10586 int res1 = 0 ;
10587 bool temp2 = false ;
10588 bool val3 ;
10589 int ecode3 = 0 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 PyObject * obj2 = 0 ;
10593 char * kwnames[] = {
10594 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10595 };
10596
10597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10599 if (!SWIG_IsOK(res1)) {
10600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10601 }
10602 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10603 {
10604 arg2 = wxString_in_helper(obj1);
10605 if (arg2 == NULL) SWIG_fail;
10606 temp2 = true;
10607 }
10608 if (obj2) {
10609 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10610 if (!SWIG_IsOK(ecode3)) {
10611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10612 }
10613 arg3 = static_cast< bool >(val3);
10614 }
10615 {
10616 PyThreadState* __tstate = wxPyBeginAllowThreads();
10617 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 resultobj = SWIG_From_int(static_cast< int >(result));
10622 {
10623 if (temp2)
10624 delete arg2;
10625 }
10626 return resultobj;
10627 fail:
10628 {
10629 if (temp2)
10630 delete arg2;
10631 }
10632 return NULL;
10633 }
10634
10635
10636 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10637 PyObject *resultobj = 0;
10638 size_t result;
10639
10640 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 size_t arg1 ;
10657 wxFontEncoding result;
10658 size_t val1 ;
10659 int ecode1 = 0 ;
10660 PyObject * obj0 = 0 ;
10661 char * kwnames[] = {
10662 (char *) "n", NULL
10663 };
10664
10665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10666 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10667 if (!SWIG_IsOK(ecode1)) {
10668 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10669 }
10670 arg1 = static_cast< size_t >(val1);
10671 {
10672 PyThreadState* __tstate = wxPyBeginAllowThreads();
10673 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) SWIG_fail;
10676 }
10677 resultobj = SWIG_From_int(static_cast< int >(result));
10678 return resultobj;
10679 fail:
10680 return NULL;
10681 }
10682
10683
10684 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj = 0;
10686 wxFontEncoding arg1 ;
10687 wxString result;
10688 int val1 ;
10689 int ecode1 = 0 ;
10690 PyObject * obj0 = 0 ;
10691 char * kwnames[] = {
10692 (char *) "encoding", NULL
10693 };
10694
10695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10696 ecode1 = SWIG_AsVal_int(obj0, &val1);
10697 if (!SWIG_IsOK(ecode1)) {
10698 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10699 }
10700 arg1 = static_cast< wxFontEncoding >(val1);
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = wxFontMapper::GetEncodingName(arg1);
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 #if wxUSE_UNICODE
10709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10710 #else
10711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10712 #endif
10713 }
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 wxFontEncoding arg1 ;
10723 wxString result;
10724 int val1 ;
10725 int ecode1 = 0 ;
10726 PyObject * obj0 = 0 ;
10727 char * kwnames[] = {
10728 (char *) "encoding", NULL
10729 };
10730
10731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10732 ecode1 = SWIG_AsVal_int(obj0, &val1);
10733 if (!SWIG_IsOK(ecode1)) {
10734 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10735 }
10736 arg1 = static_cast< wxFontEncoding >(val1);
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 result = wxFontMapper::GetEncodingDescription(arg1);
10740 wxPyEndAllowThreads(__tstate);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 }
10743 {
10744 #if wxUSE_UNICODE
10745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10746 #else
10747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10748 #endif
10749 }
10750 return resultobj;
10751 fail:
10752 return NULL;
10753 }
10754
10755
10756 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10757 PyObject *resultobj = 0;
10758 wxString *arg1 = 0 ;
10759 wxFontEncoding result;
10760 bool temp1 = false ;
10761 PyObject * obj0 = 0 ;
10762 char * kwnames[] = {
10763 (char *) "name", NULL
10764 };
10765
10766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10767 {
10768 arg1 = wxString_in_helper(obj0);
10769 if (arg1 == NULL) SWIG_fail;
10770 temp1 = true;
10771 }
10772 {
10773 PyThreadState* __tstate = wxPyBeginAllowThreads();
10774 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10775 wxPyEndAllowThreads(__tstate);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 }
10778 resultobj = SWIG_From_int(static_cast< int >(result));
10779 {
10780 if (temp1)
10781 delete arg1;
10782 }
10783 return resultobj;
10784 fail:
10785 {
10786 if (temp1)
10787 delete arg1;
10788 }
10789 return NULL;
10790 }
10791
10792
10793 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10794 PyObject *resultobj = 0;
10795 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10796 wxString *arg2 = 0 ;
10797 void *argp1 = 0 ;
10798 int res1 = 0 ;
10799 bool temp2 = false ;
10800 PyObject * obj0 = 0 ;
10801 PyObject * obj1 = 0 ;
10802 char * kwnames[] = {
10803 (char *) "self",(char *) "prefix", NULL
10804 };
10805
10806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10808 if (!SWIG_IsOK(res1)) {
10809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10810 }
10811 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10812 {
10813 arg2 = wxString_in_helper(obj1);
10814 if (arg2 == NULL) SWIG_fail;
10815 temp2 = true;
10816 }
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 (arg1)->SetConfigPath((wxString const &)*arg2);
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 resultobj = SWIG_Py_Void();
10824 {
10825 if (temp2)
10826 delete arg2;
10827 }
10828 return resultobj;
10829 fail:
10830 {
10831 if (temp2)
10832 delete arg2;
10833 }
10834 return NULL;
10835 }
10836
10837
10838 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10839 PyObject *resultobj = 0;
10840 wxString result;
10841
10842 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 result = wxFontMapper::GetDefaultConfigPath();
10846 wxPyEndAllowThreads(__tstate);
10847 if (PyErr_Occurred()) SWIG_fail;
10848 }
10849 {
10850 #if wxUSE_UNICODE
10851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10852 #else
10853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10854 #endif
10855 }
10856 return resultobj;
10857 fail:
10858 return NULL;
10859 }
10860
10861
10862 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10863 PyObject *resultobj = 0;
10864 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10865 wxFontEncoding arg2 ;
10866 wxString const &arg3_defvalue = wxPyEmptyString ;
10867 wxString *arg3 = (wxString *) &arg3_defvalue ;
10868 bool arg4 = (bool) true ;
10869 PyObject *result = 0 ;
10870 void *argp1 = 0 ;
10871 int res1 = 0 ;
10872 int val2 ;
10873 int ecode2 = 0 ;
10874 bool temp3 = false ;
10875 bool val4 ;
10876 int ecode4 = 0 ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 PyObject * obj2 = 0 ;
10880 PyObject * obj3 = 0 ;
10881 char * kwnames[] = {
10882 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10883 };
10884
10885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10887 if (!SWIG_IsOK(res1)) {
10888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10889 }
10890 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10891 ecode2 = SWIG_AsVal_int(obj1, &val2);
10892 if (!SWIG_IsOK(ecode2)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10894 }
10895 arg2 = static_cast< wxFontEncoding >(val2);
10896 if (obj2) {
10897 {
10898 arg3 = wxString_in_helper(obj2);
10899 if (arg3 == NULL) SWIG_fail;
10900 temp3 = true;
10901 }
10902 }
10903 if (obj3) {
10904 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10905 if (!SWIG_IsOK(ecode4)) {
10906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10907 }
10908 arg4 = static_cast< bool >(val4);
10909 }
10910 {
10911 PyThreadState* __tstate = wxPyBeginAllowThreads();
10912 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10913 wxPyEndAllowThreads(__tstate);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 }
10916 resultobj = result;
10917 {
10918 if (temp3)
10919 delete arg3;
10920 }
10921 return resultobj;
10922 fail:
10923 {
10924 if (temp3)
10925 delete arg3;
10926 }
10927 return NULL;
10928 }
10929
10930
10931 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj = 0;
10933 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10934 wxFontEncoding arg2 ;
10935 wxString const &arg3_defvalue = wxPyEmptyString ;
10936 wxString *arg3 = (wxString *) &arg3_defvalue ;
10937 bool result;
10938 void *argp1 = 0 ;
10939 int res1 = 0 ;
10940 int val2 ;
10941 int ecode2 = 0 ;
10942 bool temp3 = false ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 PyObject * obj2 = 0 ;
10946 char * kwnames[] = {
10947 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10948 };
10949
10950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10952 if (!SWIG_IsOK(res1)) {
10953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10954 }
10955 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10956 ecode2 = SWIG_AsVal_int(obj1, &val2);
10957 if (!SWIG_IsOK(ecode2)) {
10958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10959 }
10960 arg2 = static_cast< wxFontEncoding >(val2);
10961 if (obj2) {
10962 {
10963 arg3 = wxString_in_helper(obj2);
10964 if (arg3 == NULL) SWIG_fail;
10965 temp3 = true;
10966 }
10967 }
10968 {
10969 PyThreadState* __tstate = wxPyBeginAllowThreads();
10970 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 {
10978 if (temp3)
10979 delete arg3;
10980 }
10981 return resultobj;
10982 fail:
10983 {
10984 if (temp3)
10985 delete arg3;
10986 }
10987 return NULL;
10988 }
10989
10990
10991 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj = 0;
10993 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10994 wxWindow *arg2 = (wxWindow *) 0 ;
10995 void *argp1 = 0 ;
10996 int res1 = 0 ;
10997 void *argp2 = 0 ;
10998 int res2 = 0 ;
10999 PyObject * obj0 = 0 ;
11000 PyObject * obj1 = 0 ;
11001 char * kwnames[] = {
11002 (char *) "self",(char *) "parent", NULL
11003 };
11004
11005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11007 if (!SWIG_IsOK(res1)) {
11008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11009 }
11010 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11011 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11012 if (!SWIG_IsOK(res2)) {
11013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11014 }
11015 arg2 = reinterpret_cast< wxWindow * >(argp2);
11016 {
11017 PyThreadState* __tstate = wxPyBeginAllowThreads();
11018 (arg1)->SetDialogParent(arg2);
11019 wxPyEndAllowThreads(__tstate);
11020 if (PyErr_Occurred()) SWIG_fail;
11021 }
11022 resultobj = SWIG_Py_Void();
11023 return resultobj;
11024 fail:
11025 return NULL;
11026 }
11027
11028
11029 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11030 PyObject *resultobj = 0;
11031 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11032 wxString *arg2 = 0 ;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 bool temp2 = false ;
11036 PyObject * obj0 = 0 ;
11037 PyObject * obj1 = 0 ;
11038 char * kwnames[] = {
11039 (char *) "self",(char *) "title", NULL
11040 };
11041
11042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11044 if (!SWIG_IsOK(res1)) {
11045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11046 }
11047 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11048 {
11049 arg2 = wxString_in_helper(obj1);
11050 if (arg2 == NULL) SWIG_fail;
11051 temp2 = true;
11052 }
11053 {
11054 PyThreadState* __tstate = wxPyBeginAllowThreads();
11055 (arg1)->SetDialogTitle((wxString const &)*arg2);
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 resultobj = SWIG_Py_Void();
11060 {
11061 if (temp2)
11062 delete arg2;
11063 }
11064 return resultobj;
11065 fail:
11066 {
11067 if (temp2)
11068 delete arg2;
11069 }
11070 return NULL;
11071 }
11072
11073
11074 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11075 PyObject *obj;
11076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11077 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11078 return SWIG_Py_Void();
11079 }
11080
11081 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11082 return SWIG_Python_InitShadowInstance(args);
11083 }
11084
11085 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11086 PyObject *resultobj = 0;
11087 int arg1 ;
11088 int arg2 ;
11089 int arg3 ;
11090 int arg4 ;
11091 bool arg5 = (bool) false ;
11092 wxString const &arg6_defvalue = wxPyEmptyString ;
11093 wxString *arg6 = (wxString *) &arg6_defvalue ;
11094 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11095 wxFont *result = 0 ;
11096 int val1 ;
11097 int ecode1 = 0 ;
11098 int val2 ;
11099 int ecode2 = 0 ;
11100 int val3 ;
11101 int ecode3 = 0 ;
11102 int val4 ;
11103 int ecode4 = 0 ;
11104 bool val5 ;
11105 int ecode5 = 0 ;
11106 bool temp6 = false ;
11107 int val7 ;
11108 int ecode7 = 0 ;
11109 PyObject * obj0 = 0 ;
11110 PyObject * obj1 = 0 ;
11111 PyObject * obj2 = 0 ;
11112 PyObject * obj3 = 0 ;
11113 PyObject * obj4 = 0 ;
11114 PyObject * obj5 = 0 ;
11115 PyObject * obj6 = 0 ;
11116 char * kwnames[] = {
11117 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11118 };
11119
11120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11121 ecode1 = SWIG_AsVal_int(obj0, &val1);
11122 if (!SWIG_IsOK(ecode1)) {
11123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11124 }
11125 arg1 = static_cast< int >(val1);
11126 ecode2 = SWIG_AsVal_int(obj1, &val2);
11127 if (!SWIG_IsOK(ecode2)) {
11128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11129 }
11130 arg2 = static_cast< int >(val2);
11131 ecode3 = SWIG_AsVal_int(obj2, &val3);
11132 if (!SWIG_IsOK(ecode3)) {
11133 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11134 }
11135 arg3 = static_cast< int >(val3);
11136 ecode4 = SWIG_AsVal_int(obj3, &val4);
11137 if (!SWIG_IsOK(ecode4)) {
11138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11139 }
11140 arg4 = static_cast< int >(val4);
11141 if (obj4) {
11142 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11143 if (!SWIG_IsOK(ecode5)) {
11144 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11145 }
11146 arg5 = static_cast< bool >(val5);
11147 }
11148 if (obj5) {
11149 {
11150 arg6 = wxString_in_helper(obj5);
11151 if (arg6 == NULL) SWIG_fail;
11152 temp6 = true;
11153 }
11154 }
11155 if (obj6) {
11156 ecode7 = SWIG_AsVal_int(obj6, &val7);
11157 if (!SWIG_IsOK(ecode7)) {
11158 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11159 }
11160 arg7 = static_cast< wxFontEncoding >(val7);
11161 }
11162 {
11163 if (!wxPyCheckForApp()) SWIG_fail;
11164 PyThreadState* __tstate = wxPyBeginAllowThreads();
11165 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11170 {
11171 if (temp6)
11172 delete arg6;
11173 }
11174 return resultobj;
11175 fail:
11176 {
11177 if (temp6)
11178 delete arg6;
11179 }
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxFont *arg1 = (wxFont *) 0 ;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 PyObject *swig_obj[1] ;
11190
11191 if (!args) SWIG_fail;
11192 swig_obj[0] = args;
11193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11194 if (!SWIG_IsOK(res1)) {
11195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11196 }
11197 arg1 = reinterpret_cast< wxFont * >(argp1);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 delete arg1;
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 resultobj = SWIG_Py_Void();
11206 return resultobj;
11207 fail:
11208 return NULL;
11209 }
11210
11211
11212 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11213 PyObject *resultobj = 0;
11214 wxNativeFontInfo *arg1 = 0 ;
11215 wxFont *result = 0 ;
11216 void *argp1 = 0 ;
11217 int res1 = 0 ;
11218 PyObject * obj0 = 0 ;
11219 char * kwnames[] = {
11220 (char *) "info", NULL
11221 };
11222
11223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11224 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11225 if (!SWIG_IsOK(res1)) {
11226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11227 }
11228 if (!argp1) {
11229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11230 }
11231 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11232 {
11233 if (!wxPyCheckForApp()) SWIG_fail;
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11247 PyObject *resultobj = 0;
11248 wxString *arg1 = 0 ;
11249 wxFont *result = 0 ;
11250 bool temp1 = false ;
11251 PyObject * obj0 = 0 ;
11252 char * kwnames[] = {
11253 (char *) "info", NULL
11254 };
11255
11256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11257 {
11258 arg1 = wxString_in_helper(obj0);
11259 if (arg1 == NULL) SWIG_fail;
11260 temp1 = true;
11261 }
11262 {
11263 if (!wxPyCheckForApp()) SWIG_fail;
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11270 {
11271 if (temp1)
11272 delete arg1;
11273 }
11274 return resultobj;
11275 fail:
11276 {
11277 if (temp1)
11278 delete arg1;
11279 }
11280 return NULL;
11281 }
11282
11283
11284 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11285 PyObject *resultobj = 0;
11286 int arg1 ;
11287 wxFontFamily arg2 ;
11288 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11289 wxString const &arg4_defvalue = wxPyEmptyString ;
11290 wxString *arg4 = (wxString *) &arg4_defvalue ;
11291 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11292 wxFont *result = 0 ;
11293 int val1 ;
11294 int ecode1 = 0 ;
11295 int val2 ;
11296 int ecode2 = 0 ;
11297 int val3 ;
11298 int ecode3 = 0 ;
11299 bool temp4 = false ;
11300 int val5 ;
11301 int ecode5 = 0 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 PyObject * obj2 = 0 ;
11305 PyObject * obj3 = 0 ;
11306 PyObject * obj4 = 0 ;
11307 char * kwnames[] = {
11308 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11309 };
11310
11311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11312 ecode1 = SWIG_AsVal_int(obj0, &val1);
11313 if (!SWIG_IsOK(ecode1)) {
11314 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11315 }
11316 arg1 = static_cast< int >(val1);
11317 ecode2 = SWIG_AsVal_int(obj1, &val2);
11318 if (!SWIG_IsOK(ecode2)) {
11319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11320 }
11321 arg2 = static_cast< wxFontFamily >(val2);
11322 if (obj2) {
11323 ecode3 = SWIG_AsVal_int(obj2, &val3);
11324 if (!SWIG_IsOK(ecode3)) {
11325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11326 }
11327 arg3 = static_cast< int >(val3);
11328 }
11329 if (obj3) {
11330 {
11331 arg4 = wxString_in_helper(obj3);
11332 if (arg4 == NULL) SWIG_fail;
11333 temp4 = true;
11334 }
11335 }
11336 if (obj4) {
11337 ecode5 = SWIG_AsVal_int(obj4, &val5);
11338 if (!SWIG_IsOK(ecode5)) {
11339 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11340 }
11341 arg5 = static_cast< wxFontEncoding >(val5);
11342 }
11343 {
11344 if (!wxPyCheckForApp()) SWIG_fail;
11345 PyThreadState* __tstate = wxPyBeginAllowThreads();
11346 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11351 {
11352 if (temp4)
11353 delete arg4;
11354 }
11355 return resultobj;
11356 fail:
11357 {
11358 if (temp4)
11359 delete arg4;
11360 }
11361 return NULL;
11362 }
11363
11364
11365 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj = 0;
11367 wxSize *arg1 = 0 ;
11368 int arg2 ;
11369 int arg3 ;
11370 int arg4 ;
11371 bool arg5 = (bool) false ;
11372 wxString const &arg6_defvalue = wxEmptyString ;
11373 wxString *arg6 = (wxString *) &arg6_defvalue ;
11374 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11375 wxFont *result = 0 ;
11376 wxSize temp1 ;
11377 int val2 ;
11378 int ecode2 = 0 ;
11379 int val3 ;
11380 int ecode3 = 0 ;
11381 int val4 ;
11382 int ecode4 = 0 ;
11383 bool val5 ;
11384 int ecode5 = 0 ;
11385 bool temp6 = false ;
11386 int val7 ;
11387 int ecode7 = 0 ;
11388 PyObject * obj0 = 0 ;
11389 PyObject * obj1 = 0 ;
11390 PyObject * obj2 = 0 ;
11391 PyObject * obj3 = 0 ;
11392 PyObject * obj4 = 0 ;
11393 PyObject * obj5 = 0 ;
11394 PyObject * obj6 = 0 ;
11395 char * kwnames[] = {
11396 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11397 };
11398
11399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11400 {
11401 arg1 = &temp1;
11402 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11403 }
11404 ecode2 = SWIG_AsVal_int(obj1, &val2);
11405 if (!SWIG_IsOK(ecode2)) {
11406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11407 }
11408 arg2 = static_cast< int >(val2);
11409 ecode3 = SWIG_AsVal_int(obj2, &val3);
11410 if (!SWIG_IsOK(ecode3)) {
11411 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11412 }
11413 arg3 = static_cast< int >(val3);
11414 ecode4 = SWIG_AsVal_int(obj3, &val4);
11415 if (!SWIG_IsOK(ecode4)) {
11416 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11417 }
11418 arg4 = static_cast< int >(val4);
11419 if (obj4) {
11420 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11421 if (!SWIG_IsOK(ecode5)) {
11422 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11423 }
11424 arg5 = static_cast< bool >(val5);
11425 }
11426 if (obj5) {
11427 {
11428 arg6 = wxString_in_helper(obj5);
11429 if (arg6 == NULL) SWIG_fail;
11430 temp6 = true;
11431 }
11432 }
11433 if (obj6) {
11434 ecode7 = SWIG_AsVal_int(obj6, &val7);
11435 if (!SWIG_IsOK(ecode7)) {
11436 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11437 }
11438 arg7 = static_cast< wxFontEncoding >(val7);
11439 }
11440 {
11441 if (!wxPyCheckForApp()) SWIG_fail;
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11448 {
11449 if (temp6)
11450 delete arg6;
11451 }
11452 return resultobj;
11453 fail:
11454 {
11455 if (temp6)
11456 delete arg6;
11457 }
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11463 PyObject *resultobj = 0;
11464 wxSize *arg1 = 0 ;
11465 wxFontFamily arg2 ;
11466 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11467 wxString const &arg4_defvalue = wxEmptyString ;
11468 wxString *arg4 = (wxString *) &arg4_defvalue ;
11469 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11470 wxFont *result = 0 ;
11471 wxSize temp1 ;
11472 int val2 ;
11473 int ecode2 = 0 ;
11474 int val3 ;
11475 int ecode3 = 0 ;
11476 bool temp4 = false ;
11477 int val5 ;
11478 int ecode5 = 0 ;
11479 PyObject * obj0 = 0 ;
11480 PyObject * obj1 = 0 ;
11481 PyObject * obj2 = 0 ;
11482 PyObject * obj3 = 0 ;
11483 PyObject * obj4 = 0 ;
11484 char * kwnames[] = {
11485 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11486 };
11487
11488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11489 {
11490 arg1 = &temp1;
11491 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11492 }
11493 ecode2 = SWIG_AsVal_int(obj1, &val2);
11494 if (!SWIG_IsOK(ecode2)) {
11495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11496 }
11497 arg2 = static_cast< wxFontFamily >(val2);
11498 if (obj2) {
11499 ecode3 = SWIG_AsVal_int(obj2, &val3);
11500 if (!SWIG_IsOK(ecode3)) {
11501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11502 }
11503 arg3 = static_cast< int >(val3);
11504 }
11505 if (obj3) {
11506 {
11507 arg4 = wxString_in_helper(obj3);
11508 if (arg4 == NULL) SWIG_fail;
11509 temp4 = true;
11510 }
11511 }
11512 if (obj4) {
11513 ecode5 = SWIG_AsVal_int(obj4, &val5);
11514 if (!SWIG_IsOK(ecode5)) {
11515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11516 }
11517 arg5 = static_cast< wxFontEncoding >(val5);
11518 }
11519 {
11520 if (!wxPyCheckForApp()) SWIG_fail;
11521 PyThreadState* __tstate = wxPyBeginAllowThreads();
11522 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11523 wxPyEndAllowThreads(__tstate);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11527 {
11528 if (temp4)
11529 delete arg4;
11530 }
11531 return resultobj;
11532 fail:
11533 {
11534 if (temp4)
11535 delete arg4;
11536 }
11537 return NULL;
11538 }
11539
11540
11541 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11542 PyObject *resultobj = 0;
11543 wxFont *arg1 = (wxFont *) 0 ;
11544 bool result;
11545 void *argp1 = 0 ;
11546 int res1 = 0 ;
11547 PyObject *swig_obj[1] ;
11548
11549 if (!args) SWIG_fail;
11550 swig_obj[0] = args;
11551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11552 if (!SWIG_IsOK(res1)) {
11553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11554 }
11555 arg1 = reinterpret_cast< wxFont * >(argp1);
11556 {
11557 PyThreadState* __tstate = wxPyBeginAllowThreads();
11558 result = (bool)((wxFont const *)arg1)->Ok();
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 {
11563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11564 }
11565 return resultobj;
11566 fail:
11567 return NULL;
11568 }
11569
11570
11571 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj = 0;
11573 wxFont *arg1 = (wxFont *) 0 ;
11574 wxFont *arg2 = (wxFont *) 0 ;
11575 bool result;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 void *argp2 = 0 ;
11579 int res2 = 0 ;
11580 PyObject * obj0 = 0 ;
11581 PyObject * obj1 = 0 ;
11582 char * kwnames[] = {
11583 (char *) "self",(char *) "other", NULL
11584 };
11585
11586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11588 if (!SWIG_IsOK(res1)) {
11589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11590 }
11591 arg1 = reinterpret_cast< wxFont * >(argp1);
11592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11593 if (!SWIG_IsOK(res2)) {
11594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11595 }
11596 arg2 = reinterpret_cast< wxFont * >(argp2);
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 {
11604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11605 }
11606 return resultobj;
11607 fail:
11608 return NULL;
11609 }
11610
11611
11612 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11613 PyObject *resultobj = 0;
11614 wxFont *arg1 = (wxFont *) 0 ;
11615 wxFont *arg2 = (wxFont *) 0 ;
11616 bool result;
11617 void *argp1 = 0 ;
11618 int res1 = 0 ;
11619 void *argp2 = 0 ;
11620 int res2 = 0 ;
11621 PyObject * obj0 = 0 ;
11622 PyObject * obj1 = 0 ;
11623 char * kwnames[] = {
11624 (char *) "self",(char *) "other", NULL
11625 };
11626
11627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11631 }
11632 arg1 = reinterpret_cast< wxFont * >(argp1);
11633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11634 if (!SWIG_IsOK(res2)) {
11635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11636 }
11637 arg2 = reinterpret_cast< wxFont * >(argp2);
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 {
11645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11646 }
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11654 PyObject *resultobj = 0;
11655 wxFont *arg1 = (wxFont *) 0 ;
11656 int result;
11657 void *argp1 = 0 ;
11658 int res1 = 0 ;
11659 PyObject *swig_obj[1] ;
11660
11661 if (!args) SWIG_fail;
11662 swig_obj[0] = args;
11663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11664 if (!SWIG_IsOK(res1)) {
11665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11666 }
11667 arg1 = reinterpret_cast< wxFont * >(argp1);
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 result = (int)((wxFont const *)arg1)->GetPointSize();
11671 wxPyEndAllowThreads(__tstate);
11672 if (PyErr_Occurred()) SWIG_fail;
11673 }
11674 resultobj = SWIG_From_int(static_cast< int >(result));
11675 return resultobj;
11676 fail:
11677 return NULL;
11678 }
11679
11680
11681 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11682 PyObject *resultobj = 0;
11683 wxFont *arg1 = (wxFont *) 0 ;
11684 wxSize result;
11685 void *argp1 = 0 ;
11686 int res1 = 0 ;
11687 PyObject *swig_obj[1] ;
11688
11689 if (!args) SWIG_fail;
11690 swig_obj[0] = args;
11691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11692 if (!SWIG_IsOK(res1)) {
11693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11694 }
11695 arg1 = reinterpret_cast< wxFont * >(argp1);
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 result = ((wxFont const *)arg1)->GetPixelSize();
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11703 return resultobj;
11704 fail:
11705 return NULL;
11706 }
11707
11708
11709 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11710 PyObject *resultobj = 0;
11711 wxFont *arg1 = (wxFont *) 0 ;
11712 bool result;
11713 void *argp1 = 0 ;
11714 int res1 = 0 ;
11715 PyObject *swig_obj[1] ;
11716
11717 if (!args) SWIG_fail;
11718 swig_obj[0] = args;
11719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11720 if (!SWIG_IsOK(res1)) {
11721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11722 }
11723 arg1 = reinterpret_cast< wxFont * >(argp1);
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11732 }
11733 return resultobj;
11734 fail:
11735 return NULL;
11736 }
11737
11738
11739 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11740 PyObject *resultobj = 0;
11741 wxFont *arg1 = (wxFont *) 0 ;
11742 int result;
11743 void *argp1 = 0 ;
11744 int res1 = 0 ;
11745 PyObject *swig_obj[1] ;
11746
11747 if (!args) SWIG_fail;
11748 swig_obj[0] = args;
11749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11750 if (!SWIG_IsOK(res1)) {
11751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11752 }
11753 arg1 = reinterpret_cast< wxFont * >(argp1);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (int)((wxFont const *)arg1)->GetFamily();
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 resultobj = SWIG_From_int(static_cast< int >(result));
11761 return resultobj;
11762 fail:
11763 return NULL;
11764 }
11765
11766
11767 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11768 PyObject *resultobj = 0;
11769 wxFont *arg1 = (wxFont *) 0 ;
11770 int result;
11771 void *argp1 = 0 ;
11772 int res1 = 0 ;
11773 PyObject *swig_obj[1] ;
11774
11775 if (!args) SWIG_fail;
11776 swig_obj[0] = args;
11777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11778 if (!SWIG_IsOK(res1)) {
11779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11780 }
11781 arg1 = reinterpret_cast< wxFont * >(argp1);
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (int)((wxFont const *)arg1)->GetStyle();
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 resultobj = SWIG_From_int(static_cast< int >(result));
11789 return resultobj;
11790 fail:
11791 return NULL;
11792 }
11793
11794
11795 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11796 PyObject *resultobj = 0;
11797 wxFont *arg1 = (wxFont *) 0 ;
11798 int result;
11799 void *argp1 = 0 ;
11800 int res1 = 0 ;
11801 PyObject *swig_obj[1] ;
11802
11803 if (!args) SWIG_fail;
11804 swig_obj[0] = args;
11805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11806 if (!SWIG_IsOK(res1)) {
11807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11808 }
11809 arg1 = reinterpret_cast< wxFont * >(argp1);
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (int)((wxFont const *)arg1)->GetWeight();
11813 wxPyEndAllowThreads(__tstate);
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 resultobj = SWIG_From_int(static_cast< int >(result));
11817 return resultobj;
11818 fail:
11819 return NULL;
11820 }
11821
11822
11823 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11824 PyObject *resultobj = 0;
11825 wxFont *arg1 = (wxFont *) 0 ;
11826 bool result;
11827 void *argp1 = 0 ;
11828 int res1 = 0 ;
11829 PyObject *swig_obj[1] ;
11830
11831 if (!args) SWIG_fail;
11832 swig_obj[0] = args;
11833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11836 }
11837 arg1 = reinterpret_cast< wxFont * >(argp1);
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 {
11845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11846 }
11847 return resultobj;
11848 fail:
11849 return NULL;
11850 }
11851
11852
11853 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11854 PyObject *resultobj = 0;
11855 wxFont *arg1 = (wxFont *) 0 ;
11856 wxString result;
11857 void *argp1 = 0 ;
11858 int res1 = 0 ;
11859 PyObject *swig_obj[1] ;
11860
11861 if (!args) SWIG_fail;
11862 swig_obj[0] = args;
11863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11864 if (!SWIG_IsOK(res1)) {
11865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11866 }
11867 arg1 = reinterpret_cast< wxFont * >(argp1);
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 result = ((wxFont const *)arg1)->GetFaceName();
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 {
11875 #if wxUSE_UNICODE
11876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11877 #else
11878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11879 #endif
11880 }
11881 return resultobj;
11882 fail:
11883 return NULL;
11884 }
11885
11886
11887 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11888 PyObject *resultobj = 0;
11889 wxFont *arg1 = (wxFont *) 0 ;
11890 wxFontEncoding result;
11891 void *argp1 = 0 ;
11892 int res1 = 0 ;
11893 PyObject *swig_obj[1] ;
11894
11895 if (!args) SWIG_fail;
11896 swig_obj[0] = args;
11897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11898 if (!SWIG_IsOK(res1)) {
11899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11900 }
11901 arg1 = reinterpret_cast< wxFont * >(argp1);
11902 {
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_From_int(static_cast< int >(result));
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 wxFont *arg1 = (wxFont *) 0 ;
11918 wxNativeFontInfo *result = 0 ;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject *swig_obj[1] ;
11922
11923 if (!args) SWIG_fail;
11924 swig_obj[0] = args;
11925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11928 }
11929 arg1 = reinterpret_cast< wxFont * >(argp1);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11937 return resultobj;
11938 fail:
11939 return NULL;
11940 }
11941
11942
11943 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11944 PyObject *resultobj = 0;
11945 wxFont *arg1 = (wxFont *) 0 ;
11946 bool result;
11947 void *argp1 = 0 ;
11948 int res1 = 0 ;
11949 PyObject *swig_obj[1] ;
11950
11951 if (!args) SWIG_fail;
11952 swig_obj[0] = args;
11953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11954 if (!SWIG_IsOK(res1)) {
11955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11956 }
11957 arg1 = reinterpret_cast< wxFont * >(argp1);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 {
11965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11966 }
11967 return resultobj;
11968 fail:
11969 return NULL;
11970 }
11971
11972
11973 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11974 PyObject *resultobj = 0;
11975 wxFont *arg1 = (wxFont *) 0 ;
11976 wxString result;
11977 void *argp1 = 0 ;
11978 int res1 = 0 ;
11979 PyObject *swig_obj[1] ;
11980
11981 if (!args) SWIG_fail;
11982 swig_obj[0] = args;
11983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11986 }
11987 arg1 = reinterpret_cast< wxFont * >(argp1);
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 {
11995 #if wxUSE_UNICODE
11996 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11997 #else
11998 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11999 #endif
12000 }
12001 return resultobj;
12002 fail:
12003 return NULL;
12004 }
12005
12006
12007 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12008 PyObject *resultobj = 0;
12009 wxFont *arg1 = (wxFont *) 0 ;
12010 wxString result;
12011 void *argp1 = 0 ;
12012 int res1 = 0 ;
12013 PyObject *swig_obj[1] ;
12014
12015 if (!args) SWIG_fail;
12016 swig_obj[0] = args;
12017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12018 if (!SWIG_IsOK(res1)) {
12019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12020 }
12021 arg1 = reinterpret_cast< wxFont * >(argp1);
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 {
12029 #if wxUSE_UNICODE
12030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12031 #else
12032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12033 #endif
12034 }
12035 return resultobj;
12036 fail:
12037 return NULL;
12038 }
12039
12040
12041 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj = 0;
12043 wxFont *arg1 = (wxFont *) 0 ;
12044 int arg2 ;
12045 void *argp1 = 0 ;
12046 int res1 = 0 ;
12047 int val2 ;
12048 int ecode2 = 0 ;
12049 PyObject * obj0 = 0 ;
12050 PyObject * obj1 = 0 ;
12051 char * kwnames[] = {
12052 (char *) "self",(char *) "pointSize", NULL
12053 };
12054
12055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12057 if (!SWIG_IsOK(res1)) {
12058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12059 }
12060 arg1 = reinterpret_cast< wxFont * >(argp1);
12061 ecode2 = SWIG_AsVal_int(obj1, &val2);
12062 if (!SWIG_IsOK(ecode2)) {
12063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12064 }
12065 arg2 = static_cast< int >(val2);
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 (arg1)->SetPointSize(arg2);
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 resultobj = SWIG_Py_Void();
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj = 0;
12081 wxFont *arg1 = (wxFont *) 0 ;
12082 wxSize *arg2 = 0 ;
12083 void *argp1 = 0 ;
12084 int res1 = 0 ;
12085 wxSize temp2 ;
12086 PyObject * obj0 = 0 ;
12087 PyObject * obj1 = 0 ;
12088 char * kwnames[] = {
12089 (char *) "self",(char *) "pixelSize", NULL
12090 };
12091
12092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12094 if (!SWIG_IsOK(res1)) {
12095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12096 }
12097 arg1 = reinterpret_cast< wxFont * >(argp1);
12098 {
12099 arg2 = &temp2;
12100 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12101 }
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 (arg1)->SetPixelSize((wxSize const &)*arg2);
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_Py_Void();
12109 return resultobj;
12110 fail:
12111 return NULL;
12112 }
12113
12114
12115 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj = 0;
12117 wxFont *arg1 = (wxFont *) 0 ;
12118 int arg2 ;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 int val2 ;
12122 int ecode2 = 0 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "self",(char *) "family", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12133 }
12134 arg1 = reinterpret_cast< wxFont * >(argp1);
12135 ecode2 = SWIG_AsVal_int(obj1, &val2);
12136 if (!SWIG_IsOK(ecode2)) {
12137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12138 }
12139 arg2 = static_cast< int >(val2);
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 (arg1)->SetFamily(arg2);
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_Py_Void();
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj = 0;
12155 wxFont *arg1 = (wxFont *) 0 ;
12156 int arg2 ;
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 int val2 ;
12160 int ecode2 = 0 ;
12161 PyObject * obj0 = 0 ;
12162 PyObject * obj1 = 0 ;
12163 char * kwnames[] = {
12164 (char *) "self",(char *) "style", NULL
12165 };
12166
12167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12171 }
12172 arg1 = reinterpret_cast< wxFont * >(argp1);
12173 ecode2 = SWIG_AsVal_int(obj1, &val2);
12174 if (!SWIG_IsOK(ecode2)) {
12175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12176 }
12177 arg2 = static_cast< int >(val2);
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 (arg1)->SetStyle(arg2);
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 resultobj = SWIG_Py_Void();
12185 return resultobj;
12186 fail:
12187 return NULL;
12188 }
12189
12190
12191 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12192 PyObject *resultobj = 0;
12193 wxFont *arg1 = (wxFont *) 0 ;
12194 int arg2 ;
12195 void *argp1 = 0 ;
12196 int res1 = 0 ;
12197 int val2 ;
12198 int ecode2 = 0 ;
12199 PyObject * obj0 = 0 ;
12200 PyObject * obj1 = 0 ;
12201 char * kwnames[] = {
12202 (char *) "self",(char *) "weight", NULL
12203 };
12204
12205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12207 if (!SWIG_IsOK(res1)) {
12208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12209 }
12210 arg1 = reinterpret_cast< wxFont * >(argp1);
12211 ecode2 = SWIG_AsVal_int(obj1, &val2);
12212 if (!SWIG_IsOK(ecode2)) {
12213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12214 }
12215 arg2 = static_cast< int >(val2);
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->SetWeight(arg2);
12219 wxPyEndAllowThreads(__tstate);
12220 if (PyErr_Occurred()) SWIG_fail;
12221 }
12222 resultobj = SWIG_Py_Void();
12223 return resultobj;
12224 fail:
12225 return NULL;
12226 }
12227
12228
12229 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12230 PyObject *resultobj = 0;
12231 wxFont *arg1 = (wxFont *) 0 ;
12232 wxString *arg2 = 0 ;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 bool temp2 = false ;
12236 PyObject * obj0 = 0 ;
12237 PyObject * obj1 = 0 ;
12238 char * kwnames[] = {
12239 (char *) "self",(char *) "faceName", NULL
12240 };
12241
12242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12246 }
12247 arg1 = reinterpret_cast< wxFont * >(argp1);
12248 {
12249 arg2 = wxString_in_helper(obj1);
12250 if (arg2 == NULL) SWIG_fail;
12251 temp2 = true;
12252 }
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 (arg1)->SetFaceName((wxString const &)*arg2);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_Py_Void();
12260 {
12261 if (temp2)
12262 delete arg2;
12263 }
12264 return resultobj;
12265 fail:
12266 {
12267 if (temp2)
12268 delete arg2;
12269 }
12270 return NULL;
12271 }
12272
12273
12274 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12275 PyObject *resultobj = 0;
12276 wxFont *arg1 = (wxFont *) 0 ;
12277 bool arg2 ;
12278 void *argp1 = 0 ;
12279 int res1 = 0 ;
12280 bool val2 ;
12281 int ecode2 = 0 ;
12282 PyObject * obj0 = 0 ;
12283 PyObject * obj1 = 0 ;
12284 char * kwnames[] = {
12285 (char *) "self",(char *) "underlined", NULL
12286 };
12287
12288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12290 if (!SWIG_IsOK(res1)) {
12291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12292 }
12293 arg1 = reinterpret_cast< wxFont * >(argp1);
12294 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12295 if (!SWIG_IsOK(ecode2)) {
12296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12297 }
12298 arg2 = static_cast< bool >(val2);
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 (arg1)->SetUnderlined(arg2);
12302 wxPyEndAllowThreads(__tstate);
12303 if (PyErr_Occurred()) SWIG_fail;
12304 }
12305 resultobj = SWIG_Py_Void();
12306 return resultobj;
12307 fail:
12308 return NULL;
12309 }
12310
12311
12312 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12313 PyObject *resultobj = 0;
12314 wxFont *arg1 = (wxFont *) 0 ;
12315 wxFontEncoding arg2 ;
12316 void *argp1 = 0 ;
12317 int res1 = 0 ;
12318 int val2 ;
12319 int ecode2 = 0 ;
12320 PyObject * obj0 = 0 ;
12321 PyObject * obj1 = 0 ;
12322 char * kwnames[] = {
12323 (char *) "self",(char *) "encoding", NULL
12324 };
12325
12326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12328 if (!SWIG_IsOK(res1)) {
12329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12330 }
12331 arg1 = reinterpret_cast< wxFont * >(argp1);
12332 ecode2 = SWIG_AsVal_int(obj1, &val2);
12333 if (!SWIG_IsOK(ecode2)) {
12334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12335 }
12336 arg2 = static_cast< wxFontEncoding >(val2);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 (arg1)->SetEncoding(arg2);
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_Py_Void();
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12351 PyObject *resultobj = 0;
12352 wxFont *arg1 = (wxFont *) 0 ;
12353 wxNativeFontInfo *arg2 = 0 ;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 void *argp2 = 0 ;
12357 int res2 = 0 ;
12358 PyObject * obj0 = 0 ;
12359 PyObject * obj1 = 0 ;
12360 char * kwnames[] = {
12361 (char *) "self",(char *) "info", NULL
12362 };
12363
12364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12368 }
12369 arg1 = reinterpret_cast< wxFont * >(argp1);
12370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12371 if (!SWIG_IsOK(res2)) {
12372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12373 }
12374 if (!argp2) {
12375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12376 }
12377 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12378 {
12379 PyThreadState* __tstate = wxPyBeginAllowThreads();
12380 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12381 wxPyEndAllowThreads(__tstate);
12382 if (PyErr_Occurred()) SWIG_fail;
12383 }
12384 resultobj = SWIG_Py_Void();
12385 return resultobj;
12386 fail:
12387 return NULL;
12388 }
12389
12390
12391 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj = 0;
12393 wxFont *arg1 = (wxFont *) 0 ;
12394 wxString *arg2 = 0 ;
12395 void *argp1 = 0 ;
12396 int res1 = 0 ;
12397 bool temp2 = false ;
12398 PyObject * obj0 = 0 ;
12399 PyObject * obj1 = 0 ;
12400 char * kwnames[] = {
12401 (char *) "self",(char *) "info", NULL
12402 };
12403
12404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12406 if (!SWIG_IsOK(res1)) {
12407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12408 }
12409 arg1 = reinterpret_cast< wxFont * >(argp1);
12410 {
12411 arg2 = wxString_in_helper(obj1);
12412 if (arg2 == NULL) SWIG_fail;
12413 temp2 = true;
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 resultobj = SWIG_Py_Void();
12422 {
12423 if (temp2)
12424 delete arg2;
12425 }
12426 return resultobj;
12427 fail:
12428 {
12429 if (temp2)
12430 delete arg2;
12431 }
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj = 0;
12438 wxFont *arg1 = (wxFont *) 0 ;
12439 wxString *arg2 = 0 ;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 bool temp2 = false ;
12443 PyObject * obj0 = 0 ;
12444 PyObject * obj1 = 0 ;
12445 char * kwnames[] = {
12446 (char *) "self",(char *) "info", NULL
12447 };
12448
12449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12453 }
12454 arg1 = reinterpret_cast< wxFont * >(argp1);
12455 {
12456 arg2 = wxString_in_helper(obj1);
12457 if (arg2 == NULL) SWIG_fail;
12458 temp2 = true;
12459 }
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_Py_Void();
12467 {
12468 if (temp2)
12469 delete arg2;
12470 }
12471 return resultobj;
12472 fail:
12473 {
12474 if (temp2)
12475 delete arg2;
12476 }
12477 return NULL;
12478 }
12479
12480
12481 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12482 PyObject *resultobj = 0;
12483 wxFont *arg1 = (wxFont *) 0 ;
12484 wxString result;
12485 void *argp1 = 0 ;
12486 int res1 = 0 ;
12487 PyObject *swig_obj[1] ;
12488
12489 if (!args) SWIG_fail;
12490 swig_obj[0] = args;
12491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12492 if (!SWIG_IsOK(res1)) {
12493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12494 }
12495 arg1 = reinterpret_cast< wxFont * >(argp1);
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = ((wxFont const *)arg1)->GetFamilyString();
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 {
12503 #if wxUSE_UNICODE
12504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12505 #else
12506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12507 #endif
12508 }
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12516 PyObject *resultobj = 0;
12517 wxFont *arg1 = (wxFont *) 0 ;
12518 wxString result;
12519 void *argp1 = 0 ;
12520 int res1 = 0 ;
12521 PyObject *swig_obj[1] ;
12522
12523 if (!args) SWIG_fail;
12524 swig_obj[0] = args;
12525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12528 }
12529 arg1 = reinterpret_cast< wxFont * >(argp1);
12530 {
12531 PyThreadState* __tstate = wxPyBeginAllowThreads();
12532 result = ((wxFont const *)arg1)->GetStyleString();
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 {
12537 #if wxUSE_UNICODE
12538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12539 #else
12540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12541 #endif
12542 }
12543 return resultobj;
12544 fail:
12545 return NULL;
12546 }
12547
12548
12549 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12550 PyObject *resultobj = 0;
12551 wxFont *arg1 = (wxFont *) 0 ;
12552 wxString result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12562 }
12563 arg1 = reinterpret_cast< wxFont * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 result = ((wxFont const *)arg1)->GetWeightString();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 {
12571 #if wxUSE_UNICODE
12572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12573 #else
12574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12575 #endif
12576 }
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12584 PyObject *resultobj = 0;
12585 wxFont *arg1 = (wxFont *) 0 ;
12586 bool arg2 = (bool) true ;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 bool val2 ;
12590 int ecode2 = 0 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char * kwnames[] = {
12594 (char *) "self",(char *) "no", NULL
12595 };
12596
12597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12601 }
12602 arg1 = reinterpret_cast< wxFont * >(argp1);
12603 if (obj1) {
12604 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12605 if (!SWIG_IsOK(ecode2)) {
12606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12607 }
12608 arg2 = static_cast< bool >(val2);
12609 }
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 (arg1)->SetNoAntiAliasing(arg2);
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 resultobj = SWIG_Py_Void();
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12624 PyObject *resultobj = 0;
12625 wxFont *arg1 = (wxFont *) 0 ;
12626 bool result;
12627 void *argp1 = 0 ;
12628 int res1 = 0 ;
12629 PyObject *swig_obj[1] ;
12630
12631 if (!args) SWIG_fail;
12632 swig_obj[0] = args;
12633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12634 if (!SWIG_IsOK(res1)) {
12635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12636 }
12637 arg1 = reinterpret_cast< wxFont * >(argp1);
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 {
12645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12646 }
12647 return resultobj;
12648 fail:
12649 return NULL;
12650 }
12651
12652
12653 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12654 PyObject *resultobj = 0;
12655 wxFontEncoding result;
12656
12657 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12658 {
12659 if (!wxPyCheckForApp()) SWIG_fail;
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 resultobj = SWIG_From_int(static_cast< int >(result));
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj = 0;
12674 wxFontEncoding arg1 ;
12675 int val1 ;
12676 int ecode1 = 0 ;
12677 PyObject * obj0 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "encoding", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12683 ecode1 = SWIG_AsVal_int(obj0, &val1);
12684 if (!SWIG_IsOK(ecode1)) {
12685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12686 }
12687 arg1 = static_cast< wxFontEncoding >(val1);
12688 {
12689 if (!wxPyCheckForApp()) SWIG_fail;
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 wxFont::SetDefaultEncoding(arg1);
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 resultobj = SWIG_Py_Void();
12696 return resultobj;
12697 fail:
12698 return NULL;
12699 }
12700
12701
12702 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12703 PyObject *obj;
12704 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12705 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12706 return SWIG_Py_Void();
12707 }
12708
12709 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12710 return SWIG_Python_InitShadowInstance(args);
12711 }
12712
12713 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12714 PyObject *resultobj = 0;
12715 wxPyFontEnumerator *result = 0 ;
12716
12717 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12718 {
12719 if (!wxPyCheckForApp()) SWIG_fail;
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12722 wxPyEndAllowThreads(__tstate);
12723 if (PyErr_Occurred()) SWIG_fail;
12724 }
12725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12726 return resultobj;
12727 fail:
12728 return NULL;
12729 }
12730
12731
12732 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12733 PyObject *resultobj = 0;
12734 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12735 void *argp1 = 0 ;
12736 int res1 = 0 ;
12737 PyObject *swig_obj[1] ;
12738
12739 if (!args) SWIG_fail;
12740 swig_obj[0] = args;
12741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12742 if (!SWIG_IsOK(res1)) {
12743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12744 }
12745 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12746 {
12747 PyThreadState* __tstate = wxPyBeginAllowThreads();
12748 delete arg1;
12749
12750 wxPyEndAllowThreads(__tstate);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 }
12753 resultobj = SWIG_Py_Void();
12754 return resultobj;
12755 fail:
12756 return NULL;
12757 }
12758
12759
12760 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj = 0;
12762 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12763 PyObject *arg2 = (PyObject *) 0 ;
12764 PyObject *arg3 = (PyObject *) 0 ;
12765 bool arg4 ;
12766 void *argp1 = 0 ;
12767 int res1 = 0 ;
12768 bool val4 ;
12769 int ecode4 = 0 ;
12770 PyObject * obj0 = 0 ;
12771 PyObject * obj1 = 0 ;
12772 PyObject * obj2 = 0 ;
12773 PyObject * obj3 = 0 ;
12774 char * kwnames[] = {
12775 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12776 };
12777
12778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12780 if (!SWIG_IsOK(res1)) {
12781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12782 }
12783 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12784 arg2 = obj1;
12785 arg3 = obj2;
12786 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12787 if (!SWIG_IsOK(ecode4)) {
12788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12789 }
12790 arg4 = static_cast< bool >(val4);
12791 {
12792 PyThreadState* __tstate = wxPyBeginAllowThreads();
12793 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12794 wxPyEndAllowThreads(__tstate);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 resultobj = SWIG_Py_Void();
12798 return resultobj;
12799 fail:
12800 return NULL;
12801 }
12802
12803
12804 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj = 0;
12806 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12807 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12808 bool arg3 = (bool) false ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 int val2 ;
12813 int ecode2 = 0 ;
12814 bool val3 ;
12815 int ecode3 = 0 ;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 PyObject * obj2 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12827 }
12828 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12829 if (obj1) {
12830 ecode2 = SWIG_AsVal_int(obj1, &val2);
12831 if (!SWIG_IsOK(ecode2)) {
12832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12833 }
12834 arg2 = static_cast< wxFontEncoding >(val2);
12835 }
12836 if (obj2) {
12837 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12838 if (!SWIG_IsOK(ecode3)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12840 }
12841 arg3 = static_cast< bool >(val3);
12842 }
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12846 wxPyEndAllowThreads(__tstate);
12847 if (PyErr_Occurred()) SWIG_fail;
12848 }
12849 {
12850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12851 }
12852 return resultobj;
12853 fail:
12854 return NULL;
12855 }
12856
12857
12858 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12861 wxString const &arg2_defvalue = wxPyEmptyString ;
12862 wxString *arg2 = (wxString *) &arg2_defvalue ;
12863 bool result;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 bool temp2 = false ;
12867 PyObject * obj0 = 0 ;
12868 PyObject * obj1 = 0 ;
12869 char * kwnames[] = {
12870 (char *) "self",(char *) "facename", NULL
12871 };
12872
12873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12875 if (!SWIG_IsOK(res1)) {
12876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12877 }
12878 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12879 if (obj1) {
12880 {
12881 arg2 = wxString_in_helper(obj1);
12882 if (arg2 == NULL) SWIG_fail;
12883 temp2 = true;
12884 }
12885 }
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 {
12893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12894 }
12895 {
12896 if (temp2)
12897 delete arg2;
12898 }
12899 return resultobj;
12900 fail:
12901 {
12902 if (temp2)
12903 delete arg2;
12904 }
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12910 PyObject *resultobj = 0;
12911 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12912 PyObject *result = 0 ;
12913 void *argp1 = 0 ;
12914 int res1 = 0 ;
12915 PyObject *swig_obj[1] ;
12916
12917 if (!args) SWIG_fail;
12918 swig_obj[0] = args;
12919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12920 if (!SWIG_IsOK(res1)) {
12921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12922 }
12923 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12927 wxPyEndAllowThreads(__tstate);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 }
12930 resultobj = result;
12931 return resultobj;
12932 fail:
12933 return NULL;
12934 }
12935
12936
12937 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12938 PyObject *resultobj = 0;
12939 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12940 PyObject *result = 0 ;
12941 void *argp1 = 0 ;
12942 int res1 = 0 ;
12943 PyObject *swig_obj[1] ;
12944
12945 if (!args) SWIG_fail;
12946 swig_obj[0] = args;
12947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12948 if (!SWIG_IsOK(res1)) {
12949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12950 }
12951 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 resultobj = result;
12959 return resultobj;
12960 fail:
12961 return NULL;
12962 }
12963
12964
12965 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12966 PyObject *obj;
12967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12968 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12969 return SWIG_Py_Void();
12970 }
12971
12972 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12973 return SWIG_Python_InitShadowInstance(args);
12974 }
12975
12976 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12977 PyObject *resultobj = 0;
12978 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12979 int arg2 ;
12980 void *argp1 = 0 ;
12981 int res1 = 0 ;
12982 int val2 ;
12983 int ecode2 = 0 ;
12984 PyObject *swig_obj[2] ;
12985
12986 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12988 if (!SWIG_IsOK(res1)) {
12989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12990 }
12991 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12992 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12993 if (!SWIG_IsOK(ecode2)) {
12994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12995 }
12996 arg2 = static_cast< int >(val2);
12997 if (arg1) (arg1)->Language = arg2;
12998
12999 resultobj = SWIG_Py_Void();
13000 return resultobj;
13001 fail:
13002 return NULL;
13003 }
13004
13005
13006 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13007 PyObject *resultobj = 0;
13008 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13009 int result;
13010 void *argp1 = 0 ;
13011 int res1 = 0 ;
13012 PyObject *swig_obj[1] ;
13013
13014 if (!args) SWIG_fail;
13015 swig_obj[0] = args;
13016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13017 if (!SWIG_IsOK(res1)) {
13018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13019 }
13020 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13021 result = (int) ((arg1)->Language);
13022 resultobj = SWIG_From_int(static_cast< int >(result));
13023 return resultobj;
13024 fail:
13025 return NULL;
13026 }
13027
13028
13029 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13030 PyObject *resultobj = 0;
13031 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13032 wxString *arg2 = (wxString *) 0 ;
13033 void *argp1 = 0 ;
13034 int res1 = 0 ;
13035 bool temp2 = false ;
13036 PyObject *swig_obj[2] ;
13037
13038 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13040 if (!SWIG_IsOK(res1)) {
13041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13042 }
13043 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13044 {
13045 arg2 = wxString_in_helper(swig_obj[1]);
13046 if (arg2 == NULL) SWIG_fail;
13047 temp2 = true;
13048 }
13049 if (arg1) (arg1)->CanonicalName = *arg2;
13050
13051 resultobj = SWIG_Py_Void();
13052 {
13053 if (temp2)
13054 delete arg2;
13055 }
13056 return resultobj;
13057 fail:
13058 {
13059 if (temp2)
13060 delete arg2;
13061 }
13062 return NULL;
13063 }
13064
13065
13066 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13067 PyObject *resultobj = 0;
13068 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13069 wxString *result = 0 ;
13070 void *argp1 = 0 ;
13071 int res1 = 0 ;
13072 PyObject *swig_obj[1] ;
13073
13074 if (!args) SWIG_fail;
13075 swig_obj[0] = args;
13076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13077 if (!SWIG_IsOK(res1)) {
13078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13079 }
13080 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13081 result = (wxString *)& ((arg1)->CanonicalName);
13082 {
13083 #if wxUSE_UNICODE
13084 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13085 #else
13086 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13087 #endif
13088 }
13089 return resultobj;
13090 fail:
13091 return NULL;
13092 }
13093
13094
13095 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13096 PyObject *resultobj = 0;
13097 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13098 wxString *arg2 = (wxString *) 0 ;
13099 void *argp1 = 0 ;
13100 int res1 = 0 ;
13101 bool temp2 = false ;
13102 PyObject *swig_obj[2] ;
13103
13104 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13106 if (!SWIG_IsOK(res1)) {
13107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13108 }
13109 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13110 {
13111 arg2 = wxString_in_helper(swig_obj[1]);
13112 if (arg2 == NULL) SWIG_fail;
13113 temp2 = true;
13114 }
13115 if (arg1) (arg1)->Description = *arg2;
13116
13117 resultobj = SWIG_Py_Void();
13118 {
13119 if (temp2)
13120 delete arg2;
13121 }
13122 return resultobj;
13123 fail:
13124 {
13125 if (temp2)
13126 delete arg2;
13127 }
13128 return NULL;
13129 }
13130
13131
13132 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13133 PyObject *resultobj = 0;
13134 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13135 wxString *result = 0 ;
13136 void *argp1 = 0 ;
13137 int res1 = 0 ;
13138 PyObject *swig_obj[1] ;
13139
13140 if (!args) SWIG_fail;
13141 swig_obj[0] = args;
13142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13145 }
13146 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13147 result = (wxString *)& ((arg1)->Description);
13148 {
13149 #if wxUSE_UNICODE
13150 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13151 #else
13152 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13153 #endif
13154 }
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *obj;
13163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13164 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13165 return SWIG_Py_Void();
13166 }
13167
13168 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj = 0;
13170 int arg1 = (int) -1 ;
13171 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13172 wxLocale *result = 0 ;
13173 int val1 ;
13174 int ecode1 = 0 ;
13175 int val2 ;
13176 int ecode2 = 0 ;
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 char * kwnames[] = {
13180 (char *) "language",(char *) "flags", NULL
13181 };
13182
13183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13184 if (obj0) {
13185 ecode1 = SWIG_AsVal_int(obj0, &val1);
13186 if (!SWIG_IsOK(ecode1)) {
13187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13188 }
13189 arg1 = static_cast< int >(val1);
13190 }
13191 if (obj1) {
13192 ecode2 = SWIG_AsVal_int(obj1, &val2);
13193 if (!SWIG_IsOK(ecode2)) {
13194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13195 }
13196 arg2 = static_cast< int >(val2);
13197 }
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = (wxLocale *)new_wxLocale(arg1,arg2);
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13212 PyObject *resultobj = 0;
13213 wxLocale *arg1 = (wxLocale *) 0 ;
13214 void *argp1 = 0 ;
13215 int res1 = 0 ;
13216 PyObject *swig_obj[1] ;
13217
13218 if (!args) SWIG_fail;
13219 swig_obj[0] = args;
13220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13221 if (!SWIG_IsOK(res1)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13223 }
13224 arg1 = reinterpret_cast< wxLocale * >(argp1);
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 delete arg1;
13228
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = SWIG_Py_Void();
13233 return resultobj;
13234 fail:
13235 return NULL;
13236 }
13237
13238
13239 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj = 0;
13241 wxLocale *arg1 = (wxLocale *) 0 ;
13242 wxString *arg2 = 0 ;
13243 wxString const &arg3_defvalue = wxPyEmptyString ;
13244 wxString *arg3 = (wxString *) &arg3_defvalue ;
13245 wxString const &arg4_defvalue = wxPyEmptyString ;
13246 wxString *arg4 = (wxString *) &arg4_defvalue ;
13247 bool arg5 = (bool) true ;
13248 bool arg6 = (bool) false ;
13249 bool result;
13250 void *argp1 = 0 ;
13251 int res1 = 0 ;
13252 bool temp2 = false ;
13253 bool temp3 = false ;
13254 bool temp4 = false ;
13255 bool val5 ;
13256 int ecode5 = 0 ;
13257 bool val6 ;
13258 int ecode6 = 0 ;
13259 PyObject * obj0 = 0 ;
13260 PyObject * obj1 = 0 ;
13261 PyObject * obj2 = 0 ;
13262 PyObject * obj3 = 0 ;
13263 PyObject * obj4 = 0 ;
13264 PyObject * obj5 = 0 ;
13265 char * kwnames[] = {
13266 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13267 };
13268
13269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13271 if (!SWIG_IsOK(res1)) {
13272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13273 }
13274 arg1 = reinterpret_cast< wxLocale * >(argp1);
13275 {
13276 arg2 = wxString_in_helper(obj1);
13277 if (arg2 == NULL) SWIG_fail;
13278 temp2 = true;
13279 }
13280 if (obj2) {
13281 {
13282 arg3 = wxString_in_helper(obj2);
13283 if (arg3 == NULL) SWIG_fail;
13284 temp3 = true;
13285 }
13286 }
13287 if (obj3) {
13288 {
13289 arg4 = wxString_in_helper(obj3);
13290 if (arg4 == NULL) SWIG_fail;
13291 temp4 = true;
13292 }
13293 }
13294 if (obj4) {
13295 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13296 if (!SWIG_IsOK(ecode5)) {
13297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13298 }
13299 arg5 = static_cast< bool >(val5);
13300 }
13301 if (obj5) {
13302 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13303 if (!SWIG_IsOK(ecode6)) {
13304 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13305 }
13306 arg6 = static_cast< bool >(val6);
13307 }
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 {
13315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13316 }
13317 {
13318 if (temp2)
13319 delete arg2;
13320 }
13321 {
13322 if (temp3)
13323 delete arg3;
13324 }
13325 {
13326 if (temp4)
13327 delete arg4;
13328 }
13329 return resultobj;
13330 fail:
13331 {
13332 if (temp2)
13333 delete arg2;
13334 }
13335 {
13336 if (temp3)
13337 delete arg3;
13338 }
13339 {
13340 if (temp4)
13341 delete arg4;
13342 }
13343 return NULL;
13344 }
13345
13346
13347 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13348 PyObject *resultobj = 0;
13349 wxLocale *arg1 = (wxLocale *) 0 ;
13350 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13351 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13352 bool result;
13353 void *argp1 = 0 ;
13354 int res1 = 0 ;
13355 int val2 ;
13356 int ecode2 = 0 ;
13357 int val3 ;
13358 int ecode3 = 0 ;
13359 PyObject * obj0 = 0 ;
13360 PyObject * obj1 = 0 ;
13361 PyObject * obj2 = 0 ;
13362 char * kwnames[] = {
13363 (char *) "self",(char *) "language",(char *) "flags", NULL
13364 };
13365
13366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13368 if (!SWIG_IsOK(res1)) {
13369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13370 }
13371 arg1 = reinterpret_cast< wxLocale * >(argp1);
13372 if (obj1) {
13373 ecode2 = SWIG_AsVal_int(obj1, &val2);
13374 if (!SWIG_IsOK(ecode2)) {
13375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13376 }
13377 arg2 = static_cast< int >(val2);
13378 }
13379 if (obj2) {
13380 ecode3 = SWIG_AsVal_int(obj2, &val3);
13381 if (!SWIG_IsOK(ecode3)) {
13382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13383 }
13384 arg3 = static_cast< int >(val3);
13385 }
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13389 wxPyEndAllowThreads(__tstate);
13390 if (PyErr_Occurred()) SWIG_fail;
13391 }
13392 {
13393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13394 }
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13402 PyObject *resultobj = 0;
13403 int result;
13404
13405 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (int)wxLocale::GetSystemLanguage();
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 resultobj = SWIG_From_int(static_cast< int >(result));
13413 return resultobj;
13414 fail:
13415 return NULL;
13416 }
13417
13418
13419 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13420 PyObject *resultobj = 0;
13421 wxFontEncoding result;
13422
13423 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_From_int(static_cast< int >(result));
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13438 PyObject *resultobj = 0;
13439 wxString result;
13440
13441 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13442 {
13443 PyThreadState* __tstate = wxPyBeginAllowThreads();
13444 result = wxLocale::GetSystemEncodingName();
13445 wxPyEndAllowThreads(__tstate);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 {
13449 #if wxUSE_UNICODE
13450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13451 #else
13452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13453 #endif
13454 }
13455 return resultobj;
13456 fail:
13457 return NULL;
13458 }
13459
13460
13461 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13462 PyObject *resultobj = 0;
13463 wxLocale *arg1 = (wxLocale *) 0 ;
13464 bool result;
13465 void *argp1 = 0 ;
13466 int res1 = 0 ;
13467 PyObject *swig_obj[1] ;
13468
13469 if (!args) SWIG_fail;
13470 swig_obj[0] = args;
13471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13472 if (!SWIG_IsOK(res1)) {
13473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13474 }
13475 arg1 = reinterpret_cast< wxLocale * >(argp1);
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (bool)((wxLocale const *)arg1)->IsOk();
13479 wxPyEndAllowThreads(__tstate);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 }
13482 {
13483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13484 }
13485 return resultobj;
13486 fail:
13487 return NULL;
13488 }
13489
13490
13491 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13492 PyObject *resultobj = 0;
13493 wxLocale *arg1 = (wxLocale *) 0 ;
13494 wxString result;
13495 void *argp1 = 0 ;
13496 int res1 = 0 ;
13497 PyObject *swig_obj[1] ;
13498
13499 if (!args) SWIG_fail;
13500 swig_obj[0] = args;
13501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13502 if (!SWIG_IsOK(res1)) {
13503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13504 }
13505 arg1 = reinterpret_cast< wxLocale * >(argp1);
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = ((wxLocale const *)arg1)->GetLocale();
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 {
13513 #if wxUSE_UNICODE
13514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13515 #else
13516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13517 #endif
13518 }
13519 return resultobj;
13520 fail:
13521 return NULL;
13522 }
13523
13524
13525 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13526 PyObject *resultobj = 0;
13527 wxLocale *arg1 = (wxLocale *) 0 ;
13528 int result;
13529 void *argp1 = 0 ;
13530 int res1 = 0 ;
13531 PyObject *swig_obj[1] ;
13532
13533 if (!args) SWIG_fail;
13534 swig_obj[0] = args;
13535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13536 if (!SWIG_IsOK(res1)) {
13537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13538 }
13539 arg1 = reinterpret_cast< wxLocale * >(argp1);
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (int)((wxLocale const *)arg1)->GetLanguage();
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 resultobj = SWIG_From_int(static_cast< int >(result));
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13554 PyObject *resultobj = 0;
13555 wxLocale *arg1 = (wxLocale *) 0 ;
13556 wxString result;
13557 void *argp1 = 0 ;
13558 int res1 = 0 ;
13559 PyObject *swig_obj[1] ;
13560
13561 if (!args) SWIG_fail;
13562 swig_obj[0] = args;
13563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13564 if (!SWIG_IsOK(res1)) {
13565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13566 }
13567 arg1 = reinterpret_cast< wxLocale * >(argp1);
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 result = ((wxLocale const *)arg1)->GetSysName();
13571 wxPyEndAllowThreads(__tstate);
13572 if (PyErr_Occurred()) SWIG_fail;
13573 }
13574 {
13575 #if wxUSE_UNICODE
13576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13577 #else
13578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13579 #endif
13580 }
13581 return resultobj;
13582 fail:
13583 return NULL;
13584 }
13585
13586
13587 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13588 PyObject *resultobj = 0;
13589 wxLocale *arg1 = (wxLocale *) 0 ;
13590 wxString result;
13591 void *argp1 = 0 ;
13592 int res1 = 0 ;
13593 PyObject *swig_obj[1] ;
13594
13595 if (!args) SWIG_fail;
13596 swig_obj[0] = args;
13597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13598 if (!SWIG_IsOK(res1)) {
13599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13600 }
13601 arg1 = reinterpret_cast< wxLocale * >(argp1);
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = ((wxLocale const *)arg1)->GetCanonicalName();
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 {
13609 #if wxUSE_UNICODE
13610 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13611 #else
13612 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13613 #endif
13614 }
13615 return resultobj;
13616 fail:
13617 return NULL;
13618 }
13619
13620
13621 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13622 PyObject *resultobj = 0;
13623 wxString *arg1 = 0 ;
13624 bool temp1 = false ;
13625 PyObject * obj0 = 0 ;
13626 char * kwnames[] = {
13627 (char *) "prefix", NULL
13628 };
13629
13630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13631 {
13632 arg1 = wxString_in_helper(obj0);
13633 if (arg1 == NULL) SWIG_fail;
13634 temp1 = true;
13635 }
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_Py_Void();
13643 {
13644 if (temp1)
13645 delete arg1;
13646 }
13647 return resultobj;
13648 fail:
13649 {
13650 if (temp1)
13651 delete arg1;
13652 }
13653 return NULL;
13654 }
13655
13656
13657 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13658 PyObject *resultobj = 0;
13659 wxLocale *arg1 = (wxLocale *) 0 ;
13660 wxString *arg2 = 0 ;
13661 bool result;
13662 void *argp1 = 0 ;
13663 int res1 = 0 ;
13664 bool temp2 = false ;
13665 PyObject * obj0 = 0 ;
13666 PyObject * obj1 = 0 ;
13667 char * kwnames[] = {
13668 (char *) "self",(char *) "szDomain", NULL
13669 };
13670
13671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13673 if (!SWIG_IsOK(res1)) {
13674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13675 }
13676 arg1 = reinterpret_cast< wxLocale * >(argp1);
13677 {
13678 arg2 = wxString_in_helper(obj1);
13679 if (arg2 == NULL) SWIG_fail;
13680 temp2 = true;
13681 }
13682 {
13683 PyThreadState* __tstate = wxPyBeginAllowThreads();
13684 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 {
13689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13690 }
13691 {
13692 if (temp2)
13693 delete arg2;
13694 }
13695 return resultobj;
13696 fail:
13697 {
13698 if (temp2)
13699 delete arg2;
13700 }
13701 return NULL;
13702 }
13703
13704
13705 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13706 PyObject *resultobj = 0;
13707 wxLocale *arg1 = (wxLocale *) 0 ;
13708 wxString *arg2 = 0 ;
13709 bool result;
13710 void *argp1 = 0 ;
13711 int res1 = 0 ;
13712 bool temp2 = false ;
13713 PyObject * obj0 = 0 ;
13714 PyObject * obj1 = 0 ;
13715 char * kwnames[] = {
13716 (char *) "self",(char *) "szDomain", NULL
13717 };
13718
13719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13721 if (!SWIG_IsOK(res1)) {
13722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13723 }
13724 arg1 = reinterpret_cast< wxLocale * >(argp1);
13725 {
13726 arg2 = wxString_in_helper(obj1);
13727 if (arg2 == NULL) SWIG_fail;
13728 temp2 = true;
13729 }
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 {
13737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13738 }
13739 {
13740 if (temp2)
13741 delete arg2;
13742 }
13743 return resultobj;
13744 fail:
13745 {
13746 if (temp2)
13747 delete arg2;
13748 }
13749 return NULL;
13750 }
13751
13752
13753 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj = 0;
13755 int arg1 ;
13756 wxLanguageInfo *result = 0 ;
13757 int val1 ;
13758 int ecode1 = 0 ;
13759 PyObject * obj0 = 0 ;
13760 char * kwnames[] = {
13761 (char *) "lang", NULL
13762 };
13763
13764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13765 ecode1 = SWIG_AsVal_int(obj0, &val1);
13766 if (!SWIG_IsOK(ecode1)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13768 }
13769 arg1 = static_cast< int >(val1);
13770 {
13771 PyThreadState* __tstate = wxPyBeginAllowThreads();
13772 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj = 0;
13785 int arg1 ;
13786 wxString result;
13787 int val1 ;
13788 int ecode1 = 0 ;
13789 PyObject * obj0 = 0 ;
13790 char * kwnames[] = {
13791 (char *) "lang", NULL
13792 };
13793
13794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13795 ecode1 = SWIG_AsVal_int(obj0, &val1);
13796 if (!SWIG_IsOK(ecode1)) {
13797 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13798 }
13799 arg1 = static_cast< int >(val1);
13800 {
13801 PyThreadState* __tstate = wxPyBeginAllowThreads();
13802 result = wxLocale::GetLanguageName(arg1);
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 {
13807 #if wxUSE_UNICODE
13808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13809 #else
13810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13811 #endif
13812 }
13813 return resultobj;
13814 fail:
13815 return NULL;
13816 }
13817
13818
13819 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13820 PyObject *resultobj = 0;
13821 wxString *arg1 = 0 ;
13822 wxLanguageInfo *result = 0 ;
13823 bool temp1 = false ;
13824 PyObject * obj0 = 0 ;
13825 char * kwnames[] = {
13826 (char *) "locale", NULL
13827 };
13828
13829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13830 {
13831 arg1 = wxString_in_helper(obj0);
13832 if (arg1 == NULL) SWIG_fail;
13833 temp1 = true;
13834 }
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13842 {
13843 if (temp1)
13844 delete arg1;
13845 }
13846 return resultobj;
13847 fail:
13848 {
13849 if (temp1)
13850 delete arg1;
13851 }
13852 return NULL;
13853 }
13854
13855
13856 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13857 PyObject *resultobj = 0;
13858 wxLanguageInfo *arg1 = 0 ;
13859 void *argp1 = 0 ;
13860 int res1 = 0 ;
13861 PyObject * obj0 = 0 ;
13862 char * kwnames[] = {
13863 (char *) "info", NULL
13864 };
13865
13866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13867 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13868 if (!SWIG_IsOK(res1)) {
13869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13870 }
13871 if (!argp1) {
13872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13873 }
13874 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13875 {
13876 PyThreadState* __tstate = wxPyBeginAllowThreads();
13877 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_Py_Void();
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj = 0;
13890 wxLocale *arg1 = (wxLocale *) 0 ;
13891 wxString *arg2 = 0 ;
13892 wxString const &arg3_defvalue = wxPyEmptyString ;
13893 wxString *arg3 = (wxString *) &arg3_defvalue ;
13894 wxString result;
13895 void *argp1 = 0 ;
13896 int res1 = 0 ;
13897 bool temp2 = false ;
13898 bool temp3 = false ;
13899 PyObject * obj0 = 0 ;
13900 PyObject * obj1 = 0 ;
13901 PyObject * obj2 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13910 }
13911 arg1 = reinterpret_cast< wxLocale * >(argp1);
13912 {
13913 arg2 = wxString_in_helper(obj1);
13914 if (arg2 == NULL) SWIG_fail;
13915 temp2 = true;
13916 }
13917 if (obj2) {
13918 {
13919 arg3 = wxString_in_helper(obj2);
13920 if (arg3 == NULL) SWIG_fail;
13921 temp3 = true;
13922 }
13923 }
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 {
13931 #if wxUSE_UNICODE
13932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13933 #else
13934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13935 #endif
13936 }
13937 {
13938 if (temp2)
13939 delete arg2;
13940 }
13941 {
13942 if (temp3)
13943 delete arg3;
13944 }
13945 return resultobj;
13946 fail:
13947 {
13948 if (temp2)
13949 delete arg2;
13950 }
13951 {
13952 if (temp3)
13953 delete arg3;
13954 }
13955 return NULL;
13956 }
13957
13958
13959 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13960 PyObject *resultobj = 0;
13961 wxLocale *arg1 = (wxLocale *) 0 ;
13962 wxString *result = 0 ;
13963 void *argp1 = 0 ;
13964 int res1 = 0 ;
13965 PyObject *swig_obj[1] ;
13966
13967 if (!args) SWIG_fail;
13968 swig_obj[0] = args;
13969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13970 if (!SWIG_IsOK(res1)) {
13971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13972 }
13973 arg1 = reinterpret_cast< wxLocale * >(argp1);
13974 {
13975 PyThreadState* __tstate = wxPyBeginAllowThreads();
13976 {
13977 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13978 result = (wxString *) &_result_ref;
13979 }
13980 wxPyEndAllowThreads(__tstate);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 }
13983 {
13984 #if wxUSE_UNICODE
13985 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13986 #else
13987 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13988 #endif
13989 }
13990 return resultobj;
13991 fail:
13992 return NULL;
13993 }
13994
13995
13996 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13997 PyObject *obj;
13998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13999 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14000 return SWIG_Py_Void();
14001 }
14002
14003 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14004 return SWIG_Python_InitShadowInstance(args);
14005 }
14006
14007 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14008 PyObject *resultobj = 0;
14009 wxLocale *result = 0 ;
14010
14011 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = (wxLocale *)wxGetLocale();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14019 return resultobj;
14020 fail:
14021 return NULL;
14022 }
14023
14024
14025 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14026 PyObject *resultobj = 0;
14027 wxString *arg1 = 0 ;
14028 wxString result;
14029 bool temp1 = false ;
14030
14031 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14032 {
14033 arg1 = wxString_in_helper(swig_obj[0]);
14034 if (arg1 == NULL) SWIG_fail;
14035 temp1 = true;
14036 }
14037 {
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 result = wxGetTranslation((wxString const &)*arg1);
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 {
14044 #if wxUSE_UNICODE
14045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14046 #else
14047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14048 #endif
14049 }
14050 {
14051 if (temp1)
14052 delete arg1;
14053 }
14054 return resultobj;
14055 fail:
14056 {
14057 if (temp1)
14058 delete arg1;
14059 }
14060 return NULL;
14061 }
14062
14063
14064 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14065 PyObject *resultobj = 0;
14066 wxString *arg1 = 0 ;
14067 wxString *arg2 = 0 ;
14068 size_t arg3 ;
14069 wxString result;
14070 bool temp1 = false ;
14071 bool temp2 = false ;
14072 size_t val3 ;
14073 int ecode3 = 0 ;
14074
14075 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14076 {
14077 arg1 = wxString_in_helper(swig_obj[0]);
14078 if (arg1 == NULL) SWIG_fail;
14079 temp1 = true;
14080 }
14081 {
14082 arg2 = wxString_in_helper(swig_obj[1]);
14083 if (arg2 == NULL) SWIG_fail;
14084 temp2 = true;
14085 }
14086 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14087 if (!SWIG_IsOK(ecode3)) {
14088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14089 }
14090 arg3 = static_cast< size_t >(val3);
14091 {
14092 PyThreadState* __tstate = wxPyBeginAllowThreads();
14093 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 {
14098 #if wxUSE_UNICODE
14099 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14100 #else
14101 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14102 #endif
14103 }
14104 {
14105 if (temp1)
14106 delete arg1;
14107 }
14108 {
14109 if (temp2)
14110 delete arg2;
14111 }
14112 return resultobj;
14113 fail:
14114 {
14115 if (temp1)
14116 delete arg1;
14117 }
14118 {
14119 if (temp2)
14120 delete arg2;
14121 }
14122 return NULL;
14123 }
14124
14125
14126 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14127 int argc;
14128 PyObject *argv[4];
14129
14130 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14131 --argc;
14132 if (argc == 1) {
14133 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14134 }
14135 if (argc == 3) {
14136 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14137 }
14138
14139 fail:
14140 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14141 return NULL;
14142 }
14143
14144
14145 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14146 PyObject *resultobj = 0;
14147 wxEncodingConverter *result = 0 ;
14148
14149 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14150 {
14151 PyThreadState* __tstate = wxPyBeginAllowThreads();
14152 result = (wxEncodingConverter *)new wxEncodingConverter();
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14157 return resultobj;
14158 fail:
14159 return NULL;
14160 }
14161
14162
14163 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14164 PyObject *resultobj = 0;
14165 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14166 void *argp1 = 0 ;
14167 int res1 = 0 ;
14168 PyObject *swig_obj[1] ;
14169
14170 if (!args) SWIG_fail;
14171 swig_obj[0] = args;
14172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14173 if (!SWIG_IsOK(res1)) {
14174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14175 }
14176 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14177 {
14178 PyThreadState* __tstate = wxPyBeginAllowThreads();
14179 delete arg1;
14180
14181 wxPyEndAllowThreads(__tstate);
14182 if (PyErr_Occurred()) SWIG_fail;
14183 }
14184 resultobj = SWIG_Py_Void();
14185 return resultobj;
14186 fail:
14187 return NULL;
14188 }
14189
14190
14191 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj = 0;
14193 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14194 wxFontEncoding arg2 ;
14195 wxFontEncoding arg3 ;
14196 int arg4 = (int) wxCONVERT_STRICT ;
14197 bool result;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 int val2 ;
14201 int ecode2 = 0 ;
14202 int val3 ;
14203 int ecode3 = 0 ;
14204 int val4 ;
14205 int ecode4 = 0 ;
14206 PyObject * obj0 = 0 ;
14207 PyObject * obj1 = 0 ;
14208 PyObject * obj2 = 0 ;
14209 PyObject * obj3 = 0 ;
14210 char * kwnames[] = {
14211 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14212 };
14213
14214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14216 if (!SWIG_IsOK(res1)) {
14217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14218 }
14219 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14220 ecode2 = SWIG_AsVal_int(obj1, &val2);
14221 if (!SWIG_IsOK(ecode2)) {
14222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14223 }
14224 arg2 = static_cast< wxFontEncoding >(val2);
14225 ecode3 = SWIG_AsVal_int(obj2, &val3);
14226 if (!SWIG_IsOK(ecode3)) {
14227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14228 }
14229 arg3 = static_cast< wxFontEncoding >(val3);
14230 if (obj3) {
14231 ecode4 = SWIG_AsVal_int(obj3, &val4);
14232 if (!SWIG_IsOK(ecode4)) {
14233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14234 }
14235 arg4 = static_cast< int >(val4);
14236 }
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 {
14244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14245 }
14246 return resultobj;
14247 fail:
14248 return NULL;
14249 }
14250
14251
14252 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14253 PyObject *resultobj = 0;
14254 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14255 wxString *arg2 = 0 ;
14256 wxString result;
14257 void *argp1 = 0 ;
14258 int res1 = 0 ;
14259 bool temp2 = false ;
14260 PyObject * obj0 = 0 ;
14261 PyObject * obj1 = 0 ;
14262 char * kwnames[] = {
14263 (char *) "self",(char *) "input", NULL
14264 };
14265
14266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14268 if (!SWIG_IsOK(res1)) {
14269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14270 }
14271 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14272 {
14273 arg2 = wxString_in_helper(obj1);
14274 if (arg2 == NULL) SWIG_fail;
14275 temp2 = true;
14276 }
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = (arg1)->Convert((wxString const &)*arg2);
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 {
14284 #if wxUSE_UNICODE
14285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14286 #else
14287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14288 #endif
14289 }
14290 {
14291 if (temp2)
14292 delete arg2;
14293 }
14294 return resultobj;
14295 fail:
14296 {
14297 if (temp2)
14298 delete arg2;
14299 }
14300 return NULL;
14301 }
14302
14303
14304 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj = 0;
14306 wxFontEncoding arg1 ;
14307 int arg2 = (int) wxPLATFORM_CURRENT ;
14308 wxFontEncodingArray result;
14309 int val1 ;
14310 int ecode1 = 0 ;
14311 int val2 ;
14312 int ecode2 = 0 ;
14313 PyObject * obj0 = 0 ;
14314 PyObject * obj1 = 0 ;
14315 char * kwnames[] = {
14316 (char *) "enc",(char *) "platform", NULL
14317 };
14318
14319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14320 ecode1 = SWIG_AsVal_int(obj0, &val1);
14321 if (!SWIG_IsOK(ecode1)) {
14322 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14323 }
14324 arg1 = static_cast< wxFontEncoding >(val1);
14325 if (obj1) {
14326 ecode2 = SWIG_AsVal_int(obj1, &val2);
14327 if (!SWIG_IsOK(ecode2)) {
14328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14329 }
14330 arg2 = static_cast< int >(val2);
14331 }
14332 {
14333 PyThreadState* __tstate = wxPyBeginAllowThreads();
14334 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 {
14339 resultobj = PyList_New(0);
14340 for (size_t i=0; i < (&result)->GetCount(); i++) {
14341 PyObject* number = PyInt_FromLong((&result)->Item(i));
14342 PyList_Append(resultobj, number);
14343 Py_DECREF(number);
14344 }
14345 }
14346 return resultobj;
14347 fail:
14348 return NULL;
14349 }
14350
14351
14352 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14353 PyObject *resultobj = 0;
14354 wxFontEncoding arg1 ;
14355 wxFontEncodingArray result;
14356 int val1 ;
14357 int ecode1 = 0 ;
14358 PyObject * obj0 = 0 ;
14359 char * kwnames[] = {
14360 (char *) "enc", NULL
14361 };
14362
14363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14364 ecode1 = SWIG_AsVal_int(obj0, &val1);
14365 if (!SWIG_IsOK(ecode1)) {
14366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14367 }
14368 arg1 = static_cast< wxFontEncoding >(val1);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = wxEncodingConverter::GetAllEquivalents(arg1);
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 {
14376 resultobj = PyList_New(0);
14377 for (size_t i=0; i < (&result)->GetCount(); i++) {
14378 PyObject* number = PyInt_FromLong((&result)->Item(i));
14379 PyList_Append(resultobj, number);
14380 Py_DECREF(number);
14381 }
14382 }
14383 return resultobj;
14384 fail:
14385 return NULL;
14386 }
14387
14388
14389 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14390 PyObject *resultobj = 0;
14391 wxFontEncoding arg1 ;
14392 wxFontEncoding arg2 ;
14393 bool result;
14394 int val1 ;
14395 int ecode1 = 0 ;
14396 int val2 ;
14397 int ecode2 = 0 ;
14398 PyObject * obj0 = 0 ;
14399 PyObject * obj1 = 0 ;
14400 char * kwnames[] = {
14401 (char *) "encIn",(char *) "encOut", NULL
14402 };
14403
14404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14405 ecode1 = SWIG_AsVal_int(obj0, &val1);
14406 if (!SWIG_IsOK(ecode1)) {
14407 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14408 }
14409 arg1 = static_cast< wxFontEncoding >(val1);
14410 ecode2 = SWIG_AsVal_int(obj1, &val2);
14411 if (!SWIG_IsOK(ecode2)) {
14412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14413 }
14414 arg2 = static_cast< wxFontEncoding >(val2);
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 {
14422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14423 }
14424 return resultobj;
14425 fail:
14426 return NULL;
14427 }
14428
14429
14430 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14431 PyObject *obj;
14432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14433 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14434 return SWIG_Py_Void();
14435 }
14436
14437 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14438 return SWIG_Python_InitShadowInstance(args);
14439 }
14440
14441 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14442 PyObject *resultobj = 0;
14443 wxDC *arg1 = (wxDC *) 0 ;
14444 void *argp1 = 0 ;
14445 int res1 = 0 ;
14446 PyObject *swig_obj[1] ;
14447
14448 if (!args) SWIG_fail;
14449 swig_obj[0] = args;
14450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14451 if (!SWIG_IsOK(res1)) {
14452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14453 }
14454 arg1 = reinterpret_cast< wxDC * >(argp1);
14455 {
14456 PyThreadState* __tstate = wxPyBeginAllowThreads();
14457 delete arg1;
14458
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_Py_Void();
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxDC *arg1 = (wxDC *) 0 ;
14472 int arg2 ;
14473 int arg3 ;
14474 wxColour *arg4 = 0 ;
14475 int arg5 = (int) wxFLOOD_SURFACE ;
14476 bool result;
14477 void *argp1 = 0 ;
14478 int res1 = 0 ;
14479 int val2 ;
14480 int ecode2 = 0 ;
14481 int val3 ;
14482 int ecode3 = 0 ;
14483 wxColour temp4 ;
14484 int val5 ;
14485 int ecode5 = 0 ;
14486 PyObject * obj0 = 0 ;
14487 PyObject * obj1 = 0 ;
14488 PyObject * obj2 = 0 ;
14489 PyObject * obj3 = 0 ;
14490 PyObject * obj4 = 0 ;
14491 char * kwnames[] = {
14492 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14493 };
14494
14495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14497 if (!SWIG_IsOK(res1)) {
14498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14499 }
14500 arg1 = reinterpret_cast< wxDC * >(argp1);
14501 ecode2 = SWIG_AsVal_int(obj1, &val2);
14502 if (!SWIG_IsOK(ecode2)) {
14503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14504 }
14505 arg2 = static_cast< int >(val2);
14506 ecode3 = SWIG_AsVal_int(obj2, &val3);
14507 if (!SWIG_IsOK(ecode3)) {
14508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14509 }
14510 arg3 = static_cast< int >(val3);
14511 {
14512 arg4 = &temp4;
14513 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14514 }
14515 if (obj4) {
14516 ecode5 = SWIG_AsVal_int(obj4, &val5);
14517 if (!SWIG_IsOK(ecode5)) {
14518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14519 }
14520 arg5 = static_cast< int >(val5);
14521 }
14522 {
14523 PyThreadState* __tstate = wxPyBeginAllowThreads();
14524 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 {
14529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14530 }
14531 return resultobj;
14532 fail:
14533 return NULL;
14534 }
14535
14536
14537 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14538 PyObject *resultobj = 0;
14539 wxDC *arg1 = (wxDC *) 0 ;
14540 wxPoint *arg2 = 0 ;
14541 wxColour *arg3 = 0 ;
14542 int arg4 = (int) wxFLOOD_SURFACE ;
14543 bool result;
14544 void *argp1 = 0 ;
14545 int res1 = 0 ;
14546 wxPoint temp2 ;
14547 wxColour temp3 ;
14548 int val4 ;
14549 int ecode4 = 0 ;
14550 PyObject * obj0 = 0 ;
14551 PyObject * obj1 = 0 ;
14552 PyObject * obj2 = 0 ;
14553 PyObject * obj3 = 0 ;
14554 char * kwnames[] = {
14555 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14556 };
14557
14558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14562 }
14563 arg1 = reinterpret_cast< wxDC * >(argp1);
14564 {
14565 arg2 = &temp2;
14566 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14567 }
14568 {
14569 arg3 = &temp3;
14570 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14571 }
14572 if (obj3) {
14573 ecode4 = SWIG_AsVal_int(obj3, &val4);
14574 if (!SWIG_IsOK(ecode4)) {
14575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14576 }
14577 arg4 = static_cast< int >(val4);
14578 }
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14582 wxPyEndAllowThreads(__tstate);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 {
14586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14587 }
14588 return resultobj;
14589 fail:
14590 return NULL;
14591 }
14592
14593
14594 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj = 0;
14596 wxDC *arg1 = (wxDC *) 0 ;
14597 wxRect *arg2 = 0 ;
14598 wxColour *arg3 = 0 ;
14599 wxColour *arg4 = 0 ;
14600 wxPoint *arg5 = 0 ;
14601 void *argp1 = 0 ;
14602 int res1 = 0 ;
14603 wxRect temp2 ;
14604 wxColour temp3 ;
14605 wxColour temp4 ;
14606 wxPoint temp5 ;
14607 PyObject * obj0 = 0 ;
14608 PyObject * obj1 = 0 ;
14609 PyObject * obj2 = 0 ;
14610 PyObject * obj3 = 0 ;
14611 PyObject * obj4 = 0 ;
14612 char * kwnames[] = {
14613 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14614 };
14615
14616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14618 if (!SWIG_IsOK(res1)) {
14619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14620 }
14621 arg1 = reinterpret_cast< wxDC * >(argp1);
14622 {
14623 arg2 = &temp2;
14624 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14625 }
14626 {
14627 arg3 = &temp3;
14628 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14629 }
14630 {
14631 arg4 = &temp4;
14632 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14633 }
14634 {
14635 arg5 = &temp5;
14636 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14637 }
14638 {
14639 PyThreadState* __tstate = wxPyBeginAllowThreads();
14640 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14641 wxPyEndAllowThreads(__tstate);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 }
14644 resultobj = SWIG_Py_Void();
14645 return resultobj;
14646 fail:
14647 return NULL;
14648 }
14649
14650
14651 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14652 PyObject *resultobj = 0;
14653 wxDC *arg1 = (wxDC *) 0 ;
14654 wxRect *arg2 = 0 ;
14655 wxColour *arg3 = 0 ;
14656 wxColour *arg4 = 0 ;
14657 wxDirection arg5 = (wxDirection) wxEAST ;
14658 void *argp1 = 0 ;
14659 int res1 = 0 ;
14660 wxRect temp2 ;
14661 wxColour temp3 ;
14662 wxColour temp4 ;
14663 int val5 ;
14664 int ecode5 = 0 ;
14665 PyObject * obj0 = 0 ;
14666 PyObject * obj1 = 0 ;
14667 PyObject * obj2 = 0 ;
14668 PyObject * obj3 = 0 ;
14669 PyObject * obj4 = 0 ;
14670 char * kwnames[] = {
14671 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14672 };
14673
14674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14676 if (!SWIG_IsOK(res1)) {
14677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14678 }
14679 arg1 = reinterpret_cast< wxDC * >(argp1);
14680 {
14681 arg2 = &temp2;
14682 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14683 }
14684 {
14685 arg3 = &temp3;
14686 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14687 }
14688 {
14689 arg4 = &temp4;
14690 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14691 }
14692 if (obj4) {
14693 ecode5 = SWIG_AsVal_int(obj4, &val5);
14694 if (!SWIG_IsOK(ecode5)) {
14695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14696 }
14697 arg5 = static_cast< wxDirection >(val5);
14698 }
14699 {
14700 PyThreadState* __tstate = wxPyBeginAllowThreads();
14701 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
14705 resultobj = SWIG_Py_Void();
14706 return resultobj;
14707 fail:
14708 return NULL;
14709 }
14710
14711
14712 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14713 PyObject *resultobj = 0;
14714 wxDC *arg1 = (wxDC *) 0 ;
14715 int arg2 ;
14716 int arg3 ;
14717 wxColour result;
14718 void *argp1 = 0 ;
14719 int res1 = 0 ;
14720 int val2 ;
14721 int ecode2 = 0 ;
14722 int val3 ;
14723 int ecode3 = 0 ;
14724 PyObject * obj0 = 0 ;
14725 PyObject * obj1 = 0 ;
14726 PyObject * obj2 = 0 ;
14727 char * kwnames[] = {
14728 (char *) "self",(char *) "x",(char *) "y", NULL
14729 };
14730
14731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14733 if (!SWIG_IsOK(res1)) {
14734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14735 }
14736 arg1 = reinterpret_cast< wxDC * >(argp1);
14737 ecode2 = SWIG_AsVal_int(obj1, &val2);
14738 if (!SWIG_IsOK(ecode2)) {
14739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14740 }
14741 arg2 = static_cast< int >(val2);
14742 ecode3 = SWIG_AsVal_int(obj2, &val3);
14743 if (!SWIG_IsOK(ecode3)) {
14744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14745 }
14746 arg3 = static_cast< int >(val3);
14747 {
14748 PyThreadState* __tstate = wxPyBeginAllowThreads();
14749 result = wxDC_GetPixel(arg1,arg2,arg3);
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14754 return resultobj;
14755 fail:
14756 return NULL;
14757 }
14758
14759
14760 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj = 0;
14762 wxDC *arg1 = (wxDC *) 0 ;
14763 wxPoint *arg2 = 0 ;
14764 wxColour result;
14765 void *argp1 = 0 ;
14766 int res1 = 0 ;
14767 wxPoint temp2 ;
14768 PyObject * obj0 = 0 ;
14769 PyObject * obj1 = 0 ;
14770 char * kwnames[] = {
14771 (char *) "self",(char *) "pt", NULL
14772 };
14773
14774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14776 if (!SWIG_IsOK(res1)) {
14777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14778 }
14779 arg1 = reinterpret_cast< wxDC * >(argp1);
14780 {
14781 arg2 = &temp2;
14782 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14783 }
14784 {
14785 PyThreadState* __tstate = wxPyBeginAllowThreads();
14786 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14791 return resultobj;
14792 fail:
14793 return NULL;
14794 }
14795
14796
14797 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14798 PyObject *resultobj = 0;
14799 wxDC *arg1 = (wxDC *) 0 ;
14800 int arg2 ;
14801 int arg3 ;
14802 int arg4 ;
14803 int arg5 ;
14804 void *argp1 = 0 ;
14805 int res1 = 0 ;
14806 int val2 ;
14807 int ecode2 = 0 ;
14808 int val3 ;
14809 int ecode3 = 0 ;
14810 int val4 ;
14811 int ecode4 = 0 ;
14812 int val5 ;
14813 int ecode5 = 0 ;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 PyObject * obj2 = 0 ;
14817 PyObject * obj3 = 0 ;
14818 PyObject * obj4 = 0 ;
14819 char * kwnames[] = {
14820 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14821 };
14822
14823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14825 if (!SWIG_IsOK(res1)) {
14826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14827 }
14828 arg1 = reinterpret_cast< wxDC * >(argp1);
14829 ecode2 = SWIG_AsVal_int(obj1, &val2);
14830 if (!SWIG_IsOK(ecode2)) {
14831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14832 }
14833 arg2 = static_cast< int >(val2);
14834 ecode3 = SWIG_AsVal_int(obj2, &val3);
14835 if (!SWIG_IsOK(ecode3)) {
14836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14837 }
14838 arg3 = static_cast< int >(val3);
14839 ecode4 = SWIG_AsVal_int(obj3, &val4);
14840 if (!SWIG_IsOK(ecode4)) {
14841 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14842 }
14843 arg4 = static_cast< int >(val4);
14844 ecode5 = SWIG_AsVal_int(obj4, &val5);
14845 if (!SWIG_IsOK(ecode5)) {
14846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14847 }
14848 arg5 = static_cast< int >(val5);
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_Py_Void();
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14863 PyObject *resultobj = 0;
14864 wxDC *arg1 = (wxDC *) 0 ;
14865 wxPoint *arg2 = 0 ;
14866 wxPoint *arg3 = 0 ;
14867 void *argp1 = 0 ;
14868 int res1 = 0 ;
14869 wxPoint temp2 ;
14870 wxPoint temp3 ;
14871 PyObject * obj0 = 0 ;
14872 PyObject * obj1 = 0 ;
14873 PyObject * obj2 = 0 ;
14874 char * kwnames[] = {
14875 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14876 };
14877
14878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14880 if (!SWIG_IsOK(res1)) {
14881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14882 }
14883 arg1 = reinterpret_cast< wxDC * >(argp1);
14884 {
14885 arg2 = &temp2;
14886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14887 }
14888 {
14889 arg3 = &temp3;
14890 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14891 }
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_Py_Void();
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj = 0;
14907 wxDC *arg1 = (wxDC *) 0 ;
14908 int arg2 ;
14909 int arg3 ;
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 int val2 ;
14913 int ecode2 = 0 ;
14914 int val3 ;
14915 int ecode3 = 0 ;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 PyObject * obj2 = 0 ;
14919 char * kwnames[] = {
14920 (char *) "self",(char *) "x",(char *) "y", NULL
14921 };
14922
14923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14927 }
14928 arg1 = reinterpret_cast< wxDC * >(argp1);
14929 ecode2 = SWIG_AsVal_int(obj1, &val2);
14930 if (!SWIG_IsOK(ecode2)) {
14931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14932 }
14933 arg2 = static_cast< int >(val2);
14934 ecode3 = SWIG_AsVal_int(obj2, &val3);
14935 if (!SWIG_IsOK(ecode3)) {
14936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14937 }
14938 arg3 = static_cast< int >(val3);
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 (arg1)->CrossHair(arg2,arg3);
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_Py_Void();
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14953 PyObject *resultobj = 0;
14954 wxDC *arg1 = (wxDC *) 0 ;
14955 wxPoint *arg2 = 0 ;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 wxPoint temp2 ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "pt", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14969 }
14970 arg1 = reinterpret_cast< wxDC * >(argp1);
14971 {
14972 arg2 = &temp2;
14973 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14974 }
14975 {
14976 PyThreadState* __tstate = wxPyBeginAllowThreads();
14977 (arg1)->CrossHair((wxPoint const &)*arg2);
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 resultobj = SWIG_Py_Void();
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj = 0;
14990 wxDC *arg1 = (wxDC *) 0 ;
14991 int arg2 ;
14992 int arg3 ;
14993 int arg4 ;
14994 int arg5 ;
14995 int arg6 ;
14996 int arg7 ;
14997 void *argp1 = 0 ;
14998 int res1 = 0 ;
14999 int val2 ;
15000 int ecode2 = 0 ;
15001 int val3 ;
15002 int ecode3 = 0 ;
15003 int val4 ;
15004 int ecode4 = 0 ;
15005 int val5 ;
15006 int ecode5 = 0 ;
15007 int val6 ;
15008 int ecode6 = 0 ;
15009 int val7 ;
15010 int ecode7 = 0 ;
15011 PyObject * obj0 = 0 ;
15012 PyObject * obj1 = 0 ;
15013 PyObject * obj2 = 0 ;
15014 PyObject * obj3 = 0 ;
15015 PyObject * obj4 = 0 ;
15016 PyObject * obj5 = 0 ;
15017 PyObject * obj6 = 0 ;
15018 char * kwnames[] = {
15019 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15020 };
15021
15022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15024 if (!SWIG_IsOK(res1)) {
15025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15026 }
15027 arg1 = reinterpret_cast< wxDC * >(argp1);
15028 ecode2 = SWIG_AsVal_int(obj1, &val2);
15029 if (!SWIG_IsOK(ecode2)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15031 }
15032 arg2 = static_cast< int >(val2);
15033 ecode3 = SWIG_AsVal_int(obj2, &val3);
15034 if (!SWIG_IsOK(ecode3)) {
15035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15036 }
15037 arg3 = static_cast< int >(val3);
15038 ecode4 = SWIG_AsVal_int(obj3, &val4);
15039 if (!SWIG_IsOK(ecode4)) {
15040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15041 }
15042 arg4 = static_cast< int >(val4);
15043 ecode5 = SWIG_AsVal_int(obj4, &val5);
15044 if (!SWIG_IsOK(ecode5)) {
15045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15046 }
15047 arg5 = static_cast< int >(val5);
15048 ecode6 = SWIG_AsVal_int(obj5, &val6);
15049 if (!SWIG_IsOK(ecode6)) {
15050 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15051 }
15052 arg6 = static_cast< int >(val6);
15053 ecode7 = SWIG_AsVal_int(obj6, &val7);
15054 if (!SWIG_IsOK(ecode7)) {
15055 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15056 }
15057 arg7 = static_cast< int >(val7);
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_Py_Void();
15065 return resultobj;
15066 fail:
15067 return NULL;
15068 }
15069
15070
15071 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15072 PyObject *resultobj = 0;
15073 wxDC *arg1 = (wxDC *) 0 ;
15074 wxPoint *arg2 = 0 ;
15075 wxPoint *arg3 = 0 ;
15076 wxPoint *arg4 = 0 ;
15077 void *argp1 = 0 ;
15078 int res1 = 0 ;
15079 wxPoint temp2 ;
15080 wxPoint temp3 ;
15081 wxPoint temp4 ;
15082 PyObject * obj0 = 0 ;
15083 PyObject * obj1 = 0 ;
15084 PyObject * obj2 = 0 ;
15085 PyObject * obj3 = 0 ;
15086 char * kwnames[] = {
15087 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15088 };
15089
15090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15092 if (!SWIG_IsOK(res1)) {
15093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15094 }
15095 arg1 = reinterpret_cast< wxDC * >(argp1);
15096 {
15097 arg2 = &temp2;
15098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15099 }
15100 {
15101 arg3 = &temp3;
15102 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15103 }
15104 {
15105 arg4 = &temp4;
15106 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15107 }
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 resultobj = SWIG_Py_Void();
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj = 0;
15123 wxDC *arg1 = (wxDC *) 0 ;
15124 int arg2 ;
15125 int arg3 ;
15126 int arg4 ;
15127 int arg5 ;
15128 void *argp1 = 0 ;
15129 int res1 = 0 ;
15130 int val2 ;
15131 int ecode2 = 0 ;
15132 int val3 ;
15133 int ecode3 = 0 ;
15134 int val4 ;
15135 int ecode4 = 0 ;
15136 int val5 ;
15137 int ecode5 = 0 ;
15138 PyObject * obj0 = 0 ;
15139 PyObject * obj1 = 0 ;
15140 PyObject * obj2 = 0 ;
15141 PyObject * obj3 = 0 ;
15142 PyObject * obj4 = 0 ;
15143 char * kwnames[] = {
15144 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15145 };
15146
15147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15149 if (!SWIG_IsOK(res1)) {
15150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15151 }
15152 arg1 = reinterpret_cast< wxDC * >(argp1);
15153 ecode2 = SWIG_AsVal_int(obj1, &val2);
15154 if (!SWIG_IsOK(ecode2)) {
15155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15156 }
15157 arg2 = static_cast< int >(val2);
15158 ecode3 = SWIG_AsVal_int(obj2, &val3);
15159 if (!SWIG_IsOK(ecode3)) {
15160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15161 }
15162 arg3 = static_cast< int >(val3);
15163 ecode4 = SWIG_AsVal_int(obj3, &val4);
15164 if (!SWIG_IsOK(ecode4)) {
15165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15166 }
15167 arg4 = static_cast< int >(val4);
15168 ecode5 = SWIG_AsVal_int(obj4, &val5);
15169 if (!SWIG_IsOK(ecode5)) {
15170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15171 }
15172 arg5 = static_cast< int >(val5);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_Py_Void();
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj = 0;
15188 wxDC *arg1 = (wxDC *) 0 ;
15189 wxRect *arg2 = 0 ;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 wxRect temp2 ;
15193 PyObject * obj0 = 0 ;
15194 PyObject * obj1 = 0 ;
15195 char * kwnames[] = {
15196 (char *) "self",(char *) "rect", NULL
15197 };
15198
15199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15201 if (!SWIG_IsOK(res1)) {
15202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15203 }
15204 arg1 = reinterpret_cast< wxDC * >(argp1);
15205 {
15206 arg2 = &temp2;
15207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15208 }
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15212 wxPyEndAllowThreads(__tstate);
15213 if (PyErr_Occurred()) SWIG_fail;
15214 }
15215 resultobj = SWIG_Py_Void();
15216 return resultobj;
15217 fail:
15218 return NULL;
15219 }
15220
15221
15222 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj = 0;
15224 wxDC *arg1 = (wxDC *) 0 ;
15225 int arg2 ;
15226 int arg3 ;
15227 int arg4 ;
15228 int arg5 ;
15229 double arg6 ;
15230 double arg7 ;
15231 void *argp1 = 0 ;
15232 int res1 = 0 ;
15233 int val2 ;
15234 int ecode2 = 0 ;
15235 int val3 ;
15236 int ecode3 = 0 ;
15237 int val4 ;
15238 int ecode4 = 0 ;
15239 int val5 ;
15240 int ecode5 = 0 ;
15241 double val6 ;
15242 int ecode6 = 0 ;
15243 double val7 ;
15244 int ecode7 = 0 ;
15245 PyObject * obj0 = 0 ;
15246 PyObject * obj1 = 0 ;
15247 PyObject * obj2 = 0 ;
15248 PyObject * obj3 = 0 ;
15249 PyObject * obj4 = 0 ;
15250 PyObject * obj5 = 0 ;
15251 PyObject * obj6 = 0 ;
15252 char * kwnames[] = {
15253 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15254 };
15255
15256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15258 if (!SWIG_IsOK(res1)) {
15259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15260 }
15261 arg1 = reinterpret_cast< wxDC * >(argp1);
15262 ecode2 = SWIG_AsVal_int(obj1, &val2);
15263 if (!SWIG_IsOK(ecode2)) {
15264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15265 }
15266 arg2 = static_cast< int >(val2);
15267 ecode3 = SWIG_AsVal_int(obj2, &val3);
15268 if (!SWIG_IsOK(ecode3)) {
15269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15270 }
15271 arg3 = static_cast< int >(val3);
15272 ecode4 = SWIG_AsVal_int(obj3, &val4);
15273 if (!SWIG_IsOK(ecode4)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15275 }
15276 arg4 = static_cast< int >(val4);
15277 ecode5 = SWIG_AsVal_int(obj4, &val5);
15278 if (!SWIG_IsOK(ecode5)) {
15279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15280 }
15281 arg5 = static_cast< int >(val5);
15282 ecode6 = SWIG_AsVal_double(obj5, &val6);
15283 if (!SWIG_IsOK(ecode6)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15285 }
15286 arg6 = static_cast< double >(val6);
15287 ecode7 = SWIG_AsVal_double(obj6, &val7);
15288 if (!SWIG_IsOK(ecode7)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15290 }
15291 arg7 = static_cast< double >(val7);
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_Py_Void();
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj = 0;
15307 wxDC *arg1 = (wxDC *) 0 ;
15308 wxPoint *arg2 = 0 ;
15309 wxSize *arg3 = 0 ;
15310 double arg4 ;
15311 double arg5 ;
15312 void *argp1 = 0 ;
15313 int res1 = 0 ;
15314 wxPoint temp2 ;
15315 wxSize temp3 ;
15316 double val4 ;
15317 int ecode4 = 0 ;
15318 double val5 ;
15319 int ecode5 = 0 ;
15320 PyObject * obj0 = 0 ;
15321 PyObject * obj1 = 0 ;
15322 PyObject * obj2 = 0 ;
15323 PyObject * obj3 = 0 ;
15324 PyObject * obj4 = 0 ;
15325 char * kwnames[] = {
15326 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15327 };
15328
15329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15331 if (!SWIG_IsOK(res1)) {
15332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15333 }
15334 arg1 = reinterpret_cast< wxDC * >(argp1);
15335 {
15336 arg2 = &temp2;
15337 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15338 }
15339 {
15340 arg3 = &temp3;
15341 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15342 }
15343 ecode4 = SWIG_AsVal_double(obj3, &val4);
15344 if (!SWIG_IsOK(ecode4)) {
15345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15346 }
15347 arg4 = static_cast< double >(val4);
15348 ecode5 = SWIG_AsVal_double(obj4, &val5);
15349 if (!SWIG_IsOK(ecode5)) {
15350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15351 }
15352 arg5 = static_cast< double >(val5);
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
15355 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 resultobj = SWIG_Py_Void();
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj = 0;
15368 wxDC *arg1 = (wxDC *) 0 ;
15369 int arg2 ;
15370 int arg3 ;
15371 void *argp1 = 0 ;
15372 int res1 = 0 ;
15373 int val2 ;
15374 int ecode2 = 0 ;
15375 int val3 ;
15376 int ecode3 = 0 ;
15377 PyObject * obj0 = 0 ;
15378 PyObject * obj1 = 0 ;
15379 PyObject * obj2 = 0 ;
15380 char * kwnames[] = {
15381 (char *) "self",(char *) "x",(char *) "y", NULL
15382 };
15383
15384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15386 if (!SWIG_IsOK(res1)) {
15387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15388 }
15389 arg1 = reinterpret_cast< wxDC * >(argp1);
15390 ecode2 = SWIG_AsVal_int(obj1, &val2);
15391 if (!SWIG_IsOK(ecode2)) {
15392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15393 }
15394 arg2 = static_cast< int >(val2);
15395 ecode3 = SWIG_AsVal_int(obj2, &val3);
15396 if (!SWIG_IsOK(ecode3)) {
15397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15398 }
15399 arg3 = static_cast< int >(val3);
15400 {
15401 PyThreadState* __tstate = wxPyBeginAllowThreads();
15402 (arg1)->DrawPoint(arg2,arg3);
15403 wxPyEndAllowThreads(__tstate);
15404 if (PyErr_Occurred()) SWIG_fail;
15405 }
15406 resultobj = SWIG_Py_Void();
15407 return resultobj;
15408 fail:
15409 return NULL;
15410 }
15411
15412
15413 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15414 PyObject *resultobj = 0;
15415 wxDC *arg1 = (wxDC *) 0 ;
15416 wxPoint *arg2 = 0 ;
15417 void *argp1 = 0 ;
15418 int res1 = 0 ;
15419 wxPoint temp2 ;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 char * kwnames[] = {
15423 (char *) "self",(char *) "pt", NULL
15424 };
15425
15426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15428 if (!SWIG_IsOK(res1)) {
15429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15430 }
15431 arg1 = reinterpret_cast< wxDC * >(argp1);
15432 {
15433 arg2 = &temp2;
15434 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15435 }
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 (arg1)->DrawPoint((wxPoint const &)*arg2);
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 resultobj = SWIG_Py_Void();
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj = 0;
15451 wxDC *arg1 = (wxDC *) 0 ;
15452 int arg2 ;
15453 int arg3 ;
15454 int arg4 ;
15455 int arg5 ;
15456 void *argp1 = 0 ;
15457 int res1 = 0 ;
15458 int val2 ;
15459 int ecode2 = 0 ;
15460 int val3 ;
15461 int ecode3 = 0 ;
15462 int val4 ;
15463 int ecode4 = 0 ;
15464 int val5 ;
15465 int ecode5 = 0 ;
15466 PyObject * obj0 = 0 ;
15467 PyObject * obj1 = 0 ;
15468 PyObject * obj2 = 0 ;
15469 PyObject * obj3 = 0 ;
15470 PyObject * obj4 = 0 ;
15471 char * kwnames[] = {
15472 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15473 };
15474
15475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15477 if (!SWIG_IsOK(res1)) {
15478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15479 }
15480 arg1 = reinterpret_cast< wxDC * >(argp1);
15481 ecode2 = SWIG_AsVal_int(obj1, &val2);
15482 if (!SWIG_IsOK(ecode2)) {
15483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15484 }
15485 arg2 = static_cast< int >(val2);
15486 ecode3 = SWIG_AsVal_int(obj2, &val3);
15487 if (!SWIG_IsOK(ecode3)) {
15488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15489 }
15490 arg3 = static_cast< int >(val3);
15491 ecode4 = SWIG_AsVal_int(obj3, &val4);
15492 if (!SWIG_IsOK(ecode4)) {
15493 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15494 }
15495 arg4 = static_cast< int >(val4);
15496 ecode5 = SWIG_AsVal_int(obj4, &val5);
15497 if (!SWIG_IsOK(ecode5)) {
15498 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15499 }
15500 arg5 = static_cast< int >(val5);
15501 {
15502 PyThreadState* __tstate = wxPyBeginAllowThreads();
15503 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_Py_Void();
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj = 0;
15516 wxDC *arg1 = (wxDC *) 0 ;
15517 wxRect *arg2 = 0 ;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 wxRect temp2 ;
15521 PyObject * obj0 = 0 ;
15522 PyObject * obj1 = 0 ;
15523 char * kwnames[] = {
15524 (char *) "self",(char *) "rect", NULL
15525 };
15526
15527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15529 if (!SWIG_IsOK(res1)) {
15530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15531 }
15532 arg1 = reinterpret_cast< wxDC * >(argp1);
15533 {
15534 arg2 = &temp2;
15535 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15536 }
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 (arg1)->DrawRectangle((wxRect const &)*arg2);
15540 wxPyEndAllowThreads(__tstate);
15541 if (PyErr_Occurred()) SWIG_fail;
15542 }
15543 resultobj = SWIG_Py_Void();
15544 return resultobj;
15545 fail:
15546 return NULL;
15547 }
15548
15549
15550 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15551 PyObject *resultobj = 0;
15552 wxDC *arg1 = (wxDC *) 0 ;
15553 wxPoint *arg2 = 0 ;
15554 wxSize *arg3 = 0 ;
15555 void *argp1 = 0 ;
15556 int res1 = 0 ;
15557 wxPoint temp2 ;
15558 wxSize temp3 ;
15559 PyObject * obj0 = 0 ;
15560 PyObject * obj1 = 0 ;
15561 PyObject * obj2 = 0 ;
15562 char * kwnames[] = {
15563 (char *) "self",(char *) "pt",(char *) "sz", NULL
15564 };
15565
15566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15568 if (!SWIG_IsOK(res1)) {
15569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15570 }
15571 arg1 = reinterpret_cast< wxDC * >(argp1);
15572 {
15573 arg2 = &temp2;
15574 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15575 }
15576 {
15577 arg3 = &temp3;
15578 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15579 }
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 resultobj = SWIG_Py_Void();
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15594 PyObject *resultobj = 0;
15595 wxDC *arg1 = (wxDC *) 0 ;
15596 int arg2 ;
15597 int arg3 ;
15598 int arg4 ;
15599 int arg5 ;
15600 double arg6 ;
15601 void *argp1 = 0 ;
15602 int res1 = 0 ;
15603 int val2 ;
15604 int ecode2 = 0 ;
15605 int val3 ;
15606 int ecode3 = 0 ;
15607 int val4 ;
15608 int ecode4 = 0 ;
15609 int val5 ;
15610 int ecode5 = 0 ;
15611 double val6 ;
15612 int ecode6 = 0 ;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 PyObject * obj2 = 0 ;
15616 PyObject * obj3 = 0 ;
15617 PyObject * obj4 = 0 ;
15618 PyObject * obj5 = 0 ;
15619 char * kwnames[] = {
15620 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15621 };
15622
15623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15625 if (!SWIG_IsOK(res1)) {
15626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15627 }
15628 arg1 = reinterpret_cast< wxDC * >(argp1);
15629 ecode2 = SWIG_AsVal_int(obj1, &val2);
15630 if (!SWIG_IsOK(ecode2)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15632 }
15633 arg2 = static_cast< int >(val2);
15634 ecode3 = SWIG_AsVal_int(obj2, &val3);
15635 if (!SWIG_IsOK(ecode3)) {
15636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15637 }
15638 arg3 = static_cast< int >(val3);
15639 ecode4 = SWIG_AsVal_int(obj3, &val4);
15640 if (!SWIG_IsOK(ecode4)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15642 }
15643 arg4 = static_cast< int >(val4);
15644 ecode5 = SWIG_AsVal_int(obj4, &val5);
15645 if (!SWIG_IsOK(ecode5)) {
15646 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15647 }
15648 arg5 = static_cast< int >(val5);
15649 ecode6 = SWIG_AsVal_double(obj5, &val6);
15650 if (!SWIG_IsOK(ecode6)) {
15651 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15652 }
15653 arg6 = static_cast< double >(val6);
15654 {
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 resultobj = SWIG_Py_Void();
15661 return resultobj;
15662 fail:
15663 return NULL;
15664 }
15665
15666
15667 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15668 PyObject *resultobj = 0;
15669 wxDC *arg1 = (wxDC *) 0 ;
15670 wxRect *arg2 = 0 ;
15671 double arg3 ;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 wxRect temp2 ;
15675 double val3 ;
15676 int ecode3 = 0 ;
15677 PyObject * obj0 = 0 ;
15678 PyObject * obj1 = 0 ;
15679 PyObject * obj2 = 0 ;
15680 char * kwnames[] = {
15681 (char *) "self",(char *) "r",(char *) "radius", NULL
15682 };
15683
15684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15686 if (!SWIG_IsOK(res1)) {
15687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15688 }
15689 arg1 = reinterpret_cast< wxDC * >(argp1);
15690 {
15691 arg2 = &temp2;
15692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15693 }
15694 ecode3 = SWIG_AsVal_double(obj2, &val3);
15695 if (!SWIG_IsOK(ecode3)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15697 }
15698 arg3 = static_cast< double >(val3);
15699 {
15700 PyThreadState* __tstate = wxPyBeginAllowThreads();
15701 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_Py_Void();
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj = 0;
15714 wxDC *arg1 = (wxDC *) 0 ;
15715 wxPoint *arg2 = 0 ;
15716 wxSize *arg3 = 0 ;
15717 double arg4 ;
15718 void *argp1 = 0 ;
15719 int res1 = 0 ;
15720 wxPoint temp2 ;
15721 wxSize temp3 ;
15722 double val4 ;
15723 int ecode4 = 0 ;
15724 PyObject * obj0 = 0 ;
15725 PyObject * obj1 = 0 ;
15726 PyObject * obj2 = 0 ;
15727 PyObject * obj3 = 0 ;
15728 char * kwnames[] = {
15729 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15730 };
15731
15732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15734 if (!SWIG_IsOK(res1)) {
15735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15736 }
15737 arg1 = reinterpret_cast< wxDC * >(argp1);
15738 {
15739 arg2 = &temp2;
15740 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15741 }
15742 {
15743 arg3 = &temp3;
15744 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15745 }
15746 ecode4 = SWIG_AsVal_double(obj3, &val4);
15747 if (!SWIG_IsOK(ecode4)) {
15748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15749 }
15750 arg4 = static_cast< double >(val4);
15751 {
15752 PyThreadState* __tstate = wxPyBeginAllowThreads();
15753 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_Py_Void();
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj = 0;
15766 wxDC *arg1 = (wxDC *) 0 ;
15767 int arg2 ;
15768 int arg3 ;
15769 int arg4 ;
15770 void *argp1 = 0 ;
15771 int res1 = 0 ;
15772 int val2 ;
15773 int ecode2 = 0 ;
15774 int val3 ;
15775 int ecode3 = 0 ;
15776 int val4 ;
15777 int ecode4 = 0 ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 PyObject * obj2 = 0 ;
15781 PyObject * obj3 = 0 ;
15782 char * kwnames[] = {
15783 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15784 };
15785
15786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15788 if (!SWIG_IsOK(res1)) {
15789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15790 }
15791 arg1 = reinterpret_cast< wxDC * >(argp1);
15792 ecode2 = SWIG_AsVal_int(obj1, &val2);
15793 if (!SWIG_IsOK(ecode2)) {
15794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15795 }
15796 arg2 = static_cast< int >(val2);
15797 ecode3 = SWIG_AsVal_int(obj2, &val3);
15798 if (!SWIG_IsOK(ecode3)) {
15799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15800 }
15801 arg3 = static_cast< int >(val3);
15802 ecode4 = SWIG_AsVal_int(obj3, &val4);
15803 if (!SWIG_IsOK(ecode4)) {
15804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15805 }
15806 arg4 = static_cast< int >(val4);
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 (arg1)->DrawCircle(arg2,arg3,arg4);
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15813 resultobj = SWIG_Py_Void();
15814 return resultobj;
15815 fail:
15816 return NULL;
15817 }
15818
15819
15820 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj = 0;
15822 wxDC *arg1 = (wxDC *) 0 ;
15823 wxPoint *arg2 = 0 ;
15824 int arg3 ;
15825 void *argp1 = 0 ;
15826 int res1 = 0 ;
15827 wxPoint temp2 ;
15828 int val3 ;
15829 int ecode3 = 0 ;
15830 PyObject * obj0 = 0 ;
15831 PyObject * obj1 = 0 ;
15832 PyObject * obj2 = 0 ;
15833 char * kwnames[] = {
15834 (char *) "self",(char *) "pt",(char *) "radius", NULL
15835 };
15836
15837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15839 if (!SWIG_IsOK(res1)) {
15840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15841 }
15842 arg1 = reinterpret_cast< wxDC * >(argp1);
15843 {
15844 arg2 = &temp2;
15845 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15846 }
15847 ecode3 = SWIG_AsVal_int(obj2, &val3);
15848 if (!SWIG_IsOK(ecode3)) {
15849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15850 }
15851 arg3 = static_cast< int >(val3);
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 resultobj = SWIG_Py_Void();
15859 return resultobj;
15860 fail:
15861 return NULL;
15862 }
15863
15864
15865 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15866 PyObject *resultobj = 0;
15867 wxDC *arg1 = (wxDC *) 0 ;
15868 int arg2 ;
15869 int arg3 ;
15870 int arg4 ;
15871 int arg5 ;
15872 void *argp1 = 0 ;
15873 int res1 = 0 ;
15874 int val2 ;
15875 int ecode2 = 0 ;
15876 int val3 ;
15877 int ecode3 = 0 ;
15878 int val4 ;
15879 int ecode4 = 0 ;
15880 int val5 ;
15881 int ecode5 = 0 ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884 PyObject * obj2 = 0 ;
15885 PyObject * obj3 = 0 ;
15886 PyObject * obj4 = 0 ;
15887 char * kwnames[] = {
15888 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15889 };
15890
15891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15893 if (!SWIG_IsOK(res1)) {
15894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15895 }
15896 arg1 = reinterpret_cast< wxDC * >(argp1);
15897 ecode2 = SWIG_AsVal_int(obj1, &val2);
15898 if (!SWIG_IsOK(ecode2)) {
15899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15900 }
15901 arg2 = static_cast< int >(val2);
15902 ecode3 = SWIG_AsVal_int(obj2, &val3);
15903 if (!SWIG_IsOK(ecode3)) {
15904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15905 }
15906 arg3 = static_cast< int >(val3);
15907 ecode4 = SWIG_AsVal_int(obj3, &val4);
15908 if (!SWIG_IsOK(ecode4)) {
15909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15910 }
15911 arg4 = static_cast< int >(val4);
15912 ecode5 = SWIG_AsVal_int(obj4, &val5);
15913 if (!SWIG_IsOK(ecode5)) {
15914 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15915 }
15916 arg5 = static_cast< int >(val5);
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_Py_Void();
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj = 0;
15932 wxDC *arg1 = (wxDC *) 0 ;
15933 wxRect *arg2 = 0 ;
15934 void *argp1 = 0 ;
15935 int res1 = 0 ;
15936 wxRect temp2 ;
15937 PyObject * obj0 = 0 ;
15938 PyObject * obj1 = 0 ;
15939 char * kwnames[] = {
15940 (char *) "self",(char *) "rect", NULL
15941 };
15942
15943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15945 if (!SWIG_IsOK(res1)) {
15946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15947 }
15948 arg1 = reinterpret_cast< wxDC * >(argp1);
15949 {
15950 arg2 = &temp2;
15951 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15952 }
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 (arg1)->DrawEllipse((wxRect const &)*arg2);
15956 wxPyEndAllowThreads(__tstate);
15957 if (PyErr_Occurred()) SWIG_fail;
15958 }
15959 resultobj = SWIG_Py_Void();
15960 return resultobj;
15961 fail:
15962 return NULL;
15963 }
15964
15965
15966 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15967 PyObject *resultobj = 0;
15968 wxDC *arg1 = (wxDC *) 0 ;
15969 wxPoint *arg2 = 0 ;
15970 wxSize *arg3 = 0 ;
15971 void *argp1 = 0 ;
15972 int res1 = 0 ;
15973 wxPoint temp2 ;
15974 wxSize temp3 ;
15975 PyObject * obj0 = 0 ;
15976 PyObject * obj1 = 0 ;
15977 PyObject * obj2 = 0 ;
15978 char * kwnames[] = {
15979 (char *) "self",(char *) "pt",(char *) "sz", NULL
15980 };
15981
15982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15984 if (!SWIG_IsOK(res1)) {
15985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15986 }
15987 arg1 = reinterpret_cast< wxDC * >(argp1);
15988 {
15989 arg2 = &temp2;
15990 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15991 }
15992 {
15993 arg3 = &temp3;
15994 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15995 }
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 resultobj = SWIG_Py_Void();
16003 return resultobj;
16004 fail:
16005 return NULL;
16006 }
16007
16008
16009 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16010 PyObject *resultobj = 0;
16011 wxDC *arg1 = (wxDC *) 0 ;
16012 wxIcon *arg2 = 0 ;
16013 int arg3 ;
16014 int arg4 ;
16015 void *argp1 = 0 ;
16016 int res1 = 0 ;
16017 void *argp2 = 0 ;
16018 int res2 = 0 ;
16019 int val3 ;
16020 int ecode3 = 0 ;
16021 int val4 ;
16022 int ecode4 = 0 ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 PyObject * obj2 = 0 ;
16026 PyObject * obj3 = 0 ;
16027 char * kwnames[] = {
16028 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16029 };
16030
16031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16033 if (!SWIG_IsOK(res1)) {
16034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16035 }
16036 arg1 = reinterpret_cast< wxDC * >(argp1);
16037 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16038 if (!SWIG_IsOK(res2)) {
16039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16040 }
16041 if (!argp2) {
16042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16043 }
16044 arg2 = reinterpret_cast< wxIcon * >(argp2);
16045 ecode3 = SWIG_AsVal_int(obj2, &val3);
16046 if (!SWIG_IsOK(ecode3)) {
16047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16048 }
16049 arg3 = static_cast< int >(val3);
16050 ecode4 = SWIG_AsVal_int(obj3, &val4);
16051 if (!SWIG_IsOK(ecode4)) {
16052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16053 }
16054 arg4 = static_cast< int >(val4);
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16058 wxPyEndAllowThreads(__tstate);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 resultobj = SWIG_Py_Void();
16062 return resultobj;
16063 fail:
16064 return NULL;
16065 }
16066
16067
16068 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16069 PyObject *resultobj = 0;
16070 wxDC *arg1 = (wxDC *) 0 ;
16071 wxIcon *arg2 = 0 ;
16072 wxPoint *arg3 = 0 ;
16073 void *argp1 = 0 ;
16074 int res1 = 0 ;
16075 void *argp2 = 0 ;
16076 int res2 = 0 ;
16077 wxPoint temp3 ;
16078 PyObject * obj0 = 0 ;
16079 PyObject * obj1 = 0 ;
16080 PyObject * obj2 = 0 ;
16081 char * kwnames[] = {
16082 (char *) "self",(char *) "icon",(char *) "pt", NULL
16083 };
16084
16085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16087 if (!SWIG_IsOK(res1)) {
16088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16089 }
16090 arg1 = reinterpret_cast< wxDC * >(argp1);
16091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16092 if (!SWIG_IsOK(res2)) {
16093 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16094 }
16095 if (!argp2) {
16096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16097 }
16098 arg2 = reinterpret_cast< wxIcon * >(argp2);
16099 {
16100 arg3 = &temp3;
16101 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16102 }
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 resultobj = SWIG_Py_Void();
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj = 0;
16118 wxDC *arg1 = (wxDC *) 0 ;
16119 wxBitmap *arg2 = 0 ;
16120 int arg3 ;
16121 int arg4 ;
16122 bool arg5 = (bool) false ;
16123 void *argp1 = 0 ;
16124 int res1 = 0 ;
16125 void *argp2 = 0 ;
16126 int res2 = 0 ;
16127 int val3 ;
16128 int ecode3 = 0 ;
16129 int val4 ;
16130 int ecode4 = 0 ;
16131 bool val5 ;
16132 int ecode5 = 0 ;
16133 PyObject * obj0 = 0 ;
16134 PyObject * obj1 = 0 ;
16135 PyObject * obj2 = 0 ;
16136 PyObject * obj3 = 0 ;
16137 PyObject * obj4 = 0 ;
16138 char * kwnames[] = {
16139 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16140 };
16141
16142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16144 if (!SWIG_IsOK(res1)) {
16145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16146 }
16147 arg1 = reinterpret_cast< wxDC * >(argp1);
16148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16149 if (!SWIG_IsOK(res2)) {
16150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16151 }
16152 if (!argp2) {
16153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16154 }
16155 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16156 ecode3 = SWIG_AsVal_int(obj2, &val3);
16157 if (!SWIG_IsOK(ecode3)) {
16158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16159 }
16160 arg3 = static_cast< int >(val3);
16161 ecode4 = SWIG_AsVal_int(obj3, &val4);
16162 if (!SWIG_IsOK(ecode4)) {
16163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16164 }
16165 arg4 = static_cast< int >(val4);
16166 if (obj4) {
16167 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16168 if (!SWIG_IsOK(ecode5)) {
16169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16170 }
16171 arg5 = static_cast< bool >(val5);
16172 }
16173 {
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 resultobj = SWIG_Py_Void();
16180 return resultobj;
16181 fail:
16182 return NULL;
16183 }
16184
16185
16186 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj = 0;
16188 wxDC *arg1 = (wxDC *) 0 ;
16189 wxBitmap *arg2 = 0 ;
16190 wxPoint *arg3 = 0 ;
16191 bool arg4 = (bool) false ;
16192 void *argp1 = 0 ;
16193 int res1 = 0 ;
16194 void *argp2 = 0 ;
16195 int res2 = 0 ;
16196 wxPoint temp3 ;
16197 bool val4 ;
16198 int ecode4 = 0 ;
16199 PyObject * obj0 = 0 ;
16200 PyObject * obj1 = 0 ;
16201 PyObject * obj2 = 0 ;
16202 PyObject * obj3 = 0 ;
16203 char * kwnames[] = {
16204 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16205 };
16206
16207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16209 if (!SWIG_IsOK(res1)) {
16210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16211 }
16212 arg1 = reinterpret_cast< wxDC * >(argp1);
16213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16214 if (!SWIG_IsOK(res2)) {
16215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16216 }
16217 if (!argp2) {
16218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16219 }
16220 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16221 {
16222 arg3 = &temp3;
16223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16224 }
16225 if (obj3) {
16226 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16227 if (!SWIG_IsOK(ecode4)) {
16228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16229 }
16230 arg4 = static_cast< bool >(val4);
16231 }
16232 {
16233 PyThreadState* __tstate = wxPyBeginAllowThreads();
16234 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 resultobj = SWIG_Py_Void();
16239 return resultobj;
16240 fail:
16241 return NULL;
16242 }
16243
16244
16245 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16246 PyObject *resultobj = 0;
16247 wxDC *arg1 = (wxDC *) 0 ;
16248 wxString *arg2 = 0 ;
16249 int arg3 ;
16250 int arg4 ;
16251 void *argp1 = 0 ;
16252 int res1 = 0 ;
16253 bool temp2 = false ;
16254 int val3 ;
16255 int ecode3 = 0 ;
16256 int val4 ;
16257 int ecode4 = 0 ;
16258 PyObject * obj0 = 0 ;
16259 PyObject * obj1 = 0 ;
16260 PyObject * obj2 = 0 ;
16261 PyObject * obj3 = 0 ;
16262 char * kwnames[] = {
16263 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16264 };
16265
16266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16268 if (!SWIG_IsOK(res1)) {
16269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16270 }
16271 arg1 = reinterpret_cast< wxDC * >(argp1);
16272 {
16273 arg2 = wxString_in_helper(obj1);
16274 if (arg2 == NULL) SWIG_fail;
16275 temp2 = true;
16276 }
16277 ecode3 = SWIG_AsVal_int(obj2, &val3);
16278 if (!SWIG_IsOK(ecode3)) {
16279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16280 }
16281 arg3 = static_cast< int >(val3);
16282 ecode4 = SWIG_AsVal_int(obj3, &val4);
16283 if (!SWIG_IsOK(ecode4)) {
16284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16285 }
16286 arg4 = static_cast< int >(val4);
16287 {
16288 PyThreadState* __tstate = wxPyBeginAllowThreads();
16289 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16290 wxPyEndAllowThreads(__tstate);
16291 if (PyErr_Occurred()) SWIG_fail;
16292 }
16293 resultobj = SWIG_Py_Void();
16294 {
16295 if (temp2)
16296 delete arg2;
16297 }
16298 return resultobj;
16299 fail:
16300 {
16301 if (temp2)
16302 delete arg2;
16303 }
16304 return NULL;
16305 }
16306
16307
16308 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj = 0;
16310 wxDC *arg1 = (wxDC *) 0 ;
16311 wxString *arg2 = 0 ;
16312 wxPoint *arg3 = 0 ;
16313 void *argp1 = 0 ;
16314 int res1 = 0 ;
16315 bool temp2 = false ;
16316 wxPoint temp3 ;
16317 PyObject * obj0 = 0 ;
16318 PyObject * obj1 = 0 ;
16319 PyObject * obj2 = 0 ;
16320 char * kwnames[] = {
16321 (char *) "self",(char *) "text",(char *) "pt", NULL
16322 };
16323
16324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16326 if (!SWIG_IsOK(res1)) {
16327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16328 }
16329 arg1 = reinterpret_cast< wxDC * >(argp1);
16330 {
16331 arg2 = wxString_in_helper(obj1);
16332 if (arg2 == NULL) SWIG_fail;
16333 temp2 = true;
16334 }
16335 {
16336 arg3 = &temp3;
16337 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16338 }
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16342 wxPyEndAllowThreads(__tstate);
16343 if (PyErr_Occurred()) SWIG_fail;
16344 }
16345 resultobj = SWIG_Py_Void();
16346 {
16347 if (temp2)
16348 delete arg2;
16349 }
16350 return resultobj;
16351 fail:
16352 {
16353 if (temp2)
16354 delete arg2;
16355 }
16356 return NULL;
16357 }
16358
16359
16360 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16361 PyObject *resultobj = 0;
16362 wxDC *arg1 = (wxDC *) 0 ;
16363 wxString *arg2 = 0 ;
16364 int arg3 ;
16365 int arg4 ;
16366 double arg5 ;
16367 void *argp1 = 0 ;
16368 int res1 = 0 ;
16369 bool temp2 = false ;
16370 int val3 ;
16371 int ecode3 = 0 ;
16372 int val4 ;
16373 int ecode4 = 0 ;
16374 double val5 ;
16375 int ecode5 = 0 ;
16376 PyObject * obj0 = 0 ;
16377 PyObject * obj1 = 0 ;
16378 PyObject * obj2 = 0 ;
16379 PyObject * obj3 = 0 ;
16380 PyObject * obj4 = 0 ;
16381 char * kwnames[] = {
16382 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16383 };
16384
16385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16387 if (!SWIG_IsOK(res1)) {
16388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16389 }
16390 arg1 = reinterpret_cast< wxDC * >(argp1);
16391 {
16392 arg2 = wxString_in_helper(obj1);
16393 if (arg2 == NULL) SWIG_fail;
16394 temp2 = true;
16395 }
16396 ecode3 = SWIG_AsVal_int(obj2, &val3);
16397 if (!SWIG_IsOK(ecode3)) {
16398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16399 }
16400 arg3 = static_cast< int >(val3);
16401 ecode4 = SWIG_AsVal_int(obj3, &val4);
16402 if (!SWIG_IsOK(ecode4)) {
16403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16404 }
16405 arg4 = static_cast< int >(val4);
16406 ecode5 = SWIG_AsVal_double(obj4, &val5);
16407 if (!SWIG_IsOK(ecode5)) {
16408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16409 }
16410 arg5 = static_cast< double >(val5);
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 resultobj = SWIG_Py_Void();
16418 {
16419 if (temp2)
16420 delete arg2;
16421 }
16422 return resultobj;
16423 fail:
16424 {
16425 if (temp2)
16426 delete arg2;
16427 }
16428 return NULL;
16429 }
16430
16431
16432 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16433 PyObject *resultobj = 0;
16434 wxDC *arg1 = (wxDC *) 0 ;
16435 wxString *arg2 = 0 ;
16436 wxPoint *arg3 = 0 ;
16437 double arg4 ;
16438 void *argp1 = 0 ;
16439 int res1 = 0 ;
16440 bool temp2 = false ;
16441 wxPoint temp3 ;
16442 double val4 ;
16443 int ecode4 = 0 ;
16444 PyObject * obj0 = 0 ;
16445 PyObject * obj1 = 0 ;
16446 PyObject * obj2 = 0 ;
16447 PyObject * obj3 = 0 ;
16448 char * kwnames[] = {
16449 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16450 };
16451
16452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16454 if (!SWIG_IsOK(res1)) {
16455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16456 }
16457 arg1 = reinterpret_cast< wxDC * >(argp1);
16458 {
16459 arg2 = wxString_in_helper(obj1);
16460 if (arg2 == NULL) SWIG_fail;
16461 temp2 = true;
16462 }
16463 {
16464 arg3 = &temp3;
16465 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16466 }
16467 ecode4 = SWIG_AsVal_double(obj3, &val4);
16468 if (!SWIG_IsOK(ecode4)) {
16469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16470 }
16471 arg4 = static_cast< double >(val4);
16472 {
16473 PyThreadState* __tstate = wxPyBeginAllowThreads();
16474 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16475 wxPyEndAllowThreads(__tstate);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 }
16478 resultobj = SWIG_Py_Void();
16479 {
16480 if (temp2)
16481 delete arg2;
16482 }
16483 return resultobj;
16484 fail:
16485 {
16486 if (temp2)
16487 delete arg2;
16488 }
16489 return NULL;
16490 }
16491
16492
16493 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj = 0;
16495 wxDC *arg1 = (wxDC *) 0 ;
16496 int arg2 ;
16497 int arg3 ;
16498 int arg4 ;
16499 int arg5 ;
16500 wxDC *arg6 = (wxDC *) 0 ;
16501 int arg7 ;
16502 int arg8 ;
16503 int arg9 = (int) wxCOPY ;
16504 bool arg10 = (bool) false ;
16505 int arg11 = (int) -1 ;
16506 int arg12 = (int) -1 ;
16507 bool result;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 int val2 ;
16511 int ecode2 = 0 ;
16512 int val3 ;
16513 int ecode3 = 0 ;
16514 int val4 ;
16515 int ecode4 = 0 ;
16516 int val5 ;
16517 int ecode5 = 0 ;
16518 void *argp6 = 0 ;
16519 int res6 = 0 ;
16520 int val7 ;
16521 int ecode7 = 0 ;
16522 int val8 ;
16523 int ecode8 = 0 ;
16524 int val9 ;
16525 int ecode9 = 0 ;
16526 bool val10 ;
16527 int ecode10 = 0 ;
16528 int val11 ;
16529 int ecode11 = 0 ;
16530 int val12 ;
16531 int ecode12 = 0 ;
16532 PyObject * obj0 = 0 ;
16533 PyObject * obj1 = 0 ;
16534 PyObject * obj2 = 0 ;
16535 PyObject * obj3 = 0 ;
16536 PyObject * obj4 = 0 ;
16537 PyObject * obj5 = 0 ;
16538 PyObject * obj6 = 0 ;
16539 PyObject * obj7 = 0 ;
16540 PyObject * obj8 = 0 ;
16541 PyObject * obj9 = 0 ;
16542 PyObject * obj10 = 0 ;
16543 PyObject * obj11 = 0 ;
16544 char * kwnames[] = {
16545 (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
16546 };
16547
16548 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;
16549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16550 if (!SWIG_IsOK(res1)) {
16551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16552 }
16553 arg1 = reinterpret_cast< wxDC * >(argp1);
16554 ecode2 = SWIG_AsVal_int(obj1, &val2);
16555 if (!SWIG_IsOK(ecode2)) {
16556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16557 }
16558 arg2 = static_cast< int >(val2);
16559 ecode3 = SWIG_AsVal_int(obj2, &val3);
16560 if (!SWIG_IsOK(ecode3)) {
16561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16562 }
16563 arg3 = static_cast< int >(val3);
16564 ecode4 = SWIG_AsVal_int(obj3, &val4);
16565 if (!SWIG_IsOK(ecode4)) {
16566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16567 }
16568 arg4 = static_cast< int >(val4);
16569 ecode5 = SWIG_AsVal_int(obj4, &val5);
16570 if (!SWIG_IsOK(ecode5)) {
16571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16572 }
16573 arg5 = static_cast< int >(val5);
16574 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16575 if (!SWIG_IsOK(res6)) {
16576 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16577 }
16578 arg6 = reinterpret_cast< wxDC * >(argp6);
16579 ecode7 = SWIG_AsVal_int(obj6, &val7);
16580 if (!SWIG_IsOK(ecode7)) {
16581 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16582 }
16583 arg7 = static_cast< int >(val7);
16584 ecode8 = SWIG_AsVal_int(obj7, &val8);
16585 if (!SWIG_IsOK(ecode8)) {
16586 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16587 }
16588 arg8 = static_cast< int >(val8);
16589 if (obj8) {
16590 ecode9 = SWIG_AsVal_int(obj8, &val9);
16591 if (!SWIG_IsOK(ecode9)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16593 }
16594 arg9 = static_cast< int >(val9);
16595 }
16596 if (obj9) {
16597 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16598 if (!SWIG_IsOK(ecode10)) {
16599 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16600 }
16601 arg10 = static_cast< bool >(val10);
16602 }
16603 if (obj10) {
16604 ecode11 = SWIG_AsVal_int(obj10, &val11);
16605 if (!SWIG_IsOK(ecode11)) {
16606 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16607 }
16608 arg11 = static_cast< int >(val11);
16609 }
16610 if (obj11) {
16611 ecode12 = SWIG_AsVal_int(obj11, &val12);
16612 if (!SWIG_IsOK(ecode12)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16614 }
16615 arg12 = static_cast< int >(val12);
16616 }
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 {
16624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16625 }
16626 return resultobj;
16627 fail:
16628 return NULL;
16629 }
16630
16631
16632 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16633 PyObject *resultobj = 0;
16634 wxDC *arg1 = (wxDC *) 0 ;
16635 wxPoint *arg2 = 0 ;
16636 wxSize *arg3 = 0 ;
16637 wxDC *arg4 = (wxDC *) 0 ;
16638 wxPoint *arg5 = 0 ;
16639 int arg6 = (int) wxCOPY ;
16640 bool arg7 = (bool) false ;
16641 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16642 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16643 bool result;
16644 void *argp1 = 0 ;
16645 int res1 = 0 ;
16646 wxPoint temp2 ;
16647 wxSize temp3 ;
16648 void *argp4 = 0 ;
16649 int res4 = 0 ;
16650 wxPoint temp5 ;
16651 int val6 ;
16652 int ecode6 = 0 ;
16653 bool val7 ;
16654 int ecode7 = 0 ;
16655 wxPoint temp8 ;
16656 PyObject * obj0 = 0 ;
16657 PyObject * obj1 = 0 ;
16658 PyObject * obj2 = 0 ;
16659 PyObject * obj3 = 0 ;
16660 PyObject * obj4 = 0 ;
16661 PyObject * obj5 = 0 ;
16662 PyObject * obj6 = 0 ;
16663 PyObject * obj7 = 0 ;
16664 char * kwnames[] = {
16665 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16666 };
16667
16668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16670 if (!SWIG_IsOK(res1)) {
16671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16672 }
16673 arg1 = reinterpret_cast< wxDC * >(argp1);
16674 {
16675 arg2 = &temp2;
16676 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16677 }
16678 {
16679 arg3 = &temp3;
16680 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16681 }
16682 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16683 if (!SWIG_IsOK(res4)) {
16684 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16685 }
16686 arg4 = reinterpret_cast< wxDC * >(argp4);
16687 {
16688 arg5 = &temp5;
16689 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16690 }
16691 if (obj5) {
16692 ecode6 = SWIG_AsVal_int(obj5, &val6);
16693 if (!SWIG_IsOK(ecode6)) {
16694 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16695 }
16696 arg6 = static_cast< int >(val6);
16697 }
16698 if (obj6) {
16699 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16700 if (!SWIG_IsOK(ecode7)) {
16701 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16702 }
16703 arg7 = static_cast< bool >(val7);
16704 }
16705 if (obj7) {
16706 {
16707 arg8 = &temp8;
16708 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16709 }
16710 }
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 {
16718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16719 }
16720 return resultobj;
16721 fail:
16722 return NULL;
16723 }
16724
16725
16726 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16727 PyObject *resultobj = 0;
16728 wxDC *arg1 = (wxDC *) 0 ;
16729 int arg2 ;
16730 int arg3 ;
16731 int arg4 ;
16732 int arg5 ;
16733 void *argp1 = 0 ;
16734 int res1 = 0 ;
16735 int val2 ;
16736 int ecode2 = 0 ;
16737 int val3 ;
16738 int ecode3 = 0 ;
16739 int val4 ;
16740 int ecode4 = 0 ;
16741 int val5 ;
16742 int ecode5 = 0 ;
16743 PyObject * obj0 = 0 ;
16744 PyObject * obj1 = 0 ;
16745 PyObject * obj2 = 0 ;
16746 PyObject * obj3 = 0 ;
16747 PyObject * obj4 = 0 ;
16748 char * kwnames[] = {
16749 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16750 };
16751
16752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16754 if (!SWIG_IsOK(res1)) {
16755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16756 }
16757 arg1 = reinterpret_cast< wxDC * >(argp1);
16758 ecode2 = SWIG_AsVal_int(obj1, &val2);
16759 if (!SWIG_IsOK(ecode2)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16761 }
16762 arg2 = static_cast< int >(val2);
16763 ecode3 = SWIG_AsVal_int(obj2, &val3);
16764 if (!SWIG_IsOK(ecode3)) {
16765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16766 }
16767 arg3 = static_cast< int >(val3);
16768 ecode4 = SWIG_AsVal_int(obj3, &val4);
16769 if (!SWIG_IsOK(ecode4)) {
16770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16771 }
16772 arg4 = static_cast< int >(val4);
16773 ecode5 = SWIG_AsVal_int(obj4, &val5);
16774 if (!SWIG_IsOK(ecode5)) {
16775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16776 }
16777 arg5 = static_cast< int >(val5);
16778 {
16779 PyThreadState* __tstate = wxPyBeginAllowThreads();
16780 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 resultobj = SWIG_Py_Void();
16785 return resultobj;
16786 fail:
16787 return NULL;
16788 }
16789
16790
16791 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16792 PyObject *resultobj = 0;
16793 wxDC *arg1 = (wxDC *) 0 ;
16794 wxPoint *arg2 = 0 ;
16795 wxSize *arg3 = 0 ;
16796 void *argp1 = 0 ;
16797 int res1 = 0 ;
16798 wxPoint temp2 ;
16799 wxSize temp3 ;
16800 PyObject * obj0 = 0 ;
16801 PyObject * obj1 = 0 ;
16802 PyObject * obj2 = 0 ;
16803 char * kwnames[] = {
16804 (char *) "self",(char *) "pt",(char *) "sz", NULL
16805 };
16806
16807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16809 if (!SWIG_IsOK(res1)) {
16810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16811 }
16812 arg1 = reinterpret_cast< wxDC * >(argp1);
16813 {
16814 arg2 = &temp2;
16815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16816 }
16817 {
16818 arg3 = &temp3;
16819 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16820 }
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 resultobj = SWIG_Py_Void();
16828 return resultobj;
16829 fail:
16830 return NULL;
16831 }
16832
16833
16834 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16835 PyObject *resultobj = 0;
16836 wxDC *arg1 = (wxDC *) 0 ;
16837 wxRegion *arg2 = 0 ;
16838 void *argp1 = 0 ;
16839 int res1 = 0 ;
16840 void *argp2 = 0 ;
16841 int res2 = 0 ;
16842 PyObject * obj0 = 0 ;
16843 PyObject * obj1 = 0 ;
16844 char * kwnames[] = {
16845 (char *) "self",(char *) "region", NULL
16846 };
16847
16848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16850 if (!SWIG_IsOK(res1)) {
16851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16852 }
16853 arg1 = reinterpret_cast< wxDC * >(argp1);
16854 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16855 if (!SWIG_IsOK(res2)) {
16856 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16857 }
16858 if (!argp2) {
16859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16860 }
16861 arg2 = reinterpret_cast< wxRegion * >(argp2);
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_Py_Void();
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16876 PyObject *resultobj = 0;
16877 wxDC *arg1 = (wxDC *) 0 ;
16878 wxRect *arg2 = 0 ;
16879 void *argp1 = 0 ;
16880 int res1 = 0 ;
16881 wxRect temp2 ;
16882 PyObject * obj0 = 0 ;
16883 PyObject * obj1 = 0 ;
16884 char * kwnames[] = {
16885 (char *) "self",(char *) "rect", NULL
16886 };
16887
16888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16890 if (!SWIG_IsOK(res1)) {
16891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16892 }
16893 arg1 = reinterpret_cast< wxDC * >(argp1);
16894 {
16895 arg2 = &temp2;
16896 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16897 }
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16901 wxPyEndAllowThreads(__tstate);
16902 if (PyErr_Occurred()) SWIG_fail;
16903 }
16904 resultobj = SWIG_Py_Void();
16905 return resultobj;
16906 fail:
16907 return NULL;
16908 }
16909
16910
16911 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj = 0;
16913 wxDC *arg1 = (wxDC *) 0 ;
16914 int arg2 ;
16915 wxPoint *arg3 = (wxPoint *) 0 ;
16916 int arg4 = (int) 0 ;
16917 int arg5 = (int) 0 ;
16918 void *argp1 = 0 ;
16919 int res1 = 0 ;
16920 int val4 ;
16921 int ecode4 = 0 ;
16922 int val5 ;
16923 int ecode5 = 0 ;
16924 PyObject * obj0 = 0 ;
16925 PyObject * obj1 = 0 ;
16926 PyObject * obj2 = 0 ;
16927 PyObject * obj3 = 0 ;
16928 char * kwnames[] = {
16929 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16930 };
16931
16932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16934 if (!SWIG_IsOK(res1)) {
16935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16936 }
16937 arg1 = reinterpret_cast< wxDC * >(argp1);
16938 {
16939 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16940 if (arg3 == NULL) SWIG_fail;
16941 }
16942 if (obj2) {
16943 ecode4 = SWIG_AsVal_int(obj2, &val4);
16944 if (!SWIG_IsOK(ecode4)) {
16945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16946 }
16947 arg4 = static_cast< int >(val4);
16948 }
16949 if (obj3) {
16950 ecode5 = SWIG_AsVal_int(obj3, &val5);
16951 if (!SWIG_IsOK(ecode5)) {
16952 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16953 }
16954 arg5 = static_cast< int >(val5);
16955 }
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_Py_Void();
16963 {
16964 if (arg3) delete [] arg3;
16965 }
16966 return resultobj;
16967 fail:
16968 {
16969 if (arg3) delete [] arg3;
16970 }
16971 return NULL;
16972 }
16973
16974
16975 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16976 PyObject *resultobj = 0;
16977 wxDC *arg1 = (wxDC *) 0 ;
16978 int arg2 ;
16979 wxPoint *arg3 = (wxPoint *) 0 ;
16980 int arg4 = (int) 0 ;
16981 int arg5 = (int) 0 ;
16982 int arg6 = (int) wxODDEVEN_RULE ;
16983 void *argp1 = 0 ;
16984 int res1 = 0 ;
16985 int val4 ;
16986 int ecode4 = 0 ;
16987 int val5 ;
16988 int ecode5 = 0 ;
16989 int val6 ;
16990 int ecode6 = 0 ;
16991 PyObject * obj0 = 0 ;
16992 PyObject * obj1 = 0 ;
16993 PyObject * obj2 = 0 ;
16994 PyObject * obj3 = 0 ;
16995 PyObject * obj4 = 0 ;
16996 char * kwnames[] = {
16997 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
16998 };
16999
17000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17002 if (!SWIG_IsOK(res1)) {
17003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17004 }
17005 arg1 = reinterpret_cast< wxDC * >(argp1);
17006 {
17007 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17008 if (arg3 == NULL) SWIG_fail;
17009 }
17010 if (obj2) {
17011 ecode4 = SWIG_AsVal_int(obj2, &val4);
17012 if (!SWIG_IsOK(ecode4)) {
17013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17014 }
17015 arg4 = static_cast< int >(val4);
17016 }
17017 if (obj3) {
17018 ecode5 = SWIG_AsVal_int(obj3, &val5);
17019 if (!SWIG_IsOK(ecode5)) {
17020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17021 }
17022 arg5 = static_cast< int >(val5);
17023 }
17024 if (obj4) {
17025 ecode6 = SWIG_AsVal_int(obj4, &val6);
17026 if (!SWIG_IsOK(ecode6)) {
17027 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17028 }
17029 arg6 = static_cast< int >(val6);
17030 }
17031 {
17032 PyThreadState* __tstate = wxPyBeginAllowThreads();
17033 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 resultobj = SWIG_Py_Void();
17038 {
17039 if (arg3) delete [] arg3;
17040 }
17041 return resultobj;
17042 fail:
17043 {
17044 if (arg3) delete [] arg3;
17045 }
17046 return NULL;
17047 }
17048
17049
17050 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17051 PyObject *resultobj = 0;
17052 wxDC *arg1 = (wxDC *) 0 ;
17053 wxString *arg2 = 0 ;
17054 wxRect *arg3 = 0 ;
17055 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17056 int arg5 = (int) -1 ;
17057 void *argp1 = 0 ;
17058 int res1 = 0 ;
17059 bool temp2 = false ;
17060 wxRect temp3 ;
17061 int val4 ;
17062 int ecode4 = 0 ;
17063 int val5 ;
17064 int ecode5 = 0 ;
17065 PyObject * obj0 = 0 ;
17066 PyObject * obj1 = 0 ;
17067 PyObject * obj2 = 0 ;
17068 PyObject * obj3 = 0 ;
17069 PyObject * obj4 = 0 ;
17070 char * kwnames[] = {
17071 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17072 };
17073
17074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17076 if (!SWIG_IsOK(res1)) {
17077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17078 }
17079 arg1 = reinterpret_cast< wxDC * >(argp1);
17080 {
17081 arg2 = wxString_in_helper(obj1);
17082 if (arg2 == NULL) SWIG_fail;
17083 temp2 = true;
17084 }
17085 {
17086 arg3 = &temp3;
17087 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17088 }
17089 if (obj3) {
17090 ecode4 = SWIG_AsVal_int(obj3, &val4);
17091 if (!SWIG_IsOK(ecode4)) {
17092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17093 }
17094 arg4 = static_cast< int >(val4);
17095 }
17096 if (obj4) {
17097 ecode5 = SWIG_AsVal_int(obj4, &val5);
17098 if (!SWIG_IsOK(ecode5)) {
17099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17100 }
17101 arg5 = static_cast< int >(val5);
17102 }
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 resultobj = SWIG_Py_Void();
17110 {
17111 if (temp2)
17112 delete arg2;
17113 }
17114 return resultobj;
17115 fail:
17116 {
17117 if (temp2)
17118 delete arg2;
17119 }
17120 return NULL;
17121 }
17122
17123
17124 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17125 PyObject *resultobj = 0;
17126 wxDC *arg1 = (wxDC *) 0 ;
17127 wxString *arg2 = 0 ;
17128 wxBitmap *arg3 = 0 ;
17129 wxRect *arg4 = 0 ;
17130 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17131 int arg6 = (int) -1 ;
17132 wxRect result;
17133 void *argp1 = 0 ;
17134 int res1 = 0 ;
17135 bool temp2 = false ;
17136 void *argp3 = 0 ;
17137 int res3 = 0 ;
17138 wxRect temp4 ;
17139 int val5 ;
17140 int ecode5 = 0 ;
17141 int val6 ;
17142 int ecode6 = 0 ;
17143 PyObject * obj0 = 0 ;
17144 PyObject * obj1 = 0 ;
17145 PyObject * obj2 = 0 ;
17146 PyObject * obj3 = 0 ;
17147 PyObject * obj4 = 0 ;
17148 PyObject * obj5 = 0 ;
17149 char * kwnames[] = {
17150 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17151 };
17152
17153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17155 if (!SWIG_IsOK(res1)) {
17156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17157 }
17158 arg1 = reinterpret_cast< wxDC * >(argp1);
17159 {
17160 arg2 = wxString_in_helper(obj1);
17161 if (arg2 == NULL) SWIG_fail;
17162 temp2 = true;
17163 }
17164 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17165 if (!SWIG_IsOK(res3)) {
17166 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17167 }
17168 if (!argp3) {
17169 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17170 }
17171 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17172 {
17173 arg4 = &temp4;
17174 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17175 }
17176 if (obj4) {
17177 ecode5 = SWIG_AsVal_int(obj4, &val5);
17178 if (!SWIG_IsOK(ecode5)) {
17179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17180 }
17181 arg5 = static_cast< int >(val5);
17182 }
17183 if (obj5) {
17184 ecode6 = SWIG_AsVal_int(obj5, &val6);
17185 if (!SWIG_IsOK(ecode6)) {
17186 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17187 }
17188 arg6 = static_cast< int >(val6);
17189 }
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17197 {
17198 if (temp2)
17199 delete arg2;
17200 }
17201 return resultobj;
17202 fail:
17203 {
17204 if (temp2)
17205 delete arg2;
17206 }
17207 return NULL;
17208 }
17209
17210
17211 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj = 0;
17213 wxDC *arg1 = (wxDC *) 0 ;
17214 int arg2 ;
17215 wxPoint *arg3 = (wxPoint *) 0 ;
17216 void *argp1 = 0 ;
17217 int res1 = 0 ;
17218 PyObject * obj0 = 0 ;
17219 PyObject * obj1 = 0 ;
17220 char * kwnames[] = {
17221 (char *) "self",(char *) "points", NULL
17222 };
17223
17224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17226 if (!SWIG_IsOK(res1)) {
17227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17228 }
17229 arg1 = reinterpret_cast< wxDC * >(argp1);
17230 {
17231 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17232 if (arg3 == NULL) SWIG_fail;
17233 }
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 (arg1)->DrawSpline(arg2,arg3);
17237 wxPyEndAllowThreads(__tstate);
17238 if (PyErr_Occurred()) SWIG_fail;
17239 }
17240 resultobj = SWIG_Py_Void();
17241 {
17242 if (arg3) delete [] arg3;
17243 }
17244 return resultobj;
17245 fail:
17246 {
17247 if (arg3) delete [] arg3;
17248 }
17249 return NULL;
17250 }
17251
17252
17253 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17254 PyObject *resultobj = 0;
17255 wxDC *arg1 = (wxDC *) 0 ;
17256 void *argp1 = 0 ;
17257 int res1 = 0 ;
17258 PyObject *swig_obj[1] ;
17259
17260 if (!args) SWIG_fail;
17261 swig_obj[0] = args;
17262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17263 if (!SWIG_IsOK(res1)) {
17264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17265 }
17266 arg1 = reinterpret_cast< wxDC * >(argp1);
17267 {
17268 PyThreadState* __tstate = wxPyBeginAllowThreads();
17269 (arg1)->Clear();
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 resultobj = SWIG_Py_Void();
17274 return resultobj;
17275 fail:
17276 return NULL;
17277 }
17278
17279
17280 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17281 PyObject *resultobj = 0;
17282 wxDC *arg1 = (wxDC *) 0 ;
17283 wxString *arg2 = 0 ;
17284 bool result;
17285 void *argp1 = 0 ;
17286 int res1 = 0 ;
17287 bool temp2 = false ;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 char * kwnames[] = {
17291 (char *) "self",(char *) "message", NULL
17292 };
17293
17294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17296 if (!SWIG_IsOK(res1)) {
17297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17298 }
17299 arg1 = reinterpret_cast< wxDC * >(argp1);
17300 {
17301 arg2 = wxString_in_helper(obj1);
17302 if (arg2 == NULL) SWIG_fail;
17303 temp2 = true;
17304 }
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17308 wxPyEndAllowThreads(__tstate);
17309 if (PyErr_Occurred()) SWIG_fail;
17310 }
17311 {
17312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17313 }
17314 {
17315 if (temp2)
17316 delete arg2;
17317 }
17318 return resultobj;
17319 fail:
17320 {
17321 if (temp2)
17322 delete arg2;
17323 }
17324 return NULL;
17325 }
17326
17327
17328 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17329 PyObject *resultobj = 0;
17330 wxDC *arg1 = (wxDC *) 0 ;
17331 void *argp1 = 0 ;
17332 int res1 = 0 ;
17333 PyObject *swig_obj[1] ;
17334
17335 if (!args) SWIG_fail;
17336 swig_obj[0] = args;
17337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17338 if (!SWIG_IsOK(res1)) {
17339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17340 }
17341 arg1 = reinterpret_cast< wxDC * >(argp1);
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 (arg1)->EndDoc();
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 resultobj = SWIG_Py_Void();
17349 return resultobj;
17350 fail:
17351 return NULL;
17352 }
17353
17354
17355 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17356 PyObject *resultobj = 0;
17357 wxDC *arg1 = (wxDC *) 0 ;
17358 void *argp1 = 0 ;
17359 int res1 = 0 ;
17360 PyObject *swig_obj[1] ;
17361
17362 if (!args) SWIG_fail;
17363 swig_obj[0] = args;
17364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17365 if (!SWIG_IsOK(res1)) {
17366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17367 }
17368 arg1 = reinterpret_cast< wxDC * >(argp1);
17369 {
17370 PyThreadState* __tstate = wxPyBeginAllowThreads();
17371 (arg1)->StartPage();
17372 wxPyEndAllowThreads(__tstate);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 resultobj = SWIG_Py_Void();
17376 return resultobj;
17377 fail:
17378 return NULL;
17379 }
17380
17381
17382 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17383 PyObject *resultobj = 0;
17384 wxDC *arg1 = (wxDC *) 0 ;
17385 void *argp1 = 0 ;
17386 int res1 = 0 ;
17387 PyObject *swig_obj[1] ;
17388
17389 if (!args) SWIG_fail;
17390 swig_obj[0] = args;
17391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17392 if (!SWIG_IsOK(res1)) {
17393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17394 }
17395 arg1 = reinterpret_cast< wxDC * >(argp1);
17396 {
17397 PyThreadState* __tstate = wxPyBeginAllowThreads();
17398 (arg1)->EndPage();
17399 wxPyEndAllowThreads(__tstate);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 }
17402 resultobj = SWIG_Py_Void();
17403 return resultobj;
17404 fail:
17405 return NULL;
17406 }
17407
17408
17409 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17410 PyObject *resultobj = 0;
17411 wxDC *arg1 = (wxDC *) 0 ;
17412 wxFont *arg2 = 0 ;
17413 void *argp1 = 0 ;
17414 int res1 = 0 ;
17415 void *argp2 = 0 ;
17416 int res2 = 0 ;
17417 PyObject * obj0 = 0 ;
17418 PyObject * obj1 = 0 ;
17419 char * kwnames[] = {
17420 (char *) "self",(char *) "font", NULL
17421 };
17422
17423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17425 if (!SWIG_IsOK(res1)) {
17426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17427 }
17428 arg1 = reinterpret_cast< wxDC * >(argp1);
17429 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17430 if (!SWIG_IsOK(res2)) {
17431 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17432 }
17433 if (!argp2) {
17434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17435 }
17436 arg2 = reinterpret_cast< wxFont * >(argp2);
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 (arg1)->SetFont((wxFont const &)*arg2);
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 resultobj = SWIG_Py_Void();
17444 return resultobj;
17445 fail:
17446 return NULL;
17447 }
17448
17449
17450 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17451 PyObject *resultobj = 0;
17452 wxDC *arg1 = (wxDC *) 0 ;
17453 wxPen *arg2 = 0 ;
17454 void *argp1 = 0 ;
17455 int res1 = 0 ;
17456 void *argp2 = 0 ;
17457 int res2 = 0 ;
17458 PyObject * obj0 = 0 ;
17459 PyObject * obj1 = 0 ;
17460 char * kwnames[] = {
17461 (char *) "self",(char *) "pen", NULL
17462 };
17463
17464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17466 if (!SWIG_IsOK(res1)) {
17467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17468 }
17469 arg1 = reinterpret_cast< wxDC * >(argp1);
17470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17471 if (!SWIG_IsOK(res2)) {
17472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17473 }
17474 if (!argp2) {
17475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17476 }
17477 arg2 = reinterpret_cast< wxPen * >(argp2);
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 (arg1)->SetPen((wxPen const &)*arg2);
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 resultobj = SWIG_Py_Void();
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj = 0;
17493 wxDC *arg1 = (wxDC *) 0 ;
17494 wxBrush *arg2 = 0 ;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 void *argp2 = 0 ;
17498 int res2 = 0 ;
17499 PyObject * obj0 = 0 ;
17500 PyObject * obj1 = 0 ;
17501 char * kwnames[] = {
17502 (char *) "self",(char *) "brush", NULL
17503 };
17504
17505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17507 if (!SWIG_IsOK(res1)) {
17508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17509 }
17510 arg1 = reinterpret_cast< wxDC * >(argp1);
17511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17512 if (!SWIG_IsOK(res2)) {
17513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17514 }
17515 if (!argp2) {
17516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17517 }
17518 arg2 = reinterpret_cast< wxBrush * >(argp2);
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 (arg1)->SetBrush((wxBrush const &)*arg2);
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 resultobj = SWIG_Py_Void();
17526 return resultobj;
17527 fail:
17528 return NULL;
17529 }
17530
17531
17532 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj = 0;
17534 wxDC *arg1 = (wxDC *) 0 ;
17535 wxBrush *arg2 = 0 ;
17536 void *argp1 = 0 ;
17537 int res1 = 0 ;
17538 void *argp2 = 0 ;
17539 int res2 = 0 ;
17540 PyObject * obj0 = 0 ;
17541 PyObject * obj1 = 0 ;
17542 char * kwnames[] = {
17543 (char *) "self",(char *) "brush", NULL
17544 };
17545
17546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17548 if (!SWIG_IsOK(res1)) {
17549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17550 }
17551 arg1 = reinterpret_cast< wxDC * >(argp1);
17552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17553 if (!SWIG_IsOK(res2)) {
17554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17555 }
17556 if (!argp2) {
17557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17558 }
17559 arg2 = reinterpret_cast< wxBrush * >(argp2);
17560 {
17561 PyThreadState* __tstate = wxPyBeginAllowThreads();
17562 (arg1)->SetBackground((wxBrush const &)*arg2);
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 resultobj = SWIG_Py_Void();
17567 return resultobj;
17568 fail:
17569 return NULL;
17570 }
17571
17572
17573 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17574 PyObject *resultobj = 0;
17575 wxDC *arg1 = (wxDC *) 0 ;
17576 int arg2 ;
17577 void *argp1 = 0 ;
17578 int res1 = 0 ;
17579 int val2 ;
17580 int ecode2 = 0 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 char * kwnames[] = {
17584 (char *) "self",(char *) "mode", NULL
17585 };
17586
17587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17589 if (!SWIG_IsOK(res1)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17591 }
17592 arg1 = reinterpret_cast< wxDC * >(argp1);
17593 ecode2 = SWIG_AsVal_int(obj1, &val2);
17594 if (!SWIG_IsOK(ecode2)) {
17595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17596 }
17597 arg2 = static_cast< int >(val2);
17598 {
17599 PyThreadState* __tstate = wxPyBeginAllowThreads();
17600 (arg1)->SetBackgroundMode(arg2);
17601 wxPyEndAllowThreads(__tstate);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 }
17604 resultobj = SWIG_Py_Void();
17605 return resultobj;
17606 fail:
17607 return NULL;
17608 }
17609
17610
17611 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17612 PyObject *resultobj = 0;
17613 wxDC *arg1 = (wxDC *) 0 ;
17614 wxPalette *arg2 = 0 ;
17615 void *argp1 = 0 ;
17616 int res1 = 0 ;
17617 void *argp2 = 0 ;
17618 int res2 = 0 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 char * kwnames[] = {
17622 (char *) "self",(char *) "palette", NULL
17623 };
17624
17625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17627 if (!SWIG_IsOK(res1)) {
17628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17629 }
17630 arg1 = reinterpret_cast< wxDC * >(argp1);
17631 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17632 if (!SWIG_IsOK(res2)) {
17633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17634 }
17635 if (!argp2) {
17636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17637 }
17638 arg2 = reinterpret_cast< wxPalette * >(argp2);
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->SetPalette((wxPalette const &)*arg2);
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_Py_Void();
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17653 PyObject *resultobj = 0;
17654 wxDC *arg1 = (wxDC *) 0 ;
17655 void *argp1 = 0 ;
17656 int res1 = 0 ;
17657 PyObject *swig_obj[1] ;
17658
17659 if (!args) SWIG_fail;
17660 swig_obj[0] = args;
17661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17662 if (!SWIG_IsOK(res1)) {
17663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17664 }
17665 arg1 = reinterpret_cast< wxDC * >(argp1);
17666 {
17667 PyThreadState* __tstate = wxPyBeginAllowThreads();
17668 (arg1)->DestroyClippingRegion();
17669 wxPyEndAllowThreads(__tstate);
17670 if (PyErr_Occurred()) SWIG_fail;
17671 }
17672 resultobj = SWIG_Py_Void();
17673 return resultobj;
17674 fail:
17675 return NULL;
17676 }
17677
17678
17679 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17680 PyObject *resultobj = 0;
17681 wxDC *arg1 = (wxDC *) 0 ;
17682 int *arg2 = (int *) 0 ;
17683 int *arg3 = (int *) 0 ;
17684 int *arg4 = (int *) 0 ;
17685 int *arg5 = (int *) 0 ;
17686 void *argp1 = 0 ;
17687 int res1 = 0 ;
17688 int temp2 ;
17689 int res2 = SWIG_TMPOBJ ;
17690 int temp3 ;
17691 int res3 = SWIG_TMPOBJ ;
17692 int temp4 ;
17693 int res4 = SWIG_TMPOBJ ;
17694 int temp5 ;
17695 int res5 = SWIG_TMPOBJ ;
17696 PyObject *swig_obj[1] ;
17697
17698 arg2 = &temp2;
17699 arg3 = &temp3;
17700 arg4 = &temp4;
17701 arg5 = &temp5;
17702 if (!args) SWIG_fail;
17703 swig_obj[0] = args;
17704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17705 if (!SWIG_IsOK(res1)) {
17706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17707 }
17708 arg1 = reinterpret_cast< wxDC * >(argp1);
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17712 wxPyEndAllowThreads(__tstate);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 }
17715 resultobj = SWIG_Py_Void();
17716 if (SWIG_IsTmpObj(res2)) {
17717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17718 } else {
17719 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17721 }
17722 if (SWIG_IsTmpObj(res3)) {
17723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17724 } else {
17725 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17726 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17727 }
17728 if (SWIG_IsTmpObj(res4)) {
17729 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17730 } else {
17731 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17732 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17733 }
17734 if (SWIG_IsTmpObj(res5)) {
17735 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17736 } else {
17737 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17738 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17739 }
17740 return resultobj;
17741 fail:
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17747 PyObject *resultobj = 0;
17748 wxDC *arg1 = (wxDC *) 0 ;
17749 wxRect result;
17750 void *argp1 = 0 ;
17751 int res1 = 0 ;
17752 PyObject *swig_obj[1] ;
17753
17754 if (!args) SWIG_fail;
17755 swig_obj[0] = args;
17756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17757 if (!SWIG_IsOK(res1)) {
17758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17759 }
17760 arg1 = reinterpret_cast< wxDC * >(argp1);
17761 {
17762 PyThreadState* __tstate = wxPyBeginAllowThreads();
17763 result = wxDC_GetClippingRect(arg1);
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17775 PyObject *resultobj = 0;
17776 wxDC *arg1 = (wxDC *) 0 ;
17777 int result;
17778 void *argp1 = 0 ;
17779 int res1 = 0 ;
17780 PyObject *swig_obj[1] ;
17781
17782 if (!args) SWIG_fail;
17783 swig_obj[0] = args;
17784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17785 if (!SWIG_IsOK(res1)) {
17786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17787 }
17788 arg1 = reinterpret_cast< wxDC * >(argp1);
17789 {
17790 PyThreadState* __tstate = wxPyBeginAllowThreads();
17791 result = (int)((wxDC const *)arg1)->GetCharHeight();
17792 wxPyEndAllowThreads(__tstate);
17793 if (PyErr_Occurred()) SWIG_fail;
17794 }
17795 resultobj = SWIG_From_int(static_cast< int >(result));
17796 return resultobj;
17797 fail:
17798 return NULL;
17799 }
17800
17801
17802 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17803 PyObject *resultobj = 0;
17804 wxDC *arg1 = (wxDC *) 0 ;
17805 int result;
17806 void *argp1 = 0 ;
17807 int res1 = 0 ;
17808 PyObject *swig_obj[1] ;
17809
17810 if (!args) SWIG_fail;
17811 swig_obj[0] = args;
17812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17813 if (!SWIG_IsOK(res1)) {
17814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17815 }
17816 arg1 = reinterpret_cast< wxDC * >(argp1);
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 result = (int)((wxDC const *)arg1)->GetCharWidth();
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 resultobj = SWIG_From_int(static_cast< int >(result));
17824 return resultobj;
17825 fail:
17826 return NULL;
17827 }
17828
17829
17830 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj = 0;
17832 wxDC *arg1 = (wxDC *) 0 ;
17833 wxString *arg2 = 0 ;
17834 int *arg3 = (int *) 0 ;
17835 int *arg4 = (int *) 0 ;
17836 void *argp1 = 0 ;
17837 int res1 = 0 ;
17838 bool temp2 = false ;
17839 int temp3 ;
17840 int res3 = SWIG_TMPOBJ ;
17841 int temp4 ;
17842 int res4 = SWIG_TMPOBJ ;
17843 PyObject * obj0 = 0 ;
17844 PyObject * obj1 = 0 ;
17845 char * kwnames[] = {
17846 (char *) "self",(char *) "string", NULL
17847 };
17848
17849 arg3 = &temp3;
17850 arg4 = &temp4;
17851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17853 if (!SWIG_IsOK(res1)) {
17854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17855 }
17856 arg1 = reinterpret_cast< wxDC * >(argp1);
17857 {
17858 arg2 = wxString_in_helper(obj1);
17859 if (arg2 == NULL) SWIG_fail;
17860 temp2 = true;
17861 }
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 resultobj = SWIG_Py_Void();
17869 if (SWIG_IsTmpObj(res3)) {
17870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17871 } else {
17872 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17874 }
17875 if (SWIG_IsTmpObj(res4)) {
17876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17877 } else {
17878 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17880 }
17881 {
17882 if (temp2)
17883 delete arg2;
17884 }
17885 return resultobj;
17886 fail:
17887 {
17888 if (temp2)
17889 delete arg2;
17890 }
17891 return NULL;
17892 }
17893
17894
17895 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17896 PyObject *resultobj = 0;
17897 wxDC *arg1 = (wxDC *) 0 ;
17898 wxString *arg2 = 0 ;
17899 int *arg3 = (int *) 0 ;
17900 int *arg4 = (int *) 0 ;
17901 int *arg5 = (int *) 0 ;
17902 int *arg6 = (int *) 0 ;
17903 wxFont *arg7 = (wxFont *) NULL ;
17904 void *argp1 = 0 ;
17905 int res1 = 0 ;
17906 bool temp2 = false ;
17907 int temp3 ;
17908 int res3 = SWIG_TMPOBJ ;
17909 int temp4 ;
17910 int res4 = SWIG_TMPOBJ ;
17911 int temp5 ;
17912 int res5 = SWIG_TMPOBJ ;
17913 int temp6 ;
17914 int res6 = SWIG_TMPOBJ ;
17915 void *argp7 = 0 ;
17916 int res7 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 PyObject * obj2 = 0 ;
17920 char * kwnames[] = {
17921 (char *) "self",(char *) "string",(char *) "font", NULL
17922 };
17923
17924 arg3 = &temp3;
17925 arg4 = &temp4;
17926 arg5 = &temp5;
17927 arg6 = &temp6;
17928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17930 if (!SWIG_IsOK(res1)) {
17931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17932 }
17933 arg1 = reinterpret_cast< wxDC * >(argp1);
17934 {
17935 arg2 = wxString_in_helper(obj1);
17936 if (arg2 == NULL) SWIG_fail;
17937 temp2 = true;
17938 }
17939 if (obj2) {
17940 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17941 if (!SWIG_IsOK(res7)) {
17942 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17943 }
17944 arg7 = reinterpret_cast< wxFont * >(argp7);
17945 }
17946 {
17947 PyThreadState* __tstate = wxPyBeginAllowThreads();
17948 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 resultobj = SWIG_Py_Void();
17953 if (SWIG_IsTmpObj(res3)) {
17954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17955 } else {
17956 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17958 }
17959 if (SWIG_IsTmpObj(res4)) {
17960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17961 } else {
17962 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17964 }
17965 if (SWIG_IsTmpObj(res5)) {
17966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17967 } else {
17968 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17970 }
17971 if (SWIG_IsTmpObj(res6)) {
17972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17973 } else {
17974 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17976 }
17977 {
17978 if (temp2)
17979 delete arg2;
17980 }
17981 return resultobj;
17982 fail:
17983 {
17984 if (temp2)
17985 delete arg2;
17986 }
17987 return NULL;
17988 }
17989
17990
17991 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj = 0;
17993 wxDC *arg1 = (wxDC *) 0 ;
17994 wxString *arg2 = 0 ;
17995 int *arg3 = (int *) 0 ;
17996 int *arg4 = (int *) 0 ;
17997 int *arg5 = (int *) 0 ;
17998 wxFont *arg6 = (wxFont *) NULL ;
17999 void *argp1 = 0 ;
18000 int res1 = 0 ;
18001 bool temp2 = false ;
18002 int temp3 ;
18003 int res3 = SWIG_TMPOBJ ;
18004 int temp4 ;
18005 int res4 = SWIG_TMPOBJ ;
18006 int temp5 ;
18007 int res5 = SWIG_TMPOBJ ;
18008 void *argp6 = 0 ;
18009 int res6 = 0 ;
18010 PyObject * obj0 = 0 ;
18011 PyObject * obj1 = 0 ;
18012 PyObject * obj2 = 0 ;
18013 char * kwnames[] = {
18014 (char *) "self",(char *) "text",(char *) "font", NULL
18015 };
18016
18017 arg3 = &temp3;
18018 arg4 = &temp4;
18019 arg5 = &temp5;
18020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18022 if (!SWIG_IsOK(res1)) {
18023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18024 }
18025 arg1 = reinterpret_cast< wxDC * >(argp1);
18026 {
18027 arg2 = wxString_in_helper(obj1);
18028 if (arg2 == NULL) SWIG_fail;
18029 temp2 = true;
18030 }
18031 if (obj2) {
18032 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18033 if (!SWIG_IsOK(res6)) {
18034 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18035 }
18036 arg6 = reinterpret_cast< wxFont * >(argp6);
18037 }
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 resultobj = SWIG_Py_Void();
18045 if (SWIG_IsTmpObj(res3)) {
18046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18047 } else {
18048 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18050 }
18051 if (SWIG_IsTmpObj(res4)) {
18052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18053 } else {
18054 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18055 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18056 }
18057 if (SWIG_IsTmpObj(res5)) {
18058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18059 } else {
18060 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18061 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18062 }
18063 {
18064 if (temp2)
18065 delete arg2;
18066 }
18067 return resultobj;
18068 fail:
18069 {
18070 if (temp2)
18071 delete arg2;
18072 }
18073 return NULL;
18074 }
18075
18076
18077 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj = 0;
18079 wxDC *arg1 = (wxDC *) 0 ;
18080 wxString *arg2 = 0 ;
18081 wxArrayInt result;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 bool temp2 = false ;
18085 PyObject * obj0 = 0 ;
18086 PyObject * obj1 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "text", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 {
18098 arg2 = wxString_in_helper(obj1);
18099 if (arg2 == NULL) SWIG_fail;
18100 temp2 = true;
18101 }
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18105 wxPyEndAllowThreads(__tstate);
18106 if (PyErr_Occurred()) SWIG_fail;
18107 }
18108 {
18109 resultobj = PyList_New(0);
18110 size_t idx;
18111 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18112 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18113 PyList_Append(resultobj, val);
18114 Py_DECREF(val);
18115 }
18116 }
18117 {
18118 if (temp2)
18119 delete arg2;
18120 }
18121 return resultobj;
18122 fail:
18123 {
18124 if (temp2)
18125 delete arg2;
18126 }
18127 return NULL;
18128 }
18129
18130
18131 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18132 PyObject *resultobj = 0;
18133 wxDC *arg1 = (wxDC *) 0 ;
18134 wxSize result;
18135 void *argp1 = 0 ;
18136 int res1 = 0 ;
18137 PyObject *swig_obj[1] ;
18138
18139 if (!args) SWIG_fail;
18140 swig_obj[0] = args;
18141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18142 if (!SWIG_IsOK(res1)) {
18143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18144 }
18145 arg1 = reinterpret_cast< wxDC * >(argp1);
18146 {
18147 PyThreadState* __tstate = wxPyBeginAllowThreads();
18148 result = (arg1)->GetSize();
18149 wxPyEndAllowThreads(__tstate);
18150 if (PyErr_Occurred()) SWIG_fail;
18151 }
18152 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18153 return resultobj;
18154 fail:
18155 return NULL;
18156 }
18157
18158
18159 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18160 PyObject *resultobj = 0;
18161 wxDC *arg1 = (wxDC *) 0 ;
18162 int *arg2 = (int *) 0 ;
18163 int *arg3 = (int *) 0 ;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 int temp2 ;
18167 int res2 = SWIG_TMPOBJ ;
18168 int temp3 ;
18169 int res3 = SWIG_TMPOBJ ;
18170 PyObject *swig_obj[1] ;
18171
18172 arg2 = &temp2;
18173 arg3 = &temp3;
18174 if (!args) SWIG_fail;
18175 swig_obj[0] = args;
18176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18177 if (!SWIG_IsOK(res1)) {
18178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18179 }
18180 arg1 = reinterpret_cast< wxDC * >(argp1);
18181 {
18182 PyThreadState* __tstate = wxPyBeginAllowThreads();
18183 (arg1)->GetSize(arg2,arg3);
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_Py_Void();
18188 if (SWIG_IsTmpObj(res2)) {
18189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18190 } else {
18191 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18192 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18193 }
18194 if (SWIG_IsTmpObj(res3)) {
18195 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18196 } else {
18197 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18198 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18199 }
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18207 PyObject *resultobj = 0;
18208 wxDC *arg1 = (wxDC *) 0 ;
18209 wxSize result;
18210 void *argp1 = 0 ;
18211 int res1 = 0 ;
18212 PyObject *swig_obj[1] ;
18213
18214 if (!args) SWIG_fail;
18215 swig_obj[0] = args;
18216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18217 if (!SWIG_IsOK(res1)) {
18218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18219 }
18220 arg1 = reinterpret_cast< wxDC * >(argp1);
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 result = ((wxDC const *)arg1)->GetSizeMM();
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18228 return resultobj;
18229 fail:
18230 return NULL;
18231 }
18232
18233
18234 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18235 PyObject *resultobj = 0;
18236 wxDC *arg1 = (wxDC *) 0 ;
18237 int *arg2 = (int *) 0 ;
18238 int *arg3 = (int *) 0 ;
18239 void *argp1 = 0 ;
18240 int res1 = 0 ;
18241 int temp2 ;
18242 int res2 = SWIG_TMPOBJ ;
18243 int temp3 ;
18244 int res3 = SWIG_TMPOBJ ;
18245 PyObject *swig_obj[1] ;
18246
18247 arg2 = &temp2;
18248 arg3 = &temp3;
18249 if (!args) SWIG_fail;
18250 swig_obj[0] = args;
18251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18254 }
18255 arg1 = reinterpret_cast< wxDC * >(argp1);
18256 {
18257 PyThreadState* __tstate = wxPyBeginAllowThreads();
18258 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18259 wxPyEndAllowThreads(__tstate);
18260 if (PyErr_Occurred()) SWIG_fail;
18261 }
18262 resultobj = SWIG_Py_Void();
18263 if (SWIG_IsTmpObj(res2)) {
18264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18265 } else {
18266 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18268 }
18269 if (SWIG_IsTmpObj(res3)) {
18270 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18271 } else {
18272 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18273 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18274 }
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 int arg2 ;
18285 int result;
18286 void *argp1 = 0 ;
18287 int res1 = 0 ;
18288 int val2 ;
18289 int ecode2 = 0 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char * kwnames[] = {
18293 (char *) "self",(char *) "x", NULL
18294 };
18295
18296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18298 if (!SWIG_IsOK(res1)) {
18299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18300 }
18301 arg1 = reinterpret_cast< wxDC * >(argp1);
18302 ecode2 = SWIG_AsVal_int(obj1, &val2);
18303 if (!SWIG_IsOK(ecode2)) {
18304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18305 }
18306 arg2 = static_cast< int >(val2);
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 resultobj = SWIG_From_int(static_cast< int >(result));
18314 return resultobj;
18315 fail:
18316 return NULL;
18317 }
18318
18319
18320 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj = 0;
18322 wxDC *arg1 = (wxDC *) 0 ;
18323 int arg2 ;
18324 int result;
18325 void *argp1 = 0 ;
18326 int res1 = 0 ;
18327 int val2 ;
18328 int ecode2 = 0 ;
18329 PyObject * obj0 = 0 ;
18330 PyObject * obj1 = 0 ;
18331 char * kwnames[] = {
18332 (char *) "self",(char *) "y", NULL
18333 };
18334
18335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18337 if (!SWIG_IsOK(res1)) {
18338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18339 }
18340 arg1 = reinterpret_cast< wxDC * >(argp1);
18341 ecode2 = SWIG_AsVal_int(obj1, &val2);
18342 if (!SWIG_IsOK(ecode2)) {
18343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18344 }
18345 arg2 = static_cast< int >(val2);
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 resultobj = SWIG_From_int(static_cast< int >(result));
18353 return resultobj;
18354 fail:
18355 return NULL;
18356 }
18357
18358
18359 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18360 PyObject *resultobj = 0;
18361 wxDC *arg1 = (wxDC *) 0 ;
18362 int arg2 ;
18363 int result;
18364 void *argp1 = 0 ;
18365 int res1 = 0 ;
18366 int val2 ;
18367 int ecode2 = 0 ;
18368 PyObject * obj0 = 0 ;
18369 PyObject * obj1 = 0 ;
18370 char * kwnames[] = {
18371 (char *) "self",(char *) "x", NULL
18372 };
18373
18374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18376 if (!SWIG_IsOK(res1)) {
18377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18378 }
18379 arg1 = reinterpret_cast< wxDC * >(argp1);
18380 ecode2 = SWIG_AsVal_int(obj1, &val2);
18381 if (!SWIG_IsOK(ecode2)) {
18382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18383 }
18384 arg2 = static_cast< int >(val2);
18385 {
18386 PyThreadState* __tstate = wxPyBeginAllowThreads();
18387 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18388 wxPyEndAllowThreads(__tstate);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 resultobj = SWIG_From_int(static_cast< int >(result));
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj = 0;
18400 wxDC *arg1 = (wxDC *) 0 ;
18401 int arg2 ;
18402 int result;
18403 void *argp1 = 0 ;
18404 int res1 = 0 ;
18405 int val2 ;
18406 int ecode2 = 0 ;
18407 PyObject * obj0 = 0 ;
18408 PyObject * obj1 = 0 ;
18409 char * kwnames[] = {
18410 (char *) "self",(char *) "y", NULL
18411 };
18412
18413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18417 }
18418 arg1 = reinterpret_cast< wxDC * >(argp1);
18419 ecode2 = SWIG_AsVal_int(obj1, &val2);
18420 if (!SWIG_IsOK(ecode2)) {
18421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18422 }
18423 arg2 = static_cast< int >(val2);
18424 {
18425 PyThreadState* __tstate = wxPyBeginAllowThreads();
18426 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18427 wxPyEndAllowThreads(__tstate);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 resultobj = SWIG_From_int(static_cast< int >(result));
18431 return resultobj;
18432 fail:
18433 return NULL;
18434 }
18435
18436
18437 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18438 PyObject *resultobj = 0;
18439 wxDC *arg1 = (wxDC *) 0 ;
18440 int arg2 ;
18441 int result;
18442 void *argp1 = 0 ;
18443 int res1 = 0 ;
18444 int val2 ;
18445 int ecode2 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 char * kwnames[] = {
18449 (char *) "self",(char *) "x", NULL
18450 };
18451
18452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18454 if (!SWIG_IsOK(res1)) {
18455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18456 }
18457 arg1 = reinterpret_cast< wxDC * >(argp1);
18458 ecode2 = SWIG_AsVal_int(obj1, &val2);
18459 if (!SWIG_IsOK(ecode2)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18461 }
18462 arg2 = static_cast< int >(val2);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_From_int(static_cast< int >(result));
18470 return resultobj;
18471 fail:
18472 return NULL;
18473 }
18474
18475
18476 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj = 0;
18478 wxDC *arg1 = (wxDC *) 0 ;
18479 int arg2 ;
18480 int result;
18481 void *argp1 = 0 ;
18482 int res1 = 0 ;
18483 int val2 ;
18484 int ecode2 = 0 ;
18485 PyObject * obj0 = 0 ;
18486 PyObject * obj1 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "self",(char *) "y", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18493 if (!SWIG_IsOK(res1)) {
18494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18495 }
18496 arg1 = reinterpret_cast< wxDC * >(argp1);
18497 ecode2 = SWIG_AsVal_int(obj1, &val2);
18498 if (!SWIG_IsOK(ecode2)) {
18499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18500 }
18501 arg2 = static_cast< int >(val2);
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 resultobj = SWIG_From_int(static_cast< int >(result));
18509 return resultobj;
18510 fail:
18511 return NULL;
18512 }
18513
18514
18515 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj = 0;
18517 wxDC *arg1 = (wxDC *) 0 ;
18518 int arg2 ;
18519 int result;
18520 void *argp1 = 0 ;
18521 int res1 = 0 ;
18522 int val2 ;
18523 int ecode2 = 0 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 char * kwnames[] = {
18527 (char *) "self",(char *) "x", NULL
18528 };
18529
18530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18532 if (!SWIG_IsOK(res1)) {
18533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18534 }
18535 arg1 = reinterpret_cast< wxDC * >(argp1);
18536 ecode2 = SWIG_AsVal_int(obj1, &val2);
18537 if (!SWIG_IsOK(ecode2)) {
18538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18539 }
18540 arg2 = static_cast< int >(val2);
18541 {
18542 PyThreadState* __tstate = wxPyBeginAllowThreads();
18543 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18544 wxPyEndAllowThreads(__tstate);
18545 if (PyErr_Occurred()) SWIG_fail;
18546 }
18547 resultobj = SWIG_From_int(static_cast< int >(result));
18548 return resultobj;
18549 fail:
18550 return NULL;
18551 }
18552
18553
18554 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18555 PyObject *resultobj = 0;
18556 wxDC *arg1 = (wxDC *) 0 ;
18557 int arg2 ;
18558 int result;
18559 void *argp1 = 0 ;
18560 int res1 = 0 ;
18561 int val2 ;
18562 int ecode2 = 0 ;
18563 PyObject * obj0 = 0 ;
18564 PyObject * obj1 = 0 ;
18565 char * kwnames[] = {
18566 (char *) "self",(char *) "y", NULL
18567 };
18568
18569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18573 }
18574 arg1 = reinterpret_cast< wxDC * >(argp1);
18575 ecode2 = SWIG_AsVal_int(obj1, &val2);
18576 if (!SWIG_IsOK(ecode2)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18578 }
18579 arg2 = static_cast< int >(val2);
18580 {
18581 PyThreadState* __tstate = wxPyBeginAllowThreads();
18582 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18583 wxPyEndAllowThreads(__tstate);
18584 if (PyErr_Occurred()) SWIG_fail;
18585 }
18586 resultobj = SWIG_From_int(static_cast< int >(result));
18587 return resultobj;
18588 fail:
18589 return NULL;
18590 }
18591
18592
18593 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18594 PyObject *resultobj = 0;
18595 wxDC *arg1 = (wxDC *) 0 ;
18596 bool result;
18597 void *argp1 = 0 ;
18598 int res1 = 0 ;
18599 PyObject *swig_obj[1] ;
18600
18601 if (!args) SWIG_fail;
18602 swig_obj[0] = args;
18603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18604 if (!SWIG_IsOK(res1)) {
18605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18606 }
18607 arg1 = reinterpret_cast< wxDC * >(argp1);
18608 {
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18611 wxPyEndAllowThreads(__tstate);
18612 if (PyErr_Occurred()) SWIG_fail;
18613 }
18614 {
18615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18616 }
18617 return resultobj;
18618 fail:
18619 return NULL;
18620 }
18621
18622
18623 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18624 PyObject *resultobj = 0;
18625 wxDC *arg1 = (wxDC *) 0 ;
18626 bool result;
18627 void *argp1 = 0 ;
18628 int res1 = 0 ;
18629 PyObject *swig_obj[1] ;
18630
18631 if (!args) SWIG_fail;
18632 swig_obj[0] = args;
18633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18634 if (!SWIG_IsOK(res1)) {
18635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18636 }
18637 arg1 = reinterpret_cast< wxDC * >(argp1);
18638 {
18639 PyThreadState* __tstate = wxPyBeginAllowThreads();
18640 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18641 wxPyEndAllowThreads(__tstate);
18642 if (PyErr_Occurred()) SWIG_fail;
18643 }
18644 {
18645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18646 }
18647 return resultobj;
18648 fail:
18649 return NULL;
18650 }
18651
18652
18653 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18654 PyObject *resultobj = 0;
18655 wxDC *arg1 = (wxDC *) 0 ;
18656 int result;
18657 void *argp1 = 0 ;
18658 int res1 = 0 ;
18659 PyObject *swig_obj[1] ;
18660
18661 if (!args) SWIG_fail;
18662 swig_obj[0] = args;
18663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18664 if (!SWIG_IsOK(res1)) {
18665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18666 }
18667 arg1 = reinterpret_cast< wxDC * >(argp1);
18668 {
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 result = (int)((wxDC const *)arg1)->GetDepth();
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 resultobj = SWIG_From_int(static_cast< int >(result));
18675 return resultobj;
18676 fail:
18677 return NULL;
18678 }
18679
18680
18681 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18682 PyObject *resultobj = 0;
18683 wxDC *arg1 = (wxDC *) 0 ;
18684 wxSize result;
18685 void *argp1 = 0 ;
18686 int res1 = 0 ;
18687 PyObject *swig_obj[1] ;
18688
18689 if (!args) SWIG_fail;
18690 swig_obj[0] = args;
18691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18692 if (!SWIG_IsOK(res1)) {
18693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18694 }
18695 arg1 = reinterpret_cast< wxDC * >(argp1);
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 result = ((wxDC const *)arg1)->GetPPI();
18699 wxPyEndAllowThreads(__tstate);
18700 if (PyErr_Occurred()) SWIG_fail;
18701 }
18702 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18703 return resultobj;
18704 fail:
18705 return NULL;
18706 }
18707
18708
18709 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18710 PyObject *resultobj = 0;
18711 wxDC *arg1 = (wxDC *) 0 ;
18712 bool result;
18713 void *argp1 = 0 ;
18714 int res1 = 0 ;
18715 PyObject *swig_obj[1] ;
18716
18717 if (!args) SWIG_fail;
18718 swig_obj[0] = args;
18719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18720 if (!SWIG_IsOK(res1)) {
18721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18722 }
18723 arg1 = reinterpret_cast< wxDC * >(argp1);
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 result = (bool)((wxDC const *)arg1)->Ok();
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 {
18731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18732 }
18733 return resultobj;
18734 fail:
18735 return NULL;
18736 }
18737
18738
18739 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18740 PyObject *resultobj = 0;
18741 wxDC *arg1 = (wxDC *) 0 ;
18742 int result;
18743 void *argp1 = 0 ;
18744 int res1 = 0 ;
18745 PyObject *swig_obj[1] ;
18746
18747 if (!args) SWIG_fail;
18748 swig_obj[0] = args;
18749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18750 if (!SWIG_IsOK(res1)) {
18751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18752 }
18753 arg1 = reinterpret_cast< wxDC * >(argp1);
18754 {
18755 PyThreadState* __tstate = wxPyBeginAllowThreads();
18756 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18757 wxPyEndAllowThreads(__tstate);
18758 if (PyErr_Occurred()) SWIG_fail;
18759 }
18760 resultobj = SWIG_From_int(static_cast< int >(result));
18761 return resultobj;
18762 fail:
18763 return NULL;
18764 }
18765
18766
18767 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18768 PyObject *resultobj = 0;
18769 wxDC *arg1 = (wxDC *) 0 ;
18770 wxBrush *result = 0 ;
18771 void *argp1 = 0 ;
18772 int res1 = 0 ;
18773 PyObject *swig_obj[1] ;
18774
18775 if (!args) SWIG_fail;
18776 swig_obj[0] = args;
18777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18778 if (!SWIG_IsOK(res1)) {
18779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18780 }
18781 arg1 = reinterpret_cast< wxDC * >(argp1);
18782 {
18783 PyThreadState* __tstate = wxPyBeginAllowThreads();
18784 {
18785 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18786 result = (wxBrush *) &_result_ref;
18787 }
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 {
18792 wxBrush* resultptr = new wxBrush(*result);
18793 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18794 }
18795 return resultobj;
18796 fail:
18797 return NULL;
18798 }
18799
18800
18801 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18802 PyObject *resultobj = 0;
18803 wxDC *arg1 = (wxDC *) 0 ;
18804 wxBrush *result = 0 ;
18805 void *argp1 = 0 ;
18806 int res1 = 0 ;
18807 PyObject *swig_obj[1] ;
18808
18809 if (!args) SWIG_fail;
18810 swig_obj[0] = args;
18811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 {
18817 PyThreadState* __tstate = wxPyBeginAllowThreads();
18818 {
18819 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18820 result = (wxBrush *) &_result_ref;
18821 }
18822 wxPyEndAllowThreads(__tstate);
18823 if (PyErr_Occurred()) SWIG_fail;
18824 }
18825 {
18826 wxBrush* resultptr = new wxBrush(*result);
18827 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18828 }
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxFont *result = 0 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 PyObject *swig_obj[1] ;
18842
18843 if (!args) SWIG_fail;
18844 swig_obj[0] = args;
18845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18846 if (!SWIG_IsOK(res1)) {
18847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18848 }
18849 arg1 = reinterpret_cast< wxDC * >(argp1);
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 {
18853 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18854 result = (wxFont *) &_result_ref;
18855 }
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 {
18860 wxFont* resultptr = new wxFont(*result);
18861 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18862 }
18863 return resultobj;
18864 fail:
18865 return NULL;
18866 }
18867
18868
18869 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18870 PyObject *resultobj = 0;
18871 wxDC *arg1 = (wxDC *) 0 ;
18872 wxPen *result = 0 ;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 PyObject *swig_obj[1] ;
18876
18877 if (!args) SWIG_fail;
18878 swig_obj[0] = args;
18879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18880 if (!SWIG_IsOK(res1)) {
18881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18882 }
18883 arg1 = reinterpret_cast< wxDC * >(argp1);
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 {
18887 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18888 result = (wxPen *) &_result_ref;
18889 }
18890 wxPyEndAllowThreads(__tstate);
18891 if (PyErr_Occurred()) SWIG_fail;
18892 }
18893 {
18894 wxPen* resultptr = new wxPen(*result);
18895 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18896 }
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18904 PyObject *resultobj = 0;
18905 wxDC *arg1 = (wxDC *) 0 ;
18906 wxColour *result = 0 ;
18907 void *argp1 = 0 ;
18908 int res1 = 0 ;
18909 PyObject *swig_obj[1] ;
18910
18911 if (!args) SWIG_fail;
18912 swig_obj[0] = args;
18913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18914 if (!SWIG_IsOK(res1)) {
18915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18916 }
18917 arg1 = reinterpret_cast< wxDC * >(argp1);
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 {
18921 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18922 result = (wxColour *) &_result_ref;
18923 }
18924 wxPyEndAllowThreads(__tstate);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18928 return resultobj;
18929 fail:
18930 return NULL;
18931 }
18932
18933
18934 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18935 PyObject *resultobj = 0;
18936 wxDC *arg1 = (wxDC *) 0 ;
18937 wxColour *result = 0 ;
18938 void *argp1 = 0 ;
18939 int res1 = 0 ;
18940 PyObject *swig_obj[1] ;
18941
18942 if (!args) SWIG_fail;
18943 swig_obj[0] = args;
18944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 PyThreadState* __tstate = wxPyBeginAllowThreads();
18951 {
18952 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18953 result = (wxColour *) &_result_ref;
18954 }
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18959 return resultobj;
18960 fail:
18961 return NULL;
18962 }
18963
18964
18965 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18966 PyObject *resultobj = 0;
18967 wxDC *arg1 = (wxDC *) 0 ;
18968 wxColour *arg2 = 0 ;
18969 void *argp1 = 0 ;
18970 int res1 = 0 ;
18971 wxColour temp2 ;
18972 PyObject * obj0 = 0 ;
18973 PyObject * obj1 = 0 ;
18974 char * kwnames[] = {
18975 (char *) "self",(char *) "colour", NULL
18976 };
18977
18978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18980 if (!SWIG_IsOK(res1)) {
18981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18982 }
18983 arg1 = reinterpret_cast< wxDC * >(argp1);
18984 {
18985 arg2 = &temp2;
18986 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18987 }
18988 {
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 (arg1)->SetTextForeground((wxColour const &)*arg2);
18991 wxPyEndAllowThreads(__tstate);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 resultobj = SWIG_Py_Void();
18995 return resultobj;
18996 fail:
18997 return NULL;
18998 }
18999
19000
19001 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19002 PyObject *resultobj = 0;
19003 wxDC *arg1 = (wxDC *) 0 ;
19004 wxColour *arg2 = 0 ;
19005 void *argp1 = 0 ;
19006 int res1 = 0 ;
19007 wxColour temp2 ;
19008 PyObject * obj0 = 0 ;
19009 PyObject * obj1 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "colour", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19018 }
19019 arg1 = reinterpret_cast< wxDC * >(argp1);
19020 {
19021 arg2 = &temp2;
19022 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19023 }
19024 {
19025 PyThreadState* __tstate = wxPyBeginAllowThreads();
19026 (arg1)->SetTextBackground((wxColour const &)*arg2);
19027 wxPyEndAllowThreads(__tstate);
19028 if (PyErr_Occurred()) SWIG_fail;
19029 }
19030 resultobj = SWIG_Py_Void();
19031 return resultobj;
19032 fail:
19033 return NULL;
19034 }
19035
19036
19037 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19038 PyObject *resultobj = 0;
19039 wxDC *arg1 = (wxDC *) 0 ;
19040 int result;
19041 void *argp1 = 0 ;
19042 int res1 = 0 ;
19043 PyObject *swig_obj[1] ;
19044
19045 if (!args) SWIG_fail;
19046 swig_obj[0] = args;
19047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19048 if (!SWIG_IsOK(res1)) {
19049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19050 }
19051 arg1 = reinterpret_cast< wxDC * >(argp1);
19052 {
19053 PyThreadState* __tstate = wxPyBeginAllowThreads();
19054 result = (int)((wxDC const *)arg1)->GetMapMode();
19055 wxPyEndAllowThreads(__tstate);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 }
19058 resultobj = SWIG_From_int(static_cast< int >(result));
19059 return resultobj;
19060 fail:
19061 return NULL;
19062 }
19063
19064
19065 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19066 PyObject *resultobj = 0;
19067 wxDC *arg1 = (wxDC *) 0 ;
19068 int arg2 ;
19069 void *argp1 = 0 ;
19070 int res1 = 0 ;
19071 int val2 ;
19072 int ecode2 = 0 ;
19073 PyObject * obj0 = 0 ;
19074 PyObject * obj1 = 0 ;
19075 char * kwnames[] = {
19076 (char *) "self",(char *) "mode", NULL
19077 };
19078
19079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19081 if (!SWIG_IsOK(res1)) {
19082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19083 }
19084 arg1 = reinterpret_cast< wxDC * >(argp1);
19085 ecode2 = SWIG_AsVal_int(obj1, &val2);
19086 if (!SWIG_IsOK(ecode2)) {
19087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19088 }
19089 arg2 = static_cast< int >(val2);
19090 {
19091 PyThreadState* __tstate = wxPyBeginAllowThreads();
19092 (arg1)->SetMapMode(arg2);
19093 wxPyEndAllowThreads(__tstate);
19094 if (PyErr_Occurred()) SWIG_fail;
19095 }
19096 resultobj = SWIG_Py_Void();
19097 return resultobj;
19098 fail:
19099 return NULL;
19100 }
19101
19102
19103 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19104 PyObject *resultobj = 0;
19105 wxDC *arg1 = (wxDC *) 0 ;
19106 double *arg2 = (double *) 0 ;
19107 double *arg3 = (double *) 0 ;
19108 void *argp1 = 0 ;
19109 int res1 = 0 ;
19110 double temp2 ;
19111 int res2 = SWIG_TMPOBJ ;
19112 double temp3 ;
19113 int res3 = SWIG_TMPOBJ ;
19114 PyObject *swig_obj[1] ;
19115
19116 arg2 = &temp2;
19117 arg3 = &temp3;
19118 if (!args) SWIG_fail;
19119 swig_obj[0] = args;
19120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19121 if (!SWIG_IsOK(res1)) {
19122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19123 }
19124 arg1 = reinterpret_cast< wxDC * >(argp1);
19125 {
19126 PyThreadState* __tstate = wxPyBeginAllowThreads();
19127 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19128 wxPyEndAllowThreads(__tstate);
19129 if (PyErr_Occurred()) SWIG_fail;
19130 }
19131 resultobj = SWIG_Py_Void();
19132 if (SWIG_IsTmpObj(res2)) {
19133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19134 } else {
19135 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19137 }
19138 if (SWIG_IsTmpObj(res3)) {
19139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19140 } else {
19141 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19143 }
19144 return resultobj;
19145 fail:
19146 return NULL;
19147 }
19148
19149
19150 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj = 0;
19152 wxDC *arg1 = (wxDC *) 0 ;
19153 double arg2 ;
19154 double arg3 ;
19155 void *argp1 = 0 ;
19156 int res1 = 0 ;
19157 double val2 ;
19158 int ecode2 = 0 ;
19159 double val3 ;
19160 int ecode3 = 0 ;
19161 PyObject * obj0 = 0 ;
19162 PyObject * obj1 = 0 ;
19163 PyObject * obj2 = 0 ;
19164 char * kwnames[] = {
19165 (char *) "self",(char *) "x",(char *) "y", NULL
19166 };
19167
19168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19170 if (!SWIG_IsOK(res1)) {
19171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19172 }
19173 arg1 = reinterpret_cast< wxDC * >(argp1);
19174 ecode2 = SWIG_AsVal_double(obj1, &val2);
19175 if (!SWIG_IsOK(ecode2)) {
19176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19177 }
19178 arg2 = static_cast< double >(val2);
19179 ecode3 = SWIG_AsVal_double(obj2, &val3);
19180 if (!SWIG_IsOK(ecode3)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19182 }
19183 arg3 = static_cast< double >(val3);
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 (arg1)->SetUserScale(arg2,arg3);
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_Py_Void();
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19198 PyObject *resultobj = 0;
19199 wxDC *arg1 = (wxDC *) 0 ;
19200 double *arg2 = (double *) 0 ;
19201 double *arg3 = (double *) 0 ;
19202 void *argp1 = 0 ;
19203 int res1 = 0 ;
19204 double temp2 ;
19205 int res2 = SWIG_TMPOBJ ;
19206 double temp3 ;
19207 int res3 = SWIG_TMPOBJ ;
19208 PyObject *swig_obj[1] ;
19209
19210 arg2 = &temp2;
19211 arg3 = &temp3;
19212 if (!args) SWIG_fail;
19213 swig_obj[0] = args;
19214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19217 }
19218 arg1 = reinterpret_cast< wxDC * >(argp1);
19219 {
19220 PyThreadState* __tstate = wxPyBeginAllowThreads();
19221 (arg1)->GetLogicalScale(arg2,arg3);
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_Py_Void();
19226 if (SWIG_IsTmpObj(res2)) {
19227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19228 } else {
19229 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19231 }
19232 if (SWIG_IsTmpObj(res3)) {
19233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19234 } else {
19235 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19237 }
19238 return resultobj;
19239 fail:
19240 return NULL;
19241 }
19242
19243
19244 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19245 PyObject *resultobj = 0;
19246 wxDC *arg1 = (wxDC *) 0 ;
19247 double arg2 ;
19248 double arg3 ;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 double val2 ;
19252 int ecode2 = 0 ;
19253 double val3 ;
19254 int ecode3 = 0 ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 PyObject * obj2 = 0 ;
19258 char * kwnames[] = {
19259 (char *) "self",(char *) "x",(char *) "y", NULL
19260 };
19261
19262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19264 if (!SWIG_IsOK(res1)) {
19265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19266 }
19267 arg1 = reinterpret_cast< wxDC * >(argp1);
19268 ecode2 = SWIG_AsVal_double(obj1, &val2);
19269 if (!SWIG_IsOK(ecode2)) {
19270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19271 }
19272 arg2 = static_cast< double >(val2);
19273 ecode3 = SWIG_AsVal_double(obj2, &val3);
19274 if (!SWIG_IsOK(ecode3)) {
19275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19276 }
19277 arg3 = static_cast< double >(val3);
19278 {
19279 PyThreadState* __tstate = wxPyBeginAllowThreads();
19280 (arg1)->SetLogicalScale(arg2,arg3);
19281 wxPyEndAllowThreads(__tstate);
19282 if (PyErr_Occurred()) SWIG_fail;
19283 }
19284 resultobj = SWIG_Py_Void();
19285 return resultobj;
19286 fail:
19287 return NULL;
19288 }
19289
19290
19291 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19292 PyObject *resultobj = 0;
19293 wxDC *arg1 = (wxDC *) 0 ;
19294 wxPoint result;
19295 void *argp1 = 0 ;
19296 int res1 = 0 ;
19297 PyObject *swig_obj[1] ;
19298
19299 if (!args) SWIG_fail;
19300 swig_obj[0] = args;
19301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19302 if (!SWIG_IsOK(res1)) {
19303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19304 }
19305 arg1 = reinterpret_cast< wxDC * >(argp1);
19306 {
19307 PyThreadState* __tstate = wxPyBeginAllowThreads();
19308 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19309 wxPyEndAllowThreads(__tstate);
19310 if (PyErr_Occurred()) SWIG_fail;
19311 }
19312 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19313 return resultobj;
19314 fail:
19315 return NULL;
19316 }
19317
19318
19319 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19320 PyObject *resultobj = 0;
19321 wxDC *arg1 = (wxDC *) 0 ;
19322 int *arg2 = (int *) 0 ;
19323 int *arg3 = (int *) 0 ;
19324 void *argp1 = 0 ;
19325 int res1 = 0 ;
19326 int temp2 ;
19327 int res2 = SWIG_TMPOBJ ;
19328 int temp3 ;
19329 int res3 = SWIG_TMPOBJ ;
19330 PyObject *swig_obj[1] ;
19331
19332 arg2 = &temp2;
19333 arg3 = &temp3;
19334 if (!args) SWIG_fail;
19335 swig_obj[0] = args;
19336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res1)) {
19338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19339 }
19340 arg1 = reinterpret_cast< wxDC * >(argp1);
19341 {
19342 PyThreadState* __tstate = wxPyBeginAllowThreads();
19343 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19344 wxPyEndAllowThreads(__tstate);
19345 if (PyErr_Occurred()) SWIG_fail;
19346 }
19347 resultobj = SWIG_Py_Void();
19348 if (SWIG_IsTmpObj(res2)) {
19349 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19350 } else {
19351 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19352 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19353 }
19354 if (SWIG_IsTmpObj(res3)) {
19355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19356 } else {
19357 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19359 }
19360 return resultobj;
19361 fail:
19362 return NULL;
19363 }
19364
19365
19366 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19367 PyObject *resultobj = 0;
19368 wxDC *arg1 = (wxDC *) 0 ;
19369 int arg2 ;
19370 int arg3 ;
19371 void *argp1 = 0 ;
19372 int res1 = 0 ;
19373 int val2 ;
19374 int ecode2 = 0 ;
19375 int val3 ;
19376 int ecode3 = 0 ;
19377 PyObject * obj0 = 0 ;
19378 PyObject * obj1 = 0 ;
19379 PyObject * obj2 = 0 ;
19380 char * kwnames[] = {
19381 (char *) "self",(char *) "x",(char *) "y", NULL
19382 };
19383
19384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19386 if (!SWIG_IsOK(res1)) {
19387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19388 }
19389 arg1 = reinterpret_cast< wxDC * >(argp1);
19390 ecode2 = SWIG_AsVal_int(obj1, &val2);
19391 if (!SWIG_IsOK(ecode2)) {
19392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19393 }
19394 arg2 = static_cast< int >(val2);
19395 ecode3 = SWIG_AsVal_int(obj2, &val3);
19396 if (!SWIG_IsOK(ecode3)) {
19397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19398 }
19399 arg3 = static_cast< int >(val3);
19400 {
19401 PyThreadState* __tstate = wxPyBeginAllowThreads();
19402 (arg1)->SetLogicalOrigin(arg2,arg3);
19403 wxPyEndAllowThreads(__tstate);
19404 if (PyErr_Occurred()) SWIG_fail;
19405 }
19406 resultobj = SWIG_Py_Void();
19407 return resultobj;
19408 fail:
19409 return NULL;
19410 }
19411
19412
19413 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19414 PyObject *resultobj = 0;
19415 wxDC *arg1 = (wxDC *) 0 ;
19416 wxPoint *arg2 = 0 ;
19417 void *argp1 = 0 ;
19418 int res1 = 0 ;
19419 wxPoint temp2 ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 char * kwnames[] = {
19423 (char *) "self",(char *) "point", NULL
19424 };
19425
19426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19428 if (!SWIG_IsOK(res1)) {
19429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19430 }
19431 arg1 = reinterpret_cast< wxDC * >(argp1);
19432 {
19433 arg2 = &temp2;
19434 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19435 }
19436 {
19437 PyThreadState* __tstate = wxPyBeginAllowThreads();
19438 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19439 wxPyEndAllowThreads(__tstate);
19440 if (PyErr_Occurred()) SWIG_fail;
19441 }
19442 resultobj = SWIG_Py_Void();
19443 return resultobj;
19444 fail:
19445 return NULL;
19446 }
19447
19448
19449 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19450 PyObject *resultobj = 0;
19451 wxDC *arg1 = (wxDC *) 0 ;
19452 wxPoint result;
19453 void *argp1 = 0 ;
19454 int res1 = 0 ;
19455 PyObject *swig_obj[1] ;
19456
19457 if (!args) SWIG_fail;
19458 swig_obj[0] = args;
19459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19460 if (!SWIG_IsOK(res1)) {
19461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19462 }
19463 arg1 = reinterpret_cast< wxDC * >(argp1);
19464 {
19465 PyThreadState* __tstate = wxPyBeginAllowThreads();
19466 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19467 wxPyEndAllowThreads(__tstate);
19468 if (PyErr_Occurred()) SWIG_fail;
19469 }
19470 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19471 return resultobj;
19472 fail:
19473 return NULL;
19474 }
19475
19476
19477 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19478 PyObject *resultobj = 0;
19479 wxDC *arg1 = (wxDC *) 0 ;
19480 int *arg2 = (int *) 0 ;
19481 int *arg3 = (int *) 0 ;
19482 void *argp1 = 0 ;
19483 int res1 = 0 ;
19484 int temp2 ;
19485 int res2 = SWIG_TMPOBJ ;
19486 int temp3 ;
19487 int res3 = SWIG_TMPOBJ ;
19488 PyObject *swig_obj[1] ;
19489
19490 arg2 = &temp2;
19491 arg3 = &temp3;
19492 if (!args) SWIG_fail;
19493 swig_obj[0] = args;
19494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19495 if (!SWIG_IsOK(res1)) {
19496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19497 }
19498 arg1 = reinterpret_cast< wxDC * >(argp1);
19499 {
19500 PyThreadState* __tstate = wxPyBeginAllowThreads();
19501 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19502 wxPyEndAllowThreads(__tstate);
19503 if (PyErr_Occurred()) SWIG_fail;
19504 }
19505 resultobj = SWIG_Py_Void();
19506 if (SWIG_IsTmpObj(res2)) {
19507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19508 } else {
19509 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19511 }
19512 if (SWIG_IsTmpObj(res3)) {
19513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19514 } else {
19515 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19516 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19517 }
19518 return resultobj;
19519 fail:
19520 return NULL;
19521 }
19522
19523
19524 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj = 0;
19526 wxDC *arg1 = (wxDC *) 0 ;
19527 int arg2 ;
19528 int arg3 ;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 int val2 ;
19532 int ecode2 = 0 ;
19533 int val3 ;
19534 int ecode3 = 0 ;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 PyObject * obj2 = 0 ;
19538 char * kwnames[] = {
19539 (char *) "self",(char *) "x",(char *) "y", NULL
19540 };
19541
19542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19544 if (!SWIG_IsOK(res1)) {
19545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19546 }
19547 arg1 = reinterpret_cast< wxDC * >(argp1);
19548 ecode2 = SWIG_AsVal_int(obj1, &val2);
19549 if (!SWIG_IsOK(ecode2)) {
19550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19551 }
19552 arg2 = static_cast< int >(val2);
19553 ecode3 = SWIG_AsVal_int(obj2, &val3);
19554 if (!SWIG_IsOK(ecode3)) {
19555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19556 }
19557 arg3 = static_cast< int >(val3);
19558 {
19559 PyThreadState* __tstate = wxPyBeginAllowThreads();
19560 (arg1)->SetDeviceOrigin(arg2,arg3);
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 resultobj = SWIG_Py_Void();
19565 return resultobj;
19566 fail:
19567 return NULL;
19568 }
19569
19570
19571 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj = 0;
19573 wxDC *arg1 = (wxDC *) 0 ;
19574 wxPoint *arg2 = 0 ;
19575 void *argp1 = 0 ;
19576 int res1 = 0 ;
19577 wxPoint temp2 ;
19578 PyObject * obj0 = 0 ;
19579 PyObject * obj1 = 0 ;
19580 char * kwnames[] = {
19581 (char *) "self",(char *) "point", NULL
19582 };
19583
19584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19586 if (!SWIG_IsOK(res1)) {
19587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19588 }
19589 arg1 = reinterpret_cast< wxDC * >(argp1);
19590 {
19591 arg2 = &temp2;
19592 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19593 }
19594 {
19595 PyThreadState* __tstate = wxPyBeginAllowThreads();
19596 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19597 wxPyEndAllowThreads(__tstate);
19598 if (PyErr_Occurred()) SWIG_fail;
19599 }
19600 resultobj = SWIG_Py_Void();
19601 return resultobj;
19602 fail:
19603 return NULL;
19604 }
19605
19606
19607 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj = 0;
19609 wxDC *arg1 = (wxDC *) 0 ;
19610 bool arg2 ;
19611 bool arg3 ;
19612 void *argp1 = 0 ;
19613 int res1 = 0 ;
19614 bool val2 ;
19615 int ecode2 = 0 ;
19616 bool val3 ;
19617 int ecode3 = 0 ;
19618 PyObject * obj0 = 0 ;
19619 PyObject * obj1 = 0 ;
19620 PyObject * obj2 = 0 ;
19621 char * kwnames[] = {
19622 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19623 };
19624
19625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19627 if (!SWIG_IsOK(res1)) {
19628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19629 }
19630 arg1 = reinterpret_cast< wxDC * >(argp1);
19631 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19632 if (!SWIG_IsOK(ecode2)) {
19633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19634 }
19635 arg2 = static_cast< bool >(val2);
19636 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19637 if (!SWIG_IsOK(ecode3)) {
19638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19639 }
19640 arg3 = static_cast< bool >(val3);
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 (arg1)->SetAxisOrientation(arg2,arg3);
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 resultobj = SWIG_Py_Void();
19648 return resultobj;
19649 fail:
19650 return NULL;
19651 }
19652
19653
19654 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19655 PyObject *resultobj = 0;
19656 wxDC *arg1 = (wxDC *) 0 ;
19657 int result;
19658 void *argp1 = 0 ;
19659 int res1 = 0 ;
19660 PyObject *swig_obj[1] ;
19661
19662 if (!args) SWIG_fail;
19663 swig_obj[0] = args;
19664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19665 if (!SWIG_IsOK(res1)) {
19666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19667 }
19668 arg1 = reinterpret_cast< wxDC * >(argp1);
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19672 wxPyEndAllowThreads(__tstate);
19673 if (PyErr_Occurred()) SWIG_fail;
19674 }
19675 resultobj = SWIG_From_int(static_cast< int >(result));
19676 return resultobj;
19677 fail:
19678 return NULL;
19679 }
19680
19681
19682 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19683 PyObject *resultobj = 0;
19684 wxDC *arg1 = (wxDC *) 0 ;
19685 int arg2 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 int val2 ;
19689 int ecode2 = 0 ;
19690 PyObject * obj0 = 0 ;
19691 PyObject * obj1 = 0 ;
19692 char * kwnames[] = {
19693 (char *) "self",(char *) "function", NULL
19694 };
19695
19696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19698 if (!SWIG_IsOK(res1)) {
19699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19700 }
19701 arg1 = reinterpret_cast< wxDC * >(argp1);
19702 ecode2 = SWIG_AsVal_int(obj1, &val2);
19703 if (!SWIG_IsOK(ecode2)) {
19704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19705 }
19706 arg2 = static_cast< int >(val2);
19707 {
19708 PyThreadState* __tstate = wxPyBeginAllowThreads();
19709 (arg1)->SetLogicalFunction(arg2);
19710 wxPyEndAllowThreads(__tstate);
19711 if (PyErr_Occurred()) SWIG_fail;
19712 }
19713 resultobj = SWIG_Py_Void();
19714 return resultobj;
19715 fail:
19716 return NULL;
19717 }
19718
19719
19720 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19721 PyObject *resultobj = 0;
19722 wxDC *arg1 = (wxDC *) 0 ;
19723 void *argp1 = 0 ;
19724 int res1 = 0 ;
19725 PyObject *swig_obj[1] ;
19726
19727 if (!args) SWIG_fail;
19728 swig_obj[0] = args;
19729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19730 if (!SWIG_IsOK(res1)) {
19731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19732 }
19733 arg1 = reinterpret_cast< wxDC * >(argp1);
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 (arg1)->ComputeScaleAndOrigin();
19737 wxPyEndAllowThreads(__tstate);
19738 if (PyErr_Occurred()) SWIG_fail;
19739 }
19740 resultobj = SWIG_Py_Void();
19741 return resultobj;
19742 fail:
19743 return NULL;
19744 }
19745
19746
19747 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19748 PyObject *resultobj = 0;
19749 wxDC *arg1 = (wxDC *) 0 ;
19750 int arg2 ;
19751 int arg3 ;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 int val2 ;
19755 int ecode2 = 0 ;
19756 int val3 ;
19757 int ecode3 = 0 ;
19758 PyObject * obj0 = 0 ;
19759 PyObject * obj1 = 0 ;
19760 PyObject * obj2 = 0 ;
19761 char * kwnames[] = {
19762 (char *) "self",(char *) "x",(char *) "y", NULL
19763 };
19764
19765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19767 if (!SWIG_IsOK(res1)) {
19768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19769 }
19770 arg1 = reinterpret_cast< wxDC * >(argp1);
19771 ecode2 = SWIG_AsVal_int(obj1, &val2);
19772 if (!SWIG_IsOK(ecode2)) {
19773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19774 }
19775 arg2 = static_cast< int >(val2);
19776 ecode3 = SWIG_AsVal_int(obj2, &val3);
19777 if (!SWIG_IsOK(ecode3)) {
19778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19779 }
19780 arg3 = static_cast< int >(val3);
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 (arg1)->CalcBoundingBox(arg2,arg3);
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = SWIG_Py_Void();
19788 return resultobj;
19789 fail:
19790 return NULL;
19791 }
19792
19793
19794 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19795 PyObject *resultobj = 0;
19796 wxDC *arg1 = (wxDC *) 0 ;
19797 wxPoint *arg2 = 0 ;
19798 void *argp1 = 0 ;
19799 int res1 = 0 ;
19800 wxPoint temp2 ;
19801 PyObject * obj0 = 0 ;
19802 PyObject * obj1 = 0 ;
19803 char * kwnames[] = {
19804 (char *) "self",(char *) "point", NULL
19805 };
19806
19807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19809 if (!SWIG_IsOK(res1)) {
19810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19811 }
19812 arg1 = reinterpret_cast< wxDC * >(argp1);
19813 {
19814 arg2 = &temp2;
19815 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19816 }
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19820 wxPyEndAllowThreads(__tstate);
19821 if (PyErr_Occurred()) SWIG_fail;
19822 }
19823 resultobj = SWIG_Py_Void();
19824 return resultobj;
19825 fail:
19826 return NULL;
19827 }
19828
19829
19830 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19831 PyObject *resultobj = 0;
19832 wxDC *arg1 = (wxDC *) 0 ;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 PyObject *swig_obj[1] ;
19836
19837 if (!args) SWIG_fail;
19838 swig_obj[0] = args;
19839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19842 }
19843 arg1 = reinterpret_cast< wxDC * >(argp1);
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 (arg1)->ResetBoundingBox();
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 resultobj = SWIG_Py_Void();
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19858 PyObject *resultobj = 0;
19859 wxDC *arg1 = (wxDC *) 0 ;
19860 int result;
19861 void *argp1 = 0 ;
19862 int res1 = 0 ;
19863 PyObject *swig_obj[1] ;
19864
19865 if (!args) SWIG_fail;
19866 swig_obj[0] = args;
19867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19870 }
19871 arg1 = reinterpret_cast< wxDC * >(argp1);
19872 {
19873 PyThreadState* __tstate = wxPyBeginAllowThreads();
19874 result = (int)((wxDC const *)arg1)->MinX();
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 resultobj = SWIG_From_int(static_cast< int >(result));
19879 return resultobj;
19880 fail:
19881 return NULL;
19882 }
19883
19884
19885 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19886 PyObject *resultobj = 0;
19887 wxDC *arg1 = (wxDC *) 0 ;
19888 int result;
19889 void *argp1 = 0 ;
19890 int res1 = 0 ;
19891 PyObject *swig_obj[1] ;
19892
19893 if (!args) SWIG_fail;
19894 swig_obj[0] = args;
19895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19896 if (!SWIG_IsOK(res1)) {
19897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19898 }
19899 arg1 = reinterpret_cast< wxDC * >(argp1);
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 result = (int)((wxDC const *)arg1)->MaxX();
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_From_int(static_cast< int >(result));
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 int result;
19917 void *argp1 = 0 ;
19918 int res1 = 0 ;
19919 PyObject *swig_obj[1] ;
19920
19921 if (!args) SWIG_fail;
19922 swig_obj[0] = args;
19923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19924 if (!SWIG_IsOK(res1)) {
19925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19926 }
19927 arg1 = reinterpret_cast< wxDC * >(argp1);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 result = (int)((wxDC const *)arg1)->MinY();
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_From_int(static_cast< int >(result));
19935 return resultobj;
19936 fail:
19937 return NULL;
19938 }
19939
19940
19941 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19942 PyObject *resultobj = 0;
19943 wxDC *arg1 = (wxDC *) 0 ;
19944 int result;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 PyObject *swig_obj[1] ;
19948
19949 if (!args) SWIG_fail;
19950 swig_obj[0] = args;
19951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19952 if (!SWIG_IsOK(res1)) {
19953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19954 }
19955 arg1 = reinterpret_cast< wxDC * >(argp1);
19956 {
19957 PyThreadState* __tstate = wxPyBeginAllowThreads();
19958 result = (int)((wxDC const *)arg1)->MaxY();
19959 wxPyEndAllowThreads(__tstate);
19960 if (PyErr_Occurred()) SWIG_fail;
19961 }
19962 resultobj = SWIG_From_int(static_cast< int >(result));
19963 return resultobj;
19964 fail:
19965 return NULL;
19966 }
19967
19968
19969 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19970 PyObject *resultobj = 0;
19971 wxDC *arg1 = (wxDC *) 0 ;
19972 int *arg2 = (int *) 0 ;
19973 int *arg3 = (int *) 0 ;
19974 int *arg4 = (int *) 0 ;
19975 int *arg5 = (int *) 0 ;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 int temp2 ;
19979 int res2 = SWIG_TMPOBJ ;
19980 int temp3 ;
19981 int res3 = SWIG_TMPOBJ ;
19982 int temp4 ;
19983 int res4 = SWIG_TMPOBJ ;
19984 int temp5 ;
19985 int res5 = SWIG_TMPOBJ ;
19986 PyObject *swig_obj[1] ;
19987
19988 arg2 = &temp2;
19989 arg3 = &temp3;
19990 arg4 = &temp4;
19991 arg5 = &temp5;
19992 if (!args) SWIG_fail;
19993 swig_obj[0] = args;
19994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19995 if (!SWIG_IsOK(res1)) {
19996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19997 }
19998 arg1 = reinterpret_cast< wxDC * >(argp1);
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20002 wxPyEndAllowThreads(__tstate);
20003 if (PyErr_Occurred()) SWIG_fail;
20004 }
20005 resultobj = SWIG_Py_Void();
20006 if (SWIG_IsTmpObj(res2)) {
20007 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20008 } else {
20009 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20011 }
20012 if (SWIG_IsTmpObj(res3)) {
20013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20014 } else {
20015 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20017 }
20018 if (SWIG_IsTmpObj(res4)) {
20019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20020 } else {
20021 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20023 }
20024 if (SWIG_IsTmpObj(res5)) {
20025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20026 } else {
20027 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20029 }
20030 return resultobj;
20031 fail:
20032 return NULL;
20033 }
20034
20035
20036 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20037 PyObject *resultobj = 0;
20038 wxDC *arg1 = (wxDC *) 0 ;
20039 PyObject *arg2 = (PyObject *) 0 ;
20040 PyObject *arg3 = (PyObject *) 0 ;
20041 PyObject *arg4 = (PyObject *) 0 ;
20042 PyObject *result = 0 ;
20043 void *argp1 = 0 ;
20044 int res1 = 0 ;
20045 PyObject * obj0 = 0 ;
20046 PyObject * obj1 = 0 ;
20047 PyObject * obj2 = 0 ;
20048 PyObject * obj3 = 0 ;
20049 char * kwnames[] = {
20050 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20051 };
20052
20053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20055 if (!SWIG_IsOK(res1)) {
20056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20057 }
20058 arg1 = reinterpret_cast< wxDC * >(argp1);
20059 arg2 = obj1;
20060 arg3 = obj2;
20061 arg4 = obj3;
20062 {
20063 PyThreadState* __tstate = wxPyBeginAllowThreads();
20064 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20065 wxPyEndAllowThreads(__tstate);
20066 if (PyErr_Occurred()) SWIG_fail;
20067 }
20068 resultobj = result;
20069 return resultobj;
20070 fail:
20071 return NULL;
20072 }
20073
20074
20075 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20076 PyObject *resultobj = 0;
20077 wxDC *arg1 = (wxDC *) 0 ;
20078 PyObject *arg2 = (PyObject *) 0 ;
20079 PyObject *arg3 = (PyObject *) 0 ;
20080 PyObject *arg4 = (PyObject *) 0 ;
20081 PyObject *result = 0 ;
20082 void *argp1 = 0 ;
20083 int res1 = 0 ;
20084 PyObject * obj0 = 0 ;
20085 PyObject * obj1 = 0 ;
20086 PyObject * obj2 = 0 ;
20087 PyObject * obj3 = 0 ;
20088 char * kwnames[] = {
20089 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20090 };
20091
20092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20096 }
20097 arg1 = reinterpret_cast< wxDC * >(argp1);
20098 arg2 = obj1;
20099 arg3 = obj2;
20100 arg4 = obj3;
20101 {
20102 PyThreadState* __tstate = wxPyBeginAllowThreads();
20103 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 resultobj = result;
20108 return resultobj;
20109 fail:
20110 return NULL;
20111 }
20112
20113
20114 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20115 PyObject *resultobj = 0;
20116 wxDC *arg1 = (wxDC *) 0 ;
20117 PyObject *arg2 = (PyObject *) 0 ;
20118 PyObject *arg3 = (PyObject *) 0 ;
20119 PyObject *arg4 = (PyObject *) 0 ;
20120 PyObject *result = 0 ;
20121 void *argp1 = 0 ;
20122 int res1 = 0 ;
20123 PyObject * obj0 = 0 ;
20124 PyObject * obj1 = 0 ;
20125 PyObject * obj2 = 0 ;
20126 PyObject * obj3 = 0 ;
20127 char * kwnames[] = {
20128 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20129 };
20130
20131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20133 if (!SWIG_IsOK(res1)) {
20134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20135 }
20136 arg1 = reinterpret_cast< wxDC * >(argp1);
20137 arg2 = obj1;
20138 arg3 = obj2;
20139 arg4 = obj3;
20140 {
20141 PyThreadState* __tstate = wxPyBeginAllowThreads();
20142 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20143 wxPyEndAllowThreads(__tstate);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 resultobj = result;
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxDC *arg1 = (wxDC *) 0 ;
20156 PyObject *arg2 = (PyObject *) 0 ;
20157 PyObject *arg3 = (PyObject *) 0 ;
20158 PyObject *arg4 = (PyObject *) 0 ;
20159 PyObject *result = 0 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 PyObject * obj0 = 0 ;
20163 PyObject * obj1 = 0 ;
20164 PyObject * obj2 = 0 ;
20165 PyObject * obj3 = 0 ;
20166 char * kwnames[] = {
20167 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20168 };
20169
20170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20172 if (!SWIG_IsOK(res1)) {
20173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20174 }
20175 arg1 = reinterpret_cast< wxDC * >(argp1);
20176 arg2 = obj1;
20177 arg3 = obj2;
20178 arg4 = obj3;
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20182 wxPyEndAllowThreads(__tstate);
20183 if (PyErr_Occurred()) SWIG_fail;
20184 }
20185 resultobj = result;
20186 return resultobj;
20187 fail:
20188 return NULL;
20189 }
20190
20191
20192 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 PyObject *arg2 = (PyObject *) 0 ;
20196 PyObject *arg3 = (PyObject *) 0 ;
20197 PyObject *arg4 = (PyObject *) 0 ;
20198 PyObject *result = 0 ;
20199 void *argp1 = 0 ;
20200 int res1 = 0 ;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 PyObject * obj2 = 0 ;
20204 PyObject * obj3 = 0 ;
20205 char * kwnames[] = {
20206 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20207 };
20208
20209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20211 if (!SWIG_IsOK(res1)) {
20212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20213 }
20214 arg1 = reinterpret_cast< wxDC * >(argp1);
20215 arg2 = obj1;
20216 arg3 = obj2;
20217 arg4 = obj3;
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20221 wxPyEndAllowThreads(__tstate);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
20224 resultobj = result;
20225 return resultobj;
20226 fail:
20227 return NULL;
20228 }
20229
20230
20231 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20232 PyObject *resultobj = 0;
20233 wxDC *arg1 = (wxDC *) 0 ;
20234 PyObject *arg2 = (PyObject *) 0 ;
20235 PyObject *arg3 = (PyObject *) 0 ;
20236 PyObject *arg4 = (PyObject *) 0 ;
20237 PyObject *arg5 = (PyObject *) 0 ;
20238 PyObject *result = 0 ;
20239 void *argp1 = 0 ;
20240 int res1 = 0 ;
20241 PyObject * obj0 = 0 ;
20242 PyObject * obj1 = 0 ;
20243 PyObject * obj2 = 0 ;
20244 PyObject * obj3 = 0 ;
20245 PyObject * obj4 = 0 ;
20246 char * kwnames[] = {
20247 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20248 };
20249
20250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20252 if (!SWIG_IsOK(res1)) {
20253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20254 }
20255 arg1 = reinterpret_cast< wxDC * >(argp1);
20256 arg2 = obj1;
20257 arg3 = obj2;
20258 arg4 = obj3;
20259 arg5 = obj4;
20260 {
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20263 wxPyEndAllowThreads(__tstate);
20264 if (PyErr_Occurred()) SWIG_fail;
20265 }
20266 resultobj = result;
20267 return resultobj;
20268 fail:
20269 return NULL;
20270 }
20271
20272
20273 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20274 PyObject *obj;
20275 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20276 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20277 return SWIG_Py_Void();
20278 }
20279
20280 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20281 PyObject *resultobj = 0;
20282 wxMemoryDC *result = 0 ;
20283
20284 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20285 {
20286 if (!wxPyCheckForApp()) SWIG_fail;
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (wxMemoryDC *)new wxMemoryDC();
20289 wxPyEndAllowThreads(__tstate);
20290 if (PyErr_Occurred()) SWIG_fail;
20291 }
20292 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20293 return resultobj;
20294 fail:
20295 return NULL;
20296 }
20297
20298
20299 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20300 PyObject *resultobj = 0;
20301 wxDC *arg1 = (wxDC *) 0 ;
20302 wxMemoryDC *result = 0 ;
20303 void *argp1 = 0 ;
20304 int res1 = 0 ;
20305 PyObject * obj0 = 0 ;
20306 char * kwnames[] = {
20307 (char *) "oldDC", NULL
20308 };
20309
20310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20314 }
20315 arg1 = reinterpret_cast< wxDC * >(argp1);
20316 {
20317 if (!wxPyCheckForApp()) SWIG_fail;
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20320 wxPyEndAllowThreads(__tstate);
20321 if (PyErr_Occurred()) SWIG_fail;
20322 }
20323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20324 return resultobj;
20325 fail:
20326 return NULL;
20327 }
20328
20329
20330 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj = 0;
20332 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20333 wxBitmap *arg2 = 0 ;
20334 void *argp1 = 0 ;
20335 int res1 = 0 ;
20336 void *argp2 = 0 ;
20337 int res2 = 0 ;
20338 PyObject * obj0 = 0 ;
20339 PyObject * obj1 = 0 ;
20340 char * kwnames[] = {
20341 (char *) "self",(char *) "bitmap", NULL
20342 };
20343
20344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20346 if (!SWIG_IsOK(res1)) {
20347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20348 }
20349 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20351 if (!SWIG_IsOK(res2)) {
20352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20353 }
20354 if (!argp2) {
20355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20356 }
20357 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20358 {
20359 PyThreadState* __tstate = wxPyBeginAllowThreads();
20360 (arg1)->SelectObject((wxBitmap const &)*arg2);
20361 wxPyEndAllowThreads(__tstate);
20362 if (PyErr_Occurred()) SWIG_fail;
20363 }
20364 resultobj = SWIG_Py_Void();
20365 return resultobj;
20366 fail:
20367 return NULL;
20368 }
20369
20370
20371 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20372 PyObject *obj;
20373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20374 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20375 return SWIG_Py_Void();
20376 }
20377
20378 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20379 return SWIG_Python_InitShadowInstance(args);
20380 }
20381
20382 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20383 PyObject *resultobj = 0;
20384 wxDC *arg1 = (wxDC *) 0 ;
20385 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20386 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20387 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20388 wxBufferedDC *result = 0 ;
20389 void *argp1 = 0 ;
20390 int res1 = 0 ;
20391 void *argp2 = 0 ;
20392 int res2 = 0 ;
20393 int val3 ;
20394 int ecode3 = 0 ;
20395
20396 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20398 if (!SWIG_IsOK(res1)) {
20399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20400 }
20401 arg1 = reinterpret_cast< wxDC * >(argp1);
20402 if (swig_obj[1]) {
20403 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20404 if (!SWIG_IsOK(res2)) {
20405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20406 }
20407 if (!argp2) {
20408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20409 }
20410 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20411 }
20412 if (swig_obj[2]) {
20413 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20414 if (!SWIG_IsOK(ecode3)) {
20415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20416 }
20417 arg3 = static_cast< int >(val3);
20418 }
20419 {
20420 if (!wxPyCheckForApp()) SWIG_fail;
20421 PyThreadState* __tstate = wxPyBeginAllowThreads();
20422 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20423 wxPyEndAllowThreads(__tstate);
20424 if (PyErr_Occurred()) SWIG_fail;
20425 }
20426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20427 return resultobj;
20428 fail:
20429 return NULL;
20430 }
20431
20432
20433 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20434 PyObject *resultobj = 0;
20435 wxDC *arg1 = (wxDC *) 0 ;
20436 wxSize *arg2 = 0 ;
20437 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20438 wxBufferedDC *result = 0 ;
20439 void *argp1 = 0 ;
20440 int res1 = 0 ;
20441 wxSize temp2 ;
20442 int val3 ;
20443 int ecode3 = 0 ;
20444
20445 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20449 }
20450 arg1 = reinterpret_cast< wxDC * >(argp1);
20451 {
20452 arg2 = &temp2;
20453 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20454 }
20455 if (swig_obj[2]) {
20456 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20457 if (!SWIG_IsOK(ecode3)) {
20458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20459 }
20460 arg3 = static_cast< int >(val3);
20461 }
20462 {
20463 if (!wxPyCheckForApp()) SWIG_fail;
20464 PyThreadState* __tstate = wxPyBeginAllowThreads();
20465 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20470 return resultobj;
20471 fail:
20472 return NULL;
20473 }
20474
20475
20476 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20477 int argc;
20478 PyObject *argv[4];
20479
20480 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20481 --argc;
20482 if ((argc >= 1) && (argc <= 3)) {
20483 int _v = 0;
20484 if (argc > 1) {
20485 {
20486 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20487 _v = SWIG_CheckState(res);
20488 }
20489 if (!_v) goto check_1;
20490 }
20491 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20492 }
20493 check_1:
20494
20495 if ((argc >= 2) && (argc <= 3)) {
20496 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20497 }
20498
20499 fail:
20500 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20501 return NULL;
20502 }
20503
20504
20505 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20506 PyObject *resultobj = 0;
20507 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20508 void *argp1 = 0 ;
20509 int res1 = 0 ;
20510 PyObject *swig_obj[1] ;
20511
20512 if (!args) SWIG_fail;
20513 swig_obj[0] = args;
20514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20515 if (!SWIG_IsOK(res1)) {
20516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20517 }
20518 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20519 {
20520 PyThreadState* __tstate = wxPyBeginAllowThreads();
20521 delete arg1;
20522
20523 wxPyEndAllowThreads(__tstate);
20524 if (PyErr_Occurred()) SWIG_fail;
20525 }
20526 resultobj = SWIG_Py_Void();
20527 return resultobj;
20528 fail:
20529 return NULL;
20530 }
20531
20532
20533 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20534 PyObject *resultobj = 0;
20535 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20536 void *argp1 = 0 ;
20537 int res1 = 0 ;
20538 PyObject *swig_obj[1] ;
20539
20540 if (!args) SWIG_fail;
20541 swig_obj[0] = args;
20542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20545 }
20546 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 (arg1)->UnMask();
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_Py_Void();
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20561 PyObject *obj;
20562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20563 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20564 return SWIG_Py_Void();
20565 }
20566
20567 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20568 return SWIG_Python_InitShadowInstance(args);
20569 }
20570
20571 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20572 PyObject *resultobj = 0;
20573 wxWindow *arg1 = (wxWindow *) 0 ;
20574 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20575 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20576 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20577 wxBufferedPaintDC *result = 0 ;
20578 void *argp1 = 0 ;
20579 int res1 = 0 ;
20580 void *argp2 = 0 ;
20581 int res2 = 0 ;
20582 int val3 ;
20583 int ecode3 = 0 ;
20584 PyObject * obj0 = 0 ;
20585 PyObject * obj1 = 0 ;
20586 PyObject * obj2 = 0 ;
20587 char * kwnames[] = {
20588 (char *) "window",(char *) "buffer",(char *) "style", NULL
20589 };
20590
20591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20593 if (!SWIG_IsOK(res1)) {
20594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20595 }
20596 arg1 = reinterpret_cast< wxWindow * >(argp1);
20597 if (obj1) {
20598 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20599 if (!SWIG_IsOK(res2)) {
20600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20601 }
20602 if (!argp2) {
20603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20604 }
20605 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20606 }
20607 if (obj2) {
20608 ecode3 = SWIG_AsVal_int(obj2, &val3);
20609 if (!SWIG_IsOK(ecode3)) {
20610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20611 }
20612 arg3 = static_cast< int >(val3);
20613 }
20614 {
20615 if (!wxPyCheckForApp()) SWIG_fail;
20616 PyThreadState* __tstate = wxPyBeginAllowThreads();
20617 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20618 wxPyEndAllowThreads(__tstate);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 }
20621 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20622 return resultobj;
20623 fail:
20624 return NULL;
20625 }
20626
20627
20628 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20629 PyObject *obj;
20630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20631 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20632 return SWIG_Py_Void();
20633 }
20634
20635 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20636 return SWIG_Python_InitShadowInstance(args);
20637 }
20638
20639 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20640 PyObject *resultobj = 0;
20641 wxScreenDC *result = 0 ;
20642
20643 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20644 {
20645 if (!wxPyCheckForApp()) SWIG_fail;
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = (wxScreenDC *)new wxScreenDC();
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20652 return resultobj;
20653 fail:
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20659 PyObject *resultobj = 0;
20660 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20661 wxWindow *arg2 = (wxWindow *) 0 ;
20662 bool result;
20663 void *argp1 = 0 ;
20664 int res1 = 0 ;
20665 void *argp2 = 0 ;
20666 int res2 = 0 ;
20667 PyObject * obj0 = 0 ;
20668 PyObject * obj1 = 0 ;
20669 char * kwnames[] = {
20670 (char *) "self",(char *) "window", NULL
20671 };
20672
20673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20675 if (!SWIG_IsOK(res1)) {
20676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20677 }
20678 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20679 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20680 if (!SWIG_IsOK(res2)) {
20681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20682 }
20683 arg2 = reinterpret_cast< wxWindow * >(argp2);
20684 {
20685 PyThreadState* __tstate = wxPyBeginAllowThreads();
20686 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20687 wxPyEndAllowThreads(__tstate);
20688 if (PyErr_Occurred()) SWIG_fail;
20689 }
20690 {
20691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20692 }
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj = 0;
20701 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20702 wxRect *arg2 = (wxRect *) NULL ;
20703 bool result;
20704 void *argp1 = 0 ;
20705 int res1 = 0 ;
20706 void *argp2 = 0 ;
20707 int res2 = 0 ;
20708 PyObject * obj0 = 0 ;
20709 PyObject * obj1 = 0 ;
20710 char * kwnames[] = {
20711 (char *) "self",(char *) "rect", NULL
20712 };
20713
20714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20718 }
20719 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20720 if (obj1) {
20721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20722 if (!SWIG_IsOK(res2)) {
20723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20724 }
20725 arg2 = reinterpret_cast< wxRect * >(argp2);
20726 }
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 {
20734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20735 }
20736 return resultobj;
20737 fail:
20738 return NULL;
20739 }
20740
20741
20742 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20743 PyObject *resultobj = 0;
20744 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20745 bool result;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 PyObject *swig_obj[1] ;
20749
20750 if (!args) SWIG_fail;
20751 swig_obj[0] = args;
20752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20753 if (!SWIG_IsOK(res1)) {
20754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20755 }
20756 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20757 {
20758 PyThreadState* __tstate = wxPyBeginAllowThreads();
20759 result = (bool)(arg1)->EndDrawingOnTop();
20760 wxPyEndAllowThreads(__tstate);
20761 if (PyErr_Occurred()) SWIG_fail;
20762 }
20763 {
20764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20765 }
20766 return resultobj;
20767 fail:
20768 return NULL;
20769 }
20770
20771
20772 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20773 PyObject *obj;
20774 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20775 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20776 return SWIG_Py_Void();
20777 }
20778
20779 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20780 return SWIG_Python_InitShadowInstance(args);
20781 }
20782
20783 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20784 PyObject *resultobj = 0;
20785 wxWindow *arg1 = (wxWindow *) 0 ;
20786 wxClientDC *result = 0 ;
20787 void *argp1 = 0 ;
20788 int res1 = 0 ;
20789 PyObject * obj0 = 0 ;
20790 char * kwnames[] = {
20791 (char *) "win", NULL
20792 };
20793
20794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20796 if (!SWIG_IsOK(res1)) {
20797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20798 }
20799 arg1 = reinterpret_cast< wxWindow * >(argp1);
20800 {
20801 if (!wxPyCheckForApp()) SWIG_fail;
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = (wxClientDC *)new wxClientDC(arg1);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20808 return resultobj;
20809 fail:
20810 return NULL;
20811 }
20812
20813
20814 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *obj;
20816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20817 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20818 return SWIG_Py_Void();
20819 }
20820
20821 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 return SWIG_Python_InitShadowInstance(args);
20823 }
20824
20825 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxWindow *arg1 = (wxWindow *) 0 ;
20828 wxPaintDC *result = 0 ;
20829 void *argp1 = 0 ;
20830 int res1 = 0 ;
20831 PyObject * obj0 = 0 ;
20832 char * kwnames[] = {
20833 (char *) "win", NULL
20834 };
20835
20836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20838 if (!SWIG_IsOK(res1)) {
20839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20840 }
20841 arg1 = reinterpret_cast< wxWindow * >(argp1);
20842 {
20843 if (!wxPyCheckForApp()) SWIG_fail;
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 result = (wxPaintDC *)new wxPaintDC(arg1);
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20857 PyObject *obj;
20858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20859 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20860 return SWIG_Py_Void();
20861 }
20862
20863 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20864 return SWIG_Python_InitShadowInstance(args);
20865 }
20866
20867 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20868 PyObject *resultobj = 0;
20869 wxWindow *arg1 = (wxWindow *) 0 ;
20870 wxWindowDC *result = 0 ;
20871 void *argp1 = 0 ;
20872 int res1 = 0 ;
20873 PyObject * obj0 = 0 ;
20874 char * kwnames[] = {
20875 (char *) "win", NULL
20876 };
20877
20878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20880 if (!SWIG_IsOK(res1)) {
20881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20882 }
20883 arg1 = reinterpret_cast< wxWindow * >(argp1);
20884 {
20885 if (!wxPyCheckForApp()) SWIG_fail;
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 result = (wxWindowDC *)new wxWindowDC(arg1);
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20892 return resultobj;
20893 fail:
20894 return NULL;
20895 }
20896
20897
20898 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20899 PyObject *obj;
20900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20901 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20902 return SWIG_Py_Void();
20903 }
20904
20905 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20906 return SWIG_Python_InitShadowInstance(args);
20907 }
20908
20909 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20910 PyObject *resultobj = 0;
20911 wxDC *arg1 = 0 ;
20912 bool arg2 ;
20913 wxMirrorDC *result = 0 ;
20914 void *argp1 = 0 ;
20915 int res1 = 0 ;
20916 bool val2 ;
20917 int ecode2 = 0 ;
20918 PyObject * obj0 = 0 ;
20919 PyObject * obj1 = 0 ;
20920 char * kwnames[] = {
20921 (char *) "dc",(char *) "mirror", NULL
20922 };
20923
20924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20925 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20926 if (!SWIG_IsOK(res1)) {
20927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20928 }
20929 if (!argp1) {
20930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20931 }
20932 arg1 = reinterpret_cast< wxDC * >(argp1);
20933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20934 if (!SWIG_IsOK(ecode2)) {
20935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20936 }
20937 arg2 = static_cast< bool >(val2);
20938 {
20939 if (!wxPyCheckForApp()) SWIG_fail;
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20942 wxPyEndAllowThreads(__tstate);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 }
20945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20946 return resultobj;
20947 fail:
20948 return NULL;
20949 }
20950
20951
20952 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20953 PyObject *obj;
20954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20955 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20956 return SWIG_Py_Void();
20957 }
20958
20959 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20960 return SWIG_Python_InitShadowInstance(args);
20961 }
20962
20963 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20964 PyObject *resultobj = 0;
20965 wxPrintData *arg1 = 0 ;
20966 wxPostScriptDC *result = 0 ;
20967 void *argp1 = 0 ;
20968 int res1 = 0 ;
20969 PyObject * obj0 = 0 ;
20970 char * kwnames[] = {
20971 (char *) "printData", NULL
20972 };
20973
20974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20975 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20976 if (!SWIG_IsOK(res1)) {
20977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20978 }
20979 if (!argp1) {
20980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20981 }
20982 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20983 {
20984 if (!wxPyCheckForApp()) SWIG_fail;
20985 PyThreadState* __tstate = wxPyBeginAllowThreads();
20986 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20991 return resultobj;
20992 fail:
20993 return NULL;
20994 }
20995
20996
20997 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20998 PyObject *resultobj = 0;
20999 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21000 wxPrintData *result = 0 ;
21001 void *argp1 = 0 ;
21002 int res1 = 0 ;
21003 PyObject *swig_obj[1] ;
21004
21005 if (!args) SWIG_fail;
21006 swig_obj[0] = args;
21007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21008 if (!SWIG_IsOK(res1)) {
21009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21010 }
21011 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 {
21015 wxPrintData &_result_ref = (arg1)->GetPrintData();
21016 result = (wxPrintData *) &_result_ref;
21017 }
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21022 return resultobj;
21023 fail:
21024 return NULL;
21025 }
21026
21027
21028 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21029 PyObject *resultobj = 0;
21030 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21031 wxPrintData *arg2 = 0 ;
21032 void *argp1 = 0 ;
21033 int res1 = 0 ;
21034 void *argp2 = 0 ;
21035 int res2 = 0 ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "data", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21046 }
21047 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21048 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21049 if (!SWIG_IsOK(res2)) {
21050 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21051 }
21052 if (!argp2) {
21053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21054 }
21055 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_Py_Void();
21063 return resultobj;
21064 fail:
21065 return NULL;
21066 }
21067
21068
21069 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj = 0;
21071 int arg1 ;
21072 int val1 ;
21073 int ecode1 = 0 ;
21074 PyObject * obj0 = 0 ;
21075 char * kwnames[] = {
21076 (char *) "ppi", NULL
21077 };
21078
21079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21080 ecode1 = SWIG_AsVal_int(obj0, &val1);
21081 if (!SWIG_IsOK(ecode1)) {
21082 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21083 }
21084 arg1 = static_cast< int >(val1);
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 wxPostScriptDC::SetResolution(arg1);
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 resultobj = SWIG_Py_Void();
21092 return resultobj;
21093 fail:
21094 return NULL;
21095 }
21096
21097
21098 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21099 PyObject *resultobj = 0;
21100 int result;
21101
21102 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21103 {
21104 PyThreadState* __tstate = wxPyBeginAllowThreads();
21105 result = (int)wxPostScriptDC::GetResolution();
21106 wxPyEndAllowThreads(__tstate);
21107 if (PyErr_Occurred()) SWIG_fail;
21108 }
21109 resultobj = SWIG_From_int(static_cast< int >(result));
21110 return resultobj;
21111 fail:
21112 return NULL;
21113 }
21114
21115
21116 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21117 PyObject *obj;
21118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21119 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21120 return SWIG_Py_Void();
21121 }
21122
21123 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21124 return SWIG_Python_InitShadowInstance(args);
21125 }
21126
21127 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21128 PyObject *resultobj = 0;
21129 wxString const &arg1_defvalue = wxPyEmptyString ;
21130 wxString *arg1 = (wxString *) &arg1_defvalue ;
21131 wxMetaFile *result = 0 ;
21132 bool temp1 = false ;
21133 PyObject * obj0 = 0 ;
21134 char * kwnames[] = {
21135 (char *) "filename", NULL
21136 };
21137
21138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21139 if (obj0) {
21140 {
21141 arg1 = wxString_in_helper(obj0);
21142 if (arg1 == NULL) SWIG_fail;
21143 temp1 = true;
21144 }
21145 }
21146 {
21147 if (!wxPyCheckForApp()) SWIG_fail;
21148 PyThreadState* __tstate = wxPyBeginAllowThreads();
21149 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21154 {
21155 if (temp1)
21156 delete arg1;
21157 }
21158 return resultobj;
21159 fail:
21160 {
21161 if (temp1)
21162 delete arg1;
21163 }
21164 return NULL;
21165 }
21166
21167
21168 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21169 PyObject *obj;
21170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21171 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21172 return SWIG_Py_Void();
21173 }
21174
21175 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21176 return SWIG_Python_InitShadowInstance(args);
21177 }
21178
21179 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21180 PyObject *resultobj = 0;
21181 wxString const &arg1_defvalue = wxPyEmptyString ;
21182 wxString *arg1 = (wxString *) &arg1_defvalue ;
21183 int arg2 = (int) 0 ;
21184 int arg3 = (int) 0 ;
21185 wxString const &arg4_defvalue = wxPyEmptyString ;
21186 wxString *arg4 = (wxString *) &arg4_defvalue ;
21187 wxMetaFileDC *result = 0 ;
21188 bool temp1 = false ;
21189 int val2 ;
21190 int ecode2 = 0 ;
21191 int val3 ;
21192 int ecode3 = 0 ;
21193 bool temp4 = false ;
21194 PyObject * obj0 = 0 ;
21195 PyObject * obj1 = 0 ;
21196 PyObject * obj2 = 0 ;
21197 PyObject * obj3 = 0 ;
21198 char * kwnames[] = {
21199 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21200 };
21201
21202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21203 if (obj0) {
21204 {
21205 arg1 = wxString_in_helper(obj0);
21206 if (arg1 == NULL) SWIG_fail;
21207 temp1 = true;
21208 }
21209 }
21210 if (obj1) {
21211 ecode2 = SWIG_AsVal_int(obj1, &val2);
21212 if (!SWIG_IsOK(ecode2)) {
21213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21214 }
21215 arg2 = static_cast< int >(val2);
21216 }
21217 if (obj2) {
21218 ecode3 = SWIG_AsVal_int(obj2, &val3);
21219 if (!SWIG_IsOK(ecode3)) {
21220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21221 }
21222 arg3 = static_cast< int >(val3);
21223 }
21224 if (obj3) {
21225 {
21226 arg4 = wxString_in_helper(obj3);
21227 if (arg4 == NULL) SWIG_fail;
21228 temp4 = true;
21229 }
21230 }
21231 {
21232 if (!wxPyCheckForApp()) SWIG_fail;
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21239 {
21240 if (temp1)
21241 delete arg1;
21242 }
21243 {
21244 if (temp4)
21245 delete arg4;
21246 }
21247 return resultobj;
21248 fail:
21249 {
21250 if (temp1)
21251 delete arg1;
21252 }
21253 {
21254 if (temp4)
21255 delete arg4;
21256 }
21257 return NULL;
21258 }
21259
21260
21261 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21262 PyObject *obj;
21263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21264 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21265 return SWIG_Py_Void();
21266 }
21267
21268 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21269 return SWIG_Python_InitShadowInstance(args);
21270 }
21271
21272 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj = 0;
21274 wxPrintData *arg1 = 0 ;
21275 wxPrinterDC *result = 0 ;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 PyObject * obj0 = 0 ;
21279 char * kwnames[] = {
21280 (char *) "printData", NULL
21281 };
21282
21283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21284 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21285 if (!SWIG_IsOK(res1)) {
21286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21287 }
21288 if (!argp1) {
21289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21290 }
21291 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21292 {
21293 if (!wxPyCheckForApp()) SWIG_fail;
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21300 return resultobj;
21301 fail:
21302 return NULL;
21303 }
21304
21305
21306 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21307 PyObject *obj;
21308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21309 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21310 return SWIG_Py_Void();
21311 }
21312
21313 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21314 return SWIG_Python_InitShadowInstance(args);
21315 }
21316
21317 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 int arg1 ;
21320 int arg2 ;
21321 int arg3 = (int) true ;
21322 int arg4 = (int) 1 ;
21323 wxImageList *result = 0 ;
21324 int val1 ;
21325 int ecode1 = 0 ;
21326 int val2 ;
21327 int ecode2 = 0 ;
21328 int val3 ;
21329 int ecode3 = 0 ;
21330 int val4 ;
21331 int ecode4 = 0 ;
21332 PyObject * obj0 = 0 ;
21333 PyObject * obj1 = 0 ;
21334 PyObject * obj2 = 0 ;
21335 PyObject * obj3 = 0 ;
21336 char * kwnames[] = {
21337 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21338 };
21339
21340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21341 ecode1 = SWIG_AsVal_int(obj0, &val1);
21342 if (!SWIG_IsOK(ecode1)) {
21343 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21344 }
21345 arg1 = static_cast< int >(val1);
21346 ecode2 = SWIG_AsVal_int(obj1, &val2);
21347 if (!SWIG_IsOK(ecode2)) {
21348 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21349 }
21350 arg2 = static_cast< int >(val2);
21351 if (obj2) {
21352 ecode3 = SWIG_AsVal_int(obj2, &val3);
21353 if (!SWIG_IsOK(ecode3)) {
21354 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21355 }
21356 arg3 = static_cast< int >(val3);
21357 }
21358 if (obj3) {
21359 ecode4 = SWIG_AsVal_int(obj3, &val4);
21360 if (!SWIG_IsOK(ecode4)) {
21361 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21362 }
21363 arg4 = static_cast< int >(val4);
21364 }
21365 {
21366 if (!wxPyCheckForApp()) SWIG_fail;
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 {
21373 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21374 }
21375 return resultobj;
21376 fail:
21377 return NULL;
21378 }
21379
21380
21381 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21382 PyObject *resultobj = 0;
21383 wxImageList *arg1 = (wxImageList *) 0 ;
21384 void *argp1 = 0 ;
21385 int res1 = 0 ;
21386 PyObject *swig_obj[1] ;
21387
21388 if (!args) SWIG_fail;
21389 swig_obj[0] = args;
21390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21391 if (!SWIG_IsOK(res1)) {
21392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21393 }
21394 arg1 = reinterpret_cast< wxImageList * >(argp1);
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 delete arg1;
21398
21399 wxPyEndAllowThreads(__tstate);
21400 if (PyErr_Occurred()) SWIG_fail;
21401 }
21402 resultobj = SWIG_Py_Void();
21403 return resultobj;
21404 fail:
21405 return NULL;
21406 }
21407
21408
21409 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21410 PyObject *resultobj = 0;
21411 wxImageList *arg1 = (wxImageList *) 0 ;
21412 wxBitmap *arg2 = 0 ;
21413 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21414 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21415 int result;
21416 void *argp1 = 0 ;
21417 int res1 = 0 ;
21418 void *argp2 = 0 ;
21419 int res2 = 0 ;
21420 void *argp3 = 0 ;
21421 int res3 = 0 ;
21422 PyObject * obj0 = 0 ;
21423 PyObject * obj1 = 0 ;
21424 PyObject * obj2 = 0 ;
21425 char * kwnames[] = {
21426 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21427 };
21428
21429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21431 if (!SWIG_IsOK(res1)) {
21432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21433 }
21434 arg1 = reinterpret_cast< wxImageList * >(argp1);
21435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21436 if (!SWIG_IsOK(res2)) {
21437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21438 }
21439 if (!argp2) {
21440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21441 }
21442 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21443 if (obj2) {
21444 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21445 if (!SWIG_IsOK(res3)) {
21446 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21447 }
21448 if (!argp3) {
21449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21450 }
21451 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21452 }
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_From_int(static_cast< int >(result));
21460 return resultobj;
21461 fail:
21462 return NULL;
21463 }
21464
21465
21466 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21467 PyObject *resultobj = 0;
21468 wxImageList *arg1 = (wxImageList *) 0 ;
21469 wxBitmap *arg2 = 0 ;
21470 wxColour *arg3 = 0 ;
21471 int result;
21472 void *argp1 = 0 ;
21473 int res1 = 0 ;
21474 void *argp2 = 0 ;
21475 int res2 = 0 ;
21476 wxColour temp3 ;
21477 PyObject * obj0 = 0 ;
21478 PyObject * obj1 = 0 ;
21479 PyObject * obj2 = 0 ;
21480 char * kwnames[] = {
21481 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21482 };
21483
21484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21486 if (!SWIG_IsOK(res1)) {
21487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21488 }
21489 arg1 = reinterpret_cast< wxImageList * >(argp1);
21490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21491 if (!SWIG_IsOK(res2)) {
21492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21493 }
21494 if (!argp2) {
21495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21496 }
21497 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21498 {
21499 arg3 = &temp3;
21500 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21501 }
21502 {
21503 PyThreadState* __tstate = wxPyBeginAllowThreads();
21504 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_From_int(static_cast< int >(result));
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21516 PyObject *resultobj = 0;
21517 wxImageList *arg1 = (wxImageList *) 0 ;
21518 wxIcon *arg2 = 0 ;
21519 int result;
21520 void *argp1 = 0 ;
21521 int res1 = 0 ;
21522 void *argp2 = 0 ;
21523 int res2 = 0 ;
21524 PyObject * obj0 = 0 ;
21525 PyObject * obj1 = 0 ;
21526 char * kwnames[] = {
21527 (char *) "self",(char *) "icon", NULL
21528 };
21529
21530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21532 if (!SWIG_IsOK(res1)) {
21533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21534 }
21535 arg1 = reinterpret_cast< wxImageList * >(argp1);
21536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21537 if (!SWIG_IsOK(res2)) {
21538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21539 }
21540 if (!argp2) {
21541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21542 }
21543 arg2 = reinterpret_cast< wxIcon * >(argp2);
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 resultobj = SWIG_From_int(static_cast< int >(result));
21551 return resultobj;
21552 fail:
21553 return NULL;
21554 }
21555
21556
21557 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21558 PyObject *resultobj = 0;
21559 wxImageList *arg1 = (wxImageList *) 0 ;
21560 int arg2 ;
21561 SwigValueWrapper<wxBitmap > result;
21562 void *argp1 = 0 ;
21563 int res1 = 0 ;
21564 int val2 ;
21565 int ecode2 = 0 ;
21566 PyObject * obj0 = 0 ;
21567 PyObject * obj1 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "self",(char *) "index", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21576 }
21577 arg1 = reinterpret_cast< wxImageList * >(argp1);
21578 ecode2 = SWIG_AsVal_int(obj1, &val2);
21579 if (!SWIG_IsOK(ecode2)) {
21580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21581 }
21582 arg2 = static_cast< int >(val2);
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj = 0;
21598 wxImageList *arg1 = (wxImageList *) 0 ;
21599 int arg2 ;
21600 wxIcon result;
21601 void *argp1 = 0 ;
21602 int res1 = 0 ;
21603 int val2 ;
21604 int ecode2 = 0 ;
21605 PyObject * obj0 = 0 ;
21606 PyObject * obj1 = 0 ;
21607 char * kwnames[] = {
21608 (char *) "self",(char *) "index", NULL
21609 };
21610
21611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21615 }
21616 arg1 = reinterpret_cast< wxImageList * >(argp1);
21617 ecode2 = SWIG_AsVal_int(obj1, &val2);
21618 if (!SWIG_IsOK(ecode2)) {
21619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21620 }
21621 arg2 = static_cast< int >(val2);
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21629 return resultobj;
21630 fail:
21631 return NULL;
21632 }
21633
21634
21635 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21636 PyObject *resultobj = 0;
21637 wxImageList *arg1 = (wxImageList *) 0 ;
21638 int arg2 ;
21639 wxBitmap *arg3 = 0 ;
21640 bool result;
21641 void *argp1 = 0 ;
21642 int res1 = 0 ;
21643 int val2 ;
21644 int ecode2 = 0 ;
21645 void *argp3 = 0 ;
21646 int res3 = 0 ;
21647 PyObject * obj0 = 0 ;
21648 PyObject * obj1 = 0 ;
21649 PyObject * obj2 = 0 ;
21650 char * kwnames[] = {
21651 (char *) "self",(char *) "index",(char *) "bitmap", NULL
21652 };
21653
21654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21656 if (!SWIG_IsOK(res1)) {
21657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21658 }
21659 arg1 = reinterpret_cast< wxImageList * >(argp1);
21660 ecode2 = SWIG_AsVal_int(obj1, &val2);
21661 if (!SWIG_IsOK(ecode2)) {
21662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21663 }
21664 arg2 = static_cast< int >(val2);
21665 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21666 if (!SWIG_IsOK(res3)) {
21667 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21668 }
21669 if (!argp3) {
21670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21671 }
21672 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21673 {
21674 PyThreadState* __tstate = wxPyBeginAllowThreads();
21675 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 {
21680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21681 }
21682 return resultobj;
21683 fail:
21684 return NULL;
21685 }
21686
21687
21688 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21689 PyObject *resultobj = 0;
21690 wxImageList *arg1 = (wxImageList *) 0 ;
21691 int arg2 ;
21692 wxDC *arg3 = 0 ;
21693 int arg4 ;
21694 int arg5 ;
21695 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21696 bool arg7 = (bool) (bool)false ;
21697 bool result;
21698 void *argp1 = 0 ;
21699 int res1 = 0 ;
21700 int val2 ;
21701 int ecode2 = 0 ;
21702 void *argp3 = 0 ;
21703 int res3 = 0 ;
21704 int val4 ;
21705 int ecode4 = 0 ;
21706 int val5 ;
21707 int ecode5 = 0 ;
21708 int val6 ;
21709 int ecode6 = 0 ;
21710 bool val7 ;
21711 int ecode7 = 0 ;
21712 PyObject * obj0 = 0 ;
21713 PyObject * obj1 = 0 ;
21714 PyObject * obj2 = 0 ;
21715 PyObject * obj3 = 0 ;
21716 PyObject * obj4 = 0 ;
21717 PyObject * obj5 = 0 ;
21718 PyObject * obj6 = 0 ;
21719 char * kwnames[] = {
21720 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21721 };
21722
21723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21725 if (!SWIG_IsOK(res1)) {
21726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21727 }
21728 arg1 = reinterpret_cast< wxImageList * >(argp1);
21729 ecode2 = SWIG_AsVal_int(obj1, &val2);
21730 if (!SWIG_IsOK(ecode2)) {
21731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21732 }
21733 arg2 = static_cast< int >(val2);
21734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21735 if (!SWIG_IsOK(res3)) {
21736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21737 }
21738 if (!argp3) {
21739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21740 }
21741 arg3 = reinterpret_cast< wxDC * >(argp3);
21742 ecode4 = SWIG_AsVal_int(obj3, &val4);
21743 if (!SWIG_IsOK(ecode4)) {
21744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21745 }
21746 arg4 = static_cast< int >(val4);
21747 ecode5 = SWIG_AsVal_int(obj4, &val5);
21748 if (!SWIG_IsOK(ecode5)) {
21749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21750 }
21751 arg5 = static_cast< int >(val5);
21752 if (obj5) {
21753 ecode6 = SWIG_AsVal_int(obj5, &val6);
21754 if (!SWIG_IsOK(ecode6)) {
21755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21756 }
21757 arg6 = static_cast< int >(val6);
21758 }
21759 if (obj6) {
21760 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21761 if (!SWIG_IsOK(ecode7)) {
21762 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21763 }
21764 arg7 = static_cast< bool >(val7);
21765 }
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21774 }
21775 return resultobj;
21776 fail:
21777 return NULL;
21778 }
21779
21780
21781 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21782 PyObject *resultobj = 0;
21783 wxImageList *arg1 = (wxImageList *) 0 ;
21784 int result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 PyObject *swig_obj[1] ;
21788
21789 if (!args) SWIG_fail;
21790 swig_obj[0] = args;
21791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21794 }
21795 arg1 = reinterpret_cast< wxImageList * >(argp1);
21796 {
21797 PyThreadState* __tstate = wxPyBeginAllowThreads();
21798 result = (int)(arg1)->GetImageCount();
21799 wxPyEndAllowThreads(__tstate);
21800 if (PyErr_Occurred()) SWIG_fail;
21801 }
21802 resultobj = SWIG_From_int(static_cast< int >(result));
21803 return resultobj;
21804 fail:
21805 return NULL;
21806 }
21807
21808
21809 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21810 PyObject *resultobj = 0;
21811 wxImageList *arg1 = (wxImageList *) 0 ;
21812 int arg2 ;
21813 bool result;
21814 void *argp1 = 0 ;
21815 int res1 = 0 ;
21816 int val2 ;
21817 int ecode2 = 0 ;
21818 PyObject * obj0 = 0 ;
21819 PyObject * obj1 = 0 ;
21820 char * kwnames[] = {
21821 (char *) "self",(char *) "index", NULL
21822 };
21823
21824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21826 if (!SWIG_IsOK(res1)) {
21827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21828 }
21829 arg1 = reinterpret_cast< wxImageList * >(argp1);
21830 ecode2 = SWIG_AsVal_int(obj1, &val2);
21831 if (!SWIG_IsOK(ecode2)) {
21832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21833 }
21834 arg2 = static_cast< int >(val2);
21835 {
21836 PyThreadState* __tstate = wxPyBeginAllowThreads();
21837 result = (bool)(arg1)->Remove(arg2);
21838 wxPyEndAllowThreads(__tstate);
21839 if (PyErr_Occurred()) SWIG_fail;
21840 }
21841 {
21842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21843 }
21844 return resultobj;
21845 fail:
21846 return NULL;
21847 }
21848
21849
21850 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21851 PyObject *resultobj = 0;
21852 wxImageList *arg1 = (wxImageList *) 0 ;
21853 bool result;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 PyObject *swig_obj[1] ;
21857
21858 if (!args) SWIG_fail;
21859 swig_obj[0] = args;
21860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21861 if (!SWIG_IsOK(res1)) {
21862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21863 }
21864 arg1 = reinterpret_cast< wxImageList * >(argp1);
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 result = (bool)(arg1)->RemoveAll();
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 {
21872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21873 }
21874 return resultobj;
21875 fail:
21876 return NULL;
21877 }
21878
21879
21880 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21881 PyObject *resultobj = 0;
21882 wxImageList *arg1 = (wxImageList *) 0 ;
21883 int arg2 ;
21884 int *arg3 = 0 ;
21885 int *arg4 = 0 ;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 int val2 ;
21889 int ecode2 = 0 ;
21890 int temp3 ;
21891 int res3 = SWIG_TMPOBJ ;
21892 int temp4 ;
21893 int res4 = SWIG_TMPOBJ ;
21894 PyObject * obj0 = 0 ;
21895 PyObject * obj1 = 0 ;
21896 char * kwnames[] = {
21897 (char *) "self",(char *) "index", NULL
21898 };
21899
21900 arg3 = &temp3;
21901 arg4 = &temp4;
21902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21904 if (!SWIG_IsOK(res1)) {
21905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21906 }
21907 arg1 = reinterpret_cast< wxImageList * >(argp1);
21908 ecode2 = SWIG_AsVal_int(obj1, &val2);
21909 if (!SWIG_IsOK(ecode2)) {
21910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21911 }
21912 arg2 = static_cast< int >(val2);
21913 {
21914 PyThreadState* __tstate = wxPyBeginAllowThreads();
21915 (arg1)->GetSize(arg2,*arg3,*arg4);
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = SWIG_Py_Void();
21920 if (SWIG_IsTmpObj(res3)) {
21921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21922 } else {
21923 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21925 }
21926 if (SWIG_IsTmpObj(res4)) {
21927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21928 } else {
21929 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21931 }
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21939 PyObject *obj;
21940 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21941 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21942 return SWIG_Py_Void();
21943 }
21944
21945 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21946 return SWIG_Python_InitShadowInstance(args);
21947 }
21948
21949 SWIGINTERN int NORMAL_FONT_set(PyObject *) {
21950 SWIG_Error(SWIG_AttributeError,"Variable NORMAL_FONT is read-only.");
21951 return 1;
21952 }
21953
21954
21955 SWIGINTERN PyObject *NORMAL_FONT_get(void) {
21956 PyObject *pyobj = 0;
21957
21958 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0 );
21959 return pyobj;
21960 }
21961
21962
21963 SWIGINTERN int SMALL_FONT_set(PyObject *) {
21964 SWIG_Error(SWIG_AttributeError,"Variable SMALL_FONT is read-only.");
21965 return 1;
21966 }
21967
21968
21969 SWIGINTERN PyObject *SMALL_FONT_get(void) {
21970 PyObject *pyobj = 0;
21971
21972 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0 );
21973 return pyobj;
21974 }
21975
21976
21977 SWIGINTERN int ITALIC_FONT_set(PyObject *) {
21978 SWIG_Error(SWIG_AttributeError,"Variable ITALIC_FONT is read-only.");
21979 return 1;
21980 }
21981
21982
21983 SWIGINTERN PyObject *ITALIC_FONT_get(void) {
21984 PyObject *pyobj = 0;
21985
21986 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0 );
21987 return pyobj;
21988 }
21989
21990
21991 SWIGINTERN int SWISS_FONT_set(PyObject *) {
21992 SWIG_Error(SWIG_AttributeError,"Variable SWISS_FONT is read-only.");
21993 return 1;
21994 }
21995
21996
21997 SWIGINTERN PyObject *SWISS_FONT_get(void) {
21998 PyObject *pyobj = 0;
21999
22000 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0 );
22001 return pyobj;
22002 }
22003
22004
22005 SWIGINTERN int RED_PEN_set(PyObject *) {
22006 SWIG_Error(SWIG_AttributeError,"Variable RED_PEN is read-only.");
22007 return 1;
22008 }
22009
22010
22011 SWIGINTERN PyObject *RED_PEN_get(void) {
22012 PyObject *pyobj = 0;
22013
22014 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_PEN), SWIGTYPE_p_wxPen, 0 );
22015 return pyobj;
22016 }
22017
22018
22019 SWIGINTERN int CYAN_PEN_set(PyObject *) {
22020 SWIG_Error(SWIG_AttributeError,"Variable CYAN_PEN is read-only.");
22021 return 1;
22022 }
22023
22024
22025 SWIGINTERN PyObject *CYAN_PEN_get(void) {
22026 PyObject *pyobj = 0;
22027
22028 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0 );
22029 return pyobj;
22030 }
22031
22032
22033 SWIGINTERN int GREEN_PEN_set(PyObject *) {
22034 SWIG_Error(SWIG_AttributeError,"Variable GREEN_PEN is read-only.");
22035 return 1;
22036 }
22037
22038
22039 SWIGINTERN PyObject *GREEN_PEN_get(void) {
22040 PyObject *pyobj = 0;
22041
22042 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0 );
22043 return pyobj;
22044 }
22045
22046
22047 SWIGINTERN int BLACK_PEN_set(PyObject *) {
22048 SWIG_Error(SWIG_AttributeError,"Variable BLACK_PEN is read-only.");
22049 return 1;
22050 }
22051
22052
22053 SWIGINTERN PyObject *BLACK_PEN_get(void) {
22054 PyObject *pyobj = 0;
22055
22056 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0 );
22057 return pyobj;
22058 }
22059
22060
22061 SWIGINTERN int WHITE_PEN_set(PyObject *) {
22062 SWIG_Error(SWIG_AttributeError,"Variable WHITE_PEN is read-only.");
22063 return 1;
22064 }
22065
22066
22067 SWIGINTERN PyObject *WHITE_PEN_get(void) {
22068 PyObject *pyobj = 0;
22069
22070 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0 );
22071 return pyobj;
22072 }
22073
22074
22075 SWIGINTERN int TRANSPARENT_PEN_set(PyObject *) {
22076 SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_PEN is read-only.");
22077 return 1;
22078 }
22079
22080
22081 SWIGINTERN PyObject *TRANSPARENT_PEN_get(void) {
22082 PyObject *pyobj = 0;
22083
22084 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0 );
22085 return pyobj;
22086 }
22087
22088
22089 SWIGINTERN int BLACK_DASHED_PEN_set(PyObject *) {
22090 SWIG_Error(SWIG_AttributeError,"Variable BLACK_DASHED_PEN is read-only.");
22091 return 1;
22092 }
22093
22094
22095 SWIGINTERN PyObject *BLACK_DASHED_PEN_get(void) {
22096 PyObject *pyobj = 0;
22097
22098 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0 );
22099 return pyobj;
22100 }
22101
22102
22103 SWIGINTERN int GREY_PEN_set(PyObject *) {
22104 SWIG_Error(SWIG_AttributeError,"Variable GREY_PEN is read-only.");
22105 return 1;
22106 }
22107
22108
22109 SWIGINTERN PyObject *GREY_PEN_get(void) {
22110 PyObject *pyobj = 0;
22111
22112 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_PEN), SWIGTYPE_p_wxPen, 0 );
22113 return pyobj;
22114 }
22115
22116
22117 SWIGINTERN int MEDIUM_GREY_PEN_set(PyObject *) {
22118 SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_PEN is read-only.");
22119 return 1;
22120 }
22121
22122
22123 SWIGINTERN PyObject *MEDIUM_GREY_PEN_get(void) {
22124 PyObject *pyobj = 0;
22125
22126 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0 );
22127 return pyobj;
22128 }
22129
22130
22131 SWIGINTERN int LIGHT_GREY_PEN_set(PyObject *) {
22132 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_PEN is read-only.");
22133 return 1;
22134 }
22135
22136
22137 SWIGINTERN PyObject *LIGHT_GREY_PEN_get(void) {
22138 PyObject *pyobj = 0;
22139
22140 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0 );
22141 return pyobj;
22142 }
22143
22144
22145 SWIGINTERN int BLUE_BRUSH_set(PyObject *) {
22146 SWIG_Error(SWIG_AttributeError,"Variable BLUE_BRUSH is read-only.");
22147 return 1;
22148 }
22149
22150
22151 SWIGINTERN PyObject *BLUE_BRUSH_get(void) {
22152 PyObject *pyobj = 0;
22153
22154 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22155 return pyobj;
22156 }
22157
22158
22159 SWIGINTERN int GREEN_BRUSH_set(PyObject *) {
22160 SWIG_Error(SWIG_AttributeError,"Variable GREEN_BRUSH is read-only.");
22161 return 1;
22162 }
22163
22164
22165 SWIGINTERN PyObject *GREEN_BRUSH_get(void) {
22166 PyObject *pyobj = 0;
22167
22168 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22169 return pyobj;
22170 }
22171
22172
22173 SWIGINTERN int WHITE_BRUSH_set(PyObject *) {
22174 SWIG_Error(SWIG_AttributeError,"Variable WHITE_BRUSH is read-only.");
22175 return 1;
22176 }
22177
22178
22179 SWIGINTERN PyObject *WHITE_BRUSH_get(void) {
22180 PyObject *pyobj = 0;
22181
22182 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22183 return pyobj;
22184 }
22185
22186
22187 SWIGINTERN int BLACK_BRUSH_set(PyObject *) {
22188 SWIG_Error(SWIG_AttributeError,"Variable BLACK_BRUSH is read-only.");
22189 return 1;
22190 }
22191
22192
22193 SWIGINTERN PyObject *BLACK_BRUSH_get(void) {
22194 PyObject *pyobj = 0;
22195
22196 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22197 return pyobj;
22198 }
22199
22200
22201 SWIGINTERN int TRANSPARENT_BRUSH_set(PyObject *) {
22202 SWIG_Error(SWIG_AttributeError,"Variable TRANSPARENT_BRUSH is read-only.");
22203 return 1;
22204 }
22205
22206
22207 SWIGINTERN PyObject *TRANSPARENT_BRUSH_get(void) {
22208 PyObject *pyobj = 0;
22209
22210 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22211 return pyobj;
22212 }
22213
22214
22215 SWIGINTERN int CYAN_BRUSH_set(PyObject *) {
22216 SWIG_Error(SWIG_AttributeError,"Variable CYAN_BRUSH is read-only.");
22217 return 1;
22218 }
22219
22220
22221 SWIGINTERN PyObject *CYAN_BRUSH_get(void) {
22222 PyObject *pyobj = 0;
22223
22224 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22225 return pyobj;
22226 }
22227
22228
22229 SWIGINTERN int RED_BRUSH_set(PyObject *) {
22230 SWIG_Error(SWIG_AttributeError,"Variable RED_BRUSH is read-only.");
22231 return 1;
22232 }
22233
22234
22235 SWIGINTERN PyObject *RED_BRUSH_get(void) {
22236 PyObject *pyobj = 0;
22237
22238 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22239 return pyobj;
22240 }
22241
22242
22243 SWIGINTERN int GREY_BRUSH_set(PyObject *) {
22244 SWIG_Error(SWIG_AttributeError,"Variable GREY_BRUSH is read-only.");
22245 return 1;
22246 }
22247
22248
22249 SWIGINTERN PyObject *GREY_BRUSH_get(void) {
22250 PyObject *pyobj = 0;
22251
22252 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22253 return pyobj;
22254 }
22255
22256
22257 SWIGINTERN int MEDIUM_GREY_BRUSH_set(PyObject *) {
22258 SWIG_Error(SWIG_AttributeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
22259 return 1;
22260 }
22261
22262
22263 SWIGINTERN PyObject *MEDIUM_GREY_BRUSH_get(void) {
22264 PyObject *pyobj = 0;
22265
22266 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22267 return pyobj;
22268 }
22269
22270
22271 SWIGINTERN int LIGHT_GREY_BRUSH_set(PyObject *) {
22272 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY_BRUSH is read-only.");
22273 return 1;
22274 }
22275
22276
22277 SWIGINTERN PyObject *LIGHT_GREY_BRUSH_get(void) {
22278 PyObject *pyobj = 0;
22279
22280 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0 );
22281 return pyobj;
22282 }
22283
22284
22285 SWIGINTERN int BLACK_set(PyObject *) {
22286 SWIG_Error(SWIG_AttributeError,"Variable BLACK is read-only.");
22287 return 1;
22288 }
22289
22290
22291 SWIGINTERN PyObject *BLACK_get(void) {
22292 PyObject *pyobj = 0;
22293
22294 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLACK), SWIGTYPE_p_wxColour, 0 );
22295 return pyobj;
22296 }
22297
22298
22299 SWIGINTERN int WHITE_set(PyObject *) {
22300 SWIG_Error(SWIG_AttributeError,"Variable WHITE is read-only.");
22301 return 1;
22302 }
22303
22304
22305 SWIGINTERN PyObject *WHITE_get(void) {
22306 PyObject *pyobj = 0;
22307
22308 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxWHITE), SWIGTYPE_p_wxColour, 0 );
22309 return pyobj;
22310 }
22311
22312
22313 SWIGINTERN int RED_set(PyObject *) {
22314 SWIG_Error(SWIG_AttributeError,"Variable RED is read-only.");
22315 return 1;
22316 }
22317
22318
22319 SWIGINTERN PyObject *RED_get(void) {
22320 PyObject *pyobj = 0;
22321
22322 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxRED), SWIGTYPE_p_wxColour, 0 );
22323 return pyobj;
22324 }
22325
22326
22327 SWIGINTERN int BLUE_set(PyObject *) {
22328 SWIG_Error(SWIG_AttributeError,"Variable BLUE is read-only.");
22329 return 1;
22330 }
22331
22332
22333 SWIGINTERN PyObject *BLUE_get(void) {
22334 PyObject *pyobj = 0;
22335
22336 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxBLUE), SWIGTYPE_p_wxColour, 0 );
22337 return pyobj;
22338 }
22339
22340
22341 SWIGINTERN int GREEN_set(PyObject *) {
22342 SWIG_Error(SWIG_AttributeError,"Variable GREEN is read-only.");
22343 return 1;
22344 }
22345
22346
22347 SWIGINTERN PyObject *GREEN_get(void) {
22348 PyObject *pyobj = 0;
22349
22350 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxGREEN), SWIGTYPE_p_wxColour, 0 );
22351 return pyobj;
22352 }
22353
22354
22355 SWIGINTERN int CYAN_set(PyObject *) {
22356 SWIG_Error(SWIG_AttributeError,"Variable CYAN is read-only.");
22357 return 1;
22358 }
22359
22360
22361 SWIGINTERN PyObject *CYAN_get(void) {
22362 PyObject *pyobj = 0;
22363
22364 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCYAN), SWIGTYPE_p_wxColour, 0 );
22365 return pyobj;
22366 }
22367
22368
22369 SWIGINTERN int LIGHT_GREY_set(PyObject *) {
22370 SWIG_Error(SWIG_AttributeError,"Variable LIGHT_GREY is read-only.");
22371 return 1;
22372 }
22373
22374
22375 SWIGINTERN PyObject *LIGHT_GREY_get(void) {
22376 PyObject *pyobj = 0;
22377
22378 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0 );
22379 return pyobj;
22380 }
22381
22382
22383 SWIGINTERN int STANDARD_CURSOR_set(PyObject *) {
22384 SWIG_Error(SWIG_AttributeError,"Variable STANDARD_CURSOR is read-only.");
22385 return 1;
22386 }
22387
22388
22389 SWIGINTERN PyObject *STANDARD_CURSOR_get(void) {
22390 PyObject *pyobj = 0;
22391
22392 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22393 return pyobj;
22394 }
22395
22396
22397 SWIGINTERN int HOURGLASS_CURSOR_set(PyObject *) {
22398 SWIG_Error(SWIG_AttributeError,"Variable HOURGLASS_CURSOR is read-only.");
22399 return 1;
22400 }
22401
22402
22403 SWIGINTERN PyObject *HOURGLASS_CURSOR_get(void) {
22404 PyObject *pyobj = 0;
22405
22406 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22407 return pyobj;
22408 }
22409
22410
22411 SWIGINTERN int CROSS_CURSOR_set(PyObject *) {
22412 SWIG_Error(SWIG_AttributeError,"Variable CROSS_CURSOR is read-only.");
22413 return 1;
22414 }
22415
22416
22417 SWIGINTERN PyObject *CROSS_CURSOR_get(void) {
22418 PyObject *pyobj = 0;
22419
22420 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0 );
22421 return pyobj;
22422 }
22423
22424
22425 SWIGINTERN int NullBitmap_set(PyObject *) {
22426 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22427 return 1;
22428 }
22429
22430
22431 SWIGINTERN PyObject *NullBitmap_get(void) {
22432 PyObject *pyobj = 0;
22433
22434 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22435 return pyobj;
22436 }
22437
22438
22439 SWIGINTERN int NullIcon_set(PyObject *) {
22440 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22441 return 1;
22442 }
22443
22444
22445 SWIGINTERN PyObject *NullIcon_get(void) {
22446 PyObject *pyobj = 0;
22447
22448 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22449 return pyobj;
22450 }
22451
22452
22453 SWIGINTERN int NullCursor_set(PyObject *) {
22454 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22455 return 1;
22456 }
22457
22458
22459 SWIGINTERN PyObject *NullCursor_get(void) {
22460 PyObject *pyobj = 0;
22461
22462 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22463 return pyobj;
22464 }
22465
22466
22467 SWIGINTERN int NullPen_set(PyObject *) {
22468 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22469 return 1;
22470 }
22471
22472
22473 SWIGINTERN PyObject *NullPen_get(void) {
22474 PyObject *pyobj = 0;
22475
22476 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22477 return pyobj;
22478 }
22479
22480
22481 SWIGINTERN int NullBrush_set(PyObject *) {
22482 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22483 return 1;
22484 }
22485
22486
22487 SWIGINTERN PyObject *NullBrush_get(void) {
22488 PyObject *pyobj = 0;
22489
22490 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22491 return pyobj;
22492 }
22493
22494
22495 SWIGINTERN int NullPalette_set(PyObject *) {
22496 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22497 return 1;
22498 }
22499
22500
22501 SWIGINTERN PyObject *NullPalette_get(void) {
22502 PyObject *pyobj = 0;
22503
22504 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22505 return pyobj;
22506 }
22507
22508
22509 SWIGINTERN int NullFont_set(PyObject *) {
22510 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22511 return 1;
22512 }
22513
22514
22515 SWIGINTERN PyObject *NullFont_get(void) {
22516 PyObject *pyobj = 0;
22517
22518 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22519 return pyobj;
22520 }
22521
22522
22523 SWIGINTERN int NullColour_set(PyObject *) {
22524 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22525 return 1;
22526 }
22527
22528
22529 SWIGINTERN PyObject *NullColour_get(void) {
22530 PyObject *pyobj = 0;
22531
22532 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22533 return pyobj;
22534 }
22535
22536
22537 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22538 PyObject *resultobj = 0;
22539 wxPenList *arg1 = (wxPenList *) 0 ;
22540 wxPen *arg2 = (wxPen *) 0 ;
22541 void *argp1 = 0 ;
22542 int res1 = 0 ;
22543 void *argp2 = 0 ;
22544 int res2 = 0 ;
22545 PyObject * obj0 = 0 ;
22546 PyObject * obj1 = 0 ;
22547 char * kwnames[] = {
22548 (char *) "self",(char *) "pen", NULL
22549 };
22550
22551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22553 if (!SWIG_IsOK(res1)) {
22554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22555 }
22556 arg1 = reinterpret_cast< wxPenList * >(argp1);
22557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22558 if (!SWIG_IsOK(res2)) {
22559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22560 }
22561 arg2 = reinterpret_cast< wxPen * >(argp2);
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 (arg1)->AddPen(arg2);
22565 wxPyEndAllowThreads(__tstate);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 }
22568 resultobj = SWIG_Py_Void();
22569 return resultobj;
22570 fail:
22571 return NULL;
22572 }
22573
22574
22575 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22576 PyObject *resultobj = 0;
22577 wxPenList *arg1 = (wxPenList *) 0 ;
22578 wxColour *arg2 = 0 ;
22579 int arg3 ;
22580 int arg4 ;
22581 wxPen *result = 0 ;
22582 void *argp1 = 0 ;
22583 int res1 = 0 ;
22584 wxColour temp2 ;
22585 int val3 ;
22586 int ecode3 = 0 ;
22587 int val4 ;
22588 int ecode4 = 0 ;
22589 PyObject * obj0 = 0 ;
22590 PyObject * obj1 = 0 ;
22591 PyObject * obj2 = 0 ;
22592 PyObject * obj3 = 0 ;
22593 char * kwnames[] = {
22594 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22595 };
22596
22597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22599 if (!SWIG_IsOK(res1)) {
22600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22601 }
22602 arg1 = reinterpret_cast< wxPenList * >(argp1);
22603 {
22604 arg2 = &temp2;
22605 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22606 }
22607 ecode3 = SWIG_AsVal_int(obj2, &val3);
22608 if (!SWIG_IsOK(ecode3)) {
22609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22610 }
22611 arg3 = static_cast< int >(val3);
22612 ecode4 = SWIG_AsVal_int(obj3, &val4);
22613 if (!SWIG_IsOK(ecode4)) {
22614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22615 }
22616 arg4 = static_cast< int >(val4);
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22624 return resultobj;
22625 fail:
22626 return NULL;
22627 }
22628
22629
22630 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22631 PyObject *resultobj = 0;
22632 wxPenList *arg1 = (wxPenList *) 0 ;
22633 wxPen *arg2 = (wxPen *) 0 ;
22634 void *argp1 = 0 ;
22635 int res1 = 0 ;
22636 void *argp2 = 0 ;
22637 int res2 = 0 ;
22638 PyObject * obj0 = 0 ;
22639 PyObject * obj1 = 0 ;
22640 char * kwnames[] = {
22641 (char *) "self",(char *) "pen", NULL
22642 };
22643
22644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22646 if (!SWIG_IsOK(res1)) {
22647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22648 }
22649 arg1 = reinterpret_cast< wxPenList * >(argp1);
22650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22651 if (!SWIG_IsOK(res2)) {
22652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22653 }
22654 arg2 = reinterpret_cast< wxPen * >(argp2);
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 (arg1)->RemovePen(arg2);
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_Py_Void();
22662 return resultobj;
22663 fail:
22664 return NULL;
22665 }
22666
22667
22668 SWIGINTERN PyObject *_wrap_PenList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22669 PyObject *resultobj = 0;
22670 wxPenList *arg1 = (wxPenList *) 0 ;
22671 int result;
22672 void *argp1 = 0 ;
22673 int res1 = 0 ;
22674 PyObject *swig_obj[1] ;
22675
22676 if (!args) SWIG_fail;
22677 swig_obj[0] = args;
22678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22679 if (!SWIG_IsOK(res1)) {
22680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_GetCount" "', expected argument " "1"" of type '" "wxPenList *""'");
22681 }
22682 arg1 = reinterpret_cast< wxPenList * >(argp1);
22683 {
22684 PyThreadState* __tstate = wxPyBeginAllowThreads();
22685 result = (int)(arg1)->GetCount();
22686 wxPyEndAllowThreads(__tstate);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 }
22689 resultobj = SWIG_From_int(static_cast< int >(result));
22690 return resultobj;
22691 fail:
22692 return NULL;
22693 }
22694
22695
22696 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22697 PyObject *obj;
22698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22699 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22700 return SWIG_Py_Void();
22701 }
22702
22703 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22704 PyObject *resultobj = 0;
22705 wxBrushList *arg1 = (wxBrushList *) 0 ;
22706 wxBrush *arg2 = (wxBrush *) 0 ;
22707 void *argp1 = 0 ;
22708 int res1 = 0 ;
22709 void *argp2 = 0 ;
22710 int res2 = 0 ;
22711 PyObject * obj0 = 0 ;
22712 PyObject * obj1 = 0 ;
22713 char * kwnames[] = {
22714 (char *) "self",(char *) "brush", NULL
22715 };
22716
22717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22719 if (!SWIG_IsOK(res1)) {
22720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22721 }
22722 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22723 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22724 if (!SWIG_IsOK(res2)) {
22725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22726 }
22727 arg2 = reinterpret_cast< wxBrush * >(argp2);
22728 {
22729 PyThreadState* __tstate = wxPyBeginAllowThreads();
22730 (arg1)->AddBrush(arg2);
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 resultobj = SWIG_Py_Void();
22735 return resultobj;
22736 fail:
22737 return NULL;
22738 }
22739
22740
22741 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22742 PyObject *resultobj = 0;
22743 wxBrushList *arg1 = (wxBrushList *) 0 ;
22744 wxColour *arg2 = 0 ;
22745 int arg3 = (int) wxSOLID ;
22746 wxBrush *result = 0 ;
22747 void *argp1 = 0 ;
22748 int res1 = 0 ;
22749 wxColour temp2 ;
22750 int val3 ;
22751 int ecode3 = 0 ;
22752 PyObject * obj0 = 0 ;
22753 PyObject * obj1 = 0 ;
22754 PyObject * obj2 = 0 ;
22755 char * kwnames[] = {
22756 (char *) "self",(char *) "colour",(char *) "style", NULL
22757 };
22758
22759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22761 if (!SWIG_IsOK(res1)) {
22762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22763 }
22764 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22765 {
22766 arg2 = &temp2;
22767 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22768 }
22769 if (obj2) {
22770 ecode3 = SWIG_AsVal_int(obj2, &val3);
22771 if (!SWIG_IsOK(ecode3)) {
22772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22773 }
22774 arg3 = static_cast< int >(val3);
22775 }
22776 {
22777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22778 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22779 wxPyEndAllowThreads(__tstate);
22780 if (PyErr_Occurred()) SWIG_fail;
22781 }
22782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22783 return resultobj;
22784 fail:
22785 return NULL;
22786 }
22787
22788
22789 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj = 0;
22791 wxBrushList *arg1 = (wxBrushList *) 0 ;
22792 wxBrush *arg2 = (wxBrush *) 0 ;
22793 void *argp1 = 0 ;
22794 int res1 = 0 ;
22795 void *argp2 = 0 ;
22796 int res2 = 0 ;
22797 PyObject * obj0 = 0 ;
22798 PyObject * obj1 = 0 ;
22799 char * kwnames[] = {
22800 (char *) "self",(char *) "brush", NULL
22801 };
22802
22803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22805 if (!SWIG_IsOK(res1)) {
22806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22807 }
22808 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22810 if (!SWIG_IsOK(res2)) {
22811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22812 }
22813 arg2 = reinterpret_cast< wxBrush * >(argp2);
22814 {
22815 PyThreadState* __tstate = wxPyBeginAllowThreads();
22816 (arg1)->RemoveBrush(arg2);
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 resultobj = SWIG_Py_Void();
22821 return resultobj;
22822 fail:
22823 return NULL;
22824 }
22825
22826
22827 SWIGINTERN PyObject *_wrap_BrushList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22828 PyObject *resultobj = 0;
22829 wxBrushList *arg1 = (wxBrushList *) 0 ;
22830 int result;
22831 void *argp1 = 0 ;
22832 int res1 = 0 ;
22833 PyObject *swig_obj[1] ;
22834
22835 if (!args) SWIG_fail;
22836 swig_obj[0] = args;
22837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_GetCount" "', expected argument " "1"" of type '" "wxBrushList *""'");
22840 }
22841 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22842 {
22843 PyThreadState* __tstate = wxPyBeginAllowThreads();
22844 result = (int)(arg1)->GetCount();
22845 wxPyEndAllowThreads(__tstate);
22846 if (PyErr_Occurred()) SWIG_fail;
22847 }
22848 resultobj = SWIG_From_int(static_cast< int >(result));
22849 return resultobj;
22850 fail:
22851 return NULL;
22852 }
22853
22854
22855 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22856 PyObject *obj;
22857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22858 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22859 return SWIG_Py_Void();
22860 }
22861
22862 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *resultobj = 0;
22864 wxColourDatabase *result = 0 ;
22865
22866 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22867 {
22868 if (!wxPyCheckForApp()) SWIG_fail;
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (wxColourDatabase *)new wxColourDatabase();
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22875 return resultobj;
22876 fail:
22877 return NULL;
22878 }
22879
22880
22881 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22882 PyObject *resultobj = 0;
22883 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22884 void *argp1 = 0 ;
22885 int res1 = 0 ;
22886 PyObject *swig_obj[1] ;
22887
22888 if (!args) SWIG_fail;
22889 swig_obj[0] = args;
22890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22891 if (!SWIG_IsOK(res1)) {
22892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22893 }
22894 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22895 {
22896 PyThreadState* __tstate = wxPyBeginAllowThreads();
22897 delete arg1;
22898
22899 wxPyEndAllowThreads(__tstate);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 resultobj = SWIG_Py_Void();
22903 return resultobj;
22904 fail:
22905 return NULL;
22906 }
22907
22908
22909 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22910 PyObject *resultobj = 0;
22911 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22912 wxString *arg2 = 0 ;
22913 wxColour result;
22914 void *argp1 = 0 ;
22915 int res1 = 0 ;
22916 bool temp2 = false ;
22917 PyObject * obj0 = 0 ;
22918 PyObject * obj1 = 0 ;
22919 char * kwnames[] = {
22920 (char *) "self",(char *) "name", NULL
22921 };
22922
22923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22925 if (!SWIG_IsOK(res1)) {
22926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22927 }
22928 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22929 {
22930 arg2 = wxString_in_helper(obj1);
22931 if (arg2 == NULL) SWIG_fail;
22932 temp2 = true;
22933 }
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22937 wxPyEndAllowThreads(__tstate);
22938 if (PyErr_Occurred()) SWIG_fail;
22939 }
22940 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22941 {
22942 if (temp2)
22943 delete arg2;
22944 }
22945 return resultobj;
22946 fail:
22947 {
22948 if (temp2)
22949 delete arg2;
22950 }
22951 return NULL;
22952 }
22953
22954
22955 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22956 PyObject *resultobj = 0;
22957 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22958 wxColour *arg2 = 0 ;
22959 wxString result;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 wxColour temp2 ;
22963 PyObject * obj0 = 0 ;
22964 PyObject * obj1 = 0 ;
22965 char * kwnames[] = {
22966 (char *) "self",(char *) "colour", NULL
22967 };
22968
22969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22973 }
22974 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22975 {
22976 arg2 = &temp2;
22977 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22978 }
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 {
22986 #if wxUSE_UNICODE
22987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22988 #else
22989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22990 #endif
22991 }
22992 return resultobj;
22993 fail:
22994 return NULL;
22995 }
22996
22997
22998 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22999 PyObject *resultobj = 0;
23000 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23001 wxString *arg2 = 0 ;
23002 wxColour *arg3 = 0 ;
23003 void *argp1 = 0 ;
23004 int res1 = 0 ;
23005 bool temp2 = false ;
23006 wxColour temp3 ;
23007 PyObject * obj0 = 0 ;
23008 PyObject * obj1 = 0 ;
23009 PyObject * obj2 = 0 ;
23010 char * kwnames[] = {
23011 (char *) "self",(char *) "name",(char *) "colour", NULL
23012 };
23013
23014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23016 if (!SWIG_IsOK(res1)) {
23017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23018 }
23019 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23020 {
23021 arg2 = wxString_in_helper(obj1);
23022 if (arg2 == NULL) SWIG_fail;
23023 temp2 = true;
23024 }
23025 {
23026 arg3 = &temp3;
23027 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23028 }
23029 {
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23032 wxPyEndAllowThreads(__tstate);
23033 if (PyErr_Occurred()) SWIG_fail;
23034 }
23035 resultobj = SWIG_Py_Void();
23036 {
23037 if (temp2)
23038 delete arg2;
23039 }
23040 return resultobj;
23041 fail:
23042 {
23043 if (temp2)
23044 delete arg2;
23045 }
23046 return NULL;
23047 }
23048
23049
23050 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23051 PyObject *resultobj = 0;
23052 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23053 wxString *arg2 = 0 ;
23054 int arg3 ;
23055 int arg4 ;
23056 int arg5 ;
23057 void *argp1 = 0 ;
23058 int res1 = 0 ;
23059 bool temp2 = false ;
23060 int val3 ;
23061 int ecode3 = 0 ;
23062 int val4 ;
23063 int ecode4 = 0 ;
23064 int val5 ;
23065 int ecode5 = 0 ;
23066 PyObject * obj0 = 0 ;
23067 PyObject * obj1 = 0 ;
23068 PyObject * obj2 = 0 ;
23069 PyObject * obj3 = 0 ;
23070 PyObject * obj4 = 0 ;
23071 char * kwnames[] = {
23072 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
23073 };
23074
23075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23077 if (!SWIG_IsOK(res1)) {
23078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23079 }
23080 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23081 {
23082 arg2 = wxString_in_helper(obj1);
23083 if (arg2 == NULL) SWIG_fail;
23084 temp2 = true;
23085 }
23086 ecode3 = SWIG_AsVal_int(obj2, &val3);
23087 if (!SWIG_IsOK(ecode3)) {
23088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23089 }
23090 arg3 = static_cast< int >(val3);
23091 ecode4 = SWIG_AsVal_int(obj3, &val4);
23092 if (!SWIG_IsOK(ecode4)) {
23093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23094 }
23095 arg4 = static_cast< int >(val4);
23096 ecode5 = SWIG_AsVal_int(obj4, &val5);
23097 if (!SWIG_IsOK(ecode5)) {
23098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23099 }
23100 arg5 = static_cast< int >(val5);
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_Py_Void();
23108 {
23109 if (temp2)
23110 delete arg2;
23111 }
23112 return resultobj;
23113 fail:
23114 {
23115 if (temp2)
23116 delete arg2;
23117 }
23118 return NULL;
23119 }
23120
23121
23122 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23123 PyObject *obj;
23124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23125 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23126 return SWIG_Py_Void();
23127 }
23128
23129 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23130 return SWIG_Python_InitShadowInstance(args);
23131 }
23132
23133 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj = 0;
23135 wxFontList *arg1 = (wxFontList *) 0 ;
23136 wxFont *arg2 = (wxFont *) 0 ;
23137 void *argp1 = 0 ;
23138 int res1 = 0 ;
23139 void *argp2 = 0 ;
23140 int res2 = 0 ;
23141 PyObject * obj0 = 0 ;
23142 PyObject * obj1 = 0 ;
23143 char * kwnames[] = {
23144 (char *) "self",(char *) "font", NULL
23145 };
23146
23147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23151 }
23152 arg1 = reinterpret_cast< wxFontList * >(argp1);
23153 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23154 if (!SWIG_IsOK(res2)) {
23155 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23156 }
23157 arg2 = reinterpret_cast< wxFont * >(argp2);
23158 {
23159 PyThreadState* __tstate = wxPyBeginAllowThreads();
23160 (arg1)->AddFont(arg2);
23161 wxPyEndAllowThreads(__tstate);
23162 if (PyErr_Occurred()) SWIG_fail;
23163 }
23164 resultobj = SWIG_Py_Void();
23165 return resultobj;
23166 fail:
23167 return NULL;
23168 }
23169
23170
23171 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23172 PyObject *resultobj = 0;
23173 wxFontList *arg1 = (wxFontList *) 0 ;
23174 int arg2 ;
23175 int arg3 ;
23176 int arg4 ;
23177 int arg5 ;
23178 bool arg6 = (bool) false ;
23179 wxString const &arg7_defvalue = wxPyEmptyString ;
23180 wxString *arg7 = (wxString *) &arg7_defvalue ;
23181 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23182 wxFont *result = 0 ;
23183 void *argp1 = 0 ;
23184 int res1 = 0 ;
23185 int val2 ;
23186 int ecode2 = 0 ;
23187 int val3 ;
23188 int ecode3 = 0 ;
23189 int val4 ;
23190 int ecode4 = 0 ;
23191 int val5 ;
23192 int ecode5 = 0 ;
23193 bool val6 ;
23194 int ecode6 = 0 ;
23195 bool temp7 = false ;
23196 int val8 ;
23197 int ecode8 = 0 ;
23198 PyObject * obj0 = 0 ;
23199 PyObject * obj1 = 0 ;
23200 PyObject * obj2 = 0 ;
23201 PyObject * obj3 = 0 ;
23202 PyObject * obj4 = 0 ;
23203 PyObject * obj5 = 0 ;
23204 PyObject * obj6 = 0 ;
23205 PyObject * obj7 = 0 ;
23206 char * kwnames[] = {
23207 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23208 };
23209
23210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23212 if (!SWIG_IsOK(res1)) {
23213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23214 }
23215 arg1 = reinterpret_cast< wxFontList * >(argp1);
23216 ecode2 = SWIG_AsVal_int(obj1, &val2);
23217 if (!SWIG_IsOK(ecode2)) {
23218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23219 }
23220 arg2 = static_cast< int >(val2);
23221 ecode3 = SWIG_AsVal_int(obj2, &val3);
23222 if (!SWIG_IsOK(ecode3)) {
23223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23224 }
23225 arg3 = static_cast< int >(val3);
23226 ecode4 = SWIG_AsVal_int(obj3, &val4);
23227 if (!SWIG_IsOK(ecode4)) {
23228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23229 }
23230 arg4 = static_cast< int >(val4);
23231 ecode5 = SWIG_AsVal_int(obj4, &val5);
23232 if (!SWIG_IsOK(ecode5)) {
23233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23234 }
23235 arg5 = static_cast< int >(val5);
23236 if (obj5) {
23237 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23238 if (!SWIG_IsOK(ecode6)) {
23239 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23240 }
23241 arg6 = static_cast< bool >(val6);
23242 }
23243 if (obj6) {
23244 {
23245 arg7 = wxString_in_helper(obj6);
23246 if (arg7 == NULL) SWIG_fail;
23247 temp7 = true;
23248 }
23249 }
23250 if (obj7) {
23251 ecode8 = SWIG_AsVal_int(obj7, &val8);
23252 if (!SWIG_IsOK(ecode8)) {
23253 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23254 }
23255 arg8 = static_cast< wxFontEncoding >(val8);
23256 }
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23260 wxPyEndAllowThreads(__tstate);
23261 if (PyErr_Occurred()) SWIG_fail;
23262 }
23263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23264 {
23265 if (temp7)
23266 delete arg7;
23267 }
23268 return resultobj;
23269 fail:
23270 {
23271 if (temp7)
23272 delete arg7;
23273 }
23274 return NULL;
23275 }
23276
23277
23278 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23279 PyObject *resultobj = 0;
23280 wxFontList *arg1 = (wxFontList *) 0 ;
23281 wxFont *arg2 = (wxFont *) 0 ;
23282 void *argp1 = 0 ;
23283 int res1 = 0 ;
23284 void *argp2 = 0 ;
23285 int res2 = 0 ;
23286 PyObject * obj0 = 0 ;
23287 PyObject * obj1 = 0 ;
23288 char * kwnames[] = {
23289 (char *) "self",(char *) "font", NULL
23290 };
23291
23292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23294 if (!SWIG_IsOK(res1)) {
23295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23296 }
23297 arg1 = reinterpret_cast< wxFontList * >(argp1);
23298 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23299 if (!SWIG_IsOK(res2)) {
23300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23301 }
23302 arg2 = reinterpret_cast< wxFont * >(argp2);
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 (arg1)->RemoveFont(arg2);
23306 wxPyEndAllowThreads(__tstate);
23307 if (PyErr_Occurred()) SWIG_fail;
23308 }
23309 resultobj = SWIG_Py_Void();
23310 return resultobj;
23311 fail:
23312 return NULL;
23313 }
23314
23315
23316 SWIGINTERN PyObject *_wrap_FontList_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23317 PyObject *resultobj = 0;
23318 wxFontList *arg1 = (wxFontList *) 0 ;
23319 int result;
23320 void *argp1 = 0 ;
23321 int res1 = 0 ;
23322 PyObject *swig_obj[1] ;
23323
23324 if (!args) SWIG_fail;
23325 swig_obj[0] = args;
23326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23327 if (!SWIG_IsOK(res1)) {
23328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_GetCount" "', expected argument " "1"" of type '" "wxFontList *""'");
23329 }
23330 arg1 = reinterpret_cast< wxFontList * >(argp1);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (int)(arg1)->GetCount();
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 resultobj = SWIG_From_int(static_cast< int >(result));
23338 return resultobj;
23339 fail:
23340 return NULL;
23341 }
23342
23343
23344 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23345 PyObject *obj;
23346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23347 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23348 return SWIG_Py_Void();
23349 }
23350
23351 SWIGINTERN int TheFontList_set(PyObject *) {
23352 SWIG_Error(SWIG_AttributeError,"Variable TheFontList is read-only.");
23353 return 1;
23354 }
23355
23356
23357 SWIGINTERN PyObject *TheFontList_get(void) {
23358 PyObject *pyobj = 0;
23359
23360 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheFontList), SWIGTYPE_p_wxFontList, 0 );
23361 return pyobj;
23362 }
23363
23364
23365 SWIGINTERN int ThePenList_set(PyObject *) {
23366 SWIG_Error(SWIG_AttributeError,"Variable ThePenList is read-only.");
23367 return 1;
23368 }
23369
23370
23371 SWIGINTERN PyObject *ThePenList_get(void) {
23372 PyObject *pyobj = 0;
23373
23374 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxThePenList), SWIGTYPE_p_wxPenList, 0 );
23375 return pyobj;
23376 }
23377
23378
23379 SWIGINTERN int TheBrushList_set(PyObject *) {
23380 SWIG_Error(SWIG_AttributeError,"Variable TheBrushList is read-only.");
23381 return 1;
23382 }
23383
23384
23385 SWIGINTERN PyObject *TheBrushList_get(void) {
23386 PyObject *pyobj = 0;
23387
23388 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0 );
23389 return pyobj;
23390 }
23391
23392
23393 SWIGINTERN int TheColourDatabase_set(PyObject *) {
23394 SWIG_Error(SWIG_AttributeError,"Variable TheColourDatabase is read-only.");
23395 return 1;
23396 }
23397
23398
23399 SWIGINTERN PyObject *TheColourDatabase_get(void) {
23400 PyObject *pyobj = 0;
23401
23402 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0 );
23403 return pyobj;
23404 }
23405
23406
23407 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23408 PyObject *resultobj = 0;
23409 wxEffects *result = 0 ;
23410
23411 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (wxEffects *)new wxEffects();
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23426 PyObject *resultobj = 0;
23427 wxEffects *arg1 = (wxEffects *) 0 ;
23428 wxColour result;
23429 void *argp1 = 0 ;
23430 int res1 = 0 ;
23431 PyObject *swig_obj[1] ;
23432
23433 if (!args) SWIG_fail;
23434 swig_obj[0] = args;
23435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23436 if (!SWIG_IsOK(res1)) {
23437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23438 }
23439 arg1 = reinterpret_cast< wxEffects * >(argp1);
23440 {
23441 PyThreadState* __tstate = wxPyBeginAllowThreads();
23442 result = ((wxEffects const *)arg1)->GetHighlightColour();
23443 wxPyEndAllowThreads(__tstate);
23444 if (PyErr_Occurred()) SWIG_fail;
23445 }
23446 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23447 return resultobj;
23448 fail:
23449 return NULL;
23450 }
23451
23452
23453 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23454 PyObject *resultobj = 0;
23455 wxEffects *arg1 = (wxEffects *) 0 ;
23456 wxColour result;
23457 void *argp1 = 0 ;
23458 int res1 = 0 ;
23459 PyObject *swig_obj[1] ;
23460
23461 if (!args) SWIG_fail;
23462 swig_obj[0] = args;
23463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23464 if (!SWIG_IsOK(res1)) {
23465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23466 }
23467 arg1 = reinterpret_cast< wxEffects * >(argp1);
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 result = ((wxEffects const *)arg1)->GetLightShadow();
23471 wxPyEndAllowThreads(__tstate);
23472 if (PyErr_Occurred()) SWIG_fail;
23473 }
23474 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23475 return resultobj;
23476 fail:
23477 return NULL;
23478 }
23479
23480
23481 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23482 PyObject *resultobj = 0;
23483 wxEffects *arg1 = (wxEffects *) 0 ;
23484 wxColour result;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 PyObject *swig_obj[1] ;
23488
23489 if (!args) SWIG_fail;
23490 swig_obj[0] = args;
23491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23492 if (!SWIG_IsOK(res1)) {
23493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23494 }
23495 arg1 = reinterpret_cast< wxEffects * >(argp1);
23496 {
23497 PyThreadState* __tstate = wxPyBeginAllowThreads();
23498 result = ((wxEffects const *)arg1)->GetFaceColour();
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23503 return resultobj;
23504 fail:
23505 return NULL;
23506 }
23507
23508
23509 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23510 PyObject *resultobj = 0;
23511 wxEffects *arg1 = (wxEffects *) 0 ;
23512 wxColour result;
23513 void *argp1 = 0 ;
23514 int res1 = 0 ;
23515 PyObject *swig_obj[1] ;
23516
23517 if (!args) SWIG_fail;
23518 swig_obj[0] = args;
23519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23520 if (!SWIG_IsOK(res1)) {
23521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23522 }
23523 arg1 = reinterpret_cast< wxEffects * >(argp1);
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = ((wxEffects const *)arg1)->GetMediumShadow();
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23531 return resultobj;
23532 fail:
23533 return NULL;
23534 }
23535
23536
23537 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23538 PyObject *resultobj = 0;
23539 wxEffects *arg1 = (wxEffects *) 0 ;
23540 wxColour result;
23541 void *argp1 = 0 ;
23542 int res1 = 0 ;
23543 PyObject *swig_obj[1] ;
23544
23545 if (!args) SWIG_fail;
23546 swig_obj[0] = args;
23547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23548 if (!SWIG_IsOK(res1)) {
23549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23550 }
23551 arg1 = reinterpret_cast< wxEffects * >(argp1);
23552 {
23553 PyThreadState* __tstate = wxPyBeginAllowThreads();
23554 result = ((wxEffects const *)arg1)->GetDarkShadow();
23555 wxPyEndAllowThreads(__tstate);
23556 if (PyErr_Occurred()) SWIG_fail;
23557 }
23558 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23559 return resultobj;
23560 fail:
23561 return NULL;
23562 }
23563
23564
23565 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23566 PyObject *resultobj = 0;
23567 wxEffects *arg1 = (wxEffects *) 0 ;
23568 wxColour *arg2 = 0 ;
23569 void *argp1 = 0 ;
23570 int res1 = 0 ;
23571 wxColour temp2 ;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 char * kwnames[] = {
23575 (char *) "self",(char *) "c", NULL
23576 };
23577
23578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23582 }
23583 arg1 = reinterpret_cast< wxEffects * >(argp1);
23584 {
23585 arg2 = &temp2;
23586 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23587 }
23588 {
23589 PyThreadState* __tstate = wxPyBeginAllowThreads();
23590 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 resultobj = SWIG_Py_Void();
23595 return resultobj;
23596 fail:
23597 return NULL;
23598 }
23599
23600
23601 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23602 PyObject *resultobj = 0;
23603 wxEffects *arg1 = (wxEffects *) 0 ;
23604 wxColour *arg2 = 0 ;
23605 void *argp1 = 0 ;
23606 int res1 = 0 ;
23607 wxColour temp2 ;
23608 PyObject * obj0 = 0 ;
23609 PyObject * obj1 = 0 ;
23610 char * kwnames[] = {
23611 (char *) "self",(char *) "c", NULL
23612 };
23613
23614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23616 if (!SWIG_IsOK(res1)) {
23617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23618 }
23619 arg1 = reinterpret_cast< wxEffects * >(argp1);
23620 {
23621 arg2 = &temp2;
23622 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23623 }
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 (arg1)->SetLightShadow((wxColour const &)*arg2);
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 resultobj = SWIG_Py_Void();
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23638 PyObject *resultobj = 0;
23639 wxEffects *arg1 = (wxEffects *) 0 ;
23640 wxColour *arg2 = 0 ;
23641 void *argp1 = 0 ;
23642 int res1 = 0 ;
23643 wxColour temp2 ;
23644 PyObject * obj0 = 0 ;
23645 PyObject * obj1 = 0 ;
23646 char * kwnames[] = {
23647 (char *) "self",(char *) "c", NULL
23648 };
23649
23650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23652 if (!SWIG_IsOK(res1)) {
23653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23654 }
23655 arg1 = reinterpret_cast< wxEffects * >(argp1);
23656 {
23657 arg2 = &temp2;
23658 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23659 }
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 (arg1)->SetFaceColour((wxColour const &)*arg2);
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 resultobj = SWIG_Py_Void();
23667 return resultobj;
23668 fail:
23669 return NULL;
23670 }
23671
23672
23673 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23674 PyObject *resultobj = 0;
23675 wxEffects *arg1 = (wxEffects *) 0 ;
23676 wxColour *arg2 = 0 ;
23677 void *argp1 = 0 ;
23678 int res1 = 0 ;
23679 wxColour temp2 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 char * kwnames[] = {
23683 (char *) "self",(char *) "c", NULL
23684 };
23685
23686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23688 if (!SWIG_IsOK(res1)) {
23689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23690 }
23691 arg1 = reinterpret_cast< wxEffects * >(argp1);
23692 {
23693 arg2 = &temp2;
23694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23695 }
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23699 wxPyEndAllowThreads(__tstate);
23700 if (PyErr_Occurred()) SWIG_fail;
23701 }
23702 resultobj = SWIG_Py_Void();
23703 return resultobj;
23704 fail:
23705 return NULL;
23706 }
23707
23708
23709 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23710 PyObject *resultobj = 0;
23711 wxEffects *arg1 = (wxEffects *) 0 ;
23712 wxColour *arg2 = 0 ;
23713 void *argp1 = 0 ;
23714 int res1 = 0 ;
23715 wxColour temp2 ;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 char * kwnames[] = {
23719 (char *) "self",(char *) "c", NULL
23720 };
23721
23722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23724 if (!SWIG_IsOK(res1)) {
23725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23726 }
23727 arg1 = reinterpret_cast< wxEffects * >(argp1);
23728 {
23729 arg2 = &temp2;
23730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23731 }
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23735 wxPyEndAllowThreads(__tstate);
23736 if (PyErr_Occurred()) SWIG_fail;
23737 }
23738 resultobj = SWIG_Py_Void();
23739 return resultobj;
23740 fail:
23741 return NULL;
23742 }
23743
23744
23745 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23746 PyObject *resultobj = 0;
23747 wxEffects *arg1 = (wxEffects *) 0 ;
23748 wxColour *arg2 = 0 ;
23749 wxColour *arg3 = 0 ;
23750 wxColour *arg4 = 0 ;
23751 wxColour *arg5 = 0 ;
23752 wxColour *arg6 = 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 wxColour temp2 ;
23756 wxColour temp3 ;
23757 wxColour temp4 ;
23758 wxColour temp5 ;
23759 wxColour temp6 ;
23760 PyObject * obj0 = 0 ;
23761 PyObject * obj1 = 0 ;
23762 PyObject * obj2 = 0 ;
23763 PyObject * obj3 = 0 ;
23764 PyObject * obj4 = 0 ;
23765 PyObject * obj5 = 0 ;
23766 char * kwnames[] = {
23767 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23768 };
23769
23770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23772 if (!SWIG_IsOK(res1)) {
23773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23774 }
23775 arg1 = reinterpret_cast< wxEffects * >(argp1);
23776 {
23777 arg2 = &temp2;
23778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23779 }
23780 {
23781 arg3 = &temp3;
23782 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23783 }
23784 {
23785 arg4 = &temp4;
23786 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23787 }
23788 {
23789 arg5 = &temp5;
23790 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23791 }
23792 {
23793 arg6 = &temp6;
23794 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23795 }
23796 {
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_Py_Void();
23803 return resultobj;
23804 fail:
23805 return NULL;
23806 }
23807
23808
23809 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxEffects *arg1 = (wxEffects *) 0 ;
23812 wxDC *arg2 = 0 ;
23813 wxRect *arg3 = 0 ;
23814 int arg4 = (int) 1 ;
23815 void *argp1 = 0 ;
23816 int res1 = 0 ;
23817 void *argp2 = 0 ;
23818 int res2 = 0 ;
23819 wxRect temp3 ;
23820 int val4 ;
23821 int ecode4 = 0 ;
23822 PyObject * obj0 = 0 ;
23823 PyObject * obj1 = 0 ;
23824 PyObject * obj2 = 0 ;
23825 PyObject * obj3 = 0 ;
23826 char * kwnames[] = {
23827 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23828 };
23829
23830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23832 if (!SWIG_IsOK(res1)) {
23833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23834 }
23835 arg1 = reinterpret_cast< wxEffects * >(argp1);
23836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23837 if (!SWIG_IsOK(res2)) {
23838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23839 }
23840 if (!argp2) {
23841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23842 }
23843 arg2 = reinterpret_cast< wxDC * >(argp2);
23844 {
23845 arg3 = &temp3;
23846 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23847 }
23848 if (obj3) {
23849 ecode4 = SWIG_AsVal_int(obj3, &val4);
23850 if (!SWIG_IsOK(ecode4)) {
23851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23852 }
23853 arg4 = static_cast< int >(val4);
23854 }
23855 {
23856 PyThreadState* __tstate = wxPyBeginAllowThreads();
23857 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23858 wxPyEndAllowThreads(__tstate);
23859 if (PyErr_Occurred()) SWIG_fail;
23860 }
23861 resultobj = SWIG_Py_Void();
23862 return resultobj;
23863 fail:
23864 return NULL;
23865 }
23866
23867
23868 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23869 PyObject *resultobj = 0;
23870 wxEffects *arg1 = (wxEffects *) 0 ;
23871 wxRect *arg2 = 0 ;
23872 wxDC *arg3 = 0 ;
23873 wxBitmap *arg4 = 0 ;
23874 bool result;
23875 void *argp1 = 0 ;
23876 int res1 = 0 ;
23877 wxRect temp2 ;
23878 void *argp3 = 0 ;
23879 int res3 = 0 ;
23880 void *argp4 = 0 ;
23881 int res4 = 0 ;
23882 PyObject * obj0 = 0 ;
23883 PyObject * obj1 = 0 ;
23884 PyObject * obj2 = 0 ;
23885 PyObject * obj3 = 0 ;
23886 char * kwnames[] = {
23887 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23888 };
23889
23890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23892 if (!SWIG_IsOK(res1)) {
23893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23894 }
23895 arg1 = reinterpret_cast< wxEffects * >(argp1);
23896 {
23897 arg2 = &temp2;
23898 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23899 }
23900 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23901 if (!SWIG_IsOK(res3)) {
23902 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23903 }
23904 if (!argp3) {
23905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23906 }
23907 arg3 = reinterpret_cast< wxDC * >(argp3);
23908 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23909 if (!SWIG_IsOK(res4)) {
23910 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23911 }
23912 if (!argp4) {
23913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23914 }
23915 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 {
23923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23924 }
23925 return resultobj;
23926 fail:
23927 return NULL;
23928 }
23929
23930
23931 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23932 PyObject *obj;
23933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23934 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23935 return SWIG_Py_Void();
23936 }
23937
23938 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23939 return SWIG_Python_InitShadowInstance(args);
23940 }
23941
23942 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23943 PyObject *resultobj = 0;
23944 int arg1 ;
23945 int arg2 ;
23946 bool arg3 ;
23947 wxSplitterRenderParams *result = 0 ;
23948 int val1 ;
23949 int ecode1 = 0 ;
23950 int val2 ;
23951 int ecode2 = 0 ;
23952 bool val3 ;
23953 int ecode3 = 0 ;
23954 PyObject * obj0 = 0 ;
23955 PyObject * obj1 = 0 ;
23956 PyObject * obj2 = 0 ;
23957 char * kwnames[] = {
23958 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23959 };
23960
23961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23962 ecode1 = SWIG_AsVal_int(obj0, &val1);
23963 if (!SWIG_IsOK(ecode1)) {
23964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23965 }
23966 arg1 = static_cast< int >(val1);
23967 ecode2 = SWIG_AsVal_int(obj1, &val2);
23968 if (!SWIG_IsOK(ecode2)) {
23969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23970 }
23971 arg2 = static_cast< int >(val2);
23972 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23973 if (!SWIG_IsOK(ecode3)) {
23974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23975 }
23976 arg3 = static_cast< bool >(val3);
23977 {
23978 PyThreadState* __tstate = wxPyBeginAllowThreads();
23979 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23980 wxPyEndAllowThreads(__tstate);
23981 if (PyErr_Occurred()) SWIG_fail;
23982 }
23983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23984 return resultobj;
23985 fail:
23986 return NULL;
23987 }
23988
23989
23990 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23991 PyObject *resultobj = 0;
23992 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23993 void *argp1 = 0 ;
23994 int res1 = 0 ;
23995 PyObject *swig_obj[1] ;
23996
23997 if (!args) SWIG_fail;
23998 swig_obj[0] = args;
23999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24000 if (!SWIG_IsOK(res1)) {
24001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24002 }
24003 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24004 {
24005 PyThreadState* __tstate = wxPyBeginAllowThreads();
24006 delete arg1;
24007
24008 wxPyEndAllowThreads(__tstate);
24009 if (PyErr_Occurred()) SWIG_fail;
24010 }
24011 resultobj = SWIG_Py_Void();
24012 return resultobj;
24013 fail:
24014 return NULL;
24015 }
24016
24017
24018 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24019 PyObject *resultobj = 0;
24020 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24021 int result;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 PyObject *swig_obj[1] ;
24025
24026 if (!args) SWIG_fail;
24027 swig_obj[0] = args;
24028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24031 }
24032 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24033 result = (int)(int) ((arg1)->widthSash);
24034 resultobj = SWIG_From_int(static_cast< int >(result));
24035 return resultobj;
24036 fail:
24037 return NULL;
24038 }
24039
24040
24041 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24042 PyObject *resultobj = 0;
24043 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24044 int result;
24045 void *argp1 = 0 ;
24046 int res1 = 0 ;
24047 PyObject *swig_obj[1] ;
24048
24049 if (!args) SWIG_fail;
24050 swig_obj[0] = args;
24051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24052 if (!SWIG_IsOK(res1)) {
24053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24054 }
24055 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24056 result = (int)(int) ((arg1)->border);
24057 resultobj = SWIG_From_int(static_cast< int >(result));
24058 return resultobj;
24059 fail:
24060 return NULL;
24061 }
24062
24063
24064 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 PyObject *resultobj = 0;
24066 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24067 bool result;
24068 void *argp1 = 0 ;
24069 int res1 = 0 ;
24070 PyObject *swig_obj[1] ;
24071
24072 if (!args) SWIG_fail;
24073 swig_obj[0] = args;
24074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24075 if (!SWIG_IsOK(res1)) {
24076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24077 }
24078 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24079 result = (bool)(bool) ((arg1)->isHotSensitive);
24080 resultobj = SWIG_From_bool(static_cast< bool >(result));
24081 return resultobj;
24082 fail:
24083 return NULL;
24084 }
24085
24086
24087 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24088 PyObject *obj;
24089 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24090 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24091 return SWIG_Py_Void();
24092 }
24093
24094 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24095 return SWIG_Python_InitShadowInstance(args);
24096 }
24097
24098 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24099 PyObject *resultobj = 0;
24100 int arg1 ;
24101 int arg2 ;
24102 wxRendererVersion *result = 0 ;
24103 int val1 ;
24104 int ecode1 = 0 ;
24105 int val2 ;
24106 int ecode2 = 0 ;
24107 PyObject * obj0 = 0 ;
24108 PyObject * obj1 = 0 ;
24109 char * kwnames[] = {
24110 (char *) "version_",(char *) "age_", NULL
24111 };
24112
24113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24114 ecode1 = SWIG_AsVal_int(obj0, &val1);
24115 if (!SWIG_IsOK(ecode1)) {
24116 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24117 }
24118 arg1 = static_cast< int >(val1);
24119 ecode2 = SWIG_AsVal_int(obj1, &val2);
24120 if (!SWIG_IsOK(ecode2)) {
24121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24122 }
24123 arg2 = static_cast< int >(val2);
24124 {
24125 PyThreadState* __tstate = wxPyBeginAllowThreads();
24126 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24127 wxPyEndAllowThreads(__tstate);
24128 if (PyErr_Occurred()) SWIG_fail;
24129 }
24130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24131 return resultobj;
24132 fail:
24133 return NULL;
24134 }
24135
24136
24137 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *resultobj = 0;
24139 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24140 void *argp1 = 0 ;
24141 int res1 = 0 ;
24142 PyObject *swig_obj[1] ;
24143
24144 if (!args) SWIG_fail;
24145 swig_obj[0] = args;
24146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24147 if (!SWIG_IsOK(res1)) {
24148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24149 }
24150 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24151 {
24152 PyThreadState* __tstate = wxPyBeginAllowThreads();
24153 delete arg1;
24154
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 resultobj = SWIG_Py_Void();
24159 return resultobj;
24160 fail:
24161 return NULL;
24162 }
24163
24164
24165 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24166 PyObject *resultobj = 0;
24167 wxRendererVersion *arg1 = 0 ;
24168 bool result;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 PyObject * obj0 = 0 ;
24172 char * kwnames[] = {
24173 (char *) "ver", NULL
24174 };
24175
24176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24177 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24180 }
24181 if (!argp1) {
24182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24183 }
24184 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24185 {
24186 PyThreadState* __tstate = wxPyBeginAllowThreads();
24187 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24188 wxPyEndAllowThreads(__tstate);
24189 if (PyErr_Occurred()) SWIG_fail;
24190 }
24191 {
24192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24193 }
24194 return resultobj;
24195 fail:
24196 return NULL;
24197 }
24198
24199
24200 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24201 PyObject *resultobj = 0;
24202 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24203 int result;
24204 void *argp1 = 0 ;
24205 int res1 = 0 ;
24206 PyObject *swig_obj[1] ;
24207
24208 if (!args) SWIG_fail;
24209 swig_obj[0] = args;
24210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24211 if (!SWIG_IsOK(res1)) {
24212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24213 }
24214 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24215 result = (int)(int) ((arg1)->version);
24216 resultobj = SWIG_From_int(static_cast< int >(result));
24217 return resultobj;
24218 fail:
24219 return NULL;
24220 }
24221
24222
24223 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24224 PyObject *resultobj = 0;
24225 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24226 int result;
24227 void *argp1 = 0 ;
24228 int res1 = 0 ;
24229 PyObject *swig_obj[1] ;
24230
24231 if (!args) SWIG_fail;
24232 swig_obj[0] = args;
24233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24236 }
24237 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24238 result = (int)(int) ((arg1)->age);
24239 resultobj = SWIG_From_int(static_cast< int >(result));
24240 return resultobj;
24241 fail:
24242 return NULL;
24243 }
24244
24245
24246 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24247 PyObject *obj;
24248 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24249 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24250 return SWIG_Py_Void();
24251 }
24252
24253 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24254 return SWIG_Python_InitShadowInstance(args);
24255 }
24256
24257 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24258 PyObject *resultobj = 0;
24259 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24260 wxWindow *arg2 = (wxWindow *) 0 ;
24261 wxDC *arg3 = 0 ;
24262 wxRect *arg4 = 0 ;
24263 int arg5 = (int) 0 ;
24264 void *argp1 = 0 ;
24265 int res1 = 0 ;
24266 void *argp2 = 0 ;
24267 int res2 = 0 ;
24268 void *argp3 = 0 ;
24269 int res3 = 0 ;
24270 wxRect temp4 ;
24271 int val5 ;
24272 int ecode5 = 0 ;
24273 PyObject * obj0 = 0 ;
24274 PyObject * obj1 = 0 ;
24275 PyObject * obj2 = 0 ;
24276 PyObject * obj3 = 0 ;
24277 PyObject * obj4 = 0 ;
24278 char * kwnames[] = {
24279 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24280 };
24281
24282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24284 if (!SWIG_IsOK(res1)) {
24285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24286 }
24287 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24288 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24289 if (!SWIG_IsOK(res2)) {
24290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24291 }
24292 arg2 = reinterpret_cast< wxWindow * >(argp2);
24293 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24294 if (!SWIG_IsOK(res3)) {
24295 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24296 }
24297 if (!argp3) {
24298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24299 }
24300 arg3 = reinterpret_cast< wxDC * >(argp3);
24301 {
24302 arg4 = &temp4;
24303 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24304 }
24305 if (obj4) {
24306 ecode5 = SWIG_AsVal_int(obj4, &val5);
24307 if (!SWIG_IsOK(ecode5)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24309 }
24310 arg5 = static_cast< int >(val5);
24311 }
24312 {
24313 PyThreadState* __tstate = wxPyBeginAllowThreads();
24314 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24315 wxPyEndAllowThreads(__tstate);
24316 if (PyErr_Occurred()) SWIG_fail;
24317 }
24318 resultobj = SWIG_Py_Void();
24319 return resultobj;
24320 fail:
24321 return NULL;
24322 }
24323
24324
24325 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24326 PyObject *resultobj = 0;
24327 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24328 wxWindow *arg2 = (wxWindow *) 0 ;
24329 wxDC *arg3 = 0 ;
24330 wxRect *arg4 = 0 ;
24331 int arg5 = (int) 0 ;
24332 void *argp1 = 0 ;
24333 int res1 = 0 ;
24334 void *argp2 = 0 ;
24335 int res2 = 0 ;
24336 void *argp3 = 0 ;
24337 int res3 = 0 ;
24338 wxRect temp4 ;
24339 int val5 ;
24340 int ecode5 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 PyObject * obj2 = 0 ;
24344 PyObject * obj3 = 0 ;
24345 PyObject * obj4 = 0 ;
24346 char * kwnames[] = {
24347 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24348 };
24349
24350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24354 }
24355 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24356 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24357 if (!SWIG_IsOK(res2)) {
24358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24359 }
24360 arg2 = reinterpret_cast< wxWindow * >(argp2);
24361 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24362 if (!SWIG_IsOK(res3)) {
24363 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24364 }
24365 if (!argp3) {
24366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24367 }
24368 arg3 = reinterpret_cast< wxDC * >(argp3);
24369 {
24370 arg4 = &temp4;
24371 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24372 }
24373 if (obj4) {
24374 ecode5 = SWIG_AsVal_int(obj4, &val5);
24375 if (!SWIG_IsOK(ecode5)) {
24376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24377 }
24378 arg5 = static_cast< int >(val5);
24379 }
24380 {
24381 PyThreadState* __tstate = wxPyBeginAllowThreads();
24382 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24383 wxPyEndAllowThreads(__tstate);
24384 if (PyErr_Occurred()) SWIG_fail;
24385 }
24386 resultobj = SWIG_Py_Void();
24387 return resultobj;
24388 fail:
24389 return NULL;
24390 }
24391
24392
24393 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24394 PyObject *resultobj = 0;
24395 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24396 wxWindow *arg2 = (wxWindow *) 0 ;
24397 wxDC *arg3 = 0 ;
24398 wxRect *arg4 = 0 ;
24399 int arg5 = (int) 0 ;
24400 void *argp1 = 0 ;
24401 int res1 = 0 ;
24402 void *argp2 = 0 ;
24403 int res2 = 0 ;
24404 void *argp3 = 0 ;
24405 int res3 = 0 ;
24406 wxRect temp4 ;
24407 int val5 ;
24408 int ecode5 = 0 ;
24409 PyObject * obj0 = 0 ;
24410 PyObject * obj1 = 0 ;
24411 PyObject * obj2 = 0 ;
24412 PyObject * obj3 = 0 ;
24413 PyObject * obj4 = 0 ;
24414 char * kwnames[] = {
24415 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24416 };
24417
24418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24420 if (!SWIG_IsOK(res1)) {
24421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24422 }
24423 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24425 if (!SWIG_IsOK(res2)) {
24426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24427 }
24428 arg2 = reinterpret_cast< wxWindow * >(argp2);
24429 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24430 if (!SWIG_IsOK(res3)) {
24431 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24432 }
24433 if (!argp3) {
24434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24435 }
24436 arg3 = reinterpret_cast< wxDC * >(argp3);
24437 {
24438 arg4 = &temp4;
24439 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24440 }
24441 if (obj4) {
24442 ecode5 = SWIG_AsVal_int(obj4, &val5);
24443 if (!SWIG_IsOK(ecode5)) {
24444 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24445 }
24446 arg5 = static_cast< int >(val5);
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24451 wxPyEndAllowThreads(__tstate);
24452 if (PyErr_Occurred()) SWIG_fail;
24453 }
24454 resultobj = SWIG_Py_Void();
24455 return resultobj;
24456 fail:
24457 return NULL;
24458 }
24459
24460
24461 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24462 PyObject *resultobj = 0;
24463 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24464 wxWindow *arg2 = (wxWindow *) 0 ;
24465 wxDC *arg3 = 0 ;
24466 wxSize *arg4 = 0 ;
24467 int arg5 ;
24468 wxOrientation arg6 ;
24469 int arg7 = (int) 0 ;
24470 void *argp1 = 0 ;
24471 int res1 = 0 ;
24472 void *argp2 = 0 ;
24473 int res2 = 0 ;
24474 void *argp3 = 0 ;
24475 int res3 = 0 ;
24476 wxSize temp4 ;
24477 int val5 ;
24478 int ecode5 = 0 ;
24479 int val6 ;
24480 int ecode6 = 0 ;
24481 int val7 ;
24482 int ecode7 = 0 ;
24483 PyObject * obj0 = 0 ;
24484 PyObject * obj1 = 0 ;
24485 PyObject * obj2 = 0 ;
24486 PyObject * obj3 = 0 ;
24487 PyObject * obj4 = 0 ;
24488 PyObject * obj5 = 0 ;
24489 PyObject * obj6 = 0 ;
24490 char * kwnames[] = {
24491 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24492 };
24493
24494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24498 }
24499 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24501 if (!SWIG_IsOK(res2)) {
24502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24503 }
24504 arg2 = reinterpret_cast< wxWindow * >(argp2);
24505 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24506 if (!SWIG_IsOK(res3)) {
24507 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24508 }
24509 if (!argp3) {
24510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24511 }
24512 arg3 = reinterpret_cast< wxDC * >(argp3);
24513 {
24514 arg4 = &temp4;
24515 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24516 }
24517 ecode5 = SWIG_AsVal_int(obj4, &val5);
24518 if (!SWIG_IsOK(ecode5)) {
24519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24520 }
24521 arg5 = static_cast< int >(val5);
24522 ecode6 = SWIG_AsVal_int(obj5, &val6);
24523 if (!SWIG_IsOK(ecode6)) {
24524 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24525 }
24526 arg6 = static_cast< wxOrientation >(val6);
24527 if (obj6) {
24528 ecode7 = SWIG_AsVal_int(obj6, &val7);
24529 if (!SWIG_IsOK(ecode7)) {
24530 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24531 }
24532 arg7 = static_cast< int >(val7);
24533 }
24534 {
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24537 wxPyEndAllowThreads(__tstate);
24538 if (PyErr_Occurred()) SWIG_fail;
24539 }
24540 resultobj = SWIG_Py_Void();
24541 return resultobj;
24542 fail:
24543 return NULL;
24544 }
24545
24546
24547 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24548 PyObject *resultobj = 0;
24549 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24550 wxWindow *arg2 = (wxWindow *) 0 ;
24551 wxDC *arg3 = 0 ;
24552 wxRect *arg4 = 0 ;
24553 int arg5 = (int) 0 ;
24554 void *argp1 = 0 ;
24555 int res1 = 0 ;
24556 void *argp2 = 0 ;
24557 int res2 = 0 ;
24558 void *argp3 = 0 ;
24559 int res3 = 0 ;
24560 wxRect temp4 ;
24561 int val5 ;
24562 int ecode5 = 0 ;
24563 PyObject * obj0 = 0 ;
24564 PyObject * obj1 = 0 ;
24565 PyObject * obj2 = 0 ;
24566 PyObject * obj3 = 0 ;
24567 PyObject * obj4 = 0 ;
24568 char * kwnames[] = {
24569 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24570 };
24571
24572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24574 if (!SWIG_IsOK(res1)) {
24575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24576 }
24577 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24578 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24579 if (!SWIG_IsOK(res2)) {
24580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24581 }
24582 arg2 = reinterpret_cast< wxWindow * >(argp2);
24583 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24584 if (!SWIG_IsOK(res3)) {
24585 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24586 }
24587 if (!argp3) {
24588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24589 }
24590 arg3 = reinterpret_cast< wxDC * >(argp3);
24591 {
24592 arg4 = &temp4;
24593 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24594 }
24595 if (obj4) {
24596 ecode5 = SWIG_AsVal_int(obj4, &val5);
24597 if (!SWIG_IsOK(ecode5)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24599 }
24600 arg5 = static_cast< int >(val5);
24601 }
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_Py_Void();
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj = 0;
24617 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24618 wxWindow *arg2 = (wxWindow *) 0 ;
24619 wxDC *arg3 = 0 ;
24620 wxRect *arg4 = 0 ;
24621 int arg5 = (int) 0 ;
24622 void *argp1 = 0 ;
24623 int res1 = 0 ;
24624 void *argp2 = 0 ;
24625 int res2 = 0 ;
24626 void *argp3 = 0 ;
24627 int res3 = 0 ;
24628 wxRect temp4 ;
24629 int val5 ;
24630 int ecode5 = 0 ;
24631 PyObject * obj0 = 0 ;
24632 PyObject * obj1 = 0 ;
24633 PyObject * obj2 = 0 ;
24634 PyObject * obj3 = 0 ;
24635 PyObject * obj4 = 0 ;
24636 char * kwnames[] = {
24637 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24638 };
24639
24640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24642 if (!SWIG_IsOK(res1)) {
24643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24644 }
24645 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24647 if (!SWIG_IsOK(res2)) {
24648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24649 }
24650 arg2 = reinterpret_cast< wxWindow * >(argp2);
24651 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24652 if (!SWIG_IsOK(res3)) {
24653 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24654 }
24655 if (!argp3) {
24656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24657 }
24658 arg3 = reinterpret_cast< wxDC * >(argp3);
24659 {
24660 arg4 = &temp4;
24661 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24662 }
24663 if (obj4) {
24664 ecode5 = SWIG_AsVal_int(obj4, &val5);
24665 if (!SWIG_IsOK(ecode5)) {
24666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24667 }
24668 arg5 = static_cast< int >(val5);
24669 }
24670 {
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
24672 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24673 wxPyEndAllowThreads(__tstate);
24674 if (PyErr_Occurred()) SWIG_fail;
24675 }
24676 resultobj = SWIG_Py_Void();
24677 return resultobj;
24678 fail:
24679 return NULL;
24680 }
24681
24682
24683 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24684 PyObject *resultobj = 0;
24685 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24686 wxWindow *arg2 = (wxWindow *) 0 ;
24687 SwigValueWrapper<wxSplitterRenderParams > result;
24688 void *argp1 = 0 ;
24689 int res1 = 0 ;
24690 void *argp2 = 0 ;
24691 int res2 = 0 ;
24692 PyObject * obj0 = 0 ;
24693 PyObject * obj1 = 0 ;
24694 char * kwnames[] = {
24695 (char *) "self",(char *) "win", NULL
24696 };
24697
24698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24700 if (!SWIG_IsOK(res1)) {
24701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24702 }
24703 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24705 if (!SWIG_IsOK(res2)) {
24706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24707 }
24708 arg2 = reinterpret_cast< wxWindow * >(argp2);
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24716 return resultobj;
24717 fail:
24718 return NULL;
24719 }
24720
24721
24722 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24723 PyObject *resultobj = 0;
24724 wxRendererNative *result = 0 ;
24725
24726 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 {
24730 wxRendererNative &_result_ref = wxRendererNative::Get();
24731 result = (wxRendererNative *) &_result_ref;
24732 }
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24737 return resultobj;
24738 fail:
24739 return NULL;
24740 }
24741
24742
24743 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24744 PyObject *resultobj = 0;
24745 wxRendererNative *result = 0 ;
24746
24747 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 {
24751 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24752 result = (wxRendererNative *) &_result_ref;
24753 }
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24758 return resultobj;
24759 fail:
24760 return NULL;
24761 }
24762
24763
24764 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24765 PyObject *resultobj = 0;
24766 wxRendererNative *result = 0 ;
24767
24768 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 {
24772 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24773 result = (wxRendererNative *) &_result_ref;
24774 }
24775 wxPyEndAllowThreads(__tstate);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 }
24778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24779 return resultobj;
24780 fail:
24781 return NULL;
24782 }
24783
24784
24785 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24786 PyObject *resultobj = 0;
24787 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24788 wxRendererNative *result = 0 ;
24789 void *argp1 = 0 ;
24790 int res1 = 0 ;
24791 PyObject * obj0 = 0 ;
24792 char * kwnames[] = {
24793 (char *) "renderer", NULL
24794 };
24795
24796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24798 if (!SWIG_IsOK(res1)) {
24799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24800 }
24801 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24802 {
24803 PyThreadState* __tstate = wxPyBeginAllowThreads();
24804 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24816 PyObject *resultobj = 0;
24817 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24818 SwigValueWrapper<wxRendererVersion > result;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 PyObject *swig_obj[1] ;
24822
24823 if (!args) SWIG_fail;
24824 swig_obj[0] = args;
24825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24826 if (!SWIG_IsOK(res1)) {
24827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24828 }
24829 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
24832 result = ((wxRendererNative const *)arg1)->GetVersion();
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24844 PyObject *obj;
24845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24846 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24847 return SWIG_Py_Void();
24848 }
24849
24850 static PyMethodDef SwigMethods[] = {
24851 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24852 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
24853 { (char *)"GDIObject_GetVisible", (PyCFunction)_wrap_GDIObject_GetVisible, METH_O, NULL},
24854 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL},
24855 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24856 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24857 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24858 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24859 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24860 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24861 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24862 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24863 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24864 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24865 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24866 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24867 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24868 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24869 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24870 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24871 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24872 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24873 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24874 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24875 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24876 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24877 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24878 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24879 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24880 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24881 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24882 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24883 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24884 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24885 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24886 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24887 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24888 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24889 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24890 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24891 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24892 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24893 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24894 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24895 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24896 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24897 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24898 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24899 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24900 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
24901 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24902 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24903 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24904 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24905 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24906 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24907 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24908 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24909 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24910 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24911 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24912 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24913 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24914 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24915 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24916 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24917 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24918 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24919 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24920 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24921 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24922 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24923 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24924 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24925 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24926 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24927 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24928 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24929 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24930 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24931 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24932 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24933 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24934 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24935 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24936 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24937 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24938 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24939 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24940 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24941 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24942 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24943 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24944 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24945 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24946 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24947 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24948 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24949 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24950 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24951 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24952 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24953 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24954 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24955 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24956 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24957 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24958 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24959 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24960 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24961 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24962 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24963 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24964 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24965 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24966 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24967 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24968 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24969 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24970 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24971 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24972 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24973 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24974 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24975 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24976 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24977 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24978 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24979 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24980 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
24981 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24982 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24983 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24984 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
24985 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
24986 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
24987 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
24988 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
24989 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24990 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
24991 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
24992 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
24993 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
24994 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24995 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
24996 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
24997 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
24998 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
24999 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25001 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25002 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25004 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25005 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25006 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25007 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25008 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25009 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25010 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25011 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25012 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25013 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25014 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25015 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25016 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25017 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25018 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25019 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25020 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25021 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25022 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25023 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25024 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25025 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25026 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25027 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25028 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25029 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25030 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25031 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25032 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25033 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25034 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25035 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25036 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25037 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25038 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25039 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25040 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25041 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25042 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25043 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25044 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25045 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25046 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25047 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25048 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25049 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25050 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25051 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25052 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25053 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25054 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25055 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25056 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25057 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25058 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25059 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25060 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25061 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25062 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25063 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25064 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25065 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25066 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25067 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25068 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25069 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25071 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25072 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25073 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25074 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25075 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25076 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25077 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25078 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25079 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25080 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25081 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25082 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25083 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25084 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25085 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25086 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25087 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25088 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25089 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25091 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25092 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25093 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25094 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25095 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25097 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25099 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25100 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25101 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25102 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25103 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25104 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25105 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25106 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25107 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25108 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25109 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25110 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25111 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25112 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25113 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25114 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25115 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25116 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25117 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25120 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25121 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25122 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25123 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25124 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25125 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25126 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25127 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25128 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25129 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25130 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25131 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25132 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25133 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25134 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25135 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25136 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25137 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25138 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25139 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
25141 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
25142 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
25143 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25144 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25145 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25146 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25147 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25148 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25149 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25150 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25151 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25152 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25154 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25156 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25157 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25158 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25159 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25160 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25161 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25162 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25163 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25164 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25165 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25166 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25167 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25168 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25169 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25171 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25172 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25173 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25174 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25175 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25176 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25177 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25178 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25179 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25180 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25181 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25182 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25184 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25185 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25186 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25187 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25190 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25194 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25195 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25197 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25198 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25199 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25200 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25202 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25206 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25207 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25208 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25227 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25232 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25234 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25235 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25236 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25238 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25239 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25240 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25243 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25244 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25245 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25246 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25247 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25248 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25249 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25250 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25251 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25252 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25253 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25254 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25255 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25256 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25257 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25258 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25259 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25260 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25261 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25262 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25263 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25264 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25265 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25266 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25267 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25268 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25269 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25270 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25271 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25272 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25273 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25274 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25275 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25276 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25277 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25278 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25279 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25280 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25282 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25284 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25285 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25286 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25287 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25288 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25289 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25290 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25291 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25292 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25293 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25294 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25295 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25296 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25297 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25298 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25299 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25300 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25301 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25302 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25303 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25304 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25305 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25306 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25307 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25309 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25310 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25311 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25313 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25314 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25315 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25316 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25318 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25319 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25320 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25321 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25322 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25323 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25324 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25325 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25326 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25327 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25328 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25329 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25331 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25332 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25333 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25334 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25335 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25336 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25337 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25338 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25339 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25340 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25341 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25342 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25343 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25344 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25345 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25346 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25347 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25348 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25349 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25350 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25351 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25352 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25353 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25354 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25355 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25356 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25357 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25358 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25359 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25360 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25361 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25362 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25363 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25364 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25365 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25366 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25367 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25368 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25369 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25371 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25372 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25373 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25374 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25375 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25376 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25377 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25378 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25379 { (char *)"PenList_GetCount", (PyCFunction)_wrap_PenList_GetCount, METH_O, NULL},
25380 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25381 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25382 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25383 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25384 { (char *)"BrushList_GetCount", (PyCFunction)_wrap_BrushList_GetCount, METH_O, NULL},
25385 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25386 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25387 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25388 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25390 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25391 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25392 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25393 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25394 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25396 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25397 { (char *)"FontList_GetCount", (PyCFunction)_wrap_FontList_GetCount, METH_O, NULL},
25398 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25399 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25400 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25401 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25402 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25403 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25404 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25405 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25406 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25407 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25408 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25409 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25410 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25411 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25412 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25413 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25414 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25415 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25416 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25417 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25418 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25419 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25420 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25421 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25422 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25424 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25425 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25426 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25427 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25428 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25429 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25431 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25432 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25433 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25434 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25435 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25436 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25437 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25438 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25439 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25440 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25441 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25442 { NULL, NULL, 0, NULL }
25443 };
25444
25445
25446 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25447
25448 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25449 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25450 }
25451 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25452 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25453 }
25454 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25455 return (void *)((wxGDIObject *) ((wxIcon *) x));
25456 }
25457 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25458 return (void *)((wxGDIObject *) ((wxPalette *) x));
25459 }
25460 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25461 return (void *)((wxGDIObject *) ((wxPen *) x));
25462 }
25463 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25464 return (void *)((wxGDIObject *) ((wxFont *) x));
25465 }
25466 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25467 return (void *)((wxGDIObject *) ((wxCursor *) x));
25468 }
25469 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25470 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25471 }
25472 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25473 return (void *)((wxGDIObject *) ((wxRegion *) x));
25474 }
25475 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25476 return (void *)((wxGDIObject *) ((wxBrush *) x));
25477 }
25478 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25479 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25480 }
25481 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25482 return (void *)((wxDC *) ((wxScreenDC *) x));
25483 }
25484 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25485 return (void *)((wxDC *) ((wxMirrorDC *) x));
25486 }
25487 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25488 return (void *)((wxDC *) ((wxMemoryDC *) x));
25489 }
25490 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25491 return (void *)((wxDC *) ((wxWindowDC *) x));
25492 }
25493 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25494 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25495 }
25496 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25497 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25498 }
25499 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25500 return (void *)((wxDC *) ((wxClientDC *) x));
25501 }
25502 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25503 return (void *)((wxDC *) ((wxPaintDC *) x));
25504 }
25505 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25506 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25507 }
25508 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25509 return (void *)((wxDC *) ((wxPrinterDC *) x));
25510 }
25511 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25512 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25513 }
25514 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25515 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25516 }
25517 static void *_p_wxPenTo_p_wxObject(void *x) {
25518 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25519 }
25520 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25521 return (void *)((wxObject *) ((wxRegionIterator *) x));
25522 }
25523 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25524 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25525 }
25526 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25527 return (void *)((wxObject *) ((wxSizerItem *) x));
25528 }
25529 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
25530 return (void *)((wxObject *) ((wxColourDatabase *) x));
25531 }
25532 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25533 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25534 }
25535 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25536 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25537 }
25538 static void *_p_wxIconTo_p_wxObject(void *x) {
25539 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25540 }
25541 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25542 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25543 }
25544 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25545 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25546 }
25547 static void *_p_wxSizerTo_p_wxObject(void *x) {
25548 return (void *)((wxObject *) ((wxSizer *) x));
25549 }
25550 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25551 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25552 }
25553 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25555 }
25556 static void *_p_wxPenListTo_p_wxObject(void *x) {
25557 return (void *)((wxObject *) ((wxPenList *) x));
25558 }
25559 static void *_p_wxEventTo_p_wxObject(void *x) {
25560 return (void *)((wxObject *) ((wxEvent *) x));
25561 }
25562 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25563 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25564 }
25565 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25566 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25567 }
25568 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25569 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25570 }
25571 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25572 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25573 }
25574 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25575 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25576 }
25577 static void *_p_wxDCTo_p_wxObject(void *x) {
25578 return (void *)((wxObject *) ((wxDC *) x));
25579 }
25580 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25581 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25582 }
25583 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25584 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25585 }
25586 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25587 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25588 }
25589 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25590 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25591 }
25592 static void *_p_wxControlTo_p_wxObject(void *x) {
25593 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25594 }
25595 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25596 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25597 }
25598 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25599 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25600 }
25601 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25602 return (void *)((wxObject *) ((wxFSFile *) x));
25603 }
25604 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25605 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25606 }
25607 static void *_p_wxRegionTo_p_wxObject(void *x) {
25608 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25609 }
25610 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25611 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25612 }
25613 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25614 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25615 }
25616 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25617 return (void *)((wxObject *) ((wxGDIObject *) x));
25618 }
25619 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25620 return (void *)((wxObject *) ((wxEffects *) x));
25621 }
25622 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25623 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25624 }
25625 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25626 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25627 }
25628 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25629 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25630 }
25631 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25632 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25633 }
25634 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25635 return (void *)((wxObject *) ((wxMenuItem *) x));
25636 }
25637 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25638 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25639 }
25640 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25641 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25642 }
25643 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25644 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25645 }
25646 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25647 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25648 }
25649 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25650 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25651 }
25652 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25653 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25654 }
25655 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25656 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25657 }
25658 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25659 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25660 }
25661 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25662 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25663 }
25664 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25665 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25666 }
25667 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25668 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25669 }
25670 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25671 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25672 }
25673 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25674 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25675 }
25676 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25677 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25678 }
25679 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25680 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25681 }
25682 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25683 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25684 }
25685 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25686 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25687 }
25688 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25689 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25690 }
25691 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25692 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25693 }
25694 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25695 return (void *)((wxObject *) ((wxImageHandler *) x));
25696 }
25697 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25698 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25699 }
25700 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25701 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25702 }
25703 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25704 return (void *)((wxObject *) ((wxEvtHandler *) x));
25705 }
25706 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25707 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25708 }
25709 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25710 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25711 }
25712 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25713 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25714 }
25715 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25716 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25717 }
25718 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25719 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25720 }
25721 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25722 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25723 }
25724 static void *_p_wxImageTo_p_wxObject(void *x) {
25725 return (void *)((wxObject *) ((wxImage *) x));
25726 }
25727 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25728 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25729 }
25730 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25731 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25732 }
25733 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25734 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25735 }
25736 static void *_p_wxImageListTo_p_wxObject(void *x) {
25737 return (void *)((wxObject *) ((wxImageList *) x));
25738 }
25739 static void *_p_wxCursorTo_p_wxObject(void *x) {
25740 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25741 }
25742 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25743 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25744 }
25745 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25746 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25747 }
25748 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25749 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25750 }
25751 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25752 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25753 }
25754 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25755 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25756 }
25757 static void *_p_wxWindowTo_p_wxObject(void *x) {
25758 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25759 }
25760 static void *_p_wxMenuTo_p_wxObject(void *x) {
25761 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25762 }
25763 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25764 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25765 }
25766 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25767 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25768 }
25769 static void *_p_wxBrushListTo_p_wxObject(void *x) {
25770 return (void *)((wxObject *) ((wxBrushList *) x));
25771 }
25772 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25773 return (void *)((wxObject *) ((wxFileSystem *) x));
25774 }
25775 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25776 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25777 }
25778 static void *_p_wxMaskTo_p_wxObject(void *x) {
25779 return (void *)((wxObject *) ((wxMask *) x));
25780 }
25781 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25782 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25783 }
25784 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25785 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25786 }
25787 static void *_p_wxPyAppTo_p_wxObject(void *x) {
25788 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25789 }
25790 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25791 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25792 }
25793 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25794 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25795 }
25796 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25797 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25798 }
25799 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25800 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25801 }
25802 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25803 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25804 }
25805 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25806 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25807 }
25808 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25809 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25810 }
25811 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25812 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25813 }
25814 static void *_p_wxFontTo_p_wxObject(void *x) {
25815 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25816 }
25817 static void *_p_wxBrushTo_p_wxObject(void *x) {
25818 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25819 }
25820 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25821 return (void *)((wxObject *) ((wxMetaFile *) x));
25822 }
25823 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25824 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25825 }
25826 static void *_p_wxColourTo_p_wxObject(void *x) {
25827 return (void *)((wxObject *) ((wxColour *) x));
25828 }
25829 static void *_p_wxFontListTo_p_wxObject(void *x) {
25830 return (void *)((wxObject *) ((wxFontList *) x));
25831 }
25832 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25833 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25834 }
25835 static void *_p_wxValidatorTo_p_wxObject(void *x) {
25836 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25837 }
25838 static void *_p_wxControlTo_p_wxWindow(void *x) {
25839 return (void *)((wxWindow *) ((wxControl *) x));
25840 }
25841 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25842 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25843 }
25844 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25845 return (void *)((wxWindow *) ((wxMenuBar *) x));
25846 }
25847 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25848 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25849 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};
25850 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25851 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25852 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25853 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25854 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25855 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25856 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25857 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25858 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25859 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25860 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25861 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25862 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25863 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25864 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25865 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25866 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25867 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25868 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25869 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25870 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
25871 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25872 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25873 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25874 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25875 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25876 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25877 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25878 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25879 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25880 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25881 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25882 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25883 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25884 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25885 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25886 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25887 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25888 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25889 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25890 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25891 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25892 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25893 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25894 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25895 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25896 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25897 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25898 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25899 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25900 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25901 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
25902 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25903 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25904 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25905 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25906 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25907 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25908 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25909 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25910 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25911 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25912 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25913 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25914 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25915 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25916 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25917 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25918 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25919 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25920 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25921 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25922 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25923 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25924 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
25925 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25926 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25927 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25928 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25929 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25930 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25931 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25932 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25933 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
25934 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
25935 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
25936 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25937 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25938 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25939 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25940 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25941 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25942 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25943 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25944 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25945 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25946 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25947 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25948 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25949 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25950 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25951 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25952 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25953 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25954 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25955 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25956 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25957 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
25958 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
25959 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
25960 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
25961 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
25962 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
25963 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
25964 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
25965 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
25966 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
25967 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
25968 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
25969 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
25970 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
25971 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
25972 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
25973 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
25974 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
25975 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
25976 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
25977 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
25978 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
25979 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
25980 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
25981 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
25982
25983 static swig_type_info *swig_type_initial[] = {
25984 &_swigt__p_char,
25985 &_swigt__p_double,
25986 &_swigt__p_form_ops_t,
25987 &_swigt__p_int,
25988 &_swigt__p_unsigned_char,
25989 &_swigt__p_unsigned_int,
25990 &_swigt__p_unsigned_long,
25991 &_swigt__p_wxANIHandler,
25992 &_swigt__p_wxAcceleratorTable,
25993 &_swigt__p_wxActivateEvent,
25994 &_swigt__p_wxBMPHandler,
25995 &_swigt__p_wxBitmap,
25996 &_swigt__p_wxBoxSizer,
25997 &_swigt__p_wxBrush,
25998 &_swigt__p_wxBrushList,
25999 &_swigt__p_wxBufferedDC,
26000 &_swigt__p_wxBufferedPaintDC,
26001 &_swigt__p_wxCURHandler,
26002 &_swigt__p_wxChildFocusEvent,
26003 &_swigt__p_wxClientDC,
26004 &_swigt__p_wxCloseEvent,
26005 &_swigt__p_wxColour,
26006 &_swigt__p_wxColourDatabase,
26007 &_swigt__p_wxCommandEvent,
26008 &_swigt__p_wxContextMenuEvent,
26009 &_swigt__p_wxControl,
26010 &_swigt__p_wxControlWithItems,
26011 &_swigt__p_wxCursor,
26012 &_swigt__p_wxDC,
26013 &_swigt__p_wxDash,
26014 &_swigt__p_wxDateEvent,
26015 &_swigt__p_wxDisplayChangedEvent,
26016 &_swigt__p_wxDropFilesEvent,
26017 &_swigt__p_wxDuplexMode,
26018 &_swigt__p_wxEffects,
26019 &_swigt__p_wxEncodingConverter,
26020 &_swigt__p_wxEraseEvent,
26021 &_swigt__p_wxEvent,
26022 &_swigt__p_wxEvtHandler,
26023 &_swigt__p_wxFSFile,
26024 &_swigt__p_wxFileSystem,
26025 &_swigt__p_wxFlexGridSizer,
26026 &_swigt__p_wxFocusEvent,
26027 &_swigt__p_wxFont,
26028 &_swigt__p_wxFontList,
26029 &_swigt__p_wxFontMapper,
26030 &_swigt__p_wxGBSizerItem,
26031 &_swigt__p_wxGDIObject,
26032 &_swigt__p_wxGIFHandler,
26033 &_swigt__p_wxGridBagSizer,
26034 &_swigt__p_wxGridSizer,
26035 &_swigt__p_wxICOHandler,
26036 &_swigt__p_wxIcon,
26037 &_swigt__p_wxIconBundle,
26038 &_swigt__p_wxIconLocation,
26039 &_swigt__p_wxIconizeEvent,
26040 &_swigt__p_wxIdleEvent,
26041 &_swigt__p_wxImage,
26042 &_swigt__p_wxImageHandler,
26043 &_swigt__p_wxImageList,
26044 &_swigt__p_wxIndividualLayoutConstraint,
26045 &_swigt__p_wxInitDialogEvent,
26046 &_swigt__p_wxJPEGHandler,
26047 &_swigt__p_wxKeyEvent,
26048 &_swigt__p_wxLanguageInfo,
26049 &_swigt__p_wxLayoutConstraints,
26050 &_swigt__p_wxLocale,
26051 &_swigt__p_wxMask,
26052 &_swigt__p_wxMaximizeEvent,
26053 &_swigt__p_wxMemoryDC,
26054 &_swigt__p_wxMenu,
26055 &_swigt__p_wxMenuBar,
26056 &_swigt__p_wxMenuEvent,
26057 &_swigt__p_wxMenuItem,
26058 &_swigt__p_wxMetaFile,
26059 &_swigt__p_wxMetaFileDC,
26060 &_swigt__p_wxMirrorDC,
26061 &_swigt__p_wxMouseCaptureChangedEvent,
26062 &_swigt__p_wxMouseEvent,
26063 &_swigt__p_wxMoveEvent,
26064 &_swigt__p_wxNativeEncodingInfo,
26065 &_swigt__p_wxNativeFontInfo,
26066 &_swigt__p_wxNavigationKeyEvent,
26067 &_swigt__p_wxNcPaintEvent,
26068 &_swigt__p_wxNotifyEvent,
26069 &_swigt__p_wxObject,
26070 &_swigt__p_wxPCXHandler,
26071 &_swigt__p_wxPNGHandler,
26072 &_swigt__p_wxPNMHandler,
26073 &_swigt__p_wxPaintDC,
26074 &_swigt__p_wxPaintEvent,
26075 &_swigt__p_wxPalette,
26076 &_swigt__p_wxPaletteChangedEvent,
26077 &_swigt__p_wxPaperSize,
26078 &_swigt__p_wxPen,
26079 &_swigt__p_wxPenList,
26080 &_swigt__p_wxPoint,
26081 &_swigt__p_wxPostScriptDC,
26082 &_swigt__p_wxPrintData,
26083 &_swigt__p_wxPrinterDC,
26084 &_swigt__p_wxPyApp,
26085 &_swigt__p_wxPyCommandEvent,
26086 &_swigt__p_wxPyEvent,
26087 &_swigt__p_wxPyFontEnumerator,
26088 &_swigt__p_wxPyImageHandler,
26089 &_swigt__p_wxPySizer,
26090 &_swigt__p_wxPyValidator,
26091 &_swigt__p_wxQueryNewPaletteEvent,
26092 &_swigt__p_wxRect,
26093 &_swigt__p_wxRegion,
26094 &_swigt__p_wxRegionIterator,
26095 &_swigt__p_wxRendererNative,
26096 &_swigt__p_wxRendererVersion,
26097 &_swigt__p_wxScreenDC,
26098 &_swigt__p_wxScrollEvent,
26099 &_swigt__p_wxScrollWinEvent,
26100 &_swigt__p_wxSetCursorEvent,
26101 &_swigt__p_wxShowEvent,
26102 &_swigt__p_wxSize,
26103 &_swigt__p_wxSizeEvent,
26104 &_swigt__p_wxSizer,
26105 &_swigt__p_wxSizerItem,
26106 &_swigt__p_wxSplitterRenderParams,
26107 &_swigt__p_wxStaticBoxSizer,
26108 &_swigt__p_wxStdDialogButtonSizer,
26109 &_swigt__p_wxString,
26110 &_swigt__p_wxSysColourChangedEvent,
26111 &_swigt__p_wxTIFFHandler,
26112 &_swigt__p_wxUpdateUIEvent,
26113 &_swigt__p_wxValidator,
26114 &_swigt__p_wxWindow,
26115 &_swigt__p_wxWindowCreateEvent,
26116 &_swigt__p_wxWindowDC,
26117 &_swigt__p_wxWindowDestroyEvent,
26118 &_swigt__p_wxXPMHandler,
26119 };
26120
26121 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26122 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26123 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26124 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26125 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26126 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26127 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26128 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26129 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26130 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26131 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}};
26132 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26133 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26134 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26135 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26136 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26137 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}};
26138 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26139 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26140 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26141 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26142 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26143 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26144 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
26145 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}};
26146 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26147 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26148 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26149 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26150 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26151 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26152 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26153 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26154 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}};
26155 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26156 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26157 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26158 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26159 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26160 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26161 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26162 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26163 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26164 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26165 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26166 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26167 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26168 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26169 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26170 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26171 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26172 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26173 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26174 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
26175 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26176 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26177 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26178 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26179 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26180 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26181 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26182 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26183 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26184 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26185 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26186 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26187 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26188 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26189 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26190 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26191 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26192 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26193 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26194 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26195 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26196 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26197 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26198 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26199 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26200 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26201 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26202 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26203 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26204 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26205 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26206 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26207 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26208 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26209 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26210 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26211 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26212 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26213 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26214 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26215 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26216 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26217 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26218 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26219 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26220 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26221 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26222 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26223 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26224 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26225 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26226 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26227 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26228 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26229 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26230 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26231 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26232 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26233 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26234 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourDatabase, _p_wxColourDatabaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
26235 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26236 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26237 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26238 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26239 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26240 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26241 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26242 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26243 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26244 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26245 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26246 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26247 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26248 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26249 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26250 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26251 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26252 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26253 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26254 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}};
26255 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26256
26257 static swig_cast_info *swig_cast_initial[] = {
26258 _swigc__p_char,
26259 _swigc__p_double,
26260 _swigc__p_form_ops_t,
26261 _swigc__p_int,
26262 _swigc__p_unsigned_char,
26263 _swigc__p_unsigned_int,
26264 _swigc__p_unsigned_long,
26265 _swigc__p_wxANIHandler,
26266 _swigc__p_wxAcceleratorTable,
26267 _swigc__p_wxActivateEvent,
26268 _swigc__p_wxBMPHandler,
26269 _swigc__p_wxBitmap,
26270 _swigc__p_wxBoxSizer,
26271 _swigc__p_wxBrush,
26272 _swigc__p_wxBrushList,
26273 _swigc__p_wxBufferedDC,
26274 _swigc__p_wxBufferedPaintDC,
26275 _swigc__p_wxCURHandler,
26276 _swigc__p_wxChildFocusEvent,
26277 _swigc__p_wxClientDC,
26278 _swigc__p_wxCloseEvent,
26279 _swigc__p_wxColour,
26280 _swigc__p_wxColourDatabase,
26281 _swigc__p_wxCommandEvent,
26282 _swigc__p_wxContextMenuEvent,
26283 _swigc__p_wxControl,
26284 _swigc__p_wxControlWithItems,
26285 _swigc__p_wxCursor,
26286 _swigc__p_wxDC,
26287 _swigc__p_wxDash,
26288 _swigc__p_wxDateEvent,
26289 _swigc__p_wxDisplayChangedEvent,
26290 _swigc__p_wxDropFilesEvent,
26291 _swigc__p_wxDuplexMode,
26292 _swigc__p_wxEffects,
26293 _swigc__p_wxEncodingConverter,
26294 _swigc__p_wxEraseEvent,
26295 _swigc__p_wxEvent,
26296 _swigc__p_wxEvtHandler,
26297 _swigc__p_wxFSFile,
26298 _swigc__p_wxFileSystem,
26299 _swigc__p_wxFlexGridSizer,
26300 _swigc__p_wxFocusEvent,
26301 _swigc__p_wxFont,
26302 _swigc__p_wxFontList,
26303 _swigc__p_wxFontMapper,
26304 _swigc__p_wxGBSizerItem,
26305 _swigc__p_wxGDIObject,
26306 _swigc__p_wxGIFHandler,
26307 _swigc__p_wxGridBagSizer,
26308 _swigc__p_wxGridSizer,
26309 _swigc__p_wxICOHandler,
26310 _swigc__p_wxIcon,
26311 _swigc__p_wxIconBundle,
26312 _swigc__p_wxIconLocation,
26313 _swigc__p_wxIconizeEvent,
26314 _swigc__p_wxIdleEvent,
26315 _swigc__p_wxImage,
26316 _swigc__p_wxImageHandler,
26317 _swigc__p_wxImageList,
26318 _swigc__p_wxIndividualLayoutConstraint,
26319 _swigc__p_wxInitDialogEvent,
26320 _swigc__p_wxJPEGHandler,
26321 _swigc__p_wxKeyEvent,
26322 _swigc__p_wxLanguageInfo,
26323 _swigc__p_wxLayoutConstraints,
26324 _swigc__p_wxLocale,
26325 _swigc__p_wxMask,
26326 _swigc__p_wxMaximizeEvent,
26327 _swigc__p_wxMemoryDC,
26328 _swigc__p_wxMenu,
26329 _swigc__p_wxMenuBar,
26330 _swigc__p_wxMenuEvent,
26331 _swigc__p_wxMenuItem,
26332 _swigc__p_wxMetaFile,
26333 _swigc__p_wxMetaFileDC,
26334 _swigc__p_wxMirrorDC,
26335 _swigc__p_wxMouseCaptureChangedEvent,
26336 _swigc__p_wxMouseEvent,
26337 _swigc__p_wxMoveEvent,
26338 _swigc__p_wxNativeEncodingInfo,
26339 _swigc__p_wxNativeFontInfo,
26340 _swigc__p_wxNavigationKeyEvent,
26341 _swigc__p_wxNcPaintEvent,
26342 _swigc__p_wxNotifyEvent,
26343 _swigc__p_wxObject,
26344 _swigc__p_wxPCXHandler,
26345 _swigc__p_wxPNGHandler,
26346 _swigc__p_wxPNMHandler,
26347 _swigc__p_wxPaintDC,
26348 _swigc__p_wxPaintEvent,
26349 _swigc__p_wxPalette,
26350 _swigc__p_wxPaletteChangedEvent,
26351 _swigc__p_wxPaperSize,
26352 _swigc__p_wxPen,
26353 _swigc__p_wxPenList,
26354 _swigc__p_wxPoint,
26355 _swigc__p_wxPostScriptDC,
26356 _swigc__p_wxPrintData,
26357 _swigc__p_wxPrinterDC,
26358 _swigc__p_wxPyApp,
26359 _swigc__p_wxPyCommandEvent,
26360 _swigc__p_wxPyEvent,
26361 _swigc__p_wxPyFontEnumerator,
26362 _swigc__p_wxPyImageHandler,
26363 _swigc__p_wxPySizer,
26364 _swigc__p_wxPyValidator,
26365 _swigc__p_wxQueryNewPaletteEvent,
26366 _swigc__p_wxRect,
26367 _swigc__p_wxRegion,
26368 _swigc__p_wxRegionIterator,
26369 _swigc__p_wxRendererNative,
26370 _swigc__p_wxRendererVersion,
26371 _swigc__p_wxScreenDC,
26372 _swigc__p_wxScrollEvent,
26373 _swigc__p_wxScrollWinEvent,
26374 _swigc__p_wxSetCursorEvent,
26375 _swigc__p_wxShowEvent,
26376 _swigc__p_wxSize,
26377 _swigc__p_wxSizeEvent,
26378 _swigc__p_wxSizer,
26379 _swigc__p_wxSizerItem,
26380 _swigc__p_wxSplitterRenderParams,
26381 _swigc__p_wxStaticBoxSizer,
26382 _swigc__p_wxStdDialogButtonSizer,
26383 _swigc__p_wxString,
26384 _swigc__p_wxSysColourChangedEvent,
26385 _swigc__p_wxTIFFHandler,
26386 _swigc__p_wxUpdateUIEvent,
26387 _swigc__p_wxValidator,
26388 _swigc__p_wxWindow,
26389 _swigc__p_wxWindowCreateEvent,
26390 _swigc__p_wxWindowDC,
26391 _swigc__p_wxWindowDestroyEvent,
26392 _swigc__p_wxXPMHandler,
26393 };
26394
26395
26396 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26397
26398 static swig_const_info swig_const_table[] = {
26399 {0, 0, 0, 0.0, 0, 0}};
26400
26401 #ifdef __cplusplus
26402 }
26403 #endif
26404 /* -----------------------------------------------------------------------------
26405 * Type initialization:
26406 * This problem is tough by the requirement that no dynamic
26407 * memory is used. Also, since swig_type_info structures store pointers to
26408 * swig_cast_info structures and swig_cast_info structures store pointers back
26409 * to swig_type_info structures, we need some lookup code at initialization.
26410 * The idea is that swig generates all the structures that are needed.
26411 * The runtime then collects these partially filled structures.
26412 * The SWIG_InitializeModule function takes these initial arrays out of
26413 * swig_module, and does all the lookup, filling in the swig_module.types
26414 * array with the correct data and linking the correct swig_cast_info
26415 * structures together.
26416 *
26417 * The generated swig_type_info structures are assigned staticly to an initial
26418 * array. We just loop though that array, and handle each type individually.
26419 * First we lookup if this type has been already loaded, and if so, use the
26420 * loaded structure instead of the generated one. Then we have to fill in the
26421 * cast linked list. The cast data is initially stored in something like a
26422 * two-dimensional array. Each row corresponds to a type (there are the same
26423 * number of rows as there are in the swig_type_initial array). Each entry in
26424 * a column is one of the swig_cast_info structures for that type.
26425 * The cast_initial array is actually an array of arrays, because each row has
26426 * a variable number of columns. So to actually build the cast linked list,
26427 * we find the array of casts associated with the type, and loop through it
26428 * adding the casts to the list. The one last trick we need to do is making
26429 * sure the type pointer in the swig_cast_info struct is correct.
26430 *
26431 * First off, we lookup the cast->type name to see if it is already loaded.
26432 * There are three cases to handle:
26433 * 1) If the cast->type has already been loaded AND the type we are adding
26434 * casting info to has not been loaded (it is in this module), THEN we
26435 * replace the cast->type pointer with the type pointer that has already
26436 * been loaded.
26437 * 2) If BOTH types (the one we are adding casting info to, and the
26438 * cast->type) are loaded, THEN the cast info has already been loaded by
26439 * the previous module so we just ignore it.
26440 * 3) Finally, if cast->type has not already been loaded, then we add that
26441 * swig_cast_info to the linked list (because the cast->type) pointer will
26442 * be correct.
26443 * ----------------------------------------------------------------------------- */
26444
26445 #ifdef __cplusplus
26446 extern "C" {
26447 #if 0
26448 } /* c-mode */
26449 #endif
26450 #endif
26451
26452 #if 0
26453 #define SWIGRUNTIME_DEBUG
26454 #endif
26455
26456 SWIGRUNTIME void
26457 SWIG_InitializeModule(void *clientdata) {
26458 size_t i;
26459 swig_module_info *module_head;
26460 static int init_run = 0;
26461
26462 clientdata = clientdata;
26463
26464 if (init_run) return;
26465 init_run = 1;
26466
26467 /* Initialize the swig_module */
26468 swig_module.type_initial = swig_type_initial;
26469 swig_module.cast_initial = swig_cast_initial;
26470
26471 /* Try and load any already created modules */
26472 module_head = SWIG_GetModule(clientdata);
26473 if (module_head) {
26474 swig_module.next = module_head->next;
26475 module_head->next = &swig_module;
26476 } else {
26477 /* This is the first module loaded */
26478 swig_module.next = &swig_module;
26479 SWIG_SetModule(clientdata, &swig_module);
26480 }
26481
26482 /* Now work on filling in swig_module.types */
26483 #ifdef SWIGRUNTIME_DEBUG
26484 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26485 #endif
26486 for (i = 0; i < swig_module.size; ++i) {
26487 swig_type_info *type = 0;
26488 swig_type_info *ret;
26489 swig_cast_info *cast;
26490
26491 #ifdef SWIGRUNTIME_DEBUG
26492 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26493 #endif
26494
26495 /* if there is another module already loaded */
26496 if (swig_module.next != &swig_module) {
26497 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26498 }
26499 if (type) {
26500 /* Overwrite clientdata field */
26501 #ifdef SWIGRUNTIME_DEBUG
26502 printf("SWIG_InitializeModule: found type %s\n", type->name);
26503 #endif
26504 if (swig_module.type_initial[i]->clientdata) {
26505 type->clientdata = swig_module.type_initial[i]->clientdata;
26506 #ifdef SWIGRUNTIME_DEBUG
26507 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26508 #endif
26509 }
26510 } else {
26511 type = swig_module.type_initial[i];
26512 }
26513
26514 /* Insert casting types */
26515 cast = swig_module.cast_initial[i];
26516 while (cast->type) {
26517 /* Don't need to add information already in the list */
26518 ret = 0;
26519 #ifdef SWIGRUNTIME_DEBUG
26520 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26521 #endif
26522 if (swig_module.next != &swig_module) {
26523 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26524 #ifdef SWIGRUNTIME_DEBUG
26525 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26526 #endif
26527 }
26528 if (ret) {
26529 if (type == swig_module.type_initial[i]) {
26530 #ifdef SWIGRUNTIME_DEBUG
26531 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26532 #endif
26533 cast->type = ret;
26534 ret = 0;
26535 } else {
26536 /* Check for casting already in the list */
26537 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26538 #ifdef SWIGRUNTIME_DEBUG
26539 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26540 #endif
26541 if (!ocast) ret = 0;
26542 }
26543 }
26544
26545 if (!ret) {
26546 #ifdef SWIGRUNTIME_DEBUG
26547 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26548 #endif
26549 if (type->cast) {
26550 type->cast->prev = cast;
26551 cast->next = type->cast;
26552 }
26553 type->cast = cast;
26554 }
26555 cast++;
26556 }
26557 /* Set entry in modules->types array equal to the type */
26558 swig_module.types[i] = type;
26559 }
26560 swig_module.types[i] = 0;
26561
26562 #ifdef SWIGRUNTIME_DEBUG
26563 printf("**** SWIG_InitializeModule: Cast List ******\n");
26564 for (i = 0; i < swig_module.size; ++i) {
26565 int j = 0;
26566 swig_cast_info *cast = swig_module.cast_initial[i];
26567 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26568 while (cast->type) {
26569 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26570 cast++;
26571 ++j;
26572 }
26573 printf("---- Total casts: %d\n",j);
26574 }
26575 printf("**** SWIG_InitializeModule: Cast List ******\n");
26576 #endif
26577 }
26578
26579 /* This function will propagate the clientdata field of type to
26580 * any new swig_type_info structures that have been added into the list
26581 * of equivalent types. It is like calling
26582 * SWIG_TypeClientData(type, clientdata) a second time.
26583 */
26584 SWIGRUNTIME void
26585 SWIG_PropagateClientData(void) {
26586 size_t i;
26587 swig_cast_info *equiv;
26588 static int init_run = 0;
26589
26590 if (init_run) return;
26591 init_run = 1;
26592
26593 for (i = 0; i < swig_module.size; i++) {
26594 if (swig_module.types[i]->clientdata) {
26595 equiv = swig_module.types[i]->cast;
26596 while (equiv) {
26597 if (!equiv->converter) {
26598 if (equiv->type && !equiv->type->clientdata)
26599 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26600 }
26601 equiv = equiv->next;
26602 }
26603 }
26604 }
26605 }
26606
26607 #ifdef __cplusplus
26608 #if 0
26609 {
26610 /* c-mode */
26611 #endif
26612 }
26613 #endif
26614
26615
26616
26617 #ifdef __cplusplus
26618 extern "C" {
26619 #endif
26620
26621 /* Python-specific SWIG API */
26622 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26623 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26624 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26625
26626 /* -----------------------------------------------------------------------------
26627 * global variable support code.
26628 * ----------------------------------------------------------------------------- */
26629
26630 typedef struct swig_globalvar {
26631 char *name; /* Name of global variable */
26632 PyObject *(*get_attr)(void); /* Return the current value */
26633 int (*set_attr)(PyObject *); /* Set the value */
26634 struct swig_globalvar *next;
26635 } swig_globalvar;
26636
26637 typedef struct swig_varlinkobject {
26638 PyObject_HEAD
26639 swig_globalvar *vars;
26640 } swig_varlinkobject;
26641
26642 SWIGINTERN PyObject *
26643 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26644 return PyString_FromString("<Swig global variables>");
26645 }
26646
26647 SWIGINTERN PyObject *
26648 swig_varlink_str(swig_varlinkobject *v) {
26649 PyObject *str = PyString_FromString("(");
26650 swig_globalvar *var;
26651 for (var = v->vars; var; var=var->next) {
26652 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26653 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26654 }
26655 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26656 return str;
26657 }
26658
26659 SWIGINTERN int
26660 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26661 PyObject *str = swig_varlink_str(v);
26662 fprintf(fp,"Swig global variables ");
26663 fprintf(fp,"%s\n", PyString_AsString(str));
26664 Py_DECREF(str);
26665 return 0;
26666 }
26667
26668 SWIGINTERN void
26669 swig_varlink_dealloc(swig_varlinkobject *v) {
26670 swig_globalvar *var = v->vars;
26671 while (var) {
26672 swig_globalvar *n = var->next;
26673 free(var->name);
26674 free(var);
26675 var = n;
26676 }
26677 }
26678
26679 SWIGINTERN PyObject *
26680 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26681 PyObject *res = NULL;
26682 swig_globalvar *var = v->vars;
26683 while (var) {
26684 if (strcmp(var->name,n) == 0) {
26685 res = (*var->get_attr)();
26686 break;
26687 }
26688 var = var->next;
26689 }
26690 if (res == NULL && !PyErr_Occurred()) {
26691 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26692 }
26693 return res;
26694 }
26695
26696 SWIGINTERN int
26697 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26698 int res = 1;
26699 swig_globalvar *var = v->vars;
26700 while (var) {
26701 if (strcmp(var->name,n) == 0) {
26702 res = (*var->set_attr)(p);
26703 break;
26704 }
26705 var = var->next;
26706 }
26707 if (res == 1 && !PyErr_Occurred()) {
26708 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26709 }
26710 return res;
26711 }
26712
26713 SWIGINTERN PyTypeObject*
26714 swig_varlink_type(void) {
26715 static char varlink__doc__[] = "Swig var link object";
26716 static PyTypeObject varlink_type;
26717 static int type_init = 0;
26718 if (!type_init) {
26719 const PyTypeObject tmp
26720 = {
26721 PyObject_HEAD_INIT(NULL)
26722 0, /* Number of items in variable part (ob_size) */
26723 (char *)"swigvarlink", /* Type name (tp_name) */
26724 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26725 0, /* Itemsize (tp_itemsize) */
26726 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26727 (printfunc) swig_varlink_print, /* Print (tp_print) */
26728 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26729 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26730 0, /* tp_compare */
26731 (reprfunc) swig_varlink_repr, /* tp_repr */
26732 0, /* tp_as_number */
26733 0, /* tp_as_sequence */
26734 0, /* tp_as_mapping */
26735 0, /* tp_hash */
26736 0, /* tp_call */
26737 (reprfunc)swig_varlink_str, /* tp_str */
26738 0, /* tp_getattro */
26739 0, /* tp_setattro */
26740 0, /* tp_as_buffer */
26741 0, /* tp_flags */
26742 varlink__doc__, /* tp_doc */
26743 0, /* tp_traverse */
26744 0, /* tp_clear */
26745 0, /* tp_richcompare */
26746 0, /* tp_weaklistoffset */
26747 #if PY_VERSION_HEX >= 0x02020000
26748 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26749 #endif
26750 #if PY_VERSION_HEX >= 0x02030000
26751 0, /* tp_del */
26752 #endif
26753 #ifdef COUNT_ALLOCS
26754 0,0,0,0 /* tp_alloc -> tp_next */
26755 #endif
26756 };
26757 varlink_type = tmp;
26758 varlink_type.ob_type = &PyType_Type;
26759 type_init = 1;
26760 }
26761 return &varlink_type;
26762 }
26763
26764 /* Create a variable linking object for use later */
26765 SWIGINTERN PyObject *
26766 SWIG_Python_newvarlink(void) {
26767 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26768 if (result) {
26769 result->vars = 0;
26770 }
26771 return ((PyObject*) result);
26772 }
26773
26774 SWIGINTERN void
26775 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26776 swig_varlinkobject *v = (swig_varlinkobject *) p;
26777 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26778 if (gv) {
26779 size_t size = strlen(name)+1;
26780 gv->name = (char *)malloc(size);
26781 if (gv->name) {
26782 strncpy(gv->name,name,size);
26783 gv->get_attr = get_attr;
26784 gv->set_attr = set_attr;
26785 gv->next = v->vars;
26786 }
26787 }
26788 v->vars = gv;
26789 }
26790
26791 SWIGINTERN PyObject *
26792 SWIG_globals() {
26793 static PyObject *_SWIG_globals = 0;
26794 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26795 return _SWIG_globals;
26796 }
26797
26798 /* -----------------------------------------------------------------------------
26799 * constants/methods manipulation
26800 * ----------------------------------------------------------------------------- */
26801
26802 /* Install Constants */
26803 SWIGINTERN void
26804 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26805 PyObject *obj = 0;
26806 size_t i;
26807 for (i = 0; constants[i].type; ++i) {
26808 switch(constants[i].type) {
26809 case SWIG_PY_POINTER:
26810 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26811 break;
26812 case SWIG_PY_BINARY:
26813 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26814 break;
26815 default:
26816 obj = 0;
26817 break;
26818 }
26819 if (obj) {
26820 PyDict_SetItemString(d, constants[i].name, obj);
26821 Py_DECREF(obj);
26822 }
26823 }
26824 }
26825
26826 /* -----------------------------------------------------------------------------*/
26827 /* Fix SwigMethods to carry the callback ptrs when needed */
26828 /* -----------------------------------------------------------------------------*/
26829
26830 SWIGINTERN void
26831 SWIG_Python_FixMethods(PyMethodDef *methods,
26832 swig_const_info *const_table,
26833 swig_type_info **types,
26834 swig_type_info **types_initial) {
26835 size_t i;
26836 for (i = 0; methods[i].ml_name; ++i) {
26837 char *c = methods[i].ml_doc;
26838 if (c && (c = strstr(c, "swig_ptr: "))) {
26839 int j;
26840 swig_const_info *ci = 0;
26841 char *name = c + 10;
26842 for (j = 0; const_table[j].type; ++j) {
26843 if (strncmp(const_table[j].name, name,
26844 strlen(const_table[j].name)) == 0) {
26845 ci = &(const_table[j]);
26846 break;
26847 }
26848 }
26849 if (ci) {
26850 size_t shift = (ci->ptype) - types;
26851 swig_type_info *ty = types_initial[shift];
26852 size_t ldoc = (c - methods[i].ml_doc);
26853 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26854 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26855 if (ndoc) {
26856 char *buff = ndoc;
26857 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26858 if (ptr) {
26859 strncpy(buff, methods[i].ml_doc, ldoc);
26860 buff += ldoc;
26861 strncpy(buff, "swig_ptr: ", 10);
26862 buff += 10;
26863 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26864 methods[i].ml_doc = ndoc;
26865 }
26866 }
26867 }
26868 }
26869 }
26870 }
26871
26872 #ifdef __cplusplus
26873 }
26874 #endif
26875
26876 /* -----------------------------------------------------------------------------*
26877 * Partial Init method
26878 * -----------------------------------------------------------------------------*/
26879
26880 #ifdef __cplusplus
26881 extern "C"
26882 #endif
26883 SWIGEXPORT void SWIG_init(void) {
26884 PyObject *m, *d;
26885
26886 /* Fix SwigMethods to carry the callback ptrs when needed */
26887 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26888
26889 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26890 d = PyModule_GetDict(m);
26891
26892 SWIG_InitializeModule(0);
26893 SWIG_InstallConstants(d,swig_const_table);
26894
26895
26896 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26897 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26898 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26899 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26900 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26901 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26902 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26903 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26904 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26905 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26906 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26907 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26908 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26909 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26910 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26911 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26912 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26913 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26914 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26915 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26916 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26917 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26918 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26919 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26920 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26921 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26922 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26923 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26924 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26925 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26926 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26927 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26928 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26929 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26930 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26931 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26932 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26933 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26934 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26935 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26937 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26938 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26939 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26940 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26941 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26942 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26943 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26944 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
26945 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
26946 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
26947 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
26948 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
26949 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
26950 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
26951 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
26952 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
26953 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
26954 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
26955 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
26956 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
26957 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
26958 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
26959 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
26960 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
26961 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
26962 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
26963 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
26964 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
26965 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
26966 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
26967 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
26968 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
26969 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
26970 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
26971 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
26972 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
26973 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
26974 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
26975 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
26976 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
26977 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
26978 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
26979 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
26980 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
26981 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
26982 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
26983 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
26984 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
26985 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
26986 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
26987 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
26988 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
26989 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
26990 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
26991 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
26992 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
26993 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
26994 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
26995 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
26996 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
26997 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
26998 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
26999 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27000 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27001 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27002 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27003 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27004 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27005 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27006 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27007 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27008 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27009 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27010 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27011 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27012 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27013 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27014 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27015 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27016 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27017 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27018 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27019 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27020 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27021 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27022 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27023
27024 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27025
27026 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27027 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27028 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27029 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27030 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27031 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27032 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27033 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27034 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27035 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27036 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27037 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27038 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27039 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27044 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27045 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27046 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27047 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27048 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27049 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27050 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27051 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27052 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27053 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27054 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27055 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27056 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27057 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27058 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27059 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27060 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27061 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27062 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27063 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27064 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27065 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27066 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27067 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27068 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27069 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27070 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27071 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27072 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27073 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27074 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27075 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27076 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27077 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27078 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27079 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27080 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27081 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27082 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27083 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27084 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27085 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27086 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27087 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27088 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27089 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27091 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27092 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27093 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27094 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27095 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27096 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27097 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27098 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27099 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27100 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27101 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27102 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27103 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27104 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27105 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27106 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27107 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27108 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27109 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27110 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27111 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27112 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27113 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27114 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27115 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27116 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27117 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27118 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27119 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27120 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27121 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27122 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27123 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27124 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27125 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27126 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27127 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27128 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27129 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27130 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27131 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27132 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27133 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27134 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27135 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27136 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27137 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27138 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27139 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27140 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27141 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27142 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27143 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27144 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27145 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27146 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27147 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27148 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27149 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27150 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27151 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27152 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27153 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27154 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27155 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27156 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27157 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27158 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27159 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27160 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27161 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27162 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27163 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27164 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27165 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27166 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27167 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27168 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27169 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27170 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27171 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27172 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27173 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27174 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27175 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27176 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27177 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27178 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27179 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27180 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27181 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27182 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27183 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27184 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27185 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27186 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27187 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27188 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27189 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27190 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27191 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27192 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27193 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27194 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27195 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27196 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27197 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27198 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27199 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27200 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27201 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27202 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27203 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27204 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27205 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27206 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27207 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27215 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27216 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27217 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27218 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27219 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27220 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27221 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27222 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27223 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27224 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27225 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27226 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27227 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27228 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27229 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27230 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27231 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27232 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27233 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27234 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27235 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27236 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27237 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27238 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27239 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27240 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27241 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27242 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27257 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27258 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27259 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27260 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27261 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27262 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27263 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27264 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27265 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27266 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27267 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27268 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27269 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27270 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27271 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27272 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27273 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27274 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27275 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27276 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27277 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27278 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27279 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27280 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27281 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27282 SWIG_addvarlink(SWIG_globals(),(char*)"NORMAL_FONT",NORMAL_FONT_get, NORMAL_FONT_set);
27283 SWIG_addvarlink(SWIG_globals(),(char*)"SMALL_FONT",SMALL_FONT_get, SMALL_FONT_set);
27284 SWIG_addvarlink(SWIG_globals(),(char*)"ITALIC_FONT",ITALIC_FONT_get, ITALIC_FONT_set);
27285 SWIG_addvarlink(SWIG_globals(),(char*)"SWISS_FONT",SWISS_FONT_get, SWISS_FONT_set);
27286 SWIG_addvarlink(SWIG_globals(),(char*)"RED_PEN",RED_PEN_get, RED_PEN_set);
27287 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_PEN",CYAN_PEN_get, CYAN_PEN_set);
27288 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_PEN",GREEN_PEN_get, GREEN_PEN_set);
27289 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_PEN",BLACK_PEN_get, BLACK_PEN_set);
27290 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_PEN",WHITE_PEN_get, WHITE_PEN_set);
27291 SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_PEN",TRANSPARENT_PEN_get, TRANSPARENT_PEN_set);
27292 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_DASHED_PEN",BLACK_DASHED_PEN_get, BLACK_DASHED_PEN_set);
27293 SWIG_addvarlink(SWIG_globals(),(char*)"GREY_PEN",GREY_PEN_get, GREY_PEN_set);
27294 SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_PEN",MEDIUM_GREY_PEN_get, MEDIUM_GREY_PEN_set);
27295 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_PEN",LIGHT_GREY_PEN_get, LIGHT_GREY_PEN_set);
27296 SWIG_addvarlink(SWIG_globals(),(char*)"BLUE_BRUSH",BLUE_BRUSH_get, BLUE_BRUSH_set);
27297 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN_BRUSH",GREEN_BRUSH_get, GREEN_BRUSH_set);
27298 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE_BRUSH",WHITE_BRUSH_get, WHITE_BRUSH_set);
27299 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK_BRUSH",BLACK_BRUSH_get, BLACK_BRUSH_set);
27300 SWIG_addvarlink(SWIG_globals(),(char*)"TRANSPARENT_BRUSH",TRANSPARENT_BRUSH_get, TRANSPARENT_BRUSH_set);
27301 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN_BRUSH",CYAN_BRUSH_get, CYAN_BRUSH_set);
27302 SWIG_addvarlink(SWIG_globals(),(char*)"RED_BRUSH",RED_BRUSH_get, RED_BRUSH_set);
27303 SWIG_addvarlink(SWIG_globals(),(char*)"GREY_BRUSH",GREY_BRUSH_get, GREY_BRUSH_set);
27304 SWIG_addvarlink(SWIG_globals(),(char*)"MEDIUM_GREY_BRUSH",MEDIUM_GREY_BRUSH_get, MEDIUM_GREY_BRUSH_set);
27305 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY_BRUSH",LIGHT_GREY_BRUSH_get, LIGHT_GREY_BRUSH_set);
27306 SWIG_addvarlink(SWIG_globals(),(char*)"BLACK",BLACK_get, BLACK_set);
27307 SWIG_addvarlink(SWIG_globals(),(char*)"WHITE",WHITE_get, WHITE_set);
27308 SWIG_addvarlink(SWIG_globals(),(char*)"RED",RED_get, RED_set);
27309 SWIG_addvarlink(SWIG_globals(),(char*)"BLUE",BLUE_get, BLUE_set);
27310 SWIG_addvarlink(SWIG_globals(),(char*)"GREEN",GREEN_get, GREEN_set);
27311 SWIG_addvarlink(SWIG_globals(),(char*)"CYAN",CYAN_get, CYAN_set);
27312 SWIG_addvarlink(SWIG_globals(),(char*)"LIGHT_GREY",LIGHT_GREY_get, LIGHT_GREY_set);
27313 SWIG_addvarlink(SWIG_globals(),(char*)"STANDARD_CURSOR",STANDARD_CURSOR_get, STANDARD_CURSOR_set);
27314 SWIG_addvarlink(SWIG_globals(),(char*)"HOURGLASS_CURSOR",HOURGLASS_CURSOR_get, HOURGLASS_CURSOR_set);
27315 SWIG_addvarlink(SWIG_globals(),(char*)"CROSS_CURSOR",CROSS_CURSOR_get, CROSS_CURSOR_set);
27316 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27317 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27318 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27319 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27320 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27321 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27322 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27323 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27324 SWIG_addvarlink(SWIG_globals(),(char*)"TheFontList",TheFontList_get, TheFontList_set);
27325 SWIG_addvarlink(SWIG_globals(),(char*)"ThePenList",ThePenList_get, ThePenList_set);
27326 SWIG_addvarlink(SWIG_globals(),(char*)"TheBrushList",TheBrushList_get, TheBrushList_set);
27327 SWIG_addvarlink(SWIG_globals(),(char*)"TheColourDatabase",TheColourDatabase_get, TheColourDatabase_set);
27328 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27329 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27330 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27331 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27332 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27333 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27334 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27335 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27336 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27337 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27338 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27339 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27340 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27341 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27342 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27343
27344 // Work around a chicken/egg problem in drawlist.cpp
27345 wxPyDrawList_SetAPIPtr();
27346
27347 }
27348